## 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 Name: python-docutils Version: 0.21.2 Release: %autorelease Summary: System for processing plaintext documentation # See COPYING.txt for information # PSF-2.0 was chosen for the SPDX identifier as it's the spirit of the original # author's notice, even though the shipped license text is copied from Python 2.1.1 # See: https://gitlab.com/fedora/legal/fedora-license-data/-/issues/216 License: LicenseRef-Fedora-Public-Domain AND BSD-2-Clause AND BSD-3-Clause AND PSF-2.0 AND GPL-3.0-or-later URL: https://docutils.sourceforge.net Source0: https://sourceforge.net/projects/docutils/files/docutils/%{version}/docutils-%{version}.tar.gz BuildArch: noarch BuildRequires: pyproject-rpm-macros BuildRequires: python%{python3_pkgversion}-devel %global _description %{expand: The Docutils project specifies a plaintext markup language, reStructuredText, which is easy to read and quick to write. The project includes a python library to parse rST files and transform them into other useful formats such as HTML, XML, and TeX as well as commandline tools that give the enduser access to this functionality. Currently, the library supports parsing rST that is in standalone files and PEPs (Python Enhancement Proposals). Work is underway to parse rST from Python inline documentation modules and packages.} %description %_description %package -n python%{python3_pkgversion}-docutils Summary: %{summary} %description -n python%{python3_pkgversion}-docutils %_description %prep %autosetup -p1 -n docutils-%{version} # Remove shebang from library files sed -i -e '/#! *\/usr\/bin\/.*/{1D}' $(grep -Erl '^#!.+python' docutils) # We want the licenses but don't need this build file rm -f licenses/docutils.conf %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files docutils %check export PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} test/alltests.py %files -n python%{python3_pkgversion}-docutils -f %{pyproject_files} %license COPYING.txt licenses/* %doc BUGS.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt THANKS.txt %{_bindir}/rst* %{_bindir}/docutils %changelog ## START: Generated by rpmautospec * Wed Sep 18 2024 Karolina Surma - 0.21.2-1 - Update to 0.21.2 * Wed Jul 24 2024 Karolina Surma - 0.20.1-7 - Add a simple smoke test * Fri Jul 19 2024 Fedora Release Engineering - 0.20.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.20.1-5 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.20.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.20.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Aug 11 2023 Karolina Surma - 0.20.1-1 - Update to 0.20.1 Resolves: rhbz#2207802 * Wed Aug 09 2023 Karolina Surma - 0.19-5 - Declare the license as an SPDX expression * Fri Jul 21 2023 Fedora Release Engineering - 0.19-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.19-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Oct 24 2022 Karolina Surma - 0.19-1 - Update to 0.19 Resolves: rhbz#2099884 * Fri Jul 22 2022 Fedora Release Engineering - 0.18.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 21 2022 Karolina Surma - 0.18.1-1 - Update to 0.18.1 Resolves: rhbz#2011077 * Mon Jun 13 2022 Python Maint - 0.17.1-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.17.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Sep 17 2021 Karolina Surma - 0.17.1-1 - Update to 0.17.1 Resolves: rhbz#1927513 * Tue Jul 27 2021 Fedora Release Engineering - 0.16-7 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 22 2021 Miro Hrončok - 0.16-6 - Stop shipping the entire docs sources, reduce the package size significantly * Wed Jun 02 2021 Python Maint - 0.16-5 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.16-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.16-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri May 22 2020 Miro Hrončok - 0.16-2 - Rebuilt for Python 3.9 * Mon Apr 06 2020 siddharthvipul - 0.16-1 - Update to 0.16 * Sat Apr 04 2020 siddharthvipul - 0.15.2-5 - Remove python2 subpackage * Thu Jan 30 2020 Fedora Release Engineering - 0.15.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.15.2-3 - Rebuilt for Python 3.8.0rc1 (#1748018) * Thu Aug 15 2019 Miro Hrončok - 0.15.2-2 - Rebuilt for Python 3.8 * Fri Aug 02 2019 Kevin Fenzi - 0.15.2-1 - Update to 0.15.2 * Fri Jul 26 2019 Fedora Release Engineering - 0.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.14-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Miro Hrončok - 0.14-5 - Only ship one version of the rst2* executables - Invoke python2 with python2 in %%check * Thu Jun 14 2018 Miro Hrončok - 0.14-4 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Jan 16 2018 Iryna Shcherbina - 0.14-2 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Sun Oct 22 2017 Kevin Fenzi - 0.14-1 - Update to 0.14 * Fri Sep 29 2017 Troy Dawson - 0.13.1-7 - Cleanup spec file conditionals * Sun Jul 30 2017 Jan Beran - 0.13.1-6 - Fix missing Python 3 version executables * Thu Jul 27 2017 Fedora Release Engineering - 0.13.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.13.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jan 30 2017 Orion Poplawski - 0.13.1-3 - Fix broken python-docutils provides (bug #1399655) - Use %%license, python build macro - Spec cleanup * Sun Jan 29 2017 Kevin Fenzi - 0.13.1-2 - Rework packaging to make a python2 package and fix provides * Tue Dec 27 2016 Kevin Fenzi - 0.13.1-1 - Update to 0.13.1. Fixes bug #1403399 - Provide python2 version. Fixes bug #1399655 * Fri Dec 09 2016 Charalampos Stratakis - 0.12-0.8.20140510svn7747 - Rebuild for Python 3.6 - Fix failing tests - Remove runtime requirement for python-imaging * Tue Jul 19 2016 Fedora Release Engineering - 0.12-0.7.20140510svn7747 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.12-0.6.20140510svn7747 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Oct 13 2015 Robert Kuska - 0.12-0.5.20140510svn7747 - Rebuilt for Python3.5 rebuild * Wed Sep 23 2015 Robert Kuska - 0.12-0.3.20140510svn7747 - Rebuilt for Python3.5 rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.12-0.3.20140510svn7747 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.12-0.2.20140510svn7747 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat May 10 2014 Orion Poplawski - 0.12-0.1.20140510svn7747 - Update to svn snapshot for Python 3.4 support - Drop unneeded patch * Fri May 9 2014 Orion Poplawski - 0.11-2 - Rebuild for Python 3.4 * Thu Aug 15 2013 Toshio Kuratomi - 0.11-1 - 0.11 final tarball. - Remove flash file from the install (it was only used to run the unittests anyhow) * Sun Aug 04 2013 Fedora Release Engineering - 0.11-0.2.20130715svn7687 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 15 2013 Matej Stuchlik - 0.11-0.1.20130715svn7687 - Rebased to new snapshot - Removed unnecessary patches * Thu Mar 21 2013 Toshio Kuratomi - 0.10-0.8.20120824svn7502 - Add python3-imaging support :-) * Thu Feb 14 2013 Fedora Release Engineering - 0.10-0.7.20120824svn7502 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Aug 25 2012 Toshio Kuratomi - 0.10-0.6.20120824svn7502 - Further fix of places in the code that use__import__ * Fri Aug 24 2012 Toshio Kuratomi - 0.10-0.5.20120824svn7502 - Rebase to new snapshot with some fixes integrated - Reenable one test that I can't replicate the failure with. * Fri Aug 24 2012 David Malcolm - 0.10-0.4.20120730svn7490 - fix/disable failing tests with python 3.3 * Tue Aug 14 2012 Toshio Kuratomi - 0.10-0.3.20120730svn7490 - PyXML patch from upstream - Fix ability to disable python3 builds * Fri Aug 3 2012 David Malcolm - 0.10-0.2.20120730svn7490 - remove rhel logic from with_python3 conditional * Mon Jul 30 2012 Toshio Kuratomi - 0.10-0.1.20120730svn7490 - Update to snapshot that's supposed to take care of the date directive unicode problem in a different way - Patch to fix PyXML conflict without using rpm conflicts * Fri Jul 20 2012 Toshio Kuratomi - 0.9.1-1 - New update from upstream - Fixes for previous patches incorporated there - roman.py has been moved into a docutils submodule - docutils doesn't work with PyXML. before I poke around for the bug in PyXML, seeing if we're going to go through with deprecating it or if we can sanitize our python stdlib's handling of it. - Fix for traceback in https://bugzilla.redhat.com/show_bug.cgi?id=786867 * Mon Jan 30 2012 Toshio Kuratomi - 0.8.1-2 - Fix a unicode traceback https://bugzilla.redhat.com/show_bug.cgi?id=785622 * Thu Jan 5 2012 Toshio Kuratomi - 0.8.1-1 - Update to new upstream that has properly licensed files and a few bugfixes - Add a patch to fix tracebacks when wrong values are given to CLI apps * Wed Jul 20 2011 Toshio Kuratomi - 0.8-2 - Replace the Apache licensed files with BSD licensed versions from upstream * Tue Jul 12 2011 Toshio Kuratomi - 0.8-1 - Upgrade to 0.8 final. - Remove the two remaining Apache licensed files until their license is fixed. - Patch regressions that we had already submitted upstream -- resubmit * Tue May 17 2011 Toshio Kuratomi - 0.8-0.1.20110517svn7036 - Ship a snapshot of 0.8 so that we can build on python-3.2.1 - Unfortunately, 3.2.1 isn't out yet either. So also apply a fix for building with 3.2.0 that we'll need to remove later. - The new docutils.math module is licensed Apache. Update the license to reflect this * Wed Mar 16 2011 Toshio Kuratomi - 0.7-5 - Fix building with python-3.2 via a workaround. Sent upstream awaiting feedback or a better fix. Built in rawhide. * Tue Feb 08 2011 Fedora Release Engineering - 0.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Jan 1 2011 Toshio Kuratomi - 0.7-3 - Fix scripts so they're the python2 versions not the python3 versions * Thu Dec 30 2010 Toshio Kuratomi - 0.7-2 - Build for python3 * Sun Aug 1 2010 Toshio Kuratomi - 0.7-1 - Update for 0.7 release * Thu Jul 22 2010 David Malcolm - 0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Tue Jan 19 2010 Toshio Kuratomi - 0.6-1 - Update for 0.6 release. - Switch from setuptools installed egg-info to distutils egg-info. Note that this works because we're also changing docutils version. To do this between 0.5-4 and 0.5-5, for instance, we'd need to have %%preun scriptlet to get rid of the egg-info directory. * Sun Jul 26 2009 Fedora Release Engineering - 0.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.5-2 - Rebuild for Python 2.6 * Wed Aug 6 2008 Toshio Kuratomi 0.5-1 - New upstream version. * Mon Mar 3 2008 Toshio Kuratomi 0.4-8 - Use regular Requires syntax for python-imaging as missingok is just wrong. * Thu Sep 27 2007 Toshio Kuratomi 0.4-7 - Build egg info. * Mon Aug 13 2007 Toshio Kuratomi 0.4-6 - Last version had both the old and new rst.el. Try again with only the new one. * Sun Aug 12 2007 Toshio Kuratomi 0.4-5 - Make License tag conform to the new Licensing Policy. - Fix the rst emacs mode (RH BZ 250100) * Sat Dec 09 2006 Toshio Kuratomi 0.4-4 - Bump and rebuild for python 2.5 in devel. * Tue Aug 29 2006 Toshio Kuratomi 0.4-3 - Bump for FC6 rebuild. - Remove python byte compilation as this is handled automatically in FC4+. - No longer %%ghost .pyo files. * Thu Feb 16 2006 Toshio Kuratomi 0.4-2 - Bump and rebuild for FC5. * Sun Jan 15 2006 Toshio Kuratomi 0.4-1 - Update to 0.4. - Scripted the listing of files in the python module. - Add a missingok requirement on python-imaging as docutils can make use of it when converting to formats that have images. * Tue Jun 7 2005 Toshio Kuratomi 0.3.9-1 - Update to version 0.3.9. - Use a dist tag as there aren't any differences between supported fc releases (FC3, FC4, devel.) * Thu May 12 2005 Toshio Kuratomi 0.3.7-7 - Bump version and rebuild to sync across architectures. * Sun Mar 20 2005 Toshio Kuratomi 0.3.7-6 - Rebuild for FC4t1 * Sat Mar 12 2005 Toshio Kuratomi 0.3.7-5 - Add GPL as a license (mschwendt) - Use versioned Obsoletes and Provides (mschwendt) * Fri Mar 04 2005 Toshio Kuratomi 0:0.3.7-4 - Rename to python-docutils per the new packaging guidelines. * Wed Jan 12 2005 Toshio Kuratomi 0:0.3.7-0.fdr.3 - Really install roman.py and build roman.py[co]. Needed to make sure I have docutils installed to test that it builds roman.py fine in that case. * Tue Jan 11 2005 Toshio Kuratomi 0:0.3.7-0.fdr.2 - Special case roman.py to always install. This is the behaviour we want unless something else provides it. Will need to watch out for this in future Core and Extras packages, but the auto detection code makes it possible that builds will not be reproducible if roman.py were installed from another package.... Lesser of two evils here. - Provide python-docutils in case that package were preinstalled from another repository. * Fri Dec 31 2004 Toshio Kuratomi 0:0.3.7-0.fdr.1 - Update to 0.3.7 - Rename from python-docutils to docutils. - Make roman.py optionally a part of the files list. In FC2, this will be included. In FC3, this won't. - BuildConflict with self since the docutils build detects the presence of roman.py and doesn't reinstall itself. * Mon Aug 9 2004 Toshio Kuratomi 0:0.3.5-0.fdr.1 - Update to 0.3.5. - Update spec style to latest fedora-rpmdevtools. - Merge everything into a single package. There isn't very much space advantage to having separate packages in a package this small and in this case, the documentation on using docutils as a library is also a good example of how to write in ReSructuredText. * Sat Jan 10 2004 Michel Alexandre Salim 0:0.3-0.fdr.1 - Initial RPM release. ## END: Generated by rpmautospec