Blame SPECS/python-docutils.spec

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