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