]> git.pld-linux.org Git - packages/docutils.git/blob - docutils.spec
3ec9708d76cea2b708f5e149577ed0179c03543b
[packages/docutils.git] / docutils.spec
1 #
2 # TODO:
3 #       - check if ".py" suffix can be striped from the %{_bindir} scripts
4 #         (*.py in %{_bindir} is generally a very bad idea)
5 #
6 Summary:        Documentation Utilities
7 Summary(pl.UTF-8):      Narzędzia do tworzenia dokumentacji
8 Name:           docutils
9 Version:        0.6
10 Release:        2
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}
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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
27 markup language.
28
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.
33
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
39
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
44 language.
45
46 This package provides the Docutils python modules.
47
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.
52
53 Ten pakiet dostarcza modułów pythona Docutils.
54
55 %prep
56 %setup -q
57
58 %build
59 python setup.py config
60 python setup.py build
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 python setup.py install \
66         --optimize=2 \
67         --root=$RPM_BUILD_ROOT
68
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}
73 %py_postclean
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc PKG-INFO *.txt docs
81 %attr(755,root,root) %{_bindir}/*
82
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
This page took 0.050336 seconds and 3 git commands to generate.