%global forgeurl https://github.com/ietf-tools/xml2rfc %global version0 3.29.0 %forgemeta Name: python-xml2rfc Version: %{version0} Release: 1%{?dist} Summary: Convert IETF RFC XML into txt format License: BSD-3-Clause URL: %{forgeurl} VCS: git:%{forgeurl}.git Source: %{forgesource} BuildArch: noarch BuildRequires: python3-devel BuildRequires: google-noto-fonts-all BuildRequires: google-roboto-mono-fonts # test dependencies BuildRequires: harfbuzz-devel BuildRequires: groff BuildRequires: libxml2-devel BuildRequires: libxslt-devel BuildRequires: make BuildRequires: pango-devel BuildRequires: python3dist(brotli) BuildRequires: python3dist(certifi) BuildRequires: python3dist(cffi) BuildRequires: python3dist(decorator) # Not packaged in Fedora BuildRequires: python3dist(dict2xml) BuildRequires: python3dist(python-fontconfig) BuildRequires: python3dist(html2text) BuildRequires: python3dist(pyflakes) BuildRequires: python3dist(pypdf) BuildRequires: python3dist(tox) BuildRequires: python3dist(tox-current-env) Requires: google-noto-sans-fonts Requires: google-noto-sans-math-fonts Requires: google-roboto-mono-fonts %global _description %{expand: The IETF uses a specific format for the standards and other documents it publishes as RFCs, and for the draft documents which are produced when developing documents for publications. There exists a number of different tools to facilitate the formatting of drafts and RFCs according to the existing rules, and this tool, xml2rfc, is one of them. It takes as input an xml file that contains the text and meta-information about author names etc., and transforms it into suitably formatted output. The input xml file should follow the grammars in RFC7749 (for v2 documents) or RFC7991 (for v3 documents). Note that the grammar for v3 is still being refined, and changes will eventually be captured in the bis draft for 7991. Changes not yet captured can be seen in the xml2rfc source v3.rng, or in the documentation xml2rfc produces with its --doc flag. xml2rfc provides a variety of output formats. See the command line help for a full list of formats. It also provides conversion from v2 to v3, and can run the preptool on its input.} %description %_description %package -n python3-xml2rfc Summary: %{summary} %description -n python3-xml2rfc %_description %pyproject_extras_subpkg -n python3-xml2rfc pdf %prep %forgeautosetup # Relax weasyprint requirements sed -i 's/weasyprint==65.0/weasyprint>=64.0/g' pyproject.toml # Do not attempt to install dependencies when testing sed -i '/python3 -m pip install . --quiet/d' Makefile # Expected failure due to network access # https://github.com/ietf-tools/xml2rfc/issues/1255 sed -i 's/@unittest.skipIf(sys.platform.startswith("win"), "Test skipped on Windows OS")/@unittest.skip("Needs network")/g' \ test.py %generate_buildrequires %pyproject_buildrequires -x pdf %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l xml2rfc %check %pyproject_check_import -t %py3_test_envvars make test %files -n python3-xml2rfc -f %{pyproject_files} %{_bindir}/xml2rfc %changelog * Tue Jun 17 2025 Benson Muite - 3.29-1 - Update to release 3.29 - Modernize packaging macros - Run some tests * Mon Jun 02 2025 Python Maint - 3.9.1-14 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 3.9.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Sep 04 2024 Miroslav Suchý - 3.9.1-12 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 3.9.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 3.9.1-10 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 3.9.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.9.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 3.9.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 3.9.1-6 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 3.9.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 3.9.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.9.1-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 3.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 28 2021 Paul Wouters - 3.9.1-1 - Update to 3.9.1 - Resolves: rhbz#1983367 F35FailsToInstall: python3-xml2rfc * Fri Jul 23 2021 Fedora Release Engineering - 3.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 3.7.0-2 - Rebuilt for Python 3.10 * Mon May 17 2021 Paul Wouters - 3.7.0-1 - Resolves: rhbz#1830688 FTI: python-xml2rfc: python3-xml2rfc - Resolves: rhbz#1770860 python3-xml2rfc fails to install in Fedora rawhide * Wed Jan 27 2021 Fedora Release Engineering - 3.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Oct 8 11:52:49 EDT 2020 Paul Wouters - 3.2.1-1 - Updated to 3.2.1 - Fixup changelog anomaly * Wed Jul 29 2020 Fedora Release Engineering - 2.44.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Paul Wouters - 2.44.0-1 - updated to 2.44.0 * Tue May 26 2020 Miro Hrončok - 2.22.3-6 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 2.22.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 2.22.3-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 2.22.3-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 2.22.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Apr 09 2019 Paul Wouters - 2.22.3-1 - Updated to 2.22.3 * Tue Feb 12 2019 Paul Wouters - 2.18.0-1 - Updated to 2.18.0 (hopefully get https links on rfc generation now) * Sat Feb 02 2019 Fedora Release Engineering - 2.5.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 2.5.2-8 - Python2 binary package has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 2.5.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.5.2-6 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Iryna Shcherbina - 2.5.2-5 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 2.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Apr 25 2017 Paul Wouters - 2.5.2-2 - Resolves: rhbz#1444858 xml2rfc: no xml2rfc executable is present * Tue Apr 04 2017 Paul Wouters - 2.5.2-1 - Updated to 2.5.2 - Resolves rhbz#1438375 xml2rfc: incorrect dependencies - Resolves rhbz#1323171 Provide a Python3 subpackage - Enable tests - Updated source url * Sat Feb 11 2017 Fedora Release Engineering - 2.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Jul 31 2016 Paul Wouters - 2.5.1-1 - Updated to 2.5.1 * Thu Feb 04 2016 Fedora Release Engineering - 2.4.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 2.4.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 2.4.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Sep 01 2013 Paul Wouters - 2.4.2-4 - Fix typo, convert LICENSE to utf-8, check fix and python-setuptools fix * Sun Sep 01 2013 Paul Wouters - 2.4.2-3 - Patch for paginated_txt.py by Miek, fixes my draft crasher * Sat Aug 31 2013 Paul Wouters - 2.4.2-2 - Fixup summary, remove cleaning buildroot, remove upstream egg-info - Added BuildRequire for python-virtualenv to run tests - Added commented check target - but it has issues to pass - Fix license to BSD with advertising * Fri Aug 30 2013 Paul Wouters - 2.4.2-1 - Initial Package