Blame SPECS/python-docutils.spec

fe9729
%{?scl:%scl_package python-%{srcname}}
fe9729
%{!?scl:%global pkg_name %{name}}
fe9729
fe9729
%global srcname docutils
fe9729
fe9729
Name:           %{?scl_prefix}python-%{srcname}
fe9729
Version:        0.12
fe9729
Release:        1%{?dist}
fe9729
Summary:        System for processing plaintext documentation
fe9729
fe9729
Group:          Development/Languages
fe9729
# See COPYING.txt for information
fe9729
License:        Public Domain and BSD and Python and GPLv3+
fe9729
URL:            http://docutils.sourceforge.net
fe9729
Source0:        http://downloads.sourceforge.net/docutils/%{srcname}-%{version}.tar.gz
fe9729
# Sometimes we need snapshots.  Instructions below:
fe9729
# svn co -r 7502 https://docutils.svn.sourceforge.net/svnroot/docutils/trunk/docutils
fe9729
# cd docutils
fe9729
# python setup.py sdist
fe9729
# The tarball is in dist/docutils-VERSION.tar.gz
fe9729
#Source0:        %{srcname}-%{version}.tar.gz
fe9729
fe9729
fe9729
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
fe9729
BuildArch:       noarch
fe9729
fe9729
BuildRequires:  %{?scl_prefix}python-devel
fe9729
BuildRequires: %{?scl_prefix}python-setuptools
fe9729
fe9729
Provides: %{?scl_prefix}docutils = %{version}-%{release}
fe9729
Obsoletes: %{?scl_prefix}docutils < %{version}-%{release}
fe9729
fe9729
%description
fe9729
The Docutils project specifies a plaintext markup language, reStructuredText,
fe9729
which is easy to read and quick to write.  The project includes a python
fe9729
library to parse rST files and transform them into other useful formats such
fe9729
as HTML, XML, and TeX as well as commandline tools that give the enduser
fe9729
access to this functionality.
fe9729
fe9729
Currently, the library supports parsing rST that is in standalone files and
fe9729
PEPs (Python Enhancement Proposals).  Work is underway to parse rST from
fe9729
Python inline documentation modules and packages.
fe9729
fe9729
%prep
fe9729
%setup -q -n %{srcname}-%{version}
fe9729
fe9729
# Remove shebang from library files
fe9729
for file in docutils/utils/{code_analyzer.py,punctuation_chars.py,error_reporting.py,smartquotes.py} docutils/utils/math/{latex2mathml.py,math2html.py} docutils/writers/xetex/__init__.py; do
fe9729
sed -i -e '/#! *\/usr\/bin\/.*/{1D}' $file
fe9729
done
fe9729
fe9729
iconv -f ISO88592 -t UTF8 tools/editors/emacs/IDEAS.rst > tmp
fe9729
mv tmp tools/editors/emacs/IDEAS.rst
fe9729
fe9729
%build
fe9729
%{?scl:scl enable %{scl} - << \EOF}
fe9729
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
fe9729
%{?scl:EOF}
fe9729
fe9729
%install
fe9729
rm -rf %{buildroot}
fe9729
fe9729
%{?scl:scl enable %{scl} "}
fe9729
%{__python3} setup.py install --skip-build --root %{buildroot}
fe9729
%{?scl:"}
fe9729
fe9729
for file in %{buildroot}/%{_bindir}/*.py; do
fe9729
    mv $file `dirname $file`/`basename $file .py`
fe9729
done
fe9729
fe9729
# We want the licenses but don't need this build file
fe9729
rm -f licenses/docutils.conf
fe9729
fe9729
# Flash file is used for testing docutils but shouldn't be in the installed package.
fe9729
mv docs/user/rst/images/biohazard.swf ./biohazard.swf 
fe9729
fe9729
%check
fe9729
mv  biohazard.swf docs/user/rst/images/biohazard.swf
fe9729
fe9729
%{?scl:scl enable %{scl} - << \EOF}
fe9729
# failing tests:
fe9729
# http://sourceforge.net/p/docutils/bugs/213/
fe9729
%{__python3} test3/alltests.py
fe9729
%{?scl:EOF}
fe9729
fe9729
rm docs/user/rst/images/biohazard.swf
fe9729
fe9729
%clean
fe9729
rm -rf %{buildroot}
fe9729
fe9729
%files
fe9729
%defattr(-,root,root,-)
fe9729
%doc BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt 
fe9729
%doc THANKS.txt licenses docs tools/editors
fe9729
%{_bindir}/*
fe9729
%{python3_sitelib}/*
fe9729
fe9729
%changelog
fe9729
* Fri Dec 12 2014 Robert Kuska <rkuska@redhat.com> - 0.12-1
fe9729
- Update to 0.12
fe9729
fe9729
* Mon Nov 18 2013 Robert Kuska <rkuska@redhat.com> - 0.11-1
fe9729
- Update to 0.11
fe9729
fe9729
* Thu May 23 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.10-4
fe9729
- Fix some test failures with Python 3.3.2 (rhbz#966420).
fe9729
fe9729
* Thu May 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.10-3
fe9729
- Temporary add a grep to match failed tests.
fe9729
fe9729
* Thu May 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.10-2
fe9729
- Rebuild to generate bytecode properly after fixing rhbz#956289
fe9729
fe9729
* Thu Dec 20 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.10-1
fe9729
- Rebuilt for SCL.
fe9729
- Updated to 0.10 official release.
fe9729
fe9729
* Sat Aug 25 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.10-0.6.20120824svn7502
fe9729
- Further fix of places in the code that use__import__
fe9729
fe9729
* Fri Aug 24 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.10-0.5.20120824svn7502
fe9729
- Rebase to new snapshot with some fixes integrated
fe9729
- Reenable one test that I can't replicate the failure with.
fe9729
fe9729
* Fri Aug 24 2012 David Malcolm <dmalcolm@redhat.com> - 0.10-0.4.20120730svn7490
fe9729
- fix/disable failing tests with python 3.3
fe9729
fe9729
* Tue Aug 14 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.10-0.3.20120730svn7490
fe9729
- PyXML patch from upstream
fe9729
- Fix ability to disable python3 builds
fe9729
fe9729
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 0.10-0.2.20120730svn7490
fe9729
- remove rhel logic from with_python3 conditional
fe9729
fe9729
* Mon Jul 30 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.10-0.1.20120730svn7490
fe9729
- Update to snapshot that's supposed to take care of the date directive unicode
fe9729
  problem in a different way
fe9729
- Patch to fix PyXML conflict without using rpm conflicts
fe9729
fe9729
* Fri Jul 20 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.9.1-1
fe9729
- New update from upstream
fe9729
- Fixes for previous patches incorporated there
fe9729
- roman.py has been moved into a docutils submodule
fe9729
- docutils doesn't work with PyXML.  before I poke around for the bug in PyXML,
fe9729
  seeing if we're going to go through with deprecating it or if we can sanitize
fe9729
  our python stdlib's handling of it.
fe9729
- Fix for traceback in https://bugzilla.redhat.com/show_bug.cgi?id=786867
fe9729
fe9729
* Mon Jan 30 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.8.1-2
fe9729
- Fix a unicode traceback https://bugzilla.redhat.com/show_bug.cgi?id=785622
fe9729
fe9729
* Thu Jan 5 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.8.1-1
fe9729
- Update to new upstream that has properly licensed files and a few bugfixes
fe9729
- Add a patch to fix tracebacks when wrong values are given to CLI apps
fe9729
fe9729
* Wed Jul 20 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.8-2
fe9729
- Replace the Apache licensed files with BSD licensed versions from upstream
fe9729
fe9729
* Tue Jul 12 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.8-1
fe9729
- Upgrade to 0.8 final.
fe9729
- Remove the two remaining Apache licensed files until their license is fixed.
fe9729
- Patch regressions that we had already submitted upstream -- resubmit
fe9729
fe9729
* Tue May 17 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.8-0.1.20110517svn7036
fe9729
- Ship a snapshot of 0.8 so that we can build on python-3.2.1
fe9729
- Unfortunately, 3.2.1 isn't out yet either.  So also apply a fix for building
fe9729
  with 3.2.0 that we'll need to remove later.
fe9729
- The new docutils.math module is licensed Apache.  Update the license to reflect this
fe9729
fe9729
* Wed Mar 16 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7-5
fe9729
- Fix building with python-3.2 via a workaround.  Sent upstream awaiting
fe9729
  feedback or a better fix.  Built in rawhide.
fe9729
fe9729
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-4
fe9729
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fe9729
fe9729
* Sat Jan 1 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7-3
fe9729
- Fix scripts so they're the python2 versions not the python3 versions
fe9729
fe9729
* Thu Dec 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7-2
fe9729
- Build for python3
fe9729
fe9729
* Sun Aug 1 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7-1
fe9729
- Update for 0.7 release
fe9729
fe9729
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6-2
fe9729
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
fe9729
fe9729
* Tue Jan 19 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6-1
fe9729
- Update for 0.6 release.
fe9729
- Switch from setuptools installed egg-info to distutils egg-info.  Note that
fe9729
  this works because we're also changing docutils version.  To do this between
fe9729
  0.5-4 and 0.5-5, for instance, we'd need to have %%preun scriptlet to get rid
fe9729
  of the egg-info directory.
fe9729
fe9729
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-4
fe9729
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fe9729
fe9729
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3
fe9729
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fe9729
fe9729
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-2
fe9729
- Rebuild for Python 2.6
fe9729
fe9729
* Wed Aug 6 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.5-1
fe9729
- New upstream version.
fe9729
fe9729
* Mon Mar 3 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4-8
fe9729
- Use regular Requires syntax for python-imaging as missingok is just wrong.
fe9729
fe9729
* Thu Sep 27 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4-7
fe9729
- Build egg info.
fe9729
fe9729
* Mon Aug 13 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4-6
fe9729
- Last version had both the old and new rst.el.  Try again with only
fe9729
  the new one.
fe9729
fe9729
* Sun Aug 12 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4-5
fe9729
- Make License tag conform to the new Licensing Policy.
fe9729
- Fix the rst emacs mode (RH BZ 250100)
fe9729
fe9729
* Sat Dec 09 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-4
fe9729
- Bump and rebuild for python 2.5 in devel.
fe9729
fe9729
* Tue Aug 29 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-3
fe9729
- Bump for FC6 rebuild.
fe9729
- Remove python byte compilation as this is handled automatically in FC4+.
fe9729
- No longer %%ghost .pyo files.
fe9729
  
fe9729
* Thu Feb 16 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-2
fe9729
- Bump and rebuild for FC5.
fe9729
  
fe9729
* Sun Jan 15 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-1
fe9729
- Update to 0.4.
fe9729
- Scripted the listing of files in the python module.
fe9729
- Add a missingok requirement on python-imaging as docutils can make use of
fe9729
  it when converting to formats that have images.
fe9729
  
fe9729
* Tue Jun 7 2005 Toshio Kuratomi <toshio-tiki-lounge.com> 0.3.9-1
fe9729
- Update to version 0.3.9.
fe9729
- Use a dist tag as there aren't any differences between supported fc
fe9729
  releases (FC3, FC4, devel.)
fe9729
fe9729
* Thu May 12 2005 Toshio Kuratomi <toshio-tiki-lounge.com> 0.3.7-7
fe9729
- Bump version and rebuild to sync across architectures.
fe9729
fe9729
* Sun Mar 20 2005 Toshio Kuratomi <toshio-tiki-lounge.com> 0.3.7-6
fe9729
- Rebuild for FC4t1
fe9729
fe9729
* Sat Mar 12 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0.3.7-5
fe9729
- Add GPL as a license (mschwendt)
fe9729
- Use versioned Obsoletes and Provides (mschwendt)
fe9729
fe9729
* Fri Mar 04 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-4
fe9729
- Rename to python-docutils per the new packaging guidelines.
fe9729
fe9729
* Wed Jan 12 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-0.fdr.3
fe9729
- Really install roman.py and build roman.py[co].  Needed to make sure I have
fe9729
  docutils installed to test that it builds roman.py fine in that case.
fe9729
fe9729
* Tue Jan 11 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-0.fdr.2
fe9729
- Special case roman.py to always install.  This is the behaviour we want
fe9729
  unless something else provides it.  Will need to watch out for this in
fe9729
  future Core and Extras packages, but the auto detection code makes it
fe9729
  possible that builds will not be reproducible if roman.py were installed
fe9729
  from another package.... Lesser of two evils here.
fe9729
- Provide python-docutils in case that package were preinstalled from
fe9729
  another repository.
fe9729
  
fe9729
* Fri Dec 31 2004 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-0.fdr.1
fe9729
- Update to 0.3.7
fe9729
- Rename from python-docutils to docutils.
fe9729
- Make roman.py optionally a part of the files list.  In FC2, this will be
fe9729
  included.  In FC3, this won't.
fe9729
- BuildConflict with self since the docutils build detects the presence
fe9729
  of roman.py and doesn't reinstall itself.
fe9729
  
fe9729
* Mon Aug 9 2004 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.5-0.fdr.1
fe9729
- Update to 0.3.5.
fe9729
- Update spec style to latest fedora-rpmdevtools.
fe9729
- Merge everything into a single package.  There isn't very much space
fe9729
  advantage to having separate packages in a package this small and in
fe9729
  this case, the documentation on using docutils as a library is also a
fe9729
  good example of how to write in ReSructuredText.
fe9729
fe9729
* Sat Jan 10 2004 Michel Alexandre Salim <salimma[AT]users.sf.net> 0:0.3-0.fdr.1
fe9729
- Initial RPM release.