From ebab167b1db2ce5a48b046d0a1d4db6f81005145 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 26 Apr 2012 19:38:44 +0000 Subject: [PATCH] - build phpdoc, bundled one is incomplete and too old Changed files: php-phpmailer.spec -> 1.23 --- php-phpmailer.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/php-phpmailer.spec b/php-phpmailer.spec index 9df49b4..a3ca394 100644 --- a/php-phpmailer.spec +++ b/php-phpmailer.spec @@ -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 -- 2.43.0