[1741] | 1 | %define srcname docutils |
---|
[1746] | 2 | Summary: an open-source text processing system written in Python |
---|
| 3 | Summary(ja): Pythonで書かれたテキスト処理システム |
---|
| 4 | Name: python-%{srcname} |
---|
| 5 | Version: 0.6 |
---|
| 6 | Release: 2%{?_dist_release} |
---|
| 7 | Group: Development/Languages |
---|
| 8 | License: Public Domain and MIT and Python and GPLv2 |
---|
| 9 | URL: http://docutils.sourceforge.net/ |
---|
| 10 | Source0: http://prdownloads.sourceforge.net/%{srcname}/%{srcname}-%{version}.tar.gz |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 12 | BuildArch: noarch |
---|
| 13 | BuildRequires: python-devel |
---|
[1741] | 14 | BuildRequires: python-setuptools |
---|
[1746] | 15 | Requires: python |
---|
[1741] | 16 | Requires: python-imaging |
---|
[1746] | 17 | |
---|
| 18 | Vendor: Project Vine |
---|
| 19 | Distribution: Vine Linux |
---|
| 20 | Packager: shaolin, munepi, owa |
---|
[1741] | 21 | Provides: docutils = %{version}-%{release} |
---|
[1746] | 22 | Obsoletes: docutils <= 0.5 |
---|
[1741] | 23 | |
---|
| 24 | %description |
---|
[1746] | 25 | Docutils is an open-source text processing system for processing |
---|
| 26 | plaintext documentation into useful formats, such as HTML or LaTeX. |
---|
| 27 | It includes reStructuredText, the easy to read, easy to use, |
---|
| 28 | what-you-see-is-what-you-get plaintext markup language. |
---|
[1741] | 29 | |
---|
[1746] | 30 | %description -l ja |
---|
| 31 | Docutilsはオープンソースのテキスト処理システムで、プレーンテキストの |
---|
| 32 | 文書をHTMLやLaTeXなどの使いやすいフォーマットに変換するものです。 |
---|
| 33 | 読みやすく使いやすくWYSIWYGなプレーンテキストのマークアップ言語である |
---|
| 34 | reStructuresTextを含んでいます。 |
---|
[1741] | 35 | |
---|
[1746] | 36 | |
---|
[1741] | 37 | %prep |
---|
| 38 | %setup -q -n %{srcname}-%{version} |
---|
| 39 | |
---|
| 40 | # Remove a shebang from one of the library files |
---|
| 41 | %__sed -i -e '/#! *\/usr\/bin\/.*python.*/{1D}' docutils/readers/python/pynodes.py |
---|
| 42 | |
---|
[1746] | 43 | |
---|
[1741] | 44 | %build |
---|
| 45 | CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %install |
---|
[1746] | 49 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 50 | %{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT |
---|
[1741] | 51 | |
---|
| 52 | for file in %{buildroot}/%{_bindir}/*.py; do |
---|
| 53 | mv $file `dirname $file`/`basename $file .py` |
---|
[1746] | 54 | ln -sf `basename $file .py` `dirname $file`/`basename $file` |
---|
[1741] | 55 | done |
---|
| 56 | |
---|
| 57 | # We want the licenses but don't need this build file |
---|
| 58 | %__rm -f licenses/docutils.conf |
---|
| 59 | |
---|
| 60 | # docutils only installs this if its not already on the system. Due to the |
---|
| 61 | # possibility that a previous version of docutils may be installed, we install |
---|
| 62 | # it manually here. |
---|
[1746] | 63 | install -D -m644 extras/roman.py ${RPM_BUILD_ROOT}/%{python_sitelib}/roman.py |
---|
[1741] | 64 | |
---|
[1746] | 65 | |
---|
[1741] | 66 | %clean |
---|
[1746] | 67 | rm -rf $RPM_BUILD_ROOT |
---|
[1741] | 68 | |
---|
[1746] | 69 | |
---|
[1741] | 70 | %files |
---|
[1746] | 71 | %defattr(-,root,root) |
---|
| 72 | %doc BUGS.txt HISTORY.txt RELEASE-NOTES.txt docs COPYING.txt THANKS.txt FAQ.txt README.txt |
---|
| 73 | %doc licenses docs tools/editors |
---|
[1741] | 74 | %{_bindir}/* |
---|
[1746] | 75 | %{python_sitelib}/%{srcname}/ |
---|
[1741] | 76 | %{python_sitelib}/roman.* |
---|
[1746] | 77 | %{python_sitelib}/docutils-*.egg-info |
---|
[1741] | 78 | |
---|
[1746] | 79 | |
---|
[1741] | 80 | %changelog |
---|
[1746] | 81 | * Thu Sep 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.6-2 |
---|
| 82 | - changed package-name to python-docutils from docutils |
---|
| 83 | - added Provides: docutils = %%{version}-%%{release} |
---|
| 84 | - added Obsoletes: docutils <= 0.5 |
---|
| 85 | - added BR: python-setuptools |
---|
| 86 | - added RQ: python-imaging |
---|
| 87 | (merged from '* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> python-docutils-0.6-1') |
---|
[1741] | 88 | |
---|
[1746] | 89 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.5-3 |
---|
| 90 | - rebuilt with python-2.6.4 |
---|
[1741] | 91 | |
---|
[1746] | 92 | * Thu Aug 6 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.5-2 |
---|
| 93 | - rename /usr/bin/*.py to /usr/bin/* |
---|
| 94 | (keep symlinking to *.py for compatibility - should be removed in the future) |
---|
[1741] | 95 | |
---|
[1746] | 96 | * Wed Jul 01 2009 Shu KONNO <owa@bg.wakwak.com> 0.5-1 |
---|
| 97 | - updated docutils to 0.5 |
---|
| 98 | - added BuildArch: noarch |
---|
[1741] | 99 | |
---|
[1746] | 100 | * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 0.4-1vl5 |
---|
| 101 | - rebuilt with python-2.5.2 |
---|
| 102 | - applied new versioning policy and spec in utf-8 |
---|
[1741] | 103 | |
---|
[1746] | 104 | * Thu Jan 31 2008 Shu KONNO <owa@bg.wakwak.com> 0.4-0vl4 |
---|
| 105 | - defined python_sitelib by using distutils.sysconfig.get_python_lib() |
---|
| 106 | - updated module directory with platform-independent path |
---|
| 107 | - added script to install extras/roman.py (missing if it's already on the system) |
---|
[1741] | 108 | |
---|
[1746] | 109 | * Sun Sep 9 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.4-0vl2 |
---|
| 110 | - initial build for Vine Linux |
---|
[1741] | 111 | |
---|