]> git.pld-linux.org Git - packages/docutils.git/blame - docutils.spec
- rel 3; 2to3 from 3.3
[packages/docutils.git] / docutils.spec
CommitLineData
01dcc6d1 1Summary: Documentation Utilities
4bad2400 2Summary(pl.UTF-8): Narzędzia do tworzenia dokumentacji
01dcc6d1 3Name: docutils
bdb7ad2a 4Version: 0.8.1
75a54be6 5Release: 3
01dcc6d1 6License: Public Domain, BSD, GPL (see COPYING.txt)
7Group: Development/Tools
c3585f11 8Source0: http://downloads.sourceforge.net/docutils/%{name}-%{version}.tar.gz
bdb7ad2a 9# Source0-md5: 2ecf8ba3ece1be1ed666150a80c838c8
01dcc6d1 10URL: http://docutils.sourceforge.net/
c3585f11 11BuildRequires: python-devel >= 2.3
75a54be6
AM
12BuildRequires: python3-2to3 >= 3.3
13BuildRequires: python3-2to3 < 3.4
14BuildRequires: python3-devel >= 3.3
333ac545
JK
15BuildRequires: rpm-pythonprov
16BuildRequires: rpmbuild(macros) >= 1.219
17Requires: python-%{name} = %{version}-%{release}
01dcc6d1 18BuildArch: noarch
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Utilities for general- and special-purpose documentation, including
23autodocumentation of Python modules. Includes reStructuredText, the
24easy to read, easy to use, what-you-see-is-what-you-get plaintext
25markup language.
26
ff063cd2 27%description -l pl.UTF-8
c3585f11
JB
28Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym
29autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy
30do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG.
01dcc6d1 31
333ac545 32%package -n python-%{name}
c3585f11
JB
33Summary: Text documents processing modules for Python 2.x
34Summary(pl.UTF-8): Moduły Pythona 2.x do przetwarzania dokumentów tekstowych
333ac545
JK
35Group: Development/Languages/Python
36%pyrequires_eq python-libs
37
38%description -n python-%{name}
39Docutils are utilities for general- and special-purpose documentation,
e24f0ec9
JB
40including autodocumentation of Python modules. Includes
41reStructuredText, the easy to read, easy to use,
42what-you-see-is-what-you-get plaintext markup language.
333ac545 43
e24f0ec9 44This package provides the Docutils modules for Python 2.
333ac545 45
78c00b9c 46%description -n python-%{name} -l pl.UTF-8
c3585f11
JB
47Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym
48autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy
49do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG.
333ac545 50
e24f0ec9 51Ten pakiet dostarcza moduły Docutils dla Pythona 2.
333ac545 52
cdcb57cd 53%package -n python3-%{name}
c3585f11
JB
54Summary: Text documents processing modules for Python 3.x
55Summary(pl.UTF-8): Moduły Pythona 3.x do przetwarzania dokumentów tekstowych
cdcb57cd 56Group: Development/Languages/Python
cdcb57cd 57
58%description -n python3-%{name}
59Docutils are utilities for general- and special-purpose documentation,
e24f0ec9
JB
60including autodocumentation of Python modules. Includes
61reStructuredText, the easy to read, easy to use,
62what-you-see-is-what-you-get plaintext markup language.
cdcb57cd 63
e24f0ec9 64This package provides the Docutils modules for Python 3.
cdcb57cd 65
66%description -n python3-%{name} -l pl.UTF-8
c3585f11
JB
67Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym
68autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy
69do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG.
cdcb57cd 70
e24f0ec9 71Ten 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
81rm -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 87for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do
e24f0ec9 88 mv "${f}" "${f%.py}"
cdcb57cd 89done
90
e24f0ec9 91%{__python3} setup.py build -b build-3 install \
cdcb57cd 92 --optimize=2 \
93 --root=$RPM_BUILD_ROOT
94
95for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do
e24f0ec9 96 mv "${f}" "${f%.py}-3"
bffc3c80
JK
97done
98
c0a5df75 99install extras/roman.py $RPM_BUILD_ROOT%{py_sitescriptdir}
cdcb57cd 100install extras/roman.py $RPM_BUILD_ROOT%{py3_sitescriptdir}
75a54be6 1012to3-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
110rm -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
This page took 0.1356 seconds and 4 git commands to generate.