packages: php-phpmailer/php-phpmailer.spec - build phpdoc, bundled one is i...

glen glen at pld-linux.org
Thu Apr 26 21:38:50 CEST 2012


Author: glen                         Date: Thu Apr 26 19:38:50 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- build phpdoc, bundled one is incomplete and too old

---- Files affected:
packages/php-phpmailer:
   php-phpmailer.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: packages/php-phpmailer/php-phpmailer.spec
diff -u packages/php-phpmailer/php-phpmailer.spec:1.22 packages/php-phpmailer/php-phpmailer.spec:1.23
--- packages/php-phpmailer/php-phpmailer.spec:1.22	Thu Apr 26 21:24:06 2012
+++ packages/php-phpmailer/php-phpmailer.spec	Thu Apr 26 21:38:44 2012
@@ -15,6 +15,7 @@
 Patch1:		phpmailer-update-et.patch
 Patch2:		tests.patch
 URL:		http://code.google.com/a/apache-extras.org/p/phpmailer/
+BuildRequires:	php-pear-PhpDocumentor
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 BuildRequires:	rpmbuild(macros) >= 1.553
 Requires:	php-common >= 4:%{php_min_version}
@@ -67,7 +68,19 @@
 
 %undos -f php,html,txt README LICENSE
 
-mv docs/5.0-phpdocs phpdoc
+mv docs/5.0-phpdocs phpdoc.orig
+
+%build
+phpdoc --title 'PHPMailer version %{version}' --target phpdoc --defaultpackagename PHPMailer -f 'class.*.php'
+# nuke smarty cache
+rm -rf phpdoc/????????????????????????????????
+rm -rf phpdoc/*/????????????????????????????????
+
+# copy images, phpdoc is likely buggy not doing itself
+sdir=%{php_pear_dir}/data/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templates/earthli/templates/media/images
+install -d phpdoc/media/images
+cp -a $sdir/Constant.png phpdoc/media/images
+cp -a $sdir/Variable.png phpdoc/media/images
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -142,6 +155,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2012/04/26 19:38:44  glen
+- build phpdoc, bundled one is incomplete and too old
+
 Revision 1.22  2012/04/26 19:24:06  glen
 - package phpdocs into -phpdoc
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/php-phpmailer/php-phpmailer.spec?r1=1.22&r2=1.23



More information about the pld-cvs-commit mailing list