Rebuild for GCC 4.7.

Minor spec file cleanups.
This commit is contained in:
Jerry James 2012-01-06 14:31:42 -07:00
parent a2da1c490f
commit 08a2e2f357

View File

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