]>
Commit | Line | Data |
---|---|---|
01dcc6d1 | 1 | Summary: Documentation Utilities |
4bad2400 | 2 | Summary(pl.UTF-8): Narzędzia do tworzenia dokumentacji |
01dcc6d1 | 3 | Name: docutils |
bdb7ad2a | 4 | Version: 0.8.1 |
75a54be6 | 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 |
bdb7ad2a | 9 | # Source0-md5: 2ecf8ba3ece1be1ed666150a80c838c8 |
01dcc6d1 | 10 | URL: http://docutils.sourceforge.net/ |
c3585f11 | 11 | BuildRequires: python-devel >= 2.3 |
75a54be6 AM |
12 | BuildRequires: python3-2to3 >= 3.3 |
13 | BuildRequires: python3-2to3 < 3.4 | |
14 | BuildRequires: python3-devel >= 3.3 | |
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 | |
cdcb57cd | 53 | %package -n python3-%{name} |
c3585f11 JB |
54 | Summary: Text documents processing modules for Python 3.x |
55 | Summary(pl.UTF-8): Moduły Pythona 3.x do przetwarzania dokumentów tekstowych | |
cdcb57cd | 56 | Group: Development/Languages/Python |
cdcb57cd | 57 | |
58 | %description -n python3-%{name} | |
59 | Docutils are utilities for general- and special-purpose documentation, | |
e24f0ec9 JB |
60 | including autodocumentation of Python modules. Includes |
61 | reStructuredText, the easy to read, easy to use, | |
62 | what-you-see-is-what-you-get plaintext markup language. | |
cdcb57cd | 63 | |
e24f0ec9 | 64 | This package provides the Docutils modules for Python 3. |
cdcb57cd | 65 | |
66 | %description -n python3-%{name} -l pl.UTF-8 | |
c3585f11 JB |
67 | Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym |
68 | autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy | |
69 | do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG. | |
cdcb57cd | 70 | |
e24f0ec9 | 71 | Ten pakiet dostarcza moduły Docutils dla Pythona 3. |
cdcb57cd | 72 | |
01dcc6d1 | 73 | %prep |
74 | %setup -q | |
75 | ||
76 | %build | |
e24f0ec9 JB |
77 | %{__python} setup.py config build -b build-2 |
78 | %{__python3} setup.py config build -b build-3 | |
01dcc6d1 | 79 | |
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
01dcc6d1 | 82 | |
e24f0ec9 | 83 | %{__python} setup.py build -b build-2 install \ |
01dcc6d1 | 84 | --optimize=2 \ |
85 | --root=$RPM_BUILD_ROOT | |
86 | ||
bffc3c80 | 87 | for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do |
e24f0ec9 | 88 | mv "${f}" "${f%.py}" |
cdcb57cd | 89 | done |
90 | ||
e24f0ec9 | 91 | %{__python3} setup.py build -b build-3 install \ |
cdcb57cd | 92 | --optimize=2 \ |
93 | --root=$RPM_BUILD_ROOT | |
94 | ||
95 | for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do | |
e24f0ec9 | 96 | mv "${f}" "${f%.py}-3" |
bffc3c80 JK |
97 | done |
98 | ||
c0a5df75 | 99 | install extras/roman.py $RPM_BUILD_ROOT%{py_sitescriptdir} |
cdcb57cd | 100 | install extras/roman.py $RPM_BUILD_ROOT%{py3_sitescriptdir} |
75a54be6 | 101 | 2to3-3.3 -n -w $RPM_BUILD_ROOT%{py3_sitescriptdir}/roman.py |
7be8ae59 JB |
102 | # clean some 2to3 leftovers |
103 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/{test,tools} | |
bffc3c80 | 104 | |
c0a5df75 | 105 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} |
106 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
107 | %py_postclean | |
a9b51192 | 108 | |
01dcc6d1 | 109 | %clean |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %files | |
113 | %defattr(644,root,root,755) | |
114 | %doc PKG-INFO *.txt docs | |
e24f0ec9 JB |
115 | %attr(755,root,root) %{_bindir}/rst2html |
116 | %attr(755,root,root) %{_bindir}/rst2latex | |
117 | %attr(755,root,root) %{_bindir}/rst2man | |
118 | %attr(755,root,root) %{_bindir}/rst2odt | |
119 | %attr(755,root,root) %{_bindir}/rst2odt_prepstyles | |
120 | %attr(755,root,root) %{_bindir}/rst2pseudoxml | |
121 | %attr(755,root,root) %{_bindir}/rst2s5 | |
122 | %attr(755,root,root) %{_bindir}/rst2xetex | |
123 | %attr(755,root,root) %{_bindir}/rst2xml | |
124 | %attr(755,root,root) %{_bindir}/rstpep2html | |
333ac545 JK |
125 | |
126 | %files -n python-%{name} | |
127 | %defattr(644,root,root,755) | |
e24f0ec9 JB |
128 | %{py_sitescriptdir}/roman.py[oc] |
129 | %{py_sitescriptdir}/docutils | |
130 | %{py_sitescriptdir}/docutils-%{version}-py*.egg-info | |
cdcb57cd | 131 | |
132 | %files -n python3-%{name} | |
133 | %defattr(644,root,root,755) | |
e24f0ec9 JB |
134 | %{py3_sitescriptdir}/roman.py |
135 | %{py3_sitescriptdir}/__pycache__/roman.cpython-*.py[co] | |
136 | %{py3_sitescriptdir}/docutils | |
137 | %{py3_sitescriptdir}/docutils-%{version}-py*.egg-info |