[check] Rebuild for GCC 4.7. Minor spec file cleanups.

Jerry James jjames at fedoraproject.org
Fri Jan 6 21:32:00 UTC 2012


commit 08a2e2f357cff7899f9fdbbbe5d76fa7023026f2
Author: Jerry James <loganjerry at gmail.com>
Date:   Fri Jan 6 14:31:42 2012 -0700

    Rebuild for GCC 4.7.
    Minor spec file cleanups.

 check.spec |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/check.spec b/check.spec
index 8615509..231f52c 100644
--- a/check.spec
+++ b/check.spec
@@ -1,13 +1,13 @@
 Name:           check
 Version:        0.9.8
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        A unit test framework for C
 Source0:        http://downloads.sourceforge.net/check/%{name}-%{version}.tar.gz
 Group:          Development/Tools
 License:        LGPLv2+
 URL:            http://check.sourceforge.net/
-Requires(post): /sbin/install-info
-Requires(preun): /sbin/install-info
+Requires(post): info
+Requires(preun): info
 
 %description
 Check is a unit test framework for C. It features a simple interface for 
@@ -20,7 +20,7 @@ The output from unit tests can be used within source code editors and IDEs.
 Summary:        Libraries and headers for developing programs with check
 Group:          Development/Libraries
 Requires:       pkgconfig
-Requires:       %{name} = %{version}-%{release}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
 
 %description devel
 Libraries and headers for developing programs with check
@@ -40,15 +40,11 @@ Static libraries of check.
 make
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
 rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %post
 /sbin/ldconfig
 if [ -e %{_infodir}/%{name}.info* ]; then
@@ -65,14 +61,12 @@ if [ $1 = 0 -a -e %{_infodir}/%{name}.info* ]; then
 fi
 
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS COPYING.LESSER ChangeLog ChangeLogOld NEWS README SVNChangeLog
 %doc THANKS TODO
 %{_libdir}/libcheck.so.*
 %{_infodir}/check*
 
 %files devel
-%defattr(-,root,root,-)
 %doc doc/example
 %{_includedir}/check.h
 %{_libdir}/libcheck.so
@@ -81,11 +75,14 @@ fi
 
 #check used to be static only, hence this.
 %files static
-%defattr(-,root,root,-)
 %doc COPYING.LESSER
 %{_libdir}/libcheck.a
 
 %changelog
+* Fri Jan  6 2012 Jerry James <loganjerry at gmail.com> - 0.9.8-4
+- Rebuild for GCC 4.7
+- Minor spec file cleanups.
+
 * Mon Feb 14 2011 Jerry James <loganjerry at gmail.com> - 0.9.8-3
 - Rebuild for new gcc (Fedora 15 mass rebuild)
 


More information about the scm-commits mailing list