]>
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 |
753d0330 | 5 | Release: 1 |
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 JB |
11 | BuildRequires: python-devel >= 2.3 |
12 | BuildRequires: python3-2to3 >= 3.2 | |
13 | BuildRequires: python3-devel >= 3.2 | |
333ac545 JK |
14 | BuildRequires: rpm-pythonprov |
15 | BuildRequires: rpmbuild(macros) >= 1.219 | |
16 | Requires: python-%{name} = %{version}-%{release} | |
01dcc6d1 | 17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Utilities for general- and special-purpose documentation, including | |
22 | autodocumentation of Python modules. Includes reStructuredText, the | |
23 | easy to read, easy to use, what-you-see-is-what-you-get plaintext | |
24 | markup language. | |
25 | ||
ff063cd2 | 26 | %description -l pl.UTF-8 |
c3585f11 JB |
27 | Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym |
28 | autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy | |
29 | do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG. | |
01dcc6d1 | 30 | |
333ac545 | 31 | %package -n python-%{name} |
c3585f11 JB |
32 | Summary: Text documents processing modules for Python 2.x |
33 | Summary(pl.UTF-8): Moduły Pythona 2.x do przetwarzania dokumentów tekstowych | |
333ac545 JK |
34 | Group: Development/Languages/Python |
35 | %pyrequires_eq python-libs | |
36 | ||
37 | %description -n python-%{name} | |
38 | Docutils are utilities for general- and special-purpose documentation, | |
e24f0ec9 JB |
39 | including autodocumentation of Python modules. Includes |
40 | reStructuredText, the easy to read, easy to use, | |
41 | what-you-see-is-what-you-get plaintext markup language. | |
333ac545 | 42 | |
e24f0ec9 | 43 | This package provides the Docutils modules for Python 2. |
333ac545 | 44 | |
78c00b9c | 45 | %description -n python-%{name} -l pl.UTF-8 |
c3585f11 JB |
46 | Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym |
47 | autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy | |
48 | do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG. | |
333ac545 | 49 | |
e24f0ec9 | 50 | Ten pakiet dostarcza moduły Docutils dla Pythona 2. |
333ac545 | 51 | |
cdcb57cd | 52 | %package -n python3-%{name} |
c3585f11 JB |
53 | Summary: Text documents processing modules for Python 3.x |
54 | Summary(pl.UTF-8): Moduły Pythona 3.x do przetwarzania dokumentów tekstowych | |
cdcb57cd | 55 | Group: Development/Languages/Python |
cdcb57cd | 56 | |
57 | %description -n python3-%{name} | |
58 | Docutils are utilities for general- and special-purpose documentation, | |
e24f0ec9 JB |
59 | including autodocumentation of Python modules. Includes |
60 | reStructuredText, the easy to read, easy to use, | |
61 | what-you-see-is-what-you-get plaintext markup language. | |
cdcb57cd | 62 | |
e24f0ec9 | 63 | This package provides the Docutils modules for Python 3. |
cdcb57cd | 64 | |
65 | %description -n python3-%{name} -l pl.UTF-8 | |
c3585f11 JB |
66 | Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym |
67 | autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy | |
68 | do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG. | |
cdcb57cd | 69 | |
e24f0ec9 | 70 | Ten pakiet dostarcza moduły Docutils dla Pythona 3. |
cdcb57cd | 71 | |
01dcc6d1 | 72 | %prep |
73 | %setup -q | |
74 | ||
75 | %build | |
e24f0ec9 JB |
76 | %{__python} setup.py config build -b build-2 |
77 | %{__python3} setup.py config build -b build-3 | |
01dcc6d1 | 78 | |
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
01dcc6d1 | 81 | |
e24f0ec9 | 82 | %{__python} setup.py build -b build-2 install \ |
01dcc6d1 | 83 | --optimize=2 \ |
84 | --root=$RPM_BUILD_ROOT | |
85 | ||
bffc3c80 | 86 | for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do |
e24f0ec9 | 87 | mv "${f}" "${f%.py}" |
cdcb57cd | 88 | done |
89 | ||
e24f0ec9 | 90 | %{__python3} setup.py build -b build-3 install \ |
cdcb57cd | 91 | --optimize=2 \ |
92 | --root=$RPM_BUILD_ROOT | |
93 | ||
94 | for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do | |
e24f0ec9 | 95 | mv "${f}" "${f%.py}-3" |
bffc3c80 JK |
96 | done |
97 | ||
c0a5df75 | 98 | install extras/roman.py $RPM_BUILD_ROOT%{py_sitescriptdir} |
cdcb57cd | 99 | install extras/roman.py $RPM_BUILD_ROOT%{py3_sitescriptdir} |
1bbe25eb | 100 | 2to3-3.2 -n -w $RPM_BUILD_ROOT%{py3_sitescriptdir}/roman.py |
7be8ae59 JB |
101 | # clean some 2to3 leftovers |
102 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/{test,tools} | |
bffc3c80 | 103 | |
c0a5df75 | 104 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} |
105 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
106 | %py_postclean | |
a9b51192 | 107 | |
01dcc6d1 | 108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
113 | %doc PKG-INFO *.txt docs | |
e24f0ec9 JB |
114 | %attr(755,root,root) %{_bindir}/rst2html |
115 | %attr(755,root,root) %{_bindir}/rst2latex | |
116 | %attr(755,root,root) %{_bindir}/rst2man | |
117 | %attr(755,root,root) %{_bindir}/rst2odt | |
118 | %attr(755,root,root) %{_bindir}/rst2odt_prepstyles | |
119 | %attr(755,root,root) %{_bindir}/rst2pseudoxml | |
120 | %attr(755,root,root) %{_bindir}/rst2s5 | |
121 | %attr(755,root,root) %{_bindir}/rst2xetex | |
122 | %attr(755,root,root) %{_bindir}/rst2xml | |
123 | %attr(755,root,root) %{_bindir}/rstpep2html | |
333ac545 JK |
124 | |
125 | %files -n python-%{name} | |
126 | %defattr(644,root,root,755) | |
e24f0ec9 JB |
127 | %{py_sitescriptdir}/roman.py[oc] |
128 | %{py_sitescriptdir}/docutils | |
129 | %{py_sitescriptdir}/docutils-%{version}-py*.egg-info | |
cdcb57cd | 130 | |
131 | %files -n python3-%{name} | |
132 | %defattr(644,root,root,755) | |
e24f0ec9 JB |
133 | %{py3_sitescriptdir}/roman.py |
134 | %{py3_sitescriptdir}/__pycache__/roman.cpython-*.py[co] | |
135 | %{py3_sitescriptdir}/docutils | |
136 | %{py3_sitescriptdir}/docutils-%{version}-py*.egg-info |