]> git.pld-linux.org Git - packages/docutils.git/blame - docutils.spec
- release 2 (by relup.sh)
[packages/docutils.git] / docutils.spec
CommitLineData
01dcc6d1 1Summary: Documentation Utilities
4bad2400 2Summary(pl.UTF-8): Narzędzia do tworzenia dokumentacji
01dcc6d1 3Name: docutils
73f498b6 4Version: 0.12
d1ba9aec 5Release: 2
01dcc6d1 6License: Public Domain, BSD, GPL (see COPYING.txt)
7Group: Development/Tools
c3585f11 8Source0: http://downloads.sourceforge.net/docutils/%{name}-%{version}.tar.gz
73f498b6 9# Source0-md5: 4622263b62c5c771c03502afa3157768
01dcc6d1 10URL: http://docutils.sourceforge.net/
c3585f11 11BuildRequires: python-devel >= 2.3
73f498b6
AM
12BuildRequires: python3-2to3 >= 1:3.4
13BuildRequires: python3-2to3 < 1:3.5
14BuildRequires: python3-devel >= 3.4
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
6efcbdba 53%package 3
54Summary: Documentation Utilities for Python 3.x
72a779b6 55Summary(pl.UTF-8): Narzędzia do tworzenia dokumentacji dla Pythona 3.x
6efcbdba 56Group: Development/Tools
72a779b6 57Requires: python3-%{name} = %{version}-%{release}
6efcbdba 58
59%description 3
60Utilities for general- and special-purpose documentation, including
61autodocumentation of Python modules. Includes reStructuredText, the
62easy to read, easy to use, what-you-see-is-what-you-get plaintext
63markup language.
64
65This package provides the Docutils for Python 3.
66
72a779b6
JB
67%description 3 -l pl.UTF-8
68Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym
69autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy
70do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG.
71
72Ten pakiet zawiera Docutils dla Pythona 3.
73
cdcb57cd 74%package -n python3-%{name}
c3585f11
JB
75Summary: Text documents processing modules for Python 3.x
76Summary(pl.UTF-8): Moduły Pythona 3.x do przetwarzania dokumentów tekstowych
cdcb57cd 77Group: Development/Languages/Python
cdcb57cd 78
79%description -n python3-%{name}
80Docutils are utilities for general- and special-purpose documentation,
e24f0ec9
JB
81including autodocumentation of Python modules. Includes
82reStructuredText, the easy to read, easy to use,
83what-you-see-is-what-you-get plaintext markup language.
cdcb57cd 84
e24f0ec9 85This package provides the Docutils modules for Python 3.
cdcb57cd 86
87%description -n python3-%{name} -l pl.UTF-8
c3585f11
JB
88Narzędzia do dokumentowania ogólnego i specjalnego zastosowania, w tym
89autodokumentacji modułów Pythona. Zawierają reStructuredText - łatwy
90do odczytania, łatwy w użyciu język opisu tekstu typu WYSIWYG.
cdcb57cd 91
e24f0ec9 92Ten 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
102rm -rf $RPM_BUILD_ROOT
01dcc6d1 103
e24f0ec9 104%{__python} setup.py build -b build-2 install \
01dcc6d1 105 --optimize=2 \
106 --root=$RPM_BUILD_ROOT
107
bffc3c80 108for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do
e24f0ec9 109 mv "${f}" "${f%.py}"
cdcb57cd 110done
111
e24f0ec9 112%{__python3} setup.py build -b build-3 install \
cdcb57cd 113 --optimize=2 \
114 --root=$RPM_BUILD_ROOT
115
116for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do
e24f0ec9 117 mv "${f}" "${f%.py}-3"
bffc3c80
JK
118done
119
c0a5df75 120%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
121%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
122%py_postclean
a9b51192 123
01dcc6d1 124%clean
125rm -rf $RPM_BUILD_ROOT
126
127%files
128%defattr(644,root,root,755)
129%doc PKG-INFO *.txt docs
e24f0ec9
JB
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
333ac545 140
6efcbdba 141%files 3
142%defattr(644,root,root,755)
143%doc PKG-INFO *.txt docs
144%attr(755,root,root) %{_bindir}/rst*-3
145
333ac545
JK
146%files -n python-%{name}
147%defattr(644,root,root,755)
e24f0ec9
JB
148%{py_sitescriptdir}/docutils
149%{py_sitescriptdir}/docutils-%{version}-py*.egg-info
cdcb57cd 150
151%files -n python3-%{name}
152%defattr(644,root,root,755)
e24f0ec9
JB
153%{py3_sitescriptdir}/docutils
154%{py3_sitescriptdir}/docutils-%{version}-py*.egg-info
This page took 0.06034 seconds and 4 git commands to generate.