From fedadc55acb2f465a3281cd819c816aad6d4eff6 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 01 2019 17:46:52 +0000 Subject: import check-0.12.0-2.el8 --- diff --git a/.check.metadata b/.check.metadata new file mode 100644 index 0000000..9017b32 --- /dev/null +++ b/.check.metadata @@ -0,0 +1 @@ +2c10a4c09af75f32d58239097ab249ec60f38e88 SOURCES/check-0.12.0.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b9f98cb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/check-0.12.0.tar.gz diff --git a/SOURCES/check-0.11.0-fp.patch b/SOURCES/check-0.11.0-fp.patch new file mode 100644 index 0000000..bdd07fc --- /dev/null +++ b/SOURCES/check-0.11.0-fp.patch @@ -0,0 +1,22 @@ +--- tests/check_check_master.c.orig 2018-01-29 20:33:55.033001412 -0700 ++++ tests/check_check_master.c 2018-01-29 20:34:31.501879454 -0700 +@@ -214,7 +214,7 @@ static master_test_t master_tests[] = { + { "Simple Tests", "test_ck_assert_ldouble_ge", CK_FAILURE, CK_MSG_TEXT, "Assertion 'x >= y' failed: x == 2.5, y == 3" }, + { "Simple Tests", "test_ck_assert_ldouble_ge_with_mod", CK_FAILURE, CK_MSG_TEXT, "Assertion '2%d >= 3%f' failed: 2%d == 0, 3%f == 1" }, + { "Simple Tests", "test_ck_assert_ldouble_with_expr", CK_PASS, CK_MSG_TEXT, "Passed" }, +- { "Simple Tests", "test_ck_assert_ldouble_eq_tol", CK_FAILURE, CK_MSG_TEXT, "Assertion 'fabsl(y - x) < t' failed: x == 0.001, y == 0.002, t == 0.001" }, ++ { "Simple Tests", "test_ck_assert_ldouble_eq_tol", CK_FAILURE, CK_MSG_TEXT, "Assertion 'fabsl(y - x) < t' failed: x == 0.001, y == 0.002, t == 0.0009" }, + { "Simple Tests", "test_ck_assert_ldouble_eq_tol_with_mod", CK_FAILURE, CK_MSG_TEXT, "Assertion 'fabsl(2%f - 3%d) < 2%p' failed: 3%d == 1, 2%f == 0, 2%p == 0" }, + { "Simple Tests", "test_ck_assert_ldouble_ne_tol", CK_FAILURE, CK_MSG_TEXT, "Assertion 'fabsl(y - x) >= t' failed: x == 0.001, y == 0.002, t == 0.01" }, + { "Simple Tests", "test_ck_assert_ldouble_ne_tol_with_mod", CK_FAILURE, CK_MSG_TEXT, "Assertion 'fabsl(3%f - 3%d) >= 3%p' failed: 3%d == 1, 3%f == 1, 3%p == 1" }, +--- tests/check_check_sub.c.orig 2017-10-20 06:44:10.000000000 -0600 ++++ tests/check_check_sub.c 2018-01-29 20:33:55.034001409 -0700 +@@ -1812,7 +1812,7 @@ START_TEST(test_ck_assert_ldouble_eq_tol + y*=10.0l; + t*=10.0l; + ck_assert_ldouble_eq_tol(x, y, t); +- t/=10.0l; ++ t=0.0009l; + record_failure_line_num(__LINE__); + ck_assert_ldouble_eq_tol(x, y, t); + } diff --git a/SOURCES/check-0.11.0-info-in-builddir.patch b/SOURCES/check-0.11.0-info-in-builddir.patch new file mode 100644 index 0000000..6c36105 --- /dev/null +++ b/SOURCES/check-0.11.0-info-in-builddir.patch @@ -0,0 +1,15 @@ +diff -up check-0.11.0/configure.ac.info-in-builddir check-0.11.0/configure.ac +--- check-0.11.0/configure.ac.info-in-builddir 2016-12-21 15:36:18.415103323 -0500 ++++ check-0.11.0/configure.ac 2016-12-21 15:37:20.008715140 -0500 +@@ -20,9 +20,9 @@ AC_CONFIG_MACRO_DIR([m4]) + AC_CONFIG_LIBOBJ_DIR([lib]) + + # really severe build strictness +-AM_INIT_AUTOMAKE([-Wall gnits 1.11.2]) ++#AM_INIT_AUTOMAKE([-Wall gnits 1.11.2]) + # Change to using into-in-builddir in the future: +-#AM_INIT_AUTOMAKE([info-in-builddir -Wall -Werror gnits 1.14]) ++AM_INIT_AUTOMAKE([info-in-builddir -Wall -Werror gnits 1.14]) + + # define things like _GNU_SOURCE appropriately + # From patch 2803433, request system extensions to generate 64-bit safe code diff --git a/SPECS/check.spec b/SPECS/check.spec new file mode 100644 index 0000000..a631510 --- /dev/null +++ b/SPECS/check.spec @@ -0,0 +1,286 @@ +Name: check +Version: 0.12.0 +Release: 2%{?dist} +Summary: A unit test framework for C +Source0: https://github.com/libcheck/%{name}/archive/%{version}/%{name}-%{version}.tar.gz +License: LGPLv2+ +URL: http://libcheck.github.io/check/ +# Only needed for autotools in Fedora +Patch0: %{name}-0.11.0-info-in-builddir.patch +# 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 +BuildRequires: texinfo + +Requires(post): info +Requires(preun): info + +%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 +Summary: Libraries and headers for developing programs with check +Requires: pkgconfig +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Libraries and headers for developing programs with check + +%package static +Summary: Static libraries of check + +%description static +Static libraries of check. + +%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. + +%prep +%setup -q +%if 0%{?fedora} +%patch0 -p1 -b .info-in-builddir +%endif +%patch1 + +# Fix detection of various time-related function declarations +sed -e '/DECLS(\[a/s|)|,,,[AC_INCLUDES_DEFAULT\n[#include \n #include ]]&|' \ + -i configure.ac + +# Get rid of version control files +find . -name .cvsignore -exec rm {} + + +# Regenerate configure due to patch 0 +autoreconf -ivf + +%build +%configure + +# 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 + +make %{?_smp_mflags} + +%install +make DESTDIR=$RPM_BUILD_ROOT install +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -rf $RPM_BUILD_ROOT%{_infodir}/dir +rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} + + +%check +export LD_LIBRARY_PATH=$PWD/src/.libs +make check +# 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 + +%post +/sbin/ldconfig +if [ -e %{_infodir}/%{name}.info* ]; then + /sbin/install-info \ + --entry='* Check: (check). A unit testing framework for C.' \ + %{_infodir}/%{name}.info %{_infodir}/dir || : +fi + +%postun -p /sbin/ldconfig + +%preun +if [ $1 = 0 -a -e %{_infodir}/%{name}.info* ]; then + /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : +fi + +%files +%doc AUTHORS ChangeLog +%license COPYING.LESSER +%{_libdir}/libcheck.so.* +%{_infodir}/check* + +%files devel +%doc doc/example +%{_includedir}/check.h +%{_includedir}/check_stdint.h +%{_libdir}/libcheck.so +%{_libdir}/pkgconfig/check.pc +%{_datadir}/aclocal/check.m4 + +#check used to be static only, hence this. +%files static +%license COPYING.LESSER +%{_libdir}/libcheck.a + +%files checkmk +%doc checkmk/README checkmk/examples +%doc checkmk/test +%{_bindir}/checkmk +%{_mandir}/man1/checkmk.1* + +%changelog +* Mon Jun 25 2018 Petr Viktorin - 0.12.0-2 +- Build without subunit support + +* Mon Jan 29 2018 Jerry James - 0.12.0-1 +- Update to 0.12.0 + +* Wed Aug 02 2017 Fedora Release Engineering - 0.11.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.11.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.11.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Dec 21 2016 Tom Callaway - 0.11.0-1 +- update to 0.11.0 + +* Wed Feb 03 2016 Fedora Release Engineering - 0.10.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Oct 28 2015 David Tardon - 0.10.0-2 +- rebuild for ICU 56.1 + +* Fri Aug 7 2015 Jerry James - 0.10.0-1 +- Update to 0.10.0 + +* Wed Jun 17 2015 Fedora Release Engineering - 0.9.14-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Aug 16 2014 Fedora Release Engineering - 0.9.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Mon Jul 28 2014 Jerry James - 0.9.14-1 +- New upstream version +- Drop -volatile patch, no longer needed +- Update time-related configure fix again + +* Mon Jun 9 2014 Jerry James - 0.9.13-2 +- Add -volatile patch to fix test failure +- Update time-related configure fix + +* Sat Jun 07 2014 Fedora Release Engineering - 0.9.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Jun 2 2014 Tom Callaway - 0.9.13-1 +- update to 0.9.13 + +* Fri Apr 25 2014 Jerry James - 0.9.12-2 +- Build with subunit support +- Remove unused aarch64 patch + +* Tue Jan 21 2014 Tom Callaway - 0.9.12-1 +- update to 0.9.12 + +* Tue Nov 5 2013 Tom Callaway - 0.9.11-1 +- update to 0.9.11 +- use autoreconf -ivf instead of the patch + +* Mon Aug 5 2013 Jerry James - 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 + +* Sat Aug 03 2013 Fedora Release Engineering - 0.9.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Apr 18 2013 Tom Callaway - 0.9.10-1 +- update to 0.9.10 + +* Mon Mar 25 2013 Jerry James - 0.9.9-3 +- Enable aarch64 support (bz 925218) + +* Wed Feb 13 2013 Fedora Release Engineering - 0.9.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Oct 22 2012 Jerry James - 0.9.9-1 +- New upstream version +- Drop upstream patch for 0.9.8; fix now merged + +* Wed Jul 18 2012 Fedora Release Engineering - 0.9.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue May 15 2012 Jerry James - 0.9.8-5 +- Add upstream patch for bz 821933 + +* Fri Jan 6 2012 Jerry James - 0.9.8-4 +- Rebuild for GCC 4.7 +- Minor spec file cleanups. + +* Mon Feb 14 2011 Jerry James - 0.9.8-3 +- Rebuild for new gcc (Fedora 15 mass rebuild) + +* Mon Nov 29 2010 Jerry James - 0.9.8-2 +- Add license file to -static package. +- Remove BuildRoot tag. + +* Mon Sep 28 2009 Jerry James - 0.9.8-1 +- Update to 0.9.8 + +* Thu Aug 6 2009 Jerry James - 0.9.6-5 +- Support --excludedocs (bz 515933) +- Replace broken upstream info dir entry + +* Fri Jul 24 2009 Fedora Release Engineering - 0.9.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Apr 7 2009 Jerry James - 0.9.6-3 +- Add check-0.9.6-strdup.patch + +* Mon Feb 23 2009 Fedora Release Engineering - 0.9.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Jan 6 2009 Tom "spot" Callaway - 0.9.6-1 +- update to 0.9.6 + +* Mon Dec 1 2008 Jerry James - 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 + +* Tue Feb 19 2008 Fedora Release Engineering - 0.9.5-2.1 +- Autorebuild for GCC 4.3 + +* Thu Aug 2 2007 Tom "spot" Callaway 0.9.5-1 +- 0.9.5 bump + +* Fri Jul 14 2006 Jesse Keating - 0.9.3-5 +- rebuild + +* Fri Feb 10 2006 Jesse Keating - 0.9.3-4.fc5.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 0.9.3-4.fc5.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Mon Dec 19 2005 Warren Togami 0.9.2-4 +- import into FC5 for gstreamer-0.10 + +* Fri Dec 2 2005 Tom "spot" Callaway 0.9.2-3 +- enabled -fPIC to resolve bz 174313 + +* Sat Sep 17 2005 Tom "spot" Callaway 0.9.2-2 +- get rid of the so file (not needed) +- only make devel package + +* Sun Aug 14 2005 Tom "spot" Callaway 0.9.2-1 +- initial package for Fedora Extras