[packages/smem] adapter; do not require specific kernel flavour

glen glen at pld-linux.org
Thu Mar 19 13:15:10 CET 2015


commit 5531cef3aadbd5092bad0937b8a86ee395013ae6
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Mar 19 14:14:46 2015 +0200

    adapter; do not require specific kernel flavour

 smem.spec | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/smem.spec b/smem.spec
index c57f119..c627aeb 100644
--- a/smem.spec
+++ b/smem.spec
@@ -4,14 +4,14 @@ Version:	1.4
 Release:	1
 License:	GPL v2+
 Group:		Applications/System
-URL:		http://www.selenic.com/smem/
 Source0:	http://www.selenic.com/smem/download/%{name}-%{version}.tar.gz
 # Source0-md5:	fe79435c3930389bfdb560255c802162
-Requires:	kernel >= 2.6.27
-BuildRequires:  rpm-pythonprov
-BuildRequires:  rpmbuild(macros) >= 1.219
-Requires:       python >= 1:2.7
-Requires:       python-modules >= 1:2.7
+URL:		http://www.selenic.com/smem/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python >= 1:2.7
+Requires:	python-modules >= 1:2.7
+Requires:	uname(release) >= 2.6.27
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -31,16 +31,16 @@ area to give a realistic measure.
 
 %build
 %{__make} smemcap \
-        CC="%{__cc}" \
-        CPU_OPTS="%{rpmcflags}" \
-        LDFLAGS="%{rpmldflags}"
+	CC="%{__cc}" \
+	CPU_OPTS="%{rpmcflags}" \
+	LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}
-install smem $RPM_BUILD_ROOT%{_bindir}
-install smemcap $RPM_BUILD_ROOT%{_bindir}
-install smem.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install -p smem $RPM_BUILD_ROOT%{_bindir}
+install -p smemcap $RPM_BUILD_ROOT%{_bindir}
+cp -p smem.8 $RPM_BUILD_ROOT%{_mandir}/man8
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/smem.git/commitdiff/5531cef3aadbd5092bad0937b8a86ee395013ae6



More information about the pld-cvs-commit mailing list