|
|
16eb69 |
Name: check
|
|
|
16eb69 |
Version: 0.9.9
|
|
|
41dc07 |
Release: 5%{?dist}
|
|
|
16eb69 |
Summary: A unit test framework for C
|
|
|
16eb69 |
Source0: http://downloads.sourceforge.net/check/%{name}-%{version}.tar.gz
|
|
|
16eb69 |
# Fix some formatted printing bugs. Sent upstream 22 Oct. 2012.
|
|
|
16eb69 |
Patch0: %{name}-format.patch
|
|
|
16eb69 |
# Enable aarch64 support.
|
|
|
16eb69 |
Patch1: %{name}-aarch64.patch
|
|
|
16eb69 |
Group: Development/Tools
|
|
|
16eb69 |
License: LGPLv2+
|
|
|
16eb69 |
URL: http://check.sourceforge.net/
|
|
|
16eb69 |
|
|
|
16eb69 |
BuildRequires: pkgconfig
|
|
|
16eb69 |
|
|
|
16eb69 |
Requires(post): info
|
|
|
16eb69 |
Requires(preun): info
|
|
|
16eb69 |
|
|
|
16eb69 |
%description
|
|
|
16eb69 |
Check is a unit test framework for C. It features a simple interface for
|
|
|
16eb69 |
defining unit tests, putting little in the way of the developer. Tests
|
|
|
16eb69 |
are run in a separate address space, so Check can catch both assertion
|
|
|
16eb69 |
failures and code errors that cause segmentation faults or other signals.
|
|
|
16eb69 |
The output from unit tests can be used within source code editors and IDEs.
|
|
|
16eb69 |
|
|
|
16eb69 |
%package devel
|
|
|
16eb69 |
Summary: Libraries and headers for developing programs with check
|
|
|
16eb69 |
Group: Development/Libraries
|
|
|
16eb69 |
Requires: pkgconfig
|
|
|
16eb69 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
16eb69 |
|
|
|
16eb69 |
%description devel
|
|
|
16eb69 |
Libraries and headers for developing programs with check
|
|
|
16eb69 |
|
|
|
16eb69 |
%package static
|
|
|
16eb69 |
Summary: Static libraries of check
|
|
|
16eb69 |
Group: Development/Libraries
|
|
|
16eb69 |
|
|
|
16eb69 |
%description static
|
|
|
16eb69 |
Static libraries of check.
|
|
|
16eb69 |
|
|
|
16eb69 |
%prep
|
|
|
16eb69 |
%setup -q
|
|
|
16eb69 |
%patch0
|
|
|
16eb69 |
%patch1
|
|
|
16eb69 |
|
|
|
16eb69 |
# Fix detection of localtime_r declaration
|
|
|
16eb69 |
sed -i "/localtime_r/s/ac_includes_default/&\n#include <time.h>/" configure
|
|
|
16eb69 |
|
|
|
16eb69 |
%build
|
|
|
16eb69 |
%configure
|
|
|
16eb69 |
|
|
|
16eb69 |
# Get rid of undesirable hardcoded rpaths
|
|
|
16eb69 |
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
16eb69 |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
16eb69 |
-i libtool
|
|
|
16eb69 |
|
|
|
16eb69 |
make
|
|
|
16eb69 |
|
|
|
16eb69 |
%install
|
|
|
16eb69 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
16eb69 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
16eb69 |
rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
16eb69 |
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
|
|
|
16eb69 |
|
|
|
16eb69 |
%post
|
|
|
16eb69 |
/sbin/ldconfig
|
|
|
16eb69 |
if [ -e %{_infodir}/%{name}.info* ]; then
|
|
|
16eb69 |
/sbin/install-info \
|
|
|
16eb69 |
--entry='* Check: (check). A unit testing framework for C.' \
|
|
|
16eb69 |
%{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
16eb69 |
fi
|
|
|
16eb69 |
|
|
|
16eb69 |
%postun -p /sbin/ldconfig
|
|
|
16eb69 |
|
|
|
16eb69 |
%preun
|
|
|
16eb69 |
if [ $1 = 0 -a -e %{_infodir}/%{name}.info* ]; then
|
|
|
16eb69 |
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
16eb69 |
fi
|
|
|
16eb69 |
|
|
|
16eb69 |
%files
|
|
|
16eb69 |
%doc AUTHORS COPYING.LESSER ChangeLog ChangeLogOld NEWS README SVNChangeLog
|
|
|
16eb69 |
%doc THANKS TODO
|
|
|
16eb69 |
%{_libdir}/libcheck.so.*
|
|
|
16eb69 |
%{_infodir}/check*
|
|
|
16eb69 |
|
|
|
16eb69 |
%files devel
|
|
|
16eb69 |
%doc doc/example
|
|
|
16eb69 |
%{_bindir}/checkmk
|
|
|
16eb69 |
%{_mandir}/man1/checkmk.1*
|
|
|
16eb69 |
%{_includedir}/check.h
|
|
|
16eb69 |
%{_libdir}/libcheck.so
|
|
|
16eb69 |
%{_libdir}/pkgconfig/check.pc
|
|
|
16eb69 |
%{_datadir}/aclocal/check.m4
|
|
|
16eb69 |
|
|
|
16eb69 |
#check used to be static only, hence this.
|
|
|
16eb69 |
%files static
|
|
|
16eb69 |
%doc COPYING.LESSER
|
|
|
16eb69 |
%{_libdir}/libcheck.a
|
|
|
16eb69 |
|
|
|
16eb69 |
%changelog
|
|
|
41dc07 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.9.9-5
|
|
|
41dc07 |
- Mass rebuild 2014-01-24
|
|
|
41dc07 |
|
|
|
41dc07 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.9.9-4
|
|
|
41dc07 |
- Mass rebuild 2013-12-27
|
|
|
41dc07 |
|
|
|
16eb69 |
* Mon Mar 25 2013 Jerry James <loganjerry@gmail.com> - 0.9.9-3
|
|
|
16eb69 |
- Enable aarch64 support (bz 925218)
|
|
|
16eb69 |
|
|
|
16eb69 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9-2
|
|
|
16eb69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
16eb69 |
|
|
|
16eb69 |
* Mon Oct 22 2012 Jerry James <loganjerry@gmail.com> - 0.9.9-1
|
|
|
16eb69 |
- New upstream version
|
|
|
16eb69 |
- Drop upstream patch for 0.9.8; fix now merged
|
|
|
16eb69 |
|
|
|
16eb69 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-6
|
|
|
16eb69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
16eb69 |
|
|
|
16eb69 |
* Tue May 15 2012 Jerry James <loganjerry@gmail.com> - 0.9.8-5
|
|
|
16eb69 |
- Add upstream patch for bz 821933
|
|
|
16eb69 |
|
|
|
16eb69 |
* Fri Jan 6 2012 Jerry James <loganjerry@gmail.com> - 0.9.8-4
|
|
|
16eb69 |
- Rebuild for GCC 4.7
|
|
|
16eb69 |
- Minor spec file cleanups.
|
|
|
16eb69 |
|
|
|
16eb69 |
* Mon Feb 14 2011 Jerry James <loganjerry@gmail.com> - 0.9.8-3
|
|
|
16eb69 |
- Rebuild for new gcc (Fedora 15 mass rebuild)
|
|
|
16eb69 |
|
|
|
16eb69 |
* Mon Nov 29 2010 Jerry James <loganjerry@gmail.com> - 0.9.8-2
|
|
|
16eb69 |
- Add license file to -static package.
|
|
|
16eb69 |
- Remove BuildRoot tag.
|
|
|
16eb69 |
|
|
|
16eb69 |
* Mon Sep 28 2009 Jerry James <loganjerry@gmail.com> - 0.9.8-1
|
|
|
16eb69 |
- Update to 0.9.8
|
|
|
16eb69 |
|
|
|
16eb69 |
* Thu Aug 6 2009 Jerry James <loganjerry@gmail.com> - 0.9.6-5
|
|
|
16eb69 |
- Support --excludedocs (bz 515933)
|
|
|
16eb69 |
- Replace broken upstream info dir entry
|
|
|
16eb69 |
|
|
|
16eb69 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-4
|
|
|
16eb69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
16eb69 |
|
|
|
16eb69 |
* Tue Apr 7 2009 Jerry James <loganjerry@gmail.com> - 0.9.6-3
|
|
|
16eb69 |
- Add check-0.9.6-strdup.patch
|
|
|
16eb69 |
|
|
|
16eb69 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
|
|
|
16eb69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
16eb69 |
|
|
|
16eb69 |
* Tue Jan 6 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.9.6-1
|
|
|
16eb69 |
- update to 0.9.6
|
|
|
16eb69 |
|
|
|
16eb69 |
* Mon Dec 1 2008 Jerry James <loganjerry@gmail.com> - 0.9.5-3
|
|
|
16eb69 |
- Fix unowned directory (bz 473635)
|
|
|
16eb69 |
- Drop unnecessary BuildRequires
|
|
|
16eb69 |
- Replace patches with addition of -fPIC to CFLAGS in the spec file
|
|
|
16eb69 |
- Add some more documentation files
|
|
|
16eb69 |
|
|
|
16eb69 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.5-2.1
|
|
|
16eb69 |
- Autorebuild for GCC 4.3
|
|
|
16eb69 |
|
|
|
16eb69 |
* Thu Aug 2 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.5-1
|
|
|
16eb69 |
- 0.9.5 bump
|
|
|
16eb69 |
|
|
|
16eb69 |
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-5
|
|
|
16eb69 |
- rebuild
|
|
|
16eb69 |
|
|
|
16eb69 |
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-4.fc5.2
|
|
|
16eb69 |
- bump again for double-long bug on ppc(64)
|
|
|
16eb69 |
|
|
|
16eb69 |
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-4.fc5.1
|
|
|
16eb69 |
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
16eb69 |
|
|
|
16eb69 |
* Mon Dec 19 2005 Warren Togami <wtogami@redhat.com> 0.9.2-4
|
|
|
16eb69 |
- import into FC5 for gstreamer-0.10
|
|
|
16eb69 |
|
|
|
16eb69 |
* Fri Dec 2 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-3
|
|
|
16eb69 |
- enabled -fPIC to resolve bz 174313
|
|
|
16eb69 |
|
|
|
16eb69 |
* Sat Sep 17 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-2
|
|
|
16eb69 |
- get rid of the so file (not needed)
|
|
|
16eb69 |
- only make devel package
|
|
|
16eb69 |
|
|
|
16eb69 |
* Sun Aug 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-1
|
|
|
16eb69 |
- initial package for Fedora Extras
|