Name: cxxtest Version: 4.4 Release: 34%{?dist} Summary: A JUnit-like testing framework for C++ License: LGPL-3.0-only URL: https://cxxtest.com Source0: https://github.com/CxxTest/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz Patch0: %{name}-shebang.patch # adapt helper script doc/include_anchors.py to work with Python 3 Patch1: %{name}-include-anchors.patch # Fix a code typo # https://github.com/CxxTest/cxxtest/pull/145 Patch2: %{name}-tracker-typo.patch # Fix incorrect usage of 'is' # https://github.com/CxxTest/cxxtest/pull/149 Patch3: %{name}-is-equals.patch # Fix malformed regular expression escapes Patch4: %{name}-escapes.patch # Fixes: "Warning: 'classifiers' should be a list, got type 'filter'" Patch5: %{name}-classifiers.patch BuildArch: noarch BuildRequires: asciidoc >= 8.5.0 BuildRequires: dblatex BuildRequires: make BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-setuptools BuildRequires: python3-wheel BuildRequires: texlive-multirow BuildRequires: texlive-upquote # the --fog-parser option requires 'ply' Requires: python3-ply %description CxxTest is a unit testing framework for C++ that is similar in spirit to JUnit, CppUnit, and xUnit. CxxTest is easy to use because it does not require precompiling a CxxTest testing library, it employs no advanced features of C++ (e.g. RTTI) and it supports a very flexible form of test discovery. %package doc Summary: Documentation on how to use CxxTest Requires: %{name} = %{version}-%{release} %description doc This package contains the documentation on how to use CxxTest. It also provides code examples. %prep %autosetup -p1 rm -f doc/images/icons/README # remove Windows-related stuff rm -rf sample/msvc/ rm -f sample/Makefile.bcc32 # remove Python 2 sources rm -rf python/cxxtest/ find . -name ".cvsignore" -delete sed -i "s|^PY = python$|PY = %{python3}|" doc/Makefile %build cd python %pyproject_wheel # create pkgconfig file cd .. cat <%{name}.pc prefix=%{_prefix} exec_prefix=%{_prefix} includedir=%{_includedir}/%{name} Name: %{name} Description: A JUnit-like testing framework for C++ Version: %{version} Cflags: -I\${includedir} EOF cd doc # script to create asciidoc file for manpage of cxxtestgen cat <create_manpage.py import sys sys.path.insert(0, '../python/python3') import cxxtest cxxtest.create_manpage() EOF # create manpage %{python3} create_manpage.py a2x -f manpage cxxtestgen.1.txt # build documentation in PDF and HTML format (requires asciidoc >= 8.5.0) make pdf html %install mkdir -p %{buildroot}%{_includedir}/cxxtest install -D -p -m 644 cxxtest/* %{buildroot}%{_includedir}/cxxtest install -D -p -m 644 %{name}.pc %{buildroot}%{_datadir}/pkgconfig/%{name}.pc cd python %pyproject_install %pyproject_save_files cxxtest %if 0%{?rhel} == 6 # add symlink present in previous release of cxxtest ln -s %{_bindir}/cxxtestgen %{buildroot}%{_bindir}/cxxtestgen.py %endif cd .. install -D -p -m 644 doc/cxxtestgen.1 %{buildroot}%{_mandir}/man1/cxxtestgen.1 %files -f %{pyproject_files} %doc README Versions %license COPYING %{_bindir}/cxxtestgen* %{_includedir}/%{name}/ %{_datadir}/pkgconfig/%{name}.pc %{_mandir}/man1/cxxtestgen.1* %files doc %doc doc/guide.pdf doc/guide.html doc/images/ %doc sample/ %changelog * Fri Jun 07 2024 Python Maint - 4.4-34 - Rebuilt for Python 3.13 * Wed Jan 24 2024 Fedora Release Engineering - 4.4-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 4.4-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 4.4-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jul 6 2023 Jerry James - 4.4-30 - Convert License field to SPDX - Add patch to fix a code typo - Add patch to fix misuse of python "is" keyword - Add patch to fix malformed regular expression escapes - Add patch to fix classifiers entry in setup.py - Use the latest python build macros - Use the %%license macro * Thu Jun 15 2023 Python Maint - 4.4-30 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 4.4-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 20 2022 Fedora Release Engineering - 4.4-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 4.4-27 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 4.4-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 4.4-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 4.4-24 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 4.4-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 4.4-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 4.4-21 - Rebuilt for Python 3.9 * Tue Mar 03 2020 Martin Gieseking - 4.4-20 - Dropped Python 2 dependencies and references. - Added patch to make helper script doc/include_anchors.py work with Python 3 * Tue Jan 28 2020 Fedora Release Engineering - 4.4-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 4.4-18 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 4.4-17 - Rebuilt for Python 3.8 * Wed Jul 24 2019 Fedora Release Engineering - 4.4-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 4.4-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Martin Gieseking - 4.4-14 - Fixed Python shebang cxxtest. - Ensure proper call of Python 2 in doc/Makefile. * Thu Jul 12 2018 Fedora Release Engineering - 4.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Miro Hrončok - 4.4-12 - Rebuilt for Python 3.7 * Fri Jun 29 2018 Martin Gieseking - 4.4-11 - - Added missing build dependency texlive-upquote required as of f29 to build the PDF manual. * Tue Jun 19 2018 Miro Hrončok - 4.4-10 - Rebuilt for Python 3.7 * Wed Feb 07 2018 Fedora Release Engineering - 4.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 4.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 4.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 4.4-6 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 4.4-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Mar 02 2016 Martin Gieseking 4.4-4 - Switched package to Python 3. - Added dependency on ply to enable command-line option --fog-parser. * Wed Feb 03 2016 Fedora Release Engineering - 4.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Sep 18 2014 Martin Gieseking 4.4-1 - updated to release 4.4 * Sat Jun 07 2014 Fedora Release Engineering - 4.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Petr Pisar - 4.3-3 - Perl 5.18 rebuild * Sat Aug 03 2013 Fedora Release Engineering - 4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 22 2013 Martin Gieseking 4.3-1 - updated to release 4.3 * Wed Jul 17 2013 Petr Pisar - 4.2.1-2 - Perl 5.18 rebuild * Fri Apr 12 2013 Martin Gieseking 4.2.1-1 - updated to release 4.2.1 which fixes the license information in the source headers * Wed Mar 20 2013 Martin Gieseking 4.2-1 - updated to release 4.2 - changed license to LGPLv3 as intended by upstream * Fri Mar 15 2013 Martin Gieseking 4.1-4 - dropped generation of EPUB manual since it can't be build on koji * Fri Mar 15 2013 Martin Gieseking 4.1-3 - added local pkgconfig file - added documentation in HTML and EPUB format * Tue Feb 05 2013 Martin Gieseking 4.1-2 - removed broken HTML documentation as it requires a more recent asciidoc (>= 8.5.0) - build and add the PDF manual to the doc package - addded symlink cxxtestgen.py to stay compatible with previous package (< f19 only) * Wed Jan 23 2013 Martin Gieseking 4.1-1 - updated to release 4.1 - removed old EPEL stuff * Wed Jul 18 2012 Fedora Release Engineering - 3.10.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 3.10.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Dec 19 2011 Martin Gieseking - 3.10.1-5 - Fixed https://bugzilla.redhat.com/show_bug.cgi?id=768869 * Tue Feb 08 2011 Fedora Release Engineering - 3.10.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Aug 05 2009 Martin Gieseking - 3.10.1-3 - added exclude tags in files section * Tue Aug 04 2009 Martin Gieseking - 3.10.1-2 - moved headers from devel to main package - added BuildRequires to avoid build problems - dropped Requires tag - cxxtest include directory now explicitely listed in files section * Tue Aug 04 2009 Martin Gieseking - 3.10.1-1 - initial release