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