SPECS: php-pear-PhpDocumentor.spec - created tests subpackage
glen
glen at pld-linux.org
Fri Sep 30 00:30:36 CEST 2005
Author: glen Date: Thu Sep 29 22:30:36 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- created tests subpackage
---- Files affected:
SPECS:
php-pear-PhpDocumentor.spec (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SPECS/php-pear-PhpDocumentor.spec
diff -u SPECS/php-pear-PhpDocumentor.spec:1.12 SPECS/php-pear-PhpDocumentor.spec:1.13
--- SPECS/php-pear-PhpDocumentor.spec:1.12 Thu Sep 29 21:58:12 2005
+++ SPECS/php-pear-PhpDocumentor.spec Fri Sep 30 00:30:30 2005
@@ -3,6 +3,7 @@
# - solve requires issue (something like patch0, but a bit extended?)
# - maybe PhpDocumentor.ini should go to /etc/php ?
# - subpackage for -tutorial?
+# - subpackage docBuilder for web interface in %{php_pear_dir}/data/%{_pearname}
%include /usr/lib/rpm/macros.php
%define _class PhpDocumentor
%define _status beta
@@ -13,7 +14,8 @@
Name: php-pear-%{_pearname}
Version: 1.3.0
%define _rc RC3
-Release: 0.%{_rc}.20
+%define _rel 21.1
+Release: 0.%{_rc}.%{_rel}
License: PHP 3.00
Group: Development/Languages/PHP
Source0: http://pear.php.net/get/%{_pearname}-%{version}%{_rc}.tgz
@@ -31,9 +33,9 @@
%define _smartyplugindir %{php_pear_dir}/Smarty/plugins
-# don't require %{php_pear_dir}/data files we provide.
+# exclude optional dependencies
# TODO treemenu needs patching (removing from this package)
-# pear/PhpDocumentor can optionally use package "pear/XML_Beautifier" (version >= 1.1)
+# don't require %{php_pear_dir}/data files we provide.
%define _noautoreq 'pear(phpDocumentor/.*)' 'pear(%{php_pear_dir}/data/.*)' 'pear(XML/Beautifier/.*)' 'pear(HTML_TreeMenu-1.1.2/TreeMenu.php)'
%description
@@ -120,6 +122,19 @@
Ta klasa ma w PEAR status: %{_status}.
+%package tests
+Summary: Tests for PEAR::%{_pearname}
+Summary(pl): Testy dla PEAR::%{_pearname}
+Group: Development
+Requires: %{name} = %{epoch}:%{version}-%{release}
+AutoReq: no
+
+%description tests
+Tests for PEAR::%{_pearname}.
+
+%description tests -l pl
+Testy dla PEAR::%{_pearname}.
+
%prep
%pear_package_setup
@@ -131,6 +146,8 @@
#%patch1 -p1
%patch2 -p1
+rm -f docs/%{_pearname}/PHPLICENSE # PHP License
+
# remove bundled Smarty. use system one.
mkdir plugins
mv ./%{php_pear_dir}/PhpDocumentor/phpDocumentor/Smarty-*/libs/plugins/\
@@ -138,18 +155,9 @@
rm -rf ./%{php_pear_dir}/PhpDocumentor/phpDocumentor/Smarty-*
rm -rf ./%{php_pear_dir}/data/PhpDocumentor/phpDocumentor/Smarty-*
-# useless
-cd ./%{php_pear_dir}
-rm -rf tests/PhpDocumentor/Documentation/tests
-
-# and these. correct if it's wrong
-cd data/PhpDocumentor/phpDocumentor/Converters/HTML
-rm -f \
- Smarty/templates/default/templates/layout.css \
- Smarty/templates/default/templates/style.css \
- frames/templates/DOM/l0l33t/templates/media/bg_left.png \
- frames/templates/DOM/l0l33t/templates/media/minus.gif \
- frames/templates/DOM/l0l33t/templates/media/plus.gif \
+install -d docs/%{_pearname}
+mv ./%{php_pear_dir}/%{_class}/scripts docs/%{_pearname}
+mv ./%{_bindir}/scripts/* docs/%{_pearname}/scripts
%install
rm -rf $RPM_BUILD_ROOT
@@ -170,8 +178,7 @@
%files
%defattr(644,root,root,755)
%doc install.log optional-packages.txt
-%doc docs/%{_pearname}/{Authors,ChangeLog,FAQ,INSTALL,PHPLICENSE.txt,README,Release*}
-%doc docs/%{_pearname}/{Documentation,tutorials}
+%doc docs/%{_pearname}/*
%{php_pear_dir}/.registry/*.reg
%attr(755,root,root) %{_bindir}/phpdoc
@@ -181,12 +188,19 @@
# extra Smarty plugins
%{_smartyplugindir}/*
+%files tests
+%defattr(644,root,root,755)
+%{php_pear_dir}/tests/*
+
%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.13 2005/09/29 22:30:30 glen
+- created tests subpackage
+
Revision 1.12 2005/09/29 19:58:12 glen
- updated 1.3.0RC3 from DEVEL. this one at least works
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-pear-PhpDocumentor.spec?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list