%global pypi_name rst2txt Name: %{pypi_name} Version: 1.1.0 Release: 21%{?dist} Summary: Convert reStructuredText to plain text License: BSD URL: https://github.com/stephenfin/rst2txt Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm BuildRequires: python3-docutils BuildRequires: python3-pygments BuildRequires: python3-pytest %description reStructuredText is pretty-damn consumable in its raw form, but extensive use of directives and roles can hamper things or leave the document incomplete in its raw form. rst2txt allows you to work around this by evaluating the reStructuredText source and stripping it of most of its formatting. The end result is a document that's more readable and has elements that don't make sense in a plain text document, such as images, stripped. %prep %autosetup -n %{pypi_name}-%{version} sed -i -e 's/use_scm_version=True,/version="%{version}",/g' setup.py %build %py3_build %install %py3_install %check PYTHONPATH=%{buildroot}/%{python3_sitelib}/ pytest-%{python3_version} -v tests %files %doc README.rst %license LICENSE %{_bindir}/%{name} %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}*.egg-info %changelog * Fri Jan 26 2024 Fedora Release Engineering - 1.1.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.1.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.1.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.1.0-18 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.1.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.1.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.1.0-15 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.1.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.1.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.1.0-12 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 26 2020 Fabian Affolter - 1.1.0-9 - Add python3-setuptools as BR * Tue May 26 2020 Miro Hrončok - 1.1.0-8 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Jan 07 2020 Fabian Affolter - 1.1.0-6 - Update source URL * Thu Oct 03 2019 Miro Hrončok - 1.1.0-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.1.0-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Jun 09 2019 Fabian Affolter - 1.1.0-2 - Run tests (rhbz#1714195) * Sat May 25 2019 Fabian Affolter - 1.1.0-1 - Initial package for Fedora