Blame SPECS/check.spec

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