|
@@ -1,36 +1,38 @@
|
|
|
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
-
|
|
|
%define srcname docutils
|
|
|
-
|
|
|
-Name: python-%{srcname}
|
|
|
-Version: 0.6
|
|
|
-Release: 1%{?_dist_release}
|
|
|
-Summary: System for processing plaintext documentation
|
|
|
-
|
|
|
-Group: Development/Languages
|
|
|
-# See COPYING.txt for information
|
|
|
-License: Public Domain and MIT and Python and GPLv2
|
|
|
-URL: http://docutils.sourceforge.net
|
|
|
-Source0: http://downloads.sourceforge.net/docutils/%{srcname}-%{version}.tar.gz
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
-BuildArch: noarch
|
|
|
-
|
|
|
-BuildRequires: python-devel
|
|
|
+Summary: an open-source text processing system written in Python
|
|
|
+Summary(ja): Pythonで書かれたテキスト処理システム
|
|
|
+Name: python-%{srcname}
|
|
|
+Version: 0.6
|
|
|
+Release: 2%{?_dist_release}
|
|
|
+Group: Development/Languages
|
|
|
+License: Public Domain and MIT and Python and GPLv2
|
|
|
+URL: http://docutils.sourceforge.net/
|
|
|
+Source0: http://prdownloads.sourceforge.net/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
+BuildArch: noarch
|
|
|
+BuildRequires: python-devel
|
|
|
BuildRequires: python-setuptools
|
|
|
-
|
|
|
+Requires: python
|
|
|
Requires: python-imaging
|
|
|
+
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+Packager: shaolin, munepi, owa
|
|
|
Provides: docutils = %{version}-%{release}
|
|
|
+Obsoletes: docutils <= 0.5
|
|
|
|
|
|
%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.
|
|
|
+Docutils is an open-source text processing system for processing
|
|
|
+plaintext documentation into useful formats, such as HTML or LaTeX.
|
|
|
+It includes reStructuredText, the easy to read, easy to use,
|
|
|
+what-you-see-is-what-you-get plaintext markup language.
|
|
|
+
|
|
|
+%description -l ja
|
|
|
+Docutilsはオープンソースのテキスト処理システムで、プレーンテキストの
|
|
|
+文書をHTMLやLaTeXなどの使いやすいフォーマットに変換するものです。
|
|
|
+読みやすく使いやすくWYSIWYGなプレーンテキストのマークアップ言語である
|
|
|
+reStructuresTextを含んでいます。
|
|
|
|
|
|
-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}
|
|
@@ -38,17 +40,18 @@ Python inline documentation modules and packages.
|
|
|
# Remove a shebang from one of the library files
|
|
|
%__sed -i -e '/#! *\/usr\/bin\/.*python.*/{1D}' docutils/readers/python/pynodes.py
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
|
|
|
|
|
|
%install
|
|
|
-rm -rf %{buildroot}
|
|
|
-
|
|
|
-%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
+%__rm -rf $RPM_BUILD_ROOT
|
|
|
+%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
|
|
|
|
|
|
for file in %{buildroot}/%{_bindir}/*.py; do
|
|
|
mv $file `dirname $file`/`basename $file .py`
|
|
|
+ ln -sf `basename $file .py` `dirname $file`/`basename $file`
|
|
|
done
|
|
|
|
|
|
# We want the licenses but don't need this build file
|
|
@@ -57,123 +60,52 @@ done
|
|
|
# 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=%{buildroot}/$extradest
|
|
|
-install -D -m 0644 extras/$file $fullextradest/$file
|
|
|
+install -D -m644 extras/roman.py ${RPM_BUILD_ROOT}/%{python_sitelib}/roman.py
|
|
|
+
|
|
|
|
|
|
%clean
|
|
|
-%__rm -rf %{buildroot}
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
+
|
|
|
|
|
|
%files
|
|
|
-%defattr(-,root,root,-)
|
|
|
-%doc BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt
|
|
|
-%doc THANKS.txt licenses docs tools/editors
|
|
|
+%defattr(-,root,root)
|
|
|
+%doc BUGS.txt HISTORY.txt RELEASE-NOTES.txt docs COPYING.txt THANKS.txt FAQ.txt README.txt
|
|
|
+%doc licenses docs tools/editors
|
|
|
%{_bindir}/*
|
|
|
-%{python_sitelib}/docutils/
|
|
|
+%{python_sitelib}/%{srcname}/
|
|
|
%{python_sitelib}/roman.*
|
|
|
-%{python_sitelib}/*egg-info
|
|
|
+%{python_sitelib}/docutils-*.egg-info
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
|
-* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.6-1
|
|
|
-- initial build based on Fedora development
|
|
|
-
|
|
|
-* Tue Jan 19 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 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 <rel-eng@lists.fedoraproject.org> - 0.5-4
|
|
|
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
-
|
|
|
-* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3
|
|
|
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
-
|
|
|
-* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-2
|
|
|
-- Rebuild for Python 2.6
|
|
|
-
|
|
|
-* Wed Aug 6 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.5-1
|
|
|
-- New upstream version.
|
|
|
-
|
|
|
-* Mon Mar 3 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4-8
|
|
|
-- Use regular Requires syntax for python-imaging as missingok is just wrong.
|
|
|
-
|
|
|
-* Thu Sep 27 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4-7
|
|
|
-- Build egg info.
|
|
|
-
|
|
|
-* Mon Aug 13 2007 Toshio Kuratomi <a.badger@gmail.com> 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 <a.badger@gmail.com> 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 <toshio-tiki-lounge.com> 0.4-4
|
|
|
-- Bump and rebuild for python 2.5 in devel.
|
|
|
-
|
|
|
-* Tue Aug 29 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 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 <toshio-tiki-lounge.com> 0.4-2
|
|
|
-- Bump and rebuild for FC5.
|
|
|
-
|
|
|
-* Sun Jan 15 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 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 <toshio-tiki-lounge.com> 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 <toshio-tiki-lounge.com> 0.3.7-7
|
|
|
-- Bump version and rebuild to sync across architectures.
|
|
|
-
|
|
|
-* Sun Mar 20 2005 Toshio Kuratomi <toshio-tiki-lounge.com> 0.3.7-6
|
|
|
-- Rebuild for FC4t1
|
|
|
-
|
|
|
-* 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.
|
|
|
+* Thu Sep 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.6-2
|
|
|
+- changed package-name to python-docutils from docutils
|
|
|
+- added Provides: docutils = %%{version}-%%{release}
|
|
|
+- added Obsoletes: docutils <= 0.5
|
|
|
+- added BR: python-setuptools
|
|
|
+- added RQ: python-imaging
|
|
|
+ (merged from '* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> python-docutils-0.6-1')
|
|
|
+
|
|
|
+* Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.5-3
|
|
|
+- rebuilt with python-2.6.4
|
|
|
+
|
|
|
+* Thu Aug 6 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.5-2
|
|
|
+- rename /usr/bin/*.py to /usr/bin/*
|
|
|
+ (keep symlinking to *.py for compatibility - should be removed in the future)
|
|
|
+
|
|
|
+* Wed Jul 01 2009 Shu KONNO <owa@bg.wakwak.com> 0.5-1
|
|
|
+- updated docutils to 0.5
|
|
|
+- added BuildArch: noarch
|
|
|
+
|
|
|
+* Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 0.4-1vl5
|
|
|
+- rebuilt with python-2.5.2
|
|
|
+- applied new versioning policy and spec in utf-8
|
|
|
+
|
|
|
+* Thu Jan 31 2008 Shu KONNO <owa@bg.wakwak.com> 0.4-0vl4
|
|
|
+- defined python_sitelib by using distutils.sysconfig.get_python_lib()
|
|
|
+- updated module directory with platform-independent path
|
|
|
+- added script to install extras/roman.py (missing if it's already on the system)
|
|
|
+
|
|
|
+* Sun Sep 9 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.4-0vl2
|
|
|
+- initial build for Vine Linux
|
|
|
+
|