packages: php-pear-Services_YouTube/php-pear-Services_YouTube.spec - remove...

glen glen at pld-linux.org
Thu Feb 3 00:09:08 CET 2011


Author: glen                         Date: Wed Feb  2 23:09:08 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- remove smarty cache, move phpdoc to subpkg

---- Files affected:
packages/php-pear-Services_YouTube:
   php-pear-Services_YouTube.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/php-pear-Services_YouTube/php-pear-Services_YouTube.spec
diff -u packages/php-pear-Services_YouTube/php-pear-Services_YouTube.spec:1.4 packages/php-pear-Services_YouTube/php-pear-Services_YouTube.spec:1.5
--- packages/php-pear-Services_YouTube/php-pear-Services_YouTube.spec:1.4	Sun Jan 23 02:03:27 2011
+++ packages/php-pear-Services_YouTube/php-pear-Services_YouTube.spec	Thu Feb  3 00:09:03 2011
@@ -6,7 +6,7 @@
 Summary(pl.UTF-8):	%{_pearname} - klient PHP do API YouTube
 Name:		php-pear-%{_pearname}
 Version:	0.2.2
-Release:	2
+Release:	3
 License:	PHP License
 Group:		Development/Languages/PHP
 Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
@@ -24,6 +24,8 @@
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_phpdocdir		%{_docdir}/phpdoc
+
 # exclude optional dependencies
 %define		_noautoreq	pear(Cache/Lite.*) pear(XML/RPC2.*)
 
@@ -37,14 +39,40 @@
 
 Ta klasa ma w PEAR status: %{_status}.
 
+%package phpdoc
+Summary:	Online manual for %{_pearname}
+Summary(pl.UTF-8):	Dokumentacja online do %{_pearname}
+Group:		Documentation
+Requires:	php-dirs
+
+%description phpdoc
+Documentation for %{_pearname}.
+
+%description phpdoc -l pl.UTF-8
+Dokumentacja do %{_pearname}.
+
 %prep
 %pear_package_setup
 
+mv docs/%{_pearname}/examples .
+mv docs/%{_pearname}/ChangeLog .
+mv docs/%{_pearname}/docs/* docs
+mv docs/Documentation phpdoc
+
+# This is just naughty, Smarty cache files packaged
+find phpdoc -name 26d3399f63abd43a7d72f8c21440dcb0 | xargs rm -rv
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
 %pear_package_install
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+install -d $RPM_BUILD_ROOT%{_phpdocdir}/%{_pearname}
+cp -a phpdoc/* $RPM_BUILD_ROOT%{_phpdocdir}/%{_pearname}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -56,17 +84,27 @@
 %files
 %defattr(644,root,root,755)
 %doc install.log optional-packages.txt
-%doc docs/Services_YouTube/{docs,examples,ChangeLog}
+%doc ChangeLog
 %{php_pear_dir}/.registry/*.reg
 %{php_pear_dir}/Services/YouTube
 %{php_pear_dir}/Services/YouTube.php
 
+%{_examplesdir}/%{name}-%{version}
+
+%files phpdoc
+%defattr(644,root,root,755)
+%doc docs/tutorials.html
+%{_phpdocdir}/%{_pearname}
+
 %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  2011/02/02 23:09:03  glen
+- remove smarty cache, move phpdoc to subpkg
+
 Revision 1.4  2011/01/23 01:03:27  sparky
 - dropped -tests subpackage
 
@@ -79,4 +117,3 @@
 
 Revision 1.1  2009/01/07 00:31:37  adamg
 - new
-
================================================================

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



More information about the pld-cvs-commit mailing list