5 Summary: Tool for extracting documentation from Python source code
6 Summary(pl.UTF-8): Narzędzie do generowania dokumentacji ze źródeł programów napisanych w języku Python
8 Version: %(echo %ver | sed 's/_/./g')
11 Group: Development/Tools
12 Source0: http://dl.sourceforge.net/happydoc/%{pname}_r%{ver}.tar.gz
13 # Source0-md5: 7791988bb7498d4281636ab5f5852e67
14 URL: http://happydoc.sourceforge.net/
15 %pyrequires_eq python-modules
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 HappyDoc is a tool for extracting documentation from Python source
21 code. It differs from other such applications by the fact that it uses
22 the parse tree for a module to derive the information used in its
23 output, rather that importing the module directly. This allows the
24 user to generate documentation for modules which need special context
27 %description -l pl.UTF-8
28 HappyDoc jest narzędziem do generowania dokumentacji ze źródeł
29 programów napisanych w języku Python. Program ten, w przeciwności do
30 innych aplikacji tego typu, które muszą uruchomić moduł, analizuje
31 strukturę danego modułu i na jej podstawie tworzy dokumentację.
32 Pozwala to na generowanie dokumentacji dla tych modułów/programów,
33 które muszą być uruchamiane w odpowiednim środowisku.
36 %setup -q -n %{pname}-r%{ver}
39 rm -rf $RPM_BUILD_ROOT
41 PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir}
43 python ./setup.py install \
45 --root=$RPM_BUILD_ROOT
47 find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py | xargs rm -f
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %attr(755,root,root) %{_bindir}/*
56 %{py_sitescriptdir}/happydoclib