[afflib] cleanup spec file

Nicolas Chauvet kwizart at fedoraproject.org
Sun Jan 4 16:18:05 UTC 2015


commit 89d077e9fae0d544f79d44ca0d05a0924e2ecc51
Author: Nicolas Chauvet <kwizart at gmail.com>
Date:   Sun Jan 4 17:17:59 2015 +0100

    cleanup spec file

 afflib.spec |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/afflib.spec b/afflib.spec
index c43c649..a9daf20 100644
--- a/afflib.spec
+++ b/afflib.spec
@@ -9,7 +9,6 @@ Group:          System Environment/Libraries
 License:        BSD with advertising
 URL:            https://github.com/simsong/AFFLIBv3
 Source0:        https://github.com/simsong/AFFLIBv3/archive/v%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  libtool
 
@@ -83,35 +82,27 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS BUGLIST.txt ChangeLog COPYING NEWS README
 %doc doc/announce_2.2.txt 
 %{_libdir}/*.so.*
 
 %files -n afftools
-%defattr(-,root,root,-)
 %{_bindir}/aff*
 %{python_sitearch}/pyaff.so
 %{_mandir}/man1/affcat.1.*
 
 %files devel
-%defattr(-,root,root,-)
 %doc doc/crypto_design.txt doc/crypto_doc.txt
 %{_includedir}/afflib/
 %{_libdir}/*.so
@@ -121,6 +112,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Sun Jan 04 2015 Nicolas Chauvet <kwizart at gmail.com> - 3.7.4-1
 - Update to 3.7.4
+- cleanup spec file
 
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.7.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild


More information about the scm-commits mailing list