|
|
@ -1,6 +1,6 @@
|
|
|
|
Name: check
|
|
|
|
Name: check
|
|
|
|
Version: 0.15.2
|
|
|
|
Version: 0.12.0
|
|
|
|
Release: 6%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: A unit test framework for C
|
|
|
|
Summary: A unit test framework for C
|
|
|
|
Source0: https://github.com/libcheck/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/libcheck/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
@ -10,16 +10,14 @@ Patch0: %{name}-0.11.0-info-in-builddir.patch
|
|
|
|
# Fix test failures due to varying floating point behavior across platforms
|
|
|
|
# Fix test failures due to varying floating point behavior across platforms
|
|
|
|
Patch1: %{name}-0.11.0-fp.patch
|
|
|
|
Patch1: %{name}-0.11.0-fp.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
BuildRequires: patchutils
|
|
|
|
BuildRequires: patchutils
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
%if ! 0%{?rhel}
|
|
|
|
BuildRequires: texinfo
|
|
|
|
BuildRequires: pkgconfig(libsubunit)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
Requires(post): info
|
|
|
|
BuildRequires: texinfo, texlive-tex, graphviz
|
|
|
|
Requires(preun): info
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Check is a unit test framework for C. It features a simple interface for
|
|
|
|
Check is a unit test framework for C. It features a simple interface for
|
|
|
@ -30,6 +28,7 @@ The output from unit tests can be used within source code editors and IDEs.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Libraries and headers for developing programs with check
|
|
|
|
Summary: Libraries and headers for developing programs with check
|
|
|
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
@ -56,79 +55,69 @@ programs suitable for use with the Check unit test framework.
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%patch0 -p1 -b .info-in-builddir
|
|
|
|
%patch0 -p1 -b .info-in-builddir
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%patch1 -p1
|
|
|
|
%patch1
|
|
|
|
|
|
|
|
|
|
|
|
# Fix detection of various time-related function declarations
|
|
|
|
# Fix detection of various time-related function declarations
|
|
|
|
sed -e '/DECLS(\[a/s|)|,,,[AC_INCLUDES_DEFAULT\n[#include <time.h>\n #include <sys/time.h>]]&|' \
|
|
|
|
sed -e '/DECLS(\[a/s|)|,,,[AC_INCLUDES_DEFAULT\n[#include <time.h>\n #include <sys/time.h>]]&|' \
|
|
|
|
-i configure.ac
|
|
|
|
-i configure.ac
|
|
|
|
|
|
|
|
|
|
|
|
# Get rid of version control files
|
|
|
|
# Get rid of version control files
|
|
|
|
find . -name .cvsignore -delete
|
|
|
|
find . -name .cvsignore -exec rm {} +
|
|
|
|
|
|
|
|
|
|
|
|
# Regenerate configure due to patch 0
|
|
|
|
# Regenerate configure due to patch 0
|
|
|
|
autoreconf -ivf
|
|
|
|
autoreconf -ivf
|
|
|
|
|
|
|
|
|
|
|
|
# Fix libdir for the cmake build
|
|
|
|
|
|
|
|
sed -i 's,set(libdir .*),set(libdir "%{_libdir}"),' CMakeLists.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# The autotools build does not create the cmake files.
|
|
|
|
%configure
|
|
|
|
# The cmake build does not create the info or aclocal files.
|
|
|
|
|
|
|
|
# Therefore we build with both and combine the results to get everything.
|
|
|
|
# Get rid of undesirable hardcoded rpaths
|
|
|
|
mkdir autotools_build
|
|
|
|
|
|
|
|
cd autotools_build
|
|
|
|
|
|
|
|
%global _configure ../configure
|
|
|
|
|
|
|
|
%configure --disable-timeout-tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Get rid of undesirable hardcoded rpaths; workaround libtool reordering
|
|
|
|
|
|
|
|
# -Wl,--as-needed after all the libraries.
|
|
|
|
|
|
|
|
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
|
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' \
|
|
|
|
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
|
-e 's|CC="\(.*g..\)"|CC="\1 -Wl,--as-needed"|' \
|
|
|
|
|
|
|
|
-i libtool
|
|
|
|
-i libtool
|
|
|
|
|
|
|
|
|
|
|
|
%make_build
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%cmake -DCHECK_ENABLE_TIMEOUT_TESTS:BOOL=OFF .
|
|
|
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
cd autotools_build
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
%make_install
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
rm -rf %{buildroot}%{_libdir}
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
|
rm -rf %{buildroot}%{_infodir}/dir
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
|
|
|
|
rm -rf %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
cd autotools_build
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH=$PWD/src/.libs
|
|
|
|
export LD_LIBRARY_PATH=$PWD/src/.libs
|
|
|
|
%ifnarch s390x
|
|
|
|
|
|
|
|
make check
|
|
|
|
make check
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Don't need to package the sh, log or trs files
|
|
|
|
# Don't need to package the sh, log or trs files
|
|
|
|
# when we scoop the other checkmk/test files for doc
|
|
|
|
# when we scoop the other checkmk/test files for doc
|
|
|
|
rm -rf checkmk/test/check_checkmk*
|
|
|
|
rm -rf checkmk/test/check_checkmk*
|
|
|
|
# these files are empty
|
|
|
|
# these files are empty
|
|
|
|
rm -rf checkmk/test/empty_input
|
|
|
|
rm -rf checkmk/test/empty_input
|
|
|
|
cd -
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%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
|
|
|
|
%files
|
|
|
|
%doc AUTHORS NEWS
|
|
|
|
%doc AUTHORS ChangeLog
|
|
|
|
%license COPYING.LESSER
|
|
|
|
%license COPYING.LESSER
|
|
|
|
%{_libdir}/libcheck.so.0*
|
|
|
|
%{_libdir}/libcheck.so.*
|
|
|
|
%{_infodir}/check*
|
|
|
|
%{_infodir}/check*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%doc doc/example
|
|
|
|
%doc doc/example
|
|
|
|
%{_includedir}/check.h
|
|
|
|
%{_includedir}/check.h
|
|
|
|
%{_includedir}/check_stdint.h
|
|
|
|
%{_includedir}/check_stdint.h
|
|
|
|
%{_libdir}/cmake/check/
|
|
|
|
|
|
|
|
%{_libdir}/libcheck.so
|
|
|
|
%{_libdir}/libcheck.so
|
|
|
|
%{_libdir}/pkgconfig/check.pc
|
|
|
|
%{_libdir}/pkgconfig/check.pc
|
|
|
|
%{_datadir}/aclocal/check.m4
|
|
|
|
%{_datadir}/aclocal/check.m4
|
|
|
@ -145,73 +134,8 @@ cd -
|
|
|
|
%{_mandir}/man1/checkmk.1*
|
|
|
|
%{_mandir}/man1/checkmk.1*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Oct 26 2021 Peter Hutterer <peter.hutterer@redhat.com> 0.15.2-6
|
|
|
|
* Mon Jun 25 2018 Petr Viktorin <pviktori@redhat.com> - 0.12.0-2
|
|
|
|
- Fix the pkgconfig file for lib64 (#2016941)
|
|
|
|
- Build without subunit support
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.15.2-5
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.15.2-4
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 01 2021 Tomas Popela <tpopela@redhat.com> - 0.15.2-3
|
|
|
|
|
|
|
|
- Don't build with subinit support in RHEL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Aug 9 2020 Jerry James <loganjerry@gmail.com> - 0.15.2-1
|
|
|
|
|
|
|
|
- Version 0.15.2
|
|
|
|
|
|
|
|
- Drop upstreamed -fail-macros patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 3 2020 Jerry James <loganjerry@gmail.com> - 0.15.1-3
|
|
|
|
|
|
|
|
- Add -fail-macros patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 23 2020 Jerry James <loganjerry@gmail.com> - 0.15.1-1
|
|
|
|
|
|
|
|
- Version 0.15.1
|
|
|
|
|
|
|
|
- Drop upstreamed -format-spec patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jerry James <loganjerry@gmail.com> - 0.15.0-2
|
|
|
|
|
|
|
|
- Drop -attribute-format patch, causes other issues (bz 1850198)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 22 2020 Jerry James <loganjerry@gmail.com> - 0.15.0-1
|
|
|
|
|
|
|
|
- Version 0.15.0
|
|
|
|
|
|
|
|
- Add -formatspec and -attribute-format patches
|
|
|
|
|
|
|
|
- Build with both cmake and autotools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Tom Callaway <spot@fedoraproject.org> - 0.14.0-3
|
|
|
|
|
|
|
|
- disable tests on s390x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 27 2020 Tom Callaway <spot@fedoraproject.org> - 0.14.0-1
|
|
|
|
|
|
|
|
- update to 0.14.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Dec 2 2019 Tom Callaway <spot@fedoraproject.org> - 0.13.0-2
|
|
|
|
|
|
|
|
- package NEWS instead of the obsolete ChangeLog file
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 22 2019 Tom Callaway <spot@fedoraproject.org> - 0.13.0-1
|
|
|
|
|
|
|
|
- update to 0.13.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 23 2018 Jerry James <loganjerry@gmail.com> - 0.12.0-3
|
|
|
|
|
|
|
|
- Disable unreliable timeout tests (sometimes fail on busy builders)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 29 2018 Jerry James <loganjerry@gmail.com> - 0.12.0-1
|
|
|
|
* Mon Jan 29 2018 Jerry James <loganjerry@gmail.com> - 0.12.0-1
|
|
|
|
- Update to 0.12.0
|
|
|
|
- Update to 0.12.0
|
|
|
|