summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--smem.spec24
1 files 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