]>
Commit | Line | Data |
---|---|---|
01dcc6d1 | 1 | Summary: Documentation Utilities |
4bad2400 | 2 | Summary(pl.UTF-8): Narzędzia do tworzenia dokumentacji |
01dcc6d1 | 3 | Name: docutils |
73f498b6 | 4 | Version: 0.12 |
2820b502 | 5 | Release: 3 |
01dcc6d1 | 6 | License: Public Domain, BSD, GPL (see COPYING.txt) |
7 | Group: Development/Tools | |
c3585f11 | 8 | Source0: http://downloads.sourceforge.net/docutils/%{name}-%{version}.tar.gz |
73f498b6 | 9 | # Source0-md5: 4622263b62c5c771c03502afa3157768 |
01dcc6d1 | 10 | URL: http://docutils.sourceforge.net/ |
c3585f11 | 11 | BuildRequires: python-devel >= 2.3 |
2820b502 AM |
12 | BuildRequires: python3-2to3 >= 1:3.5 |
13 | BuildRequires: python3-2to3 < 1:3.6 | |
14 | BuildRequires: python3-devel >= 3.5 | |
333ac545 JK |
15 | BuildRequires: rpm-pythonprov |
16 | BuildRequires: rpmbuild(macros) >= 1.219 | |
17 | Requires: python-%{name} = %{version}-%{release} | |
01dcc6d1 | 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 | ||
ff063cd2 | 27 | %description -l pl.UTF-8 |
c3585f11 JB |
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. | |
01dcc6d1 | 31 | |
333ac545 | 32 | %package -n python-%{name} |
c3585f11 JB |
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 | |
333ac545 JK |
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, | |
e24f0ec9 JB |
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. | |
333ac545 | 43 | |
e24f0ec9 | 44 | This package provides the Docutils modules for Python 2. |
333ac545 | 45 | |
78c00b9c | 46 | %description -n python-%{name} -l pl.UTF-8 |
c3585f11 JB |
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. | |
333ac545 | 50 | |
e24f0ec9 | 51 | Ten pakiet dostarcza moduły Docutils dla Pythona 2. |
333ac545 | 52 | |
6efcbdba | 53 | %package 3 |
54 | Summary: Documentation Utilities for Python 3.x | |
72a779b6 | 55 | Summary(pl.UTF-8): Narzędzia do tworzenia dokumentacji dla Pythona 3.x |
6efcbdba | 56 | Group: Development/Tools |
72a779b6 | 57 | Requires: python3-%{name} = %{version}-%{release} |
6efcbdba | 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 | ||
72a779b6 JB |
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 | ||
cdcb57cd | 74 | %package -n python3-%{name} |
c3585f11 JB |
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 | |
cdcb57cd | 77 | Group: Development/Languages/Python |
cdcb57cd | 78 | |
79 | %description -n python3-%{name} | |
80 | Docutils are utilities for general- and special-purpose documentation, | |
e24f0ec9 JB |
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. | |
cdcb57cd | 84 | |
e24f0ec9 | 85 | This package provides the Docutils modules for Python 3. |
cdcb57cd | 86 | |
87 | %description -n python3-%{name} -l pl.UTF-8 | |
c3585f11 JB |
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. | |
cdcb57cd | 91 | |
e24f0ec9 | 92 | Ten pakiet dostarcza moduły Docutils dla Pythona 3. |
cdcb57cd | 93 | |
01dcc6d1 | 94 | %prep |
95 | %setup -q | |
96 | ||
97 | %build | |
e24f0ec9 JB |
98 | %{__python} setup.py config build -b build-2 |
99 | %{__python3} setup.py config build -b build-3 | |
01dcc6d1 | 100 | |
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
01dcc6d1 | 103 | |
36a94679 | 104 | %py_install |
01dcc6d1 | 105 | |
bffc3c80 | 106 | for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do |
e24f0ec9 | 107 | mv "${f}" "${f%.py}" |
cdcb57cd | 108 | done |
109 | ||
36a94679 | 110 | %py3_install |
cdcb57cd | 111 | |
112 | for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do | |
e24f0ec9 | 113 | mv "${f}" "${f%.py}-3" |
bffc3c80 JK |
114 | done |
115 | ||
c0a5df75 | 116 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} |
117 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
118 | %py_postclean | |
a9b51192 | 119 | |
01dcc6d1 | 120 | %clean |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %files | |
124 | %defattr(644,root,root,755) | |
125 | %doc PKG-INFO *.txt docs | |
e24f0ec9 JB |
126 | %attr(755,root,root) %{_bindir}/rst2html |
127 | %attr(755,root,root) %{_bindir}/rst2latex | |
128 | %attr(755,root,root) %{_bindir}/rst2man | |
129 | %attr(755,root,root) %{_bindir}/rst2odt | |
130 | %attr(755,root,root) %{_bindir}/rst2odt_prepstyles | |
131 | %attr(755,root,root) %{_bindir}/rst2pseudoxml | |
132 | %attr(755,root,root) %{_bindir}/rst2s5 | |
133 | %attr(755,root,root) %{_bindir}/rst2xetex | |
134 | %attr(755,root,root) %{_bindir}/rst2xml | |
135 | %attr(755,root,root) %{_bindir}/rstpep2html | |
333ac545 | 136 | |
6efcbdba | 137 | %files 3 |
138 | %defattr(644,root,root,755) | |
139 | %doc PKG-INFO *.txt docs | |
140 | %attr(755,root,root) %{_bindir}/rst*-3 | |
141 | ||
333ac545 JK |
142 | %files -n python-%{name} |
143 | %defattr(644,root,root,755) | |
e24f0ec9 JB |
144 | %{py_sitescriptdir}/docutils |
145 | %{py_sitescriptdir}/docutils-%{version}-py*.egg-info | |
cdcb57cd | 146 | |
147 | %files -n python3-%{name} | |
148 | %defattr(644,root,root,755) | |
e24f0ec9 JB |
149 | %{py3_sitescriptdir}/docutils |
150 | %{py3_sitescriptdir}/docutils-%{version}-py*.egg-info |