2008-12-01 19:44:51 +00:00
|
|
|
Name: check
|
2009-09-28 16:25:30 +00:00
|
|
|
Version: 0.9.8
|
|
|
|
Release: 1%{?dist}
|
2008-12-01 19:44:51 +00:00
|
|
|
Summary: A unit test framework for C
|
2009-09-28 16:25:30 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/check/%{name}-%{version}.tar.gz
|
2008-12-01 19:44:51 +00:00
|
|
|
Group: Development/Tools
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://check.sourceforge.net/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-08-02 20:34:23 +00:00
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
Requires(preun): /sbin/install-info
|
2005-12-19 19:29:50 +00:00
|
|
|
|
|
|
|
%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
|
2008-12-01 19:44:51 +00:00
|
|
|
Summary: Libraries and headers for developing programs with check
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: pkgconfig
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2005-12-19 19:29:50 +00:00
|
|
|
|
|
|
|
%description devel
|
2007-08-02 20:34:23 +00:00
|
|
|
Libraries and headers for developing programs with check
|
|
|
|
|
|
|
|
%package static
|
|
|
|
Summary: Static libraries of check
|
2008-12-01 19:44:51 +00:00
|
|
|
Group: Development/Libraries
|
2007-08-02 20:34:23 +00:00
|
|
|
|
|
|
|
%description static
|
|
|
|
Static libraries of check.
|
2005-12-19 19:29:50 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2008-12-01 19:44:51 +00:00
|
|
|
%configure CFLAGS="${RPM_OPT_FLAGS} -fPIC"
|
2005-12-19 19:29:50 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2007-08-02 20:34:23 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
2007-08-02 20:45:39 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
|
2008-12-01 19:44:51 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
|
2005-12-19 19:29:50 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-08-02 20:34:23 +00:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2009-08-06 15:29:07 +00:00
|
|
|
if [ -e %{_infodir}/%{name}.info* ]; then
|
|
|
|
/sbin/install-info \
|
|
|
|
--entry='* Check: (check). A unit testing framework for C.' \
|
|
|
|
%{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
fi
|
2007-08-02 20:34:23 +00:00
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%preun
|
2009-08-06 15:29:07 +00:00
|
|
|
if [ $1 = 0 -a -e %{_infodir}/%{name}.info* ]; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
2007-08-02 20:34:23 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2008-12-01 19:44:51 +00:00
|
|
|
%doc AUTHORS COPYING.LESSER ChangeLog ChangeLogOld NEWS README SVNChangeLog
|
|
|
|
%doc THANKS TODO
|
2007-08-02 20:34:23 +00:00
|
|
|
%{_libdir}/libcheck.so.*
|
|
|
|
%{_infodir}/check*
|
|
|
|
|
2005-12-19 19:29:50 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2009-09-28 16:25:30 +00:00
|
|
|
%doc doc/example
|
2005-12-19 19:29:50 +00:00
|
|
|
%{_includedir}/check.h
|
2007-08-02 20:34:23 +00:00
|
|
|
%{_libdir}/libcheck.so
|
|
|
|
%{_libdir}/pkgconfig/check.pc
|
2005-12-19 19:29:50 +00:00
|
|
|
%{_datadir}/aclocal/check.m4
|
|
|
|
|
2007-08-02 20:34:23 +00:00
|
|
|
#check used to be static only, hence this.
|
|
|
|
%files static
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libcheck.a
|
|
|
|
|
2005-12-19 19:29:50 +00:00
|
|
|
%changelog
|
2009-09-28 16:25:30 +00:00
|
|
|
* Mon Sep 28 2009 Jerry James <loganjerry@gmail.com> - 0.9.8-1
|
|
|
|
- Update to 0.9.8
|
|
|
|
|
2009-08-06 15:29:07 +00:00
|
|
|
* Thu Aug 6 2009 Jerry James <loganjerry@gmail.com> - 0.9.6-5
|
|
|
|
- Support --excludedocs (bz 515933)
|
|
|
|
- Replace broken upstream info dir entry
|
|
|
|
|
2009-07-24 18:51:31 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-04-07 15:03:14 +00:00
|
|
|
* Tue Apr 7 2009 Jerry James <loganjerry@gmail.com> - 0.9.6-3
|
|
|
|
- Add check-0.9.6-strdup.patch
|
|
|
|
|
2009-02-24 07:12:44 +00:00
|
|
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-01-06 22:09:00 +00:00
|
|
|
* Tue Jan 6 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.9.6-1
|
|
|
|
- update to 0.9.6
|
|
|
|
|
2008-12-01 19:44:51 +00:00
|
|
|
* Mon Dec 1 2008 Jerry James <loganjerry@gmail.com> - 0.9.5-3
|
|
|
|
- Fix unowned directory (bz 473635)
|
|
|
|
- Drop unnecessary BuildRequires
|
|
|
|
- Replace patches with addition of -fPIC to CFLAGS in the spec file
|
|
|
|
- Add some more documentation files
|
|
|
|
|
2008-02-19 06:56:31 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.5-2.1
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-08-02 20:34:23 +00:00
|
|
|
* Thu Aug 2 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.5-1
|
|
|
|
- 0.9.5 bump
|
|
|
|
|
2006-07-15 04:06:14 +00:00
|
|
|
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-5
|
|
|
|
- rebuild
|
|
|
|
|
2006-02-11 02:14:51 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-4.fc5.2
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 11:13:53 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-4.fc5.1
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2005-12-19 19:29:50 +00:00
|
|
|
* Mon Dec 19 2005 Warren Togami <wtogami@redhat.com> 0.9.2-4
|
|
|
|
- import into FC5 for gstreamer-0.10
|
|
|
|
|
|
|
|
* Fri Dec 2 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-3
|
|
|
|
- enabled -fPIC to resolve bz 174313
|
|
|
|
|
|
|
|
* Sat Sep 17 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-2
|
|
|
|
- get rid of the so file (not needed)
|
|
|
|
- only make devel package
|
|
|
|
|
|
|
|
* Sun Aug 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-1
|
|
|
|
- initial package for Fedora Extras
|