Use %version_no_tilde instead of custom macro
This commit is contained in:
parent
2d2d8b7165
commit
3ba8081e77
@ -26,16 +26,14 @@ Release: 3%{?dist}
|
|||||||
License: LGPLv2+ and MIT and GPLv2+
|
License: LGPLv2+ and MIT and GPLv2+
|
||||||
Summary: System and Service Manager
|
Summary: System and Service Manager
|
||||||
|
|
||||||
%global github_version %(c=%{version}; echo ${c}|tr '~' '-')
|
|
||||||
|
|
||||||
# download tarballs with "spectool -g systemd.spec"
|
# download tarballs with "spectool -g systemd.spec"
|
||||||
%if %{defined commit}
|
%if %{defined commit}
|
||||||
Source0: https://github.com/systemd/systemd%{?stable:-stable}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
Source0: https://github.com/systemd/systemd%{?stable:-stable}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
||||||
%else
|
%else
|
||||||
%if 0%{?stable}
|
%if 0%{?stable}
|
||||||
Source0: https://github.com/systemd/systemd-stable/archive/v%{github_version}/%{name}-%{github_version}.tar.gz
|
Source0: https://github.com/systemd/systemd-stable/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
|
||||||
%else
|
%else
|
||||||
Source0: https://github.com/systemd/systemd/archive/v%{github_version}/%{name}-%{github_version}.tar.gz
|
Source0: https://github.com/systemd/systemd/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
# This file must be available before %%prep.
|
# This file must be available before %%prep.
|
||||||
@ -389,7 +387,7 @@ or other libraries from systemd-libs. This package conflicts with the main
|
|||||||
systemd package and is meant for use in non-systemd systems.
|
systemd package and is meant for use in non-systemd systems.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{?commit:%{name}%{?stable:-stable}-%{commit}}%{!?commit:%{name}%{?stable:-stable}-%{github_version}} -p1
|
%autosetup -n %{?commit:%{name}%{?stable:-stable}-%{commit}}%{!?commit:%{name}%{?stable:-stable}-%{version_no_tilde}} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%define ntpvendor %(source /etc/os-release; echo ${ID})
|
%define ntpvendor %(source /etc/os-release; echo ${ID})
|
||||||
|
Loading…
Reference in New Issue
Block a user