]> git.pld-linux.org Git - packages/docutils.git/blame - docutils.spec
automatic change: use py_build/py_install macros
[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
2820b502 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
73f498b6 9# Source0-md5: 4622263b62c5c771c03502afa3157768
01dcc6d1 10URL: http://docutils.sourceforge.net/
c3585f11 11BuildRequires: python-devel >= 2.3
2820b502
AM
12BuildRequires: python3-2to3 >= 1:3.5
13BuildRequires: python3-2to3 < 1:3.6
14BuildRequires: python3-devel >= 3.5
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
36a94679 104%py_install
01dcc6d1 105
bffc3c80 106for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do
e24f0ec9 107 mv "${f}" "${f%.py}"
cdcb57cd 108done
109
36a94679 110%py3_install
cdcb57cd 111
112for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do
e24f0ec9 113 mv "${f}" "${f%.py}-3"
bffc3c80
JK
114done
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
121rm -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
This page took 0.068203 seconds and 4 git commands to generate.