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