auto-import python-docutils-0.3.7-5 on branch devel from
python-docutils-0.3.7-5.src.rpm
This commit is contained in:
parent
2f1c140bc7
commit
b9c43319dd
@ -0,0 +1 @@
|
||||
docutils-0.3.7.tar.gz
|
141
python-docutils.spec
Normal file
141
python-docutils.spec
Normal file
@ -0,0 +1,141 @@
|
||||
%define pyver %(%{__python} -c "import sys; print sys.version[:3]")
|
||||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%define srcname docutils
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.3.7
|
||||
Release: 5
|
||||
Summary: A system for processing plaintext documentation
|
||||
|
||||
Group: Development/Languages
|
||||
License: Public domain, BSD, PSF, GPL - see COPYING.txt
|
||||
URL: http://docutils.sourceforge.net
|
||||
Source0: http://dl.sourceforge.net/docutils/%{srcname}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python-devel
|
||||
Provides: docutils = %{version}-%{release}
|
||||
Obsoletes: docutils < %{version}-%{release}
|
||||
Requires: python-abi = %{pyver}
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{srcname}-%{version}
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
|
||||
for file in $RPM_BUILD_ROOT/%{_bindir}/*.py; do
|
||||
mv $file `dirname $file`/`basename $file .py`
|
||||
done
|
||||
|
||||
# We want the licenses but don't need this build file
|
||||
rm -f licenses/docutils.conf
|
||||
|
||||
# docutils only installs this if its not already on the system. Due to the
|
||||
# possibility that a previous version of docutils may be installed, we install
|
||||
# it manually here.
|
||||
file=roman.py
|
||||
extradest=%{python_sitelib}
|
||||
fullextradest=$RPM_BUILD_ROOT/$extradest
|
||||
install -m 0644 extras/$file $fullextradest
|
||||
%{__python} -c "import py_compile; py_compile.compile(\
|
||||
'$fullextradest/$file', \
|
||||
'$fullextradest/$file' + 'c', \
|
||||
'$extradest/$file')"
|
||||
%{__python} -O -c "import py_compile; py_compile.compile(\
|
||||
'$fullextradest/$file', \
|
||||
'$fullextradest/$file' + 'o', \
|
||||
'$extradest/$file')"
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING.txt FAQ.txt HISTORY.txt README.txt THANKS.txt licenses docs tools
|
||||
%{_bindir}/*
|
||||
%dir %{python_sitelib}/docutils
|
||||
%dir %{python_sitelib}/docutils/languages
|
||||
%dir %{python_sitelib}/docutils/parsers
|
||||
%dir %{python_sitelib}/docutils/parsers/rst
|
||||
%dir %{python_sitelib}/docutils/parsers/rst/directives
|
||||
%dir %{python_sitelib}/docutils/parsers/rst/languages
|
||||
%dir %{python_sitelib}/docutils/readers
|
||||
%dir %{python_sitelib}/docutils/readers/python
|
||||
%dir %{python_sitelib}/docutils/transforms
|
||||
%dir %{python_sitelib}/docutils/writers
|
||||
%{python_sitelib}/roman.py
|
||||
%{python_sitelib}/roman.pyc
|
||||
%{python_sitelib}/docutils/*.py
|
||||
%{python_sitelib}/docutils/*.pyc
|
||||
%{python_sitelib}/docutils/*/*.py
|
||||
%{python_sitelib}/docutils/*/*.pyc
|
||||
%{python_sitelib}/docutils/*/*/*.py
|
||||
%{python_sitelib}/docutils/*/*/*.pyc
|
||||
%{python_sitelib}/docutils/*/*/*/*.py
|
||||
%{python_sitelib}/docutils/*/*/*/*.pyc
|
||||
|
||||
%ghost %{python_sitelib}/roman.pyo
|
||||
%ghost %{python_sitelib}/docutils/*.pyo
|
||||
%ghost %{python_sitelib}/docutils/*/*.pyo
|
||||
%ghost %{python_sitelib}/docutils/*/*/*.pyo
|
||||
%ghost %{python_sitelib}/docutils/*/*/*/*.pyo
|
||||
|
||||
%changelog
|
||||
* Sat Mar 12 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0.3.7-5
|
||||
- Add GPL as a license (mschwendt)
|
||||
- Use versioned Obsoletes and Provides (mschwendt)
|
||||
|
||||
* Fri Mar 04 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-4
|
||||
- Rename to python-docutils per the new packaging guidelines.
|
||||
|
||||
* Wed Jan 12 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 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 <toshio.tiki-lounge.com> 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 <toshio.tiki-lounge.com> 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 <toshio.tiki-lounge.com> 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 <salimma[AT]users.sf.net> 0:0.3-0.fdr.1
|
||||
- Initial RPM release.
|
Loading…
Reference in New Issue
Block a user