packages: python-babel/python-babel.spec - apidocs subpackage, clean py sou...

glen glen at pld-linux.org
Tue Jun 15 16:57:21 CEST 2010


Author: glen                         Date: Tue Jun 15 14:57:21 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- apidocs subpackage, clean py sources

---- Files affected:
packages/python-babel:
   python-babel.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/python-babel/python-babel.spec
diff -u packages/python-babel/python-babel.spec:1.4 packages/python-babel/python-babel.spec:1.5
--- packages/python-babel/python-babel.spec:1.4	Tue Jun 15 16:30:27 2010
+++ packages/python-babel/python-babel.spec	Tue Jun 15 16:57:16 2010
@@ -1,4 +1,10 @@
 # $Revision$, $Date$
+# 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
@@ -23,9 +29,18 @@
 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
 
@@ -35,24 +50,35 @@
 	--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
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2010/06/15 14:57:16  glen
+- apidocs subpackage, clean py sources
+
 Revision 1.4  2010/06/15 14:30:27  glen
 - rename to python-babel (match module name)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-babel/python-babel.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list