46866a
Name:           check
46866a
Version:        0.15.2
46866a
Release:        6%{?dist}
46866a
Summary:        A unit test framework for C
46866a
Source0:        https://github.com/libcheck/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
46866a
License:        LGPLv2+
46866a
URL:            http://libcheck.github.io/check/
46866a
# Only needed for autotools in Fedora
46866a
Patch0:         %{name}-0.11.0-info-in-builddir.patch
46866a
# Fix test failures due to varying floating point behavior across platforms
46866a
Patch1:         %{name}-0.11.0-fp.patch
46866a
46866a
BuildRequires:  cmake
46866a
BuildRequires:  gcc
46866a
BuildRequires:  libtool
46866a
BuildRequires:  make
46866a
BuildRequires:  patchutils
46866a
BuildRequires:  pkgconfig
46866a
%if ! 0%{?rhel}
46866a
BuildRequires:  pkgconfig(libsubunit)
46866a
%endif
46866a
BuildRequires:  texinfo, texlive-tex, graphviz
46866a
46866a
%description
46866a
Check is a unit test framework for C. It features a simple interface for 
46866a
defining unit tests, putting little in the way of the developer. Tests 
46866a
are run in a separate address space, so Check can catch both assertion 
46866a
failures and code errors that cause segmentation faults or other signals. 
46866a
The output from unit tests can be used within source code editors and IDEs.
46866a
46866a
%package devel
46866a
Summary:        Libraries and headers for developing programs with check
46866a
Requires:       %{name}%{?_isa} = %{version}-%{release}
46866a
46866a
%description devel
46866a
Libraries and headers for developing programs with check
46866a
46866a
%package static
46866a
Summary:        Static libraries of check
46866a
46866a
%description static
46866a
Static libraries of check.
46866a
46866a
%package checkmk
46866a
Summary:        Translate concise versions of test suites into C programs
46866a
License:        BSD
46866a
BuildArch:      noarch
46866a
Requires:       %{name} = %{version}-%{release}
46866a
46866a
%description checkmk
46866a
The checkmk binary translates concise versions of test suites into C
46866a
programs suitable for use with the Check unit test framework.
46866a
46866a
%prep
46866a
%setup -q
46866a
%if 0%{?fedora}
46866a
%patch0 -p1 -b .info-in-builddir
46866a
%endif
46866a
%patch1 -p1
46866a
46866a
# Fix detection of various time-related function declarations
46866a
sed -e '/DECLS(\[a/s|)|,,,[AC_INCLUDES_DEFAULT\n[#include <time.h>\n #include <sys/time.h>]]&|' \
46866a
    -i configure.ac
46866a
46866a
# Get rid of version control files
46866a
find . -name .cvsignore -delete
46866a
46866a
# Regenerate configure due to patch 0
46866a
autoreconf -ivf
46866a
46866a
# Fix libdir for the cmake build
46866a
sed -i 's,set(libdir .*),set(libdir "%{_libdir}"),' CMakeLists.txt
46866a
46866a
%build
46866a
# The autotools build does not create the cmake files.
46866a
# The cmake build does not create the info or aclocal files.
46866a
# Therefore we build with both and combine the results to get everything.
46866a
mkdir autotools_build
46866a
cd autotools_build
46866a
%global _configure ../configure
46866a
%configure --disable-timeout-tests
46866a
46866a
# Get rid of undesirable hardcoded rpaths; workaround libtool reordering
46866a
# -Wl,--as-needed after all the libraries.
46866a
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
46866a
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
46866a
    -e 's|CC="\(.*g..\)"|CC="\1 -Wl,--as-needed"|' \
46866a
    -i libtool
46866a
46866a
%make_build
46866a
cd -
46866a
46866a
%cmake -DCHECK_ENABLE_TIMEOUT_TESTS:BOOL=OFF .
46866a
%cmake_build
46866a
46866a
%install
46866a
cd autotools_build
46866a
%make_install
46866a
rm -rf %{buildroot}%{_libdir}
46866a
rm -rf %{buildroot}%{_infodir}/dir
46866a
rm -rf %{buildroot}%{_docdir}/%{name}
46866a
cd -
46866a
46866a
%cmake_install
46866a
46866a
%check
46866a
cd autotools_build
46866a
export LD_LIBRARY_PATH=$PWD/src/.libs
46866a
%ifnarch s390x
46866a
make check
46866a
%endif
46866a
# Don't need to package the sh, log or trs files
46866a
# when we scoop the other checkmk/test files for doc
46866a
rm -rf checkmk/test/check_checkmk*
46866a
# these files are empty
46866a
rm -rf checkmk/test/empty_input
46866a
cd -
46866a
46866a
%ldconfig_scriptlets
46866a
46866a
%files
46866a
%doc AUTHORS NEWS
46866a
%license COPYING.LESSER
46866a
%{_libdir}/libcheck.so.0*
46866a
%{_infodir}/check*
46866a
46866a
%files devel
46866a
%doc doc/example
46866a
%{_includedir}/check.h
46866a
%{_includedir}/check_stdint.h
46866a
%{_libdir}/cmake/check/
46866a
%{_libdir}/libcheck.so
46866a
%{_libdir}/pkgconfig/check.pc
46866a
%{_datadir}/aclocal/check.m4
46866a
46866a
#check used to be static only, hence this.
46866a
%files static
46866a
%license COPYING.LESSER
46866a
%{_libdir}/libcheck.a
46866a
46866a
%files checkmk
46866a
%doc checkmk/README checkmk/examples
46866a
%doc checkmk/test
46866a
%{_bindir}/checkmk
46866a
%{_mandir}/man1/checkmk.1*
46866a
46866a
%changelog
46866a
* Tue Oct 26 2021 Peter Hutterer <peter.hutterer@redhat.com> 0.15.2-6
46866a
- Fix the pkgconfig file for lib64 (#2016941)
46866a
46866a
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.15.2-5
46866a
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
46866a
  Related: rhbz#1991688
46866a
46866a
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.15.2-4
46866a
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
46866a
46866a
* Mon Mar 01 2021 Tomas Popela <tpopela@redhat.com> - 0.15.2-3
46866a
- Don't build with subinit support in RHEL
46866a
46866a
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-2
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
46866a
46866a
* Sun Aug  9 2020 Jerry James <loganjerry@gmail.com> - 0.15.2-1
46866a
- Version 0.15.2
46866a
- Drop upstreamed -fail-macros patch
46866a
46866a
* Mon Aug  3 2020 Jerry James <loganjerry@gmail.com> - 0.15.1-3
46866a
- Add -fail-macros patch
46866a
46866a
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1-2
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
46866a
46866a
* Thu Jul 23 2020 Jerry James <loganjerry@gmail.com> - 0.15.1-1
46866a
- Version 0.15.1
46866a
- Drop upstreamed -format-spec patch
46866a
46866a
* Tue Jun 23 2020 Jerry James <loganjerry@gmail.com> - 0.15.0-2
46866a
- Drop -attribute-format patch, causes other issues (bz 1850198)
46866a
46866a
* Mon Jun 22 2020 Jerry James <loganjerry@gmail.com> - 0.15.0-1
46866a
- Version 0.15.0
46866a
- Add -formatspec and -attribute-format patches
46866a
- Build with both cmake and autotools
46866a
46866a
* Fri Jan 31 2020 Tom Callaway <spot@fedoraproject.org> - 0.14.0-3
46866a
- disable tests on s390x
46866a
46866a
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-2
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
46866a
46866a
* Mon Jan 27 2020 Tom Callaway <spot@fedoraproject.org> - 0.14.0-1
46866a
- update to 0.14.0
46866a
46866a
* Mon Dec  2 2019 Tom Callaway <spot@fedoraproject.org> - 0.13.0-2
46866a
- package NEWS instead of the obsolete ChangeLog file
46866a
46866a
* Tue Oct 22 2019 Tom Callaway <spot@fedoraproject.org> - 0.13.0-1
46866a
- update to 0.13.0
46866a
46866a
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-5
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
46866a
46866a
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-4
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
46866a
46866a
* Mon Jul 23 2018 Jerry James <loganjerry@gmail.com> - 0.12.0-3
46866a
- Disable unreliable timeout tests (sometimes fail on busy builders)
46866a
46866a
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-3
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
46866a
46866a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-2
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
46866a
46866a
* Mon Jan 29 2018 Jerry James <loganjerry@gmail.com> - 0.12.0-1
46866a
- Update to 0.12.0
46866a
46866a
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-4
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
46866a
46866a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-3
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
46866a
46866a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-2
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
46866a
46866a
* Wed Dec 21 2016 Tom Callaway <spot@fedoraproject.org> - 0.11.0-1
46866a
- update to 0.11.0
46866a
46866a
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-3
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
46866a
46866a
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 0.10.0-2
46866a
- rebuild for ICU 56.1
46866a
46866a
* Fri Aug  7 2015 Jerry James <loganjerry@gmail.com> - 0.10.0-1
46866a
- Update to 0.10.0
46866a
46866a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-3
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
46866a
46866a
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-2
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
46866a
46866a
* Mon Jul 28 2014 Jerry James <loganjerry@gmail.com> - 0.9.14-1
46866a
- New upstream version
46866a
- Drop -volatile patch, no longer needed
46866a
- Update time-related configure fix again
46866a
46866a
* Mon Jun  9 2014 Jerry James <loganjerry@gmail.com> - 0.9.13-2
46866a
- Add -volatile patch to fix test failure
46866a
- Update time-related configure fix
46866a
46866a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.13-2
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
46866a
46866a
* Mon Jun  2 2014 Tom Callaway <spot@fedoraproject.org> - 0.9.13-1
46866a
- update to 0.9.13
46866a
46866a
* Fri Apr 25 2014 Jerry James <loganjerry@gmail.com> - 0.9.12-2
46866a
- Build with subunit support
46866a
- Remove unused aarch64 patch
46866a
46866a
* Tue Jan 21 2014 Tom Callaway <spot@fedoraproject.org> - 0.9.12-1
46866a
- update to 0.9.12
46866a
46866a
* Tue Nov  5 2013 Tom Callaway <spot@fedoraproject.org> - 0.9.11-1
46866a
- update to 0.9.11
46866a
- use autoreconf -ivf instead of the patch
46866a
46866a
* Mon Aug  5 2013 Jerry James <loganjerry@gmail.com> - 0.9.10-3
46866a
- Drop -format patch, upstreamed
46866a
- Fix detection of more time-related functions
46866a
- Give checkmk its own subpackage for licensing reasons
46866a
- Add a check script
46866a
46866a
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-2
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
46866a
46866a
* Thu Apr 18 2013 Tom Callaway <spot@fedoraproject.org> - 0.9.10-1
46866a
- update to 0.9.10
46866a
46866a
* Mon Mar 25 2013 Jerry James <loganjerry@gmail.com> - 0.9.9-3
46866a
- Enable aarch64 support (bz 925218)
46866a
46866a
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9-2
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
46866a
46866a
* Mon Oct 22 2012 Jerry James <loganjerry@gmail.com> - 0.9.9-1
46866a
- New upstream version
46866a
- Drop upstream patch for 0.9.8; fix now merged
46866a
46866a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-6
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
46866a
46866a
* Tue May 15 2012 Jerry James <loganjerry@gmail.com> - 0.9.8-5
46866a
- Add upstream patch for bz 821933
46866a
46866a
* Fri Jan  6 2012 Jerry James <loganjerry@gmail.com> - 0.9.8-4
46866a
- Rebuild for GCC 4.7
46866a
- Minor spec file cleanups.
46866a
46866a
* Mon Feb 14 2011 Jerry James <loganjerry@gmail.com> - 0.9.8-3
46866a
- Rebuild for new gcc (Fedora 15 mass rebuild)
46866a
46866a
* Mon Nov 29 2010 Jerry James <loganjerry@gmail.com> - 0.9.8-2
46866a
- Add license file to -static package.
46866a
- Remove BuildRoot tag.
46866a
46866a
* Mon Sep 28 2009 Jerry James <loganjerry@gmail.com> - 0.9.8-1
46866a
- Update to 0.9.8
46866a
46866a
* Thu Aug  6 2009 Jerry James <loganjerry@gmail.com> - 0.9.6-5
46866a
- Support --excludedocs (bz 515933)
46866a
- Replace broken upstream info dir entry
46866a
46866a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-4
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
46866a
46866a
* Tue Apr  7 2009 Jerry James <loganjerry@gmail.com> - 0.9.6-3
46866a
- Add check-0.9.6-strdup.patch
46866a
46866a
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
46866a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
46866a
46866a
* Tue Jan  6 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.9.6-1
46866a
- update to 0.9.6
46866a
46866a
* Mon Dec  1 2008 Jerry James <loganjerry@gmail.com> - 0.9.5-3
46866a
- Fix unowned directory (bz 473635)
46866a
- Drop unnecessary BuildRequires
46866a
- Replace patches with addition of -fPIC to CFLAGS in the spec file
46866a
- Add some more documentation files
46866a
46866a
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.5-2.1
46866a
- Autorebuild for GCC 4.3
46866a
46866a
* Thu Aug  2 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.5-1
46866a
- 0.9.5 bump
46866a
46866a
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-5
46866a
- rebuild
46866a
46866a
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-4.fc5.2
46866a
- bump again for double-long bug on ppc(64)
46866a
46866a
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-4.fc5.1
46866a
- rebuilt for new gcc4.1 snapshot and glibc changes
46866a
46866a
* Mon Dec 19 2005 Warren Togami <wtogami@redhat.com> 0.9.2-4
46866a
- import into FC5 for gstreamer-0.10
46866a
46866a
* Fri Dec  2 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-3
46866a
- enabled -fPIC to resolve bz 174313
46866a
46866a
* Sat Sep 17 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-2
46866a
- get rid of the so file (not needed)
46866a
- only make devel package
46866a
46866a
* Sun Aug 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-1
46866a
- initial package for Fedora Extras