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