## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # We have source files with intentional syntax errors, in order to test. # Do not fail the build just because some file is not valid python. %undefine _python_bytecompile_errors_terminate_build %global _docdir_fmt python3-zope-testrunner Name: python-zope-testrunner Version: 6.4 Release: %autorelease Summary: Zope testrunner script License: ZPL-2.1 URL: https://pypi.python.org/pypi/zope.testrunner VCS: https://github.com/zopefoundation/zope.testrunner Source0: %{vcs}/archive/%{version}/zope.testrunner-%{version}.tar.gz BuildArch: noarch BuildRequires: help2man BuildRequires: python3-devel BuildRequires: python3-docs BuildRequires: %{py3_dist manuel} %description This package provides a flexible test runner with layer support. %package -n python3-zope-testrunner Summary: Zope testrunner script %description -n python3-zope-testrunner This package provides a flexible test runner with layer support. %package doc # The content is ZPL-2.1. Files added by Sphinx have the following licences: # searchindex.js: BSD-2-Clause # _static/*: BSD-2-Clause, except for the following: # _static/jquery*.js: MIT # _static/underscore*.js: MIT License: ZPL-2.1 AND BSD-2-Clause AND MIT Summary: Documentation for zope.testrunner %description doc Documentation for zope.testrunner. %pyproject_extras_subpkg -n python3-zope-testrunner subunit %prep %autosetup -n zope.testrunner-%{version} -p1 # Update the sphinx HTML theme name sed -i "s/'default'/'classic'/" docs/conf.py # Fix the way python is invoked sed -i 's/python -m/python3 -m/' docs/cli.rst # Use local objects.inv for intersphinx sed -i "s|\('https://docs\.python\.org/': \)None|\1'%{_docdir}/python3-docs/html/objects.inv'|" docs/conf.py # Replace a deprecated directive sed -i "s/autodoc_default_flags.*/autodoc_default_options = {'members': True, 'show-inheritance': True}/" docs/conf.py %generate_buildrequires %pyproject_buildrequires -t -x test,subunit,docs %build %pyproject_wheel rst2html --no-datestamp CHANGES.rst CHANGES.html rst2html --no-datestamp README.rst README.html # Not really RST: https://github.com/zopefoundation/zope.testrunner/issues/100 cp -p COPYRIGHT.rst COPYRIGHT %install %pyproject_install mkdir -p %{buildroot}%{_mandir}/man1 PYTHONPATH=%{buildroot}%{python3_sitelib} \ help2man -s 1 -o %{buildroot}%{_mandir}/man1/zope-testrunner.1 \ -N -n "Zope testrunner script" %{buildroot}%{_bindir}/zope-testrunner # The Sphinx documentation cannot be built with an uninstalled zope.testrunner # because python finds the installed zope package, which doesn't contain # testrunner. We fake out python by copying the entire installed tree to a # local directory and adding this package inside the zope directory. mkdir lib cp -a %{_prefix}/lib/python%{python3_version} lib if [ -d %{_prefix}/lib64/python%{python3_version} ]; then mkdir lib64 cp -a %{_prefix}/lib64/python%{python3_version} lib64 fi mkdir include cp -a %{_includedir}/python%{python3_version}* include cp -a %{buildroot}%{python3_sitelib}/zope* \ lib/python%{python3_version}/site-packages export PYTHONHOME=$PWD:$PWD sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html rm -fr include lib lib64 rm -f docs/_build/html/.buildinfo unset PYTHONHOME %check %tox %files -n python3-zope-testrunner %doc CHANGES.html README.html %license COPYRIGHT LICENSE.md %{_bindir}/zope-testrunner %{_mandir}/man1/zope-testrunner.1* %{python3_sitelib}/zope.testrunner* %{python3_sitelib}/zope/testrunner/ %exclude %{python3_sitelib}/zope/testrunner/tests %files doc %doc docs/_build/html %changelog ## START: Generated by rpmautospec * Tue Feb 27 2024 Jerry James - 6.4-1 - Version 6.4 * Mon Feb 12 2024 Jerry James - 6.3.1-1 - Version 6.3.1 - Drop workaround for bug in version 6.3 * Wed Feb 7 2024 Jerry James - 6.3-1 - Version 6.3 - Drop upstreamed patches - BR python3-manuel to enable more tests - Test with tox * Fri Jan 26 2024 Fedora Release Engineering - 6.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 6.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Dec 22 2023 Jerry James - 6.2.1-1 - Version 6.2.1 * Tue Dec 12 2023 Jerry James - 6.2-2 - Add patch for python 3.13 compatibility * Wed Nov 8 2023 Jerry James - 6.2-1 - Version 6.2 * Tue Aug 29 2023 Jerry James - 6.1-1 - Version 6.1 * Fri Jul 21 2023 Fedora Release Engineering - 6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jun 16 2023 Jerry James - 6.0-2 - Add patch to work around a test failure with python 3.12 * Thu Jun 15 2023 Python Maint - 6.0-2 - Rebuilt for Python 3.12 * Tue Mar 28 2023 Jerry James - 6.0-1 - Version 6.0 * Thu Feb 23 2023 Jerry James - 5.6-3 - Create subunit extras subpackage - Dynamically generate BuildRequires * Fri Jan 20 2023 Fedora Release Engineering - 5.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Dec 9 2022 Jerry James - 5.6-1 - Version 5.6 * Wed Sep 7 2022 Jerry James - 5.5.1-1 - Version 5.5.1 - Convert License tag to SPDX - Add -doc subpackage * Fri Jul 22 2022 Fedora Release Engineering - 5.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 24 2022 Jerry James - 5.5-1 - Version 5.5 * Wed Jun 15 2022 Python Maint - 5.4.0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 5.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Nov 19 2021 Jerry James - 5.4.0-1 - Version 5.4.0 - Drop upstreamed -whitespace and -syntax patches * Mon Oct 11 2021 Jerry James - 5.3.0-5 - Use the latest python macros - Simplify %%check * Tue Jul 27 2021 Fedora Release Engineering - 5.3.0-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 5.3.0-3 - Rebuilt for Python 3.10 * Mon May 10 2021 Jerry James - 5.3.0-2 - Add -syntax patch for python 3.10 * Wed Mar 17 2021 Jerry James - 5.3.0-1 - Version 5.3.0 * Wed Jan 27 2021 Fedora Release Engineering - 5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 29 2020 Jerry James - 5.2-1 - Version 5.2 * Tue May 26 2020 Miro Hrončok - 5.1-4 - Rebuilt for Python 3.9 * Sun Mar 1 2020 Jerry James - 5.1-3 - Add -whitespace patch * Thu Jan 30 2020 Fedora Release Engineering - 5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Oct 21 2019 Jerry James - 5.1-1 - New upstream version - Fix cross-reference links in the documentation * Mon Sep 16 2019 Jerry James - 5.0-4 - Drop the python2 subpackage (bz 1752151) * Mon Aug 19 2019 Miro Hrončok - 5.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Mar 19 2019 Jerry James - 5.0-1 - New upstream version * Sat Feb 02 2019 Fedora Release Engineering - 4.9.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Nov 26 2018 Jerry James - 4.9.2-1 - New upstream version * Mon Nov 26 2018 Lumír Balhar - 4.9-2 - Fix issue with automatic dependencies and executables' names * Sat Nov 17 2018 Jerry James - 4.9-1 - New upstream version - Do not ship the tests * Sat Jul 14 2018 Fedora Release Engineering - 4.8.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 4.8.1-3 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 4.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Nov 12 2017 Jerry James - 4.8.1-1 - New upstream version * Sat Nov 11 2017 Jerry James - 4.8.0-1 - New upstream version * Thu Jul 27 2017 Fedora Release Engineering - 4.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue May 30 2017 Jerry James - 4.7.0-1 - New upstream version - subunit is no longer a dependency - Enable python 3 tests * Sat Feb 11 2017 Fedora Release Engineering - 4.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Dec 28 2016 Jerry James - 4.6.0-1 - New upstream version - Drop upstreamed test patch * Mon Dec 19 2016 Miro Hrončok - 4.5.1-4 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 4.5.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Jun 21 2016 Jerry James - 4.5.1-2 - Fix spurious build failures due to use of _libdir in a noarch package * Mon Jun 20 2016 Jerry James - 4.5.1-1 - New upstream version * Wed Jun 8 2016 Jerry James - 4.5.0-3 - Do not test with detox; it downloads files at build time * Wed Jun 1 2016 Jerry James - 4.5.0-2 - Fix directory ownership - Add man page * Wed Jun 1 2016 Jerry James - 4.5.0-1 - Initial RPM ## END: Generated by rpmautospec