Name: check Version: 0.9.5 Release: 2%{?dist}.1 Summary: A unit test framework for C Source0: http://download.sourceforge.net/check/%{name}-%{version}.tar.gz Group: Development/Tools License: LGPLv2+ URL: http://check.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: docbook-utils Requires(post): /sbin/install-info Requires(preun): /sbin/install-info Patch0: check-0.9.5-fPIC.patch %description Check is a unit test framework for C. It features a simple interface for defining unit tests, putting little in the way of the developer. Tests are run in a separate address space, so Check can catch both assertion failures and code errors that cause segmentation faults or other signals. The output from unit tests can be used within source code editors and IDEs. %package devel Summary: Libraries and headers for developing programs with check Group: Development/Libraries Requires: pkgconfig Requires: %{name} = %{version}-%{release} %description devel Libraries and headers for developing programs with check %package static Summary: Static libraries of check Group: Development/Libraries %description static Static libraries of check. %prep %setup -q %patch0 -p1 %build %configure 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 # redundant files rm -f $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/COPYING.LESSER rm -f $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/ChangeLog* rm -f $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/NEWS rm -f $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/README rm -f $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/SVNChangeLog %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : %postun -p /sbin/ldconfig %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : fi %files %defattr(-,root,root,-) %doc COPYING.LESSER ChangeLog ChangeLogOld NEWS README SVNChangeLog %{_libdir}/libcheck.so.* %{_infodir}/check* %files devel %defattr(-,root,root,-) %{_includedir}/check.h %{_defaultdocdir}/%{name}/example/ %{_libdir}/libcheck.so %{_libdir}/pkgconfig/check.pc %{_datadir}/doc/%{name}-%{version} %{_datadir}/aclocal/check.m4 #check used to be static only, hence this. %files static %defattr(-,root,root,-) %{_libdir}/libcheck.a %changelog * Tue Feb 19 2008 Fedora Release Engineering - 0.9.5-2.1 - Autorebuild for GCC 4.3 * Thu Aug 2 2007 Tom "spot" Callaway 0.9.5-1 - 0.9.5 bump * Fri Jul 14 2006 Jesse Keating - 0.9.3-5 - rebuild * Fri Feb 10 2006 Jesse Keating - 0.9.3-4.fc5.2 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 0.9.3-4.fc5.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Mon Dec 19 2005 Warren Togami 0.9.2-4 - import into FC5 for gstreamer-0.10 * Fri Dec 2 2005 Tom "spot" Callaway 0.9.2-3 - enabled -fPIC to resolve bz 174313 * Sat Sep 17 2005 Tom "spot" Callaway 0.9.2-2 - get rid of the so file (not needed) - only make devel package * Sun Aug 14 2005 Tom "spot" Callaway 0.9.2-1 - initial package for Fedora Extras