]> git.pld-linux.org Git - packages/php-phpmailer.git/blobdiff - php-phpmailer.spec
- build phpdoc, bundled one is incomplete and too old
[packages/php-phpmailer.git] / php-phpmailer.spec
index 9df49b4457bd753c8ce1ac004c924af3a7a5231e..a3ca3944f34f4b197a21cb85a85c3651f35b240c 100644 (file)
@@ -14,6 +14,7 @@ Patch0:               paths.patch
 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}
@@ -66,7 +67,19 @@ Dokumentacja do %{name}.
 
 %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
This page took 0.035888 seconds and 4 git commands to generate.