]> git.pld-linux.org Git - packages/php-phpmailer.git/commitdiff
- build phpdoc, bundled one is incomplete and too old auto/ac/php-phpmailer-5_2_1-2 auto/th/php-phpmailer-5_2_1-2
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 26 Apr 2012 19:38:44 +0000 (19:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-phpmailer.spec -> 1.23

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.048807 seconds and 4 git commands to generate.