]> git.pld-linux.org Git - packages/python-babel.git/commitdiff
- apidocs subpackage, clean py sources
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 15 Jun 2010 14:57:16 +0000 (14:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-babel.spec -> 1.5

python-babel.spec

index d2223248abe7172a017e89bf98f3ee365d909a27..5951291ad87aef272ee7c3489467a207db63a743 100644 (file)
@@ -1,3 +1,9 @@
+# TODO
+# - lang tag /usr/share/python*/site-packages/babel/localedata/*
+#
+# Conditional build:
+%bcond_without apidocs         # do not build and package API docs
+
 %define                pkgname babel
 Summary:       Babel Python library
 Summary(pl.UTF-8):     Biblioteka Babel do Pythona
@@ -22,9 +28,18 @@ Babel is a Python library that provides an integrated collection of
 utilities that assist with internationalizing and localizing Python
 applications (in particular web-based applications).
 
+%package apidocs
+Summary:       Python Babel API documentation
+Group:         Documentation
+
+%description apidocs
+Python Babel API documentation.
+
 %prep
 %setup -q -n Babel-%{version}
 
+mv doc/api apidoc
+
 %build
 %{__python} setup.py build
 
@@ -34,14 +49,22 @@ rm -rf $RPM_BUILD_ROOT
        --optimize=2 \
        --root=$RPM_BUILD_ROOT
 
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc COPYING README.txt doc
+%doc COPYING README.txt doc/*
 %attr(755,root,root) %{_bindir}/pybabel
 %{py_sitescriptdir}/babel
 %if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/*.egg-info
 %endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc apidoc/*
+%endif
This page took 0.142805 seconds and 4 git commands to generate.