Compare commits

...

No commits in common. 'c9' and 'c10-beta' have entirely different histories.
c9 ... c10-beta

@ -1 +1 @@
0389149a760a37e915f585bf84f268d9880a0faf SOURCES/check-0.15.2.tar.gz b5830fde14c35cd603ffa0987a47cd76ce7d6cdc SOURCES/check-0.15.2.tar.gz

@ -1,10 +1,19 @@
%bcond mingw %[0%{?fedora}]
Name: check Name: check
Version: 0.15.2 Version: 0.15.2
Release: 6%{?dist} Release: 16%{?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 License: LGPL-2.1-or-later
License: LGPLv2+ URL: https://libcheck.github.io/check/
URL: http://libcheck.github.io/check/ VCS: https://github.com/libcheck/check
# The upstream tarball includes an index.html and the web/ folder with files
# licensed CC-BY-NC. This license is not allowed in Fedora
# Our tarball are the same sources with index.html and web/ removed.
# Easiest way to verify: unpack both tarballs and run
# diff -r check-0.15.2 upstream-check-0.15.2
# Source0: {vcs}/archive/{version}/{name}-{version}.tar.gz
Source0: %{name}-%{version}.tar.gz
# Only needed for autotools in Fedora # Only needed for autotools in Fedora
Patch0: %{name}-0.11.0-info-in-builddir.patch 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
@ -21,6 +30,14 @@ BuildRequires: pkgconfig(libsubunit)
%endif %endif
BuildRequires: texinfo, texlive-tex, graphviz BuildRequires: texinfo, texlive-tex, graphviz
%if %{with mingw}
BuildRequires: mingw32-filesystem >= 95
BuildRequires: mingw32-gcc-c++
BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw64-gcc-c++
%endif
%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
defining unit tests, putting little in the way of the developer. Tests defining unit tests, putting little in the way of the developer. Tests
@ -31,6 +48,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: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-static%{?_isa} = %{version}-%{release}
%description devel %description devel
Libraries and headers for developing programs with check Libraries and headers for developing programs with check
@ -43,7 +61,7 @@ Static libraries of check.
%package checkmk %package checkmk
Summary: Translate concise versions of test suites into C programs Summary: Translate concise versions of test suites into C programs
License: BSD License: checkmk
BuildArch: noarch BuildArch: noarch
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
@ -51,12 +69,30 @@ Requires: %{name} = %{version}-%{release}
The checkmk binary translates concise versions of test suites into C The checkmk binary translates concise versions of test suites into C
programs suitable for use with the Check unit test framework. programs suitable for use with the Check unit test framework.
%if %{with mingw}
%package -n mingw32-check
Summary: Libraries and headers for developing programs with check
BuildArch: noarch
%description -n mingw32-check
MinGW libraries and headers for developing programs with check
%package -n mingw64-check
Summary: Libraries and headers for developing programs with check
BuildArch: noarch
%description -n mingw64-check
MinGW libraries and headers for developing programs with check
%{?mingw_debug_package}
%endif
%prep %prep
%setup -q %setup -q
%if 0%{?fedora} %if 0%{?fedora}
%patch0 -p1 -b .info-in-builddir %patch -P0 -p1 -b .info-in-builddir
%endif %endif
%patch1 -p1 %patch -P1 -p1
# 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>]]&|' \
@ -90,9 +126,14 @@ sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
%make_build %make_build
cd - cd -
%cmake -DCHECK_ENABLE_TIMEOUT_TESTS:BOOL=OFF . %cmake -DCHECK_ENABLE_TIMEOUT_TESTS:BOOL=OFF
%cmake_build %cmake_build
%if %{with mingw}
%mingw_configure
%mingw_make %{?_smp_mflags}
%endif
%install %install
cd autotools_build cd autotools_build
%make_install %make_install
@ -103,6 +144,22 @@ cd -
%cmake_install %cmake_install
# The library does not really depend on -pthread
sed -i 's/ -pthread//' %{buildroot}%{_libdir}/pkgconfig/check.pc
%if %{with mingw}
%mingw_make_install
%mingw_debug_install_post
rm -rf $RPM_BUILD_ROOT%{mingw32_bindir}/checkmk
rm -rf $RPM_BUILD_ROOT%{mingw64_bindir}/checkmk
rm -rf $RPM_BUILD_ROOT%{mingw32_infodir}/
rm -rf $RPM_BUILD_ROOT%{mingw64_infodir}/
rm -f $RPM_BUILD_ROOT%{mingw32_mandir}/man1/checkmk.1*
rm -f $RPM_BUILD_ROOT%{mingw64_mandir}/man1/checkmk.1*
%endif
%check %check
cd autotools_build cd autotools_build
export LD_LIBRARY_PATH=$PWD/src/.libs export LD_LIBRARY_PATH=$PWD/src/.libs
@ -144,19 +201,79 @@ cd -
%{_bindir}/checkmk %{_bindir}/checkmk
%{_mandir}/man1/checkmk.1* %{_mandir}/man1/checkmk.1*
%if %{with mingw}
%files -n mingw32-check
%license COPYING.LESSER
%{mingw32_bindir}/libcheck-0.dll
%{mingw32_includedir}/check.h
%{mingw32_includedir}/check_stdint.h
%{mingw32_libdir}/libcheck.a
%{mingw32_libdir}/libcheck.dll.a
%{mingw32_libdir}/pkgconfig/check.pc
%{mingw32_datadir}/aclocal/check.m4
%{mingw32_docdir}
%files -n mingw64-check
%license COPYING.LESSER
%{mingw64_bindir}/libcheck-0.dll
%{mingw64_includedir}/check.h
%{mingw64_includedir}/check_stdint.h
%{mingw64_libdir}/libcheck.a
%{mingw64_libdir}/libcheck.dll.a
%{mingw64_libdir}/pkgconfig/check.pc
%{mingw64_datadir}/aclocal/check.m4
%{mingw64_docdir}
%endif
%changelog %changelog
* Tue Oct 26 2021 Peter Hutterer <peter.hutterer@redhat.com> 0.15.2-6 * Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.15.2-16
- Fix the pkgconfig file for lib64 (#2016941) - Bump release for June 2024 mass rebuild
* Wed Jun 05 2024 Peter Hutterer <peter.hutterer@redhat.com> 0.15.2-15
- Remove the CC-BY-NC index.html file from the tarball (#2290306)
* Tue Jun 04 2024 Peter Hutterer <peter.hutterer@redhat.com> 0.15.2-14
- Remove the CC-BY-NC website from the tarball (#2290306)
* Tue May 21 2024 Jerry James <loganjerry@gmail.com> - 0.15.2-13
- Fix check-devel for cmake users (rhbz#2161231)
- Simplify conditional logic for mingw
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jul 14 2023 Jerry James <loganjerry@gmail.com> - 0.15.2-9
- Update deprecated %%patch macro usage
* Mon Feb 13 2023 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.15.2-9
- Add optional Fedora mingw packages.
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Nov 22 2022 Jerry James <loganjerry@gmail.com> - 0.15.2-7
- Convert License tags to SPDX
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.15.2-5 * Sat Oct 16 2021 Jerry James <loganjerry@gmail.com> - 0.15.2-5
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Fix pkgconfig file on 64-bit systems (bz 2014748)
Related: rhbz#1991688
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.15.2-4 * Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Mar 01 2021 Tomas Popela <tpopela@redhat.com> - 0.15.2-3 * Mon Mar 01 2021 Tomas Popela <tpopela@redhat.com> - 0.15.2-3
- Don't build with subinit support in RHEL - Don't build with subunit support in RHEL
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-2 * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save