[cppi] Clean up the spec file for modern rpmbuild

Kalev Lember kalev at fedoraproject.org
Fri Jan 27 19:35:07 UTC 2012


commit 61ff14f6b9402b1995de9ddb1626c8443680816b
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Fri Jan 27 21:31:42 2012 +0200

    Clean up the spec file for modern rpmbuild

 cppi.spec |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/cppi.spec b/cppi.spec
index 9e7a8d5..ef79fd8 100644
--- a/cppi.spec
+++ b/cppi.spec
@@ -7,7 +7,6 @@ Group:          Development/Tools
 License:        GPLv3+
 URL:            http://savannah.gnu.org/projects/cppi/
 Source0:        http://ftp.gnu.org/gnu/cppi/cppi-%{version}.tar.xz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
 cppi indents the C preprocessor directives to reflect their nesting and ensures
@@ -25,7 +24,6 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 
 %find_lang cppi
@@ -35,12 +33,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
 make check
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files -f cppi.lang
-%defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING NEWS THANKS TODO
 %{_bindir}/cppi
 %{_mandir}/man1/cppi.1*
@@ -50,6 +43,7 @@ rm -rf $RPM_BUILD_ROOT
 * Fri Jan 27 2012 Kalev Lember <kalevlember at gmail.com> - 1.16-1
 - Update to 1.16 (#784558)
 - Package the translation files
+- Clean up the spec file for modern rpmbuild
 
 * Thu Jan 12 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.15-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild


More information about the scm-commits mailing list