From 556a1747dd98b238f64202c2f4bea9cc3fba5de142912e9cf19a01c724b71d10 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Wed, 31 Jan 2018 11:44:15 +0000 Subject: [PATCH] Fix download URL. OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=362 --- python-libmount.spec | 5 +++-- util-linux-systemd.spec | 5 +++-- util-linux.spec | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/python-libmount.spec b/python-libmount.spec index 2dd0b95..74bf09c 100644 --- a/python-libmount.spec +++ b/python-libmount.spec @@ -117,6 +117,7 @@ BuildRequires: libmount-devel %endif #END SECOND STAGE DEPENDENCIES Version: 2.31.1 +%define major_version $(echo '%{version}' | (IFS='.' ; read MAJOR MINOR RELEASE ; echo $MAJOR.$MINOR) ) Release: 0 # util-linux is a base package and uuidd pre-requiring pwdutils pulls # that into the core build cycle. pwdutils also pulls in the whole @@ -125,7 +126,7 @@ Release: 0 # these tools as well #!BuildIgnore: pwdutils Url: https://www.kernel.org/pub/linux/utils/util-linux/ -Source: https://www.kernel.org/pub/linux/utils/util-linux/v%{version}/util-linux-%{version}.tar.xz +Source: https://www.kernel.org/pub/linux/utils/util-linux/v%{major_version}/util-linux-%{version}.tar.xz Source1: util-linux-rpmlintrc Source4: raw.service Source5: etc.raw @@ -135,7 +136,7 @@ Source8: login.pamd Source9: remote.pamd Source10: su.pamd Source11: su.default -Source12: https://www.kernel.org/pub/linux/utils/util-linux/v%{version}/util-linux-%{version}.tar.sign +Source12: https://www.kernel.org/pub/linux/utils/util-linux/v%{major_version}/util-linux-%{version}.tar.sign Source13: %{_name}.keyring Source14: runuser.pamd # klogconsole, http://opensuse.github.com/kiwi, 7.02.25, git 859dc050 diff --git a/util-linux-systemd.spec b/util-linux-systemd.spec index 3ef3163..9bb375b 100644 --- a/util-linux-systemd.spec +++ b/util-linux-systemd.spec @@ -117,6 +117,7 @@ BuildRequires: libmount-devel %endif #END SECOND STAGE DEPENDENCIES Version: 2.31.1 +%define major_version $(echo '%{version}' | (IFS='.' ; read MAJOR MINOR RELEASE ; echo $MAJOR.$MINOR) ) Release: 0 # util-linux is a base package and uuidd pre-requiring pwdutils pulls # that into the core build cycle. pwdutils also pulls in the whole @@ -125,7 +126,7 @@ Release: 0 # these tools as well #!BuildIgnore: pwdutils Url: https://www.kernel.org/pub/linux/utils/util-linux/ -Source: https://www.kernel.org/pub/linux/utils/util-linux/v%{version}/util-linux-%{version}.tar.xz +Source: https://www.kernel.org/pub/linux/utils/util-linux/v%{major_version}/util-linux-%{version}.tar.xz Source1: util-linux-rpmlintrc Source4: raw.service Source5: etc.raw @@ -135,7 +136,7 @@ Source8: login.pamd Source9: remote.pamd Source10: su.pamd Source11: su.default -Source12: https://www.kernel.org/pub/linux/utils/util-linux/v%{version}/util-linux-%{version}.tar.sign +Source12: https://www.kernel.org/pub/linux/utils/util-linux/v%{major_version}/util-linux-%{version}.tar.sign Source13: %{_name}.keyring Source14: runuser.pamd # klogconsole, http://opensuse.github.com/kiwi, 7.02.25, git 859dc050 diff --git a/util-linux.spec b/util-linux.spec index d0e1e22..1c35110 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -117,6 +117,7 @@ BuildRequires: libmount-devel %endif #END SECOND STAGE DEPENDENCIES Version: 2.31.1 +%define major_version $(echo '%{version}' | (IFS='.' ; read MAJOR MINOR RELEASE ; echo $MAJOR.$MINOR) ) Release: 0 # util-linux is a base package and uuidd pre-requiring pwdutils pulls # that into the core build cycle. pwdutils also pulls in the whole @@ -125,7 +126,7 @@ Release: 0 # these tools as well #!BuildIgnore: pwdutils Url: https://www.kernel.org/pub/linux/utils/util-linux/ -Source: https://www.kernel.org/pub/linux/utils/util-linux/v%{version}/util-linux-%{version}.tar.xz +Source: https://www.kernel.org/pub/linux/utils/util-linux/v%{major_version}/util-linux-%{version}.tar.xz Source1: util-linux-rpmlintrc Source4: raw.service Source5: etc.raw @@ -135,7 +136,7 @@ Source8: login.pamd Source9: remote.pamd Source10: su.pamd Source11: su.default -Source12: https://www.kernel.org/pub/linux/utils/util-linux/v%{version}/util-linux-%{version}.tar.sign +Source12: https://www.kernel.org/pub/linux/utils/util-linux/v%{major_version}/util-linux-%{version}.tar.sign Source13: %{_name}.keyring Source14: runuser.pamd # klogconsole, http://opensuse.github.com/kiwi, 7.02.25, git 859dc050