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