%global srcname pybtex-docutils Name: python-%{srcname} Version: 1.0.0 Release: 2%{?dist} Summary: Docutils backend for pybtex License: MIT URL: https://github.com/mcmtroffaes/%{srcname} Source0: %pypi_source BuildArch: noarch BuildRequires: make BuildRequires: pyproject-rpm-macros BuildRequires: python3-docs BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist sphinx} %global common_desc %{expand: This package contains a docutils backend for pybtex, a BibTeX-compatible bibliography processor written in Python. Bibliographic references in BibTeX format (or any other format supported by pybtex) can be inserted into python documentation to be rendered by docutils.} %description %common_desc %package -n python3-%{srcname} Summary: Docutils backend for pybtex Provides: bundled(jquery) Provides: bundled(js-underscore) %description -n python3-%{srcname} %common_desc %prep %autosetup -n %{srcname}-%{version} -p1 # Update the sphinx theme name sed -i "s/'default'/'classic'/" doc/conf.py # Use local objects.inv for intersphinx sed -i "s|\('http://docs\.python\.org/', \)None|\1'%{_docdir}/python3-docs/html/objects.inv'|" doc/conf.py %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel PYTHONPATH=$PWD make -C doc html rst2html --no-datestamp LICENSE.rst LICENSE.html rst2html --no-datestamp README.rst README.html %install %pyproject_install %check %pytest test %files -n python3-%{srcname} %doc README.html doc/_build/html/* %license LICENSE.html %{python3_sitelib}/pybtex_docutils* %{python3_sitelib}/__pycache__/pybtex_docutils* %changelog * Wed Jan 27 2021 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 15 2021 Jerry James - 1.0.0-1 - Version 1.0.0 - Drop upstream patches * Tue Aug 11 2020 Miro Hrončok - 0.2.2-6 - Fix build with tox 3.19 (by not using it without tox config) * Wed Jul 29 2020 Fedora Release Engineering - 0.2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 25 2020 Miro Hrončok - 0.2.2-4 - Rebuilt for Python 3.9 * Wed Apr 22 2020 Jerry James - 0.2.2-3 - Add upstream patches to switch from nose to pytest * Thu Jan 30 2020 Fedora Release Engineering - 0.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Oct 16 2019 Jerry James - 0.2.2-1 - New upstream version * Thu Oct 03 2019 Miro Hrončok - 0.2.1-15 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sun Aug 18 2019 Miro Hrončok - 0.2.1-14 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.2.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.2.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Nov 01 2018 Miro Hrončok - 0.2.1-11 - Subpackage python2-pybtex-docutils has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.2.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.2.1-9 - Rebuilt for Python 3.7 * Mon Feb 12 2018 Iryna Shcherbina - 0.2.1-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.2.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.2.1-4 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.2.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Mar 2 2016 Jerry James - 0.2.1-2 - Expand package description - Fix sphinx and noseutils invocations for python 3 - Do not convert license file to HTML * Thu Feb 25 2016 Jerry James - 0.2.1-1 - Initial RPM