Use modern github URLs
Also shorten macro names while at it.
This commit is contained in:
parent
6714fc2555
commit
6a3bb3f641
16
systemd.spec
16
systemd.spec
@ -1,5 +1,5 @@
|
|||||||
%global gitcommit 9f3aed1c7d20c12cc932b81e127d48edf855f36c
|
%global commit 9f3aed1c7d20c12cc932b81e127d48edf855f36c
|
||||||
%{?gitcommit:%global gitcommitshort %(c=%{gitcommit}; echo ${c:0:7})}
|
%{?commit:%global shortcommit %(c=%{commit}; echo ${c:0:7})}
|
||||||
|
|
||||||
%global stable 1
|
%global stable 1
|
||||||
|
|
||||||
@ -13,18 +13,18 @@
|
|||||||
%global user_unit_dir %{pkgdir}/user
|
%global user_unit_dir %{pkgdir}/user
|
||||||
|
|
||||||
Name: systemd
|
Name: systemd
|
||||||
Url: http://www.freedesktop.org/wiki/Software/systemd
|
Url: https://www.freedesktop.org/wiki/Software/systemd
|
||||||
Version: 239
|
Version: 239
|
||||||
Release: 6%{?gitcommit:.git%{gitcommitshort}}%{?dist}
|
Release: 6%{?commit:.git%{shortcommit}}%{?dist}
|
||||||
# For a breakdown of the licensing, see README
|
# For a breakdown of the licensing, see README
|
||||||
License: LGPLv2+ and MIT and GPLv2+
|
License: LGPLv2+ and MIT and GPLv2+
|
||||||
Summary: System and Service Manager
|
Summary: System and Service Manager
|
||||||
|
|
||||||
# download tarballs with "spectool -g systemd.spec"
|
# download tarballs with "spectool -g systemd.spec"
|
||||||
%if %{defined gitcommit}
|
%if %{defined commit}
|
||||||
Source0: https://github.com/systemd/systemd%{?stable:-stable}/archive/%{?gitcommit}.tar.gz#/%{name}-%{gitcommitshort}.tar.gz
|
Source0: https://github.com/systemd/systemd%{?stable:-stable}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
||||||
%else
|
%else
|
||||||
Source0: https://github.com/systemd/systemd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/systemd/systemd/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
%endif
|
%endif
|
||||||
# This file must be available before %%prep.
|
# This file must be available before %%prep.
|
||||||
# It is generated during systemd build and can be found in build/src/core/.
|
# It is generated during systemd build and can be found in build/src/core/.
|
||||||
@ -256,7 +256,7 @@ License: LGPLv2+
|
|||||||
They can be useful to test systemd internals.
|
They can be useful to test systemd internals.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup %{?gitcommit:-n %{name}%{?stable:-stable}-%{gitcommit}} -p1 -Sgit
|
%autosetup %{?commit:-n %{name}%{?stable:-stable}-%{commit}} -p1 -Sgit
|
||||||
|
|
||||||
%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