diff --git a/safelease.spec b/safelease.spec index cb8ba03..92335f3 100644 --- a/safelease.spec +++ b/safelease.spec @@ -1,6 +1,6 @@ Name: safelease Version: 1.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Legacy locking utility for VDSM Group: System Environment/Libraries @@ -10,6 +10,23 @@ Source0: https://bronhaim.fedorapeople.org/%{name}-%{version}.tar.gz BuildRequires: autoconf BuildRequires: automake +## +# The following requirements are necessary for VDSM to avoid +# platform dependencies. Those are not required by safelease code and should +# remove once vdsm will be able to provide those requirements otherwise. + +# Numactl is not available on s390[x] and ARM +%ifnarch s390 s390x %{arm} +Requires: numactl +%endif + +%ifarch x86_64 +Requires: python-dmidecode +Requires: dmidecode +%endif + +## hack end. + %description Safelease is a legacy cluster lock utility used by VDSM. It is based on the algorithm presented in the article "Light-Weight Leases for @@ -19,7 +36,7 @@ Storage-Centric Coordination" by G Chockler and D Malkhi. %autosetup -n %{name}-%{version} %build -./autogen.sh +./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib %configure make %{?_smp_mflags} @@ -35,10 +52,13 @@ make %{?_smp_mflags} %{_libexecdir}/%{name}/%{name} %changelog -* Fri Jun 19 2015 Fedora Release Engineering - 1.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild +* Thu Dec 24 2015 Yaniv Bronhaim - 1.0-6 +- Adding target for rpm and srpm to make file to ease build process + +* Sun May 17 2015 Yaniv Bronhaim - 1.0-5 +- Adding vdsm hack to require platform depended packages which vdsm needs -* Sun Apr 12 2015 Yaniv Bronhaim - 1.0-4 +* Sun Apr 12 2015 Yaniv Bronhaim - 1.0-4 - Adding %%license macro for COPYING * Mon Dec 8 2014 Vitor de Lima - 1.0-3 diff --git a/sources b/sources index 26967c1..2b9b06d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -837607be7ea29b578368f643009837dd safelease-1.0.tar.gz +5963cae1c80633d51974aab404f33c8d safelease-1.0.tar.gz