fedadc
Name:           check
fedadc
Version:        0.12.0
fedadc
Release:        2%{?dist}
fedadc
Summary:        A unit test framework for C
fedadc
Source0:        https://github.com/libcheck/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
fedadc
License:        LGPLv2+
fedadc
URL:            http://libcheck.github.io/check/
fedadc
# Only needed for autotools in Fedora
fedadc
Patch0:         %{name}-0.11.0-info-in-builddir.patch
fedadc
# Fix test failures due to varying floating point behavior across platforms
fedadc
Patch1:         %{name}-0.11.0-fp.patch
fedadc
fedadc
BuildRequires:  gcc
fedadc
BuildRequires:  libtool
fedadc
BuildRequires:  patchutils
fedadc
BuildRequires:  pkgconfig
fedadc
BuildRequires:  texinfo
fedadc
fedadc
Requires(post): info
fedadc
Requires(preun): info
fedadc
fedadc
%description
fedadc
Check is a unit test framework for C. It features a simple interface for 
fedadc
defining unit tests, putting little in the way of the developer. Tests 
fedadc
are run in a separate address space, so Check can catch both assertion 
fedadc
failures and code errors that cause segmentation faults or other signals. 
fedadc
The output from unit tests can be used within source code editors and IDEs.
fedadc
fedadc
%package devel
fedadc
Summary:        Libraries and headers for developing programs with check
fedadc
Requires:       pkgconfig
fedadc
Requires:       %{name}%{?_isa} = %{version}-%{release}
fedadc
fedadc
%description devel
fedadc
Libraries and headers for developing programs with check
fedadc
fedadc
%package static
fedadc
Summary:        Static libraries of check
fedadc
fedadc
%description static
fedadc
Static libraries of check.
fedadc
fedadc
%package checkmk
fedadc
Summary:        Translate concise versions of test suites into C programs
fedadc
License:        BSD
fedadc
BuildArch:      noarch
fedadc
Requires:       %{name} = %{version}-%{release}
fedadc
fedadc
%description checkmk
fedadc
The checkmk binary translates concise versions of test suites into C
fedadc
programs suitable for use with the Check unit test framework.
fedadc
fedadc
%prep
fedadc
%setup -q
fedadc
%if 0%{?fedora}
fedadc
%patch0 -p1 -b .info-in-builddir
fedadc
%endif
fedadc
%patch1
fedadc
fedadc
# Fix detection of various time-related function declarations
fedadc
sed -e '/DECLS(\[a/s|)|,,,[AC_INCLUDES_DEFAULT\n[#include <time.h>\n #include <sys/time.h>]]&|' \
fedadc
    -i configure.ac
fedadc
fedadc
# Get rid of version control files
fedadc
find . -name .cvsignore -exec rm {} +
fedadc
fedadc
# Regenerate configure due to patch 0
fedadc
autoreconf -ivf
fedadc
fedadc
%build
fedadc
%configure
fedadc
fedadc
# Get rid of undesirable hardcoded rpaths
fedadc
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
fedadc
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
fedadc
    -i libtool
fedadc
fedadc
make %{?_smp_mflags}
fedadc
fedadc
%install
fedadc
make DESTDIR=$RPM_BUILD_ROOT install
fedadc
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
fedadc
rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
fedadc
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
fedadc
fedadc
fedadc
%check
fedadc
export LD_LIBRARY_PATH=$PWD/src/.libs
fedadc
make check
fedadc
# Don't need to package the sh, log or trs files
fedadc
# when we scoop the other checkmk/test files for doc
fedadc
rm -rf checkmk/test/check_checkmk*
fedadc
# these files are empty
fedadc
rm -rf checkmk/test/empty_input
fedadc
fedadc
%post
fedadc
/sbin/ldconfig
fedadc
if [ -e %{_infodir}/%{name}.info* ]; then
fedadc
  /sbin/install-info \
fedadc
    --entry='* Check: (check).               A unit testing framework for C.' \
fedadc
    %{_infodir}/%{name}.info %{_infodir}/dir || :
fedadc
fi
fedadc
fedadc
%postun -p /sbin/ldconfig
fedadc
fedadc
%preun
fedadc
if [ $1 = 0 -a -e %{_infodir}/%{name}.info* ]; then
fedadc
  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fedadc
fi
fedadc
fedadc
%files
fedadc
%doc AUTHORS ChangeLog
fedadc
%license COPYING.LESSER
fedadc
%{_libdir}/libcheck.so.*
fedadc
%{_infodir}/check*
fedadc
fedadc
%files devel
fedadc
%doc doc/example
fedadc
%{_includedir}/check.h
fedadc
%{_includedir}/check_stdint.h
fedadc
%{_libdir}/libcheck.so
fedadc
%{_libdir}/pkgconfig/check.pc
fedadc
%{_datadir}/aclocal/check.m4
fedadc
fedadc
#check used to be static only, hence this.
fedadc
%files static
fedadc
%license COPYING.LESSER
fedadc
%{_libdir}/libcheck.a
fedadc
fedadc
%files checkmk
fedadc
%doc checkmk/README checkmk/examples
fedadc
%doc checkmk/test
fedadc
%{_bindir}/checkmk
fedadc
%{_mandir}/man1/checkmk.1*
fedadc
fedadc
%changelog
fedadc
* Mon Jun 25 2018 Petr Viktorin <pviktori@redhat.com> - 0.12.0-2
fedadc
- Build without subunit support
fedadc
fedadc
* Mon Jan 29 2018 Jerry James <loganjerry@gmail.com> - 0.12.0-1
fedadc
- Update to 0.12.0
fedadc
fedadc
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-4
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
fedadc
fedadc
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-3
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fedadc
fedadc
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-2
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fedadc
fedadc
* Wed Dec 21 2016 Tom Callaway <spot@fedoraproject.org> - 0.11.0-1
fedadc
- update to 0.11.0
fedadc
fedadc
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-3
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fedadc
fedadc
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 0.10.0-2
fedadc
- rebuild for ICU 56.1
fedadc
fedadc
* Fri Aug  7 2015 Jerry James <loganjerry@gmail.com> - 0.10.0-1
fedadc
- Update to 0.10.0
fedadc
fedadc
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-3
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fedadc
fedadc
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-2
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
fedadc
fedadc
* Mon Jul 28 2014 Jerry James <loganjerry@gmail.com> - 0.9.14-1
fedadc
- New upstream version
fedadc
- Drop -volatile patch, no longer needed
fedadc
- Update time-related configure fix again
fedadc
fedadc
* Mon Jun  9 2014 Jerry James <loganjerry@gmail.com> - 0.9.13-2
fedadc
- Add -volatile patch to fix test failure
fedadc
- Update time-related configure fix
fedadc
fedadc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.13-2
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fedadc
fedadc
* Mon Jun  2 2014 Tom Callaway <spot@fedoraproject.org> - 0.9.13-1
fedadc
- update to 0.9.13
fedadc
fedadc
* Fri Apr 25 2014 Jerry James <loganjerry@gmail.com> - 0.9.12-2
fedadc
- Build with subunit support
fedadc
- Remove unused aarch64 patch
fedadc
fedadc
* Tue Jan 21 2014 Tom Callaway <spot@fedoraproject.org> - 0.9.12-1
fedadc
- update to 0.9.12
fedadc
fedadc
* Tue Nov  5 2013 Tom Callaway <spot@fedoraproject.org> - 0.9.11-1
fedadc
- update to 0.9.11
fedadc
- use autoreconf -ivf instead of the patch
fedadc
fedadc
* Mon Aug  5 2013 Jerry James <loganjerry@gmail.com> - 0.9.10-3
fedadc
- Drop -format patch, upstreamed
fedadc
- Fix detection of more time-related functions
fedadc
- Give checkmk its own subpackage for licensing reasons
fedadc
- Add a check script
fedadc
fedadc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-2
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fedadc
fedadc
* Thu Apr 18 2013 Tom Callaway <spot@fedoraproject.org> - 0.9.10-1
fedadc
- update to 0.9.10
fedadc
fedadc
* Mon Mar 25 2013 Jerry James <loganjerry@gmail.com> - 0.9.9-3
fedadc
- Enable aarch64 support (bz 925218)
fedadc
fedadc
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9-2
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fedadc
fedadc
* Mon Oct 22 2012 Jerry James <loganjerry@gmail.com> - 0.9.9-1
fedadc
- New upstream version
fedadc
- Drop upstream patch for 0.9.8; fix now merged
fedadc
fedadc
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-6
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fedadc
fedadc
* Tue May 15 2012 Jerry James <loganjerry@gmail.com> - 0.9.8-5
fedadc
- Add upstream patch for bz 821933
fedadc
fedadc
* Fri Jan  6 2012 Jerry James <loganjerry@gmail.com> - 0.9.8-4
fedadc
- Rebuild for GCC 4.7
fedadc
- Minor spec file cleanups.
fedadc
fedadc
* Mon Feb 14 2011 Jerry James <loganjerry@gmail.com> - 0.9.8-3
fedadc
- Rebuild for new gcc (Fedora 15 mass rebuild)
fedadc
fedadc
* Mon Nov 29 2010 Jerry James <loganjerry@gmail.com> - 0.9.8-2
fedadc
- Add license file to -static package.
fedadc
- Remove BuildRoot tag.
fedadc
fedadc
* Mon Sep 28 2009 Jerry James <loganjerry@gmail.com> - 0.9.8-1
fedadc
- Update to 0.9.8
fedadc
fedadc
* Thu Aug  6 2009 Jerry James <loganjerry@gmail.com> - 0.9.6-5
fedadc
- Support --excludedocs (bz 515933)
fedadc
- Replace broken upstream info dir entry
fedadc
fedadc
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-4
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fedadc
fedadc
* Tue Apr  7 2009 Jerry James <loganjerry@gmail.com> - 0.9.6-3
fedadc
- Add check-0.9.6-strdup.patch
fedadc
fedadc
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
fedadc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fedadc
fedadc
* Tue Jan  6 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.9.6-1
fedadc
- update to 0.9.6
fedadc
fedadc
* Mon Dec  1 2008 Jerry James <loganjerry@gmail.com> - 0.9.5-3
fedadc
- Fix unowned directory (bz 473635)
fedadc
- Drop unnecessary BuildRequires
fedadc
- Replace patches with addition of -fPIC to CFLAGS in the spec file
fedadc
- Add some more documentation files
fedadc
fedadc
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.5-2.1
fedadc
- Autorebuild for GCC 4.3
fedadc
fedadc
* Thu Aug  2 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.5-1
fedadc
- 0.9.5 bump
fedadc
fedadc
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-5
fedadc
- rebuild
fedadc
fedadc
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-4.fc5.2
fedadc
- bump again for double-long bug on ppc(64)
fedadc
fedadc
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-4.fc5.1
fedadc
- rebuilt for new gcc4.1 snapshot and glibc changes
fedadc
fedadc
* Mon Dec 19 2005 Warren Togami <wtogami@redhat.com> 0.9.2-4
fedadc
- import into FC5 for gstreamer-0.10
fedadc
fedadc
* Fri Dec  2 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-3
fedadc
- enabled -fPIC to resolve bz 174313
fedadc
fedadc
* Sat Sep 17 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-2
fedadc
- get rid of the so file (not needed)
fedadc
- only make devel package
fedadc
fedadc
* Sun Aug 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-1
fedadc
- initial package for Fedora Extras