[smem] spec modernization

Michal Schmidt michich at fedoraproject.org
Fri Feb 15 13:34:45 UTC 2013


commit 4eb2decb0a5ad4ac78ace457730e1488683e5f18
Author: Michal Schmidt <mschmidt at redhat.com>
Date:   Fri Feb 15 14:32:30 2013 +0100

    spec modernization
    
    Remove spec file elements no longer required by current packaging
    guidelines (Group, BuildRoot, explicit buildroot cleaning, defattr).

 smem.spec |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/smem.spec b/smem.spec
index da45312..613d631 100644
--- a/smem.spec
+++ b/smem.spec
@@ -3,11 +3,9 @@ Version:        1.2
 Release:        4%{?dist}
 Summary:        Report application memory usage in a meaningful way
 
-Group:          Applications/System
 License:        GPLv2+
 URL:            http://www.selenic.com/smem/
 Source0:        http://www.selenic.com/smem/download/smem-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
 %description
@@ -30,16 +28,11 @@ a realistic measure.
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 install -D -p -m 755 smem $RPM_BUILD_ROOT/%{_bindir}/smem
 install -D -p -m 644 smem.8 $RPM_BUILD_ROOT/%{_mandir}/man8/smem.8
  
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 
 %files
-%defattr(-,root,root,-)
 %doc COPYING
 %{_bindir}/smem
 %{_mandir}/man8/smem.8*
@@ -48,6 +41,8 @@ rm -rf $RPM_BUILD_ROOT
 * Fri Feb 15 2013 Michal Schmidt <mschmidt at redhat.com> - 1.2-4
 - Drop the kernel Requires. Using Conflicts would have been acceptable,
   but 2.6.27 is ancient history anyway.
+- Remove spec file elements no longer required by current packaging guidelines
+  (Group, BuildRoot, explicit buildroot cleaning, defattr).
 
 * Fri Feb 15 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild


More information about the scm-commits mailing list