Adapt to different versions of git and branches with '-' in their names.
This commit is contained in:
Родитель
f4b456080f
Коммит
50ad0e41cd
2
Makefile
2
Makefile
|
@ -26,7 +26,7 @@ COVERAGE := coverage
|
|||
PYLINT = $(BIN_DIR)/pylint
|
||||
PKGS = linkdrop
|
||||
|
||||
GIT_DESCRIBE := `git describe | cut -d- -f2-3`
|
||||
GIT_DESCRIBE := `git describe --long`
|
||||
|
||||
ifeq ($(TOPSRCDIR),)
|
||||
export TOPSRCDIR = $(shell pwd)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
Name: %{f1_name_prefix}python%{pyver_sys}
|
||||
Version: %%version%%
|
||||
Release: 4%%git%%%{?dist}
|
||||
Release: 5%%git%%%{?dist}
|
||||
Summary: Share Links Fast.
|
||||
|
||||
Group: Applications/Internet
|
||||
|
|
|
@ -8,7 +8,7 @@ my $version = shift;
|
|||
my $requires = shift;
|
||||
# The git revision
|
||||
my $git = shift;
|
||||
my ($git_cnt, $git_rev) = split('-', $git);
|
||||
my ($git_cnt, $git_rev) = (split('-', $git))[-2,-1];
|
||||
$git = $git_cnt . '.git.' . $git_rev;
|
||||
|
||||
my $prefix = "%{f1_name_prefix}python%{pyver}-";
|
||||
|
|
Загрузка…
Ссылка в новой задаче