]>
Commit | Line | Data |
---|---|---|
1 | Summary: Documentation Utilities | |
2 | Summary(pl.UTF-8): Narzędzia do tworzenia dokumentacji | |
3 | Name: docutils | |
4 | Version: 0.12 | |
5 | Release: 2 | |
6 | License: Public Domain, BSD, GPL (see COPYING.txt) | |
7 | Group: Development/Tools | |
8 | Source0: http://downloads.sourceforge.net/docutils/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 4622263b62c5c771c03502afa3157768 | |
10 | URL: http://docutils.sourceforge.net/ | |
11 | BuildRequires: python-devel >= 2.3 | |
12 | BuildRequires: python3-2to3 >= 1:3.4 | |
13 | BuildRequires: python3-2to3 < 1:3.5 | |
14 | BuildRequires: python3-devel >= 3.4 | |
15 | BuildRequires: rpm-pythonprov | |
16 | BuildRequires: rpmbuild(macros) >= 1.219 | |
17 | Requires: python-%{name} = %{version}-%{release} | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Utilities for general- and special-purpose documentation, including | |
23 | autodocumentation of Python modules. Includes reStructuredText, the | |
24 | easy to read, easy to use, what-you-see-is-what-you-get plaintext | |
25 | markup language. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym | |
29 | autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy | |
30 | do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG. | |
31 | ||
32 | %package -n python-%{name} | |
33 | Summary: Text documents processing modules for Python 2.x | |
34 | Summary(pl.UTF-8): Moduły Pythona 2.x do przetwarzania dokumentów tekstowych | |
35 | Group: Development/Languages/Python | |
36 | %pyrequires_eq python-libs | |
37 | ||
38 | %description -n python-%{name} | |
39 | Docutils are utilities for general- and special-purpose documentation, | |
40 | including autodocumentation of Python modules. Includes | |
41 | reStructuredText, the easy to read, easy to use, | |
42 | what-you-see-is-what-you-get plaintext markup language. | |
43 | ||
44 | This package provides the Docutils modules for Python 2. | |
45 | ||
46 | %description -n python-%{name} -l pl.UTF-8 | |
47 | Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym | |
48 | autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy | |
49 | do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG. | |
50 | ||
51 | Ten pakiet dostarcza moduły Docutils dla Pythona 2. | |
52 | ||
53 | %package 3 | |
54 | Summary: Documentation Utilities for Python 3.x | |
55 | Summary(pl.UTF-8): Narzędzia do tworzenia dokumentacji dla Pythona 3.x | |
56 | Group: Development/Tools | |
57 | Requires: python3-%{name} = %{version}-%{release} | |
58 | ||
59 | %description 3 | |
60 | Utilities for general- and special-purpose documentation, including | |
61 | autodocumentation of Python modules. Includes reStructuredText, the | |
62 | easy to read, easy to use, what-you-see-is-what-you-get plaintext | |
63 | markup language. | |
64 | ||
65 | This package provides the Docutils for Python 3. | |
66 | ||
67 | %description 3 -l pl.UTF-8 | |
68 | Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym | |
69 | autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy | |
70 | do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG. | |
71 | ||
72 | Ten pakiet zawiera Docutils dla Pythona 3. | |
73 | ||
74 | %package -n python3-%{name} | |
75 | Summary: Text documents processing modules for Python 3.x | |
76 | Summary(pl.UTF-8): Moduły Pythona 3.x do przetwarzania dokumentów tekstowych | |
77 | Group: Development/Languages/Python | |
78 | ||
79 | %description -n python3-%{name} | |
80 | Docutils are utilities for general- and special-purpose documentation, | |
81 | including autodocumentation of Python modules. Includes | |
82 | reStructuredText, the easy to read, easy to use, | |
83 | what-you-see-is-what-you-get plaintext markup language. | |
84 | ||
85 | This package provides the Docutils modules for Python 3. | |
86 | ||
87 | %description -n python3-%{name} -l pl.UTF-8 | |
88 | Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym | |
89 | autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy | |
90 | do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG. | |
91 | ||
92 | Ten pakiet dostarcza moduły Docutils dla Pythona 3. | |
93 | ||
94 | %prep | |
95 | %setup -q | |
96 | ||
97 | %build | |
98 | %{__python} setup.py config build -b build-2 | |
99 | %{__python3} setup.py config build -b build-3 | |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %{__python} setup.py build -b build-2 install \ | |
105 | --optimize=2 \ | |
106 | --root=$RPM_BUILD_ROOT | |
107 | ||
108 | for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do | |
109 | mv "${f}" "${f%.py}" | |
110 | done | |
111 | ||
112 | %{__python3} setup.py build -b build-3 install \ | |
113 | --optimize=2 \ | |
114 | --root=$RPM_BUILD_ROOT | |
115 | ||
116 | for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do | |
117 | mv "${f}" "${f%.py}-3" | |
118 | done | |
119 | ||
120 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
121 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
122 | %py_postclean | |
123 | ||
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %files | |
128 | %defattr(644,root,root,755) | |
129 | %doc PKG-INFO *.txt docs | |
130 | %attr(755,root,root) %{_bindir}/rst2html | |
131 | %attr(755,root,root) %{_bindir}/rst2latex | |
132 | %attr(755,root,root) %{_bindir}/rst2man | |
133 | %attr(755,root,root) %{_bindir}/rst2odt | |
134 | %attr(755,root,root) %{_bindir}/rst2odt_prepstyles | |
135 | %attr(755,root,root) %{_bindir}/rst2pseudoxml | |
136 | %attr(755,root,root) %{_bindir}/rst2s5 | |
137 | %attr(755,root,root) %{_bindir}/rst2xetex | |
138 | %attr(755,root,root) %{_bindir}/rst2xml | |
139 | %attr(755,root,root) %{_bindir}/rstpep2html | |
140 | ||
141 | %files 3 | |
142 | %defattr(644,root,root,755) | |
143 | %doc PKG-INFO *.txt docs | |
144 | %attr(755,root,root) %{_bindir}/rst*-3 | |
145 | ||
146 | %files -n python-%{name} | |
147 | %defattr(644,root,root,755) | |
148 | %{py_sitescriptdir}/docutils | |
149 | %{py_sitescriptdir}/docutils-%{version}-py*.egg-info | |
150 | ||
151 | %files -n python3-%{name} | |
152 | %defattr(644,root,root,755) | |
153 | %{py3_sitescriptdir}/docutils | |
154 | %{py3_sitescriptdir}/docutils-%{version}-py*.egg-info |