3 # - check if ".py" suffix can be striped from the %{_bindir} scripts
4 # (*.py in %{_bindir} is generally a very bad idea)
6 Summary: Documentation Utilities
7 Summary(pl.UTF-8): Narzędzia do tworzenia dokumentacji
11 License: Public Domain, BSD, GPL (see COPYING.txt)
12 Group: Development/Tools
13 Source0: http://dl.sourceforge.net/docutils/%{name}-%{version}.tar.gz
14 # Source0-md5: 5c615479a965bc773892f585e0e08119
15 URL: http://docutils.sourceforge.net/
16 BuildRequires: python-devel
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.219
19 Requires: python-%{name} = %{version}-%{release}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Utilities for general- and special-purpose documentation, including
25 autodocumentation of Python modules. Includes reStructuredText, the
26 easy to read, easy to use, what-you-see-is-what-you-get plaintext
29 %description -l pl.UTF-8
30 Narzędzia do ogólnego i specjalnego dokumentowania, włączając
31 autodokumentację modułów pythona. Zawiera reStructuredText, łatwy do
32 odczytania, łatwy w użyciu, WYSIWYG język opisu tekstu.
34 %package -n python-%{name}
35 Summary: Text documents processing modules for Python
36 Summary(pl.UTF-8): Moduły Pythona do przetwarzania dokumentów tekstowych
37 Group: Development/Languages/Python
38 %pyrequires_eq python-libs
40 %description -n python-%{name}
41 Docutils are utilities for general- and special-purpose documentation,
42 including autodocumentation of Python modules. Includes reStructuredText, the
43 easy to read, easy to use, what-you-see-is-what-you-get plaintext markup
46 This package provides the Docutils python modules.
48 %description -l pl.UTF-8 -n python-%{name}
49 Docutils to narzędzia do ogólnego i specjalnego dokumentowania, włączając
50 autodokumentację modułów pythona. Zawiera reStructuredText, łatwy do
51 odczytania, łatwy w użyciu, WYSIWYG język opisu tekstu.
53 Ten pakiet dostarcza modułów pythona Docutils.
59 python setup.py config
63 rm -rf $RPM_BUILD_ROOT
65 python setup.py install \
67 --root=$RPM_BUILD_ROOT
69 install extras/roman.py $RPM_BUILD_ROOT%{py_sitescriptdir}
70 install tools/rstpep2html.py $RPM_BUILD_ROOT%{_bindir}
71 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
72 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc PKG-INFO *.txt docs
81 %attr(755,root,root) %{_bindir}/*
83 %files -n python-%{name}
84 %defattr(644,root,root,755)
85 %{py_sitescriptdir}/*.py[oc]
86 %{py_sitescriptdir}/%{name}
87 %{py_sitescriptdir}/%{name}*.egg-info