SPECS: php-pear-PHP_CompatInfo.spec - add Renderers subpackage for minimal ...

glen glen at pld-linux.org
Wed Oct 22 19:00:28 CEST 2008


Author: glen                         Date: Wed Oct 22 17:00:28 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add Renderers subpackage for minimal base dependency; rel 3

---- Files affected:
SPECS:
   php-pear-PHP_CompatInfo.spec (1.38 -> 1.39) 

---- Diffs:

================================================================
Index: SPECS/php-pear-PHP_CompatInfo.spec
diff -u SPECS/php-pear-PHP_CompatInfo.spec:1.38 SPECS/php-pear-PHP_CompatInfo.spec:1.39
--- SPECS/php-pear-PHP_CompatInfo.spec:1.38	Wed Oct 22 09:52:20 2008
+++ SPECS/php-pear-PHP_CompatInfo.spec	Wed Oct 22 19:00:22 2008
@@ -1,6 +1,4 @@
 # $Revision$, $Date$
-# TODO
-# - renderers should be optional?
 %include	/usr/lib/rpm/macros.php
 %define		_class		PHP
 %define		_subclass	CompatInfo
@@ -10,7 +8,7 @@
 Summary(pl.UTF-8):	%{_pearname} - określanie minimalnych wymagań programu
 Name:		php-pear-%{_pearname}
 Version:	1.8.1
-Release:	2
+Release:	3
 License:	New BSD
 Group:		Development/Languages/PHP
 Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
@@ -20,8 +18,11 @@
 BuildRequires:	php-pear-PEAR
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 BuildRequires:	rpmbuild(macros) >= 1.300
-Requires:	php(tokenizer)
 Requires:	php-pear
+Requires:	php-pear-Event_Dispatcher >= 1.0.0
+Requires:	php-pear-File_Find >= 1.3.0
+Requires:	php-pear-PEAR-core >= 1:1.5.4
+Requires:	php(tokenizer)
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -57,12 +58,23 @@
 %description cli -l pl.UTF-8
 Interfejs linii poleceń dla PHP_CompatInfo.
 
+# could make subpkg for each, but that's imho overkill, just want base package
+# being minimal for rpm-php-pearprov.
+%package Renderers
+Summary:	Additional format Renderers for PHP_CompatInfo
+Group:		Development/Languages/PHP
+Requires:	%{name} = %{version}-%{release}
+
+%description Renderers
+Additional format Renderers for PHP_CompatInfo
+
 %package tests
 Summary:	Tests for PEAR::%{_pearname}
 Summary(pl.UTF-8):	Testy dla PEAR::%{_pearname}
 Group:		Development
-Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	%{name} = %{version}-%{release}
 AutoReq:	no
+AutoProv:	no
 
 %description tests
 Tests for PEAR::%{_pearname}.
@@ -92,16 +104,36 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
+	cat %{_docdir}/%{name}-%{version}/optional-packages.txt
+fi
+
 %files
 %defattr(644,root,root,755)
-%doc install.log
+%doc install.log optional-packages.txt
 %{php_pear_dir}/.registry/*.reg
 %{php_pear_dir}/%{_class}/CompatInfo.php
+%{php_pear_dir}/%{_class}/%{_subclass}/Parser.php
+%{php_pear_dir}/%{_class}/%{_subclass}/Renderer.php
+%{php_pear_dir}/%{_class}/%{_subclass}/const_array.php
+%{php_pear_dir}/%{_class}/%{_subclass}/func_array.php
 %dir %{php_pear_dir}/%{_class}/%{_subclass}
-%{php_pear_dir}/%{_class}/%{_subclass}/Renderer
-%{php_pear_dir}/%{_class}/%{_subclass}/*.php
+%dir %{php_pear_dir}/%{_class}/%{_subclass}/Renderer
+%{php_pear_dir}/%{_class}/%{_subclass}/Renderer/Null.php
+
+%files Renderers
+%defattr(644,root,root,755)
+%{php_pear_dir}/%{_class}/%{_subclass}/Renderer/Array.php
+%{php_pear_dir}/%{_class}/%{_subclass}/Renderer/Csv.php
+%{php_pear_dir}/%{_class}/%{_subclass}/Renderer/Html.php
+%{php_pear_dir}/%{_class}/%{_subclass}/Renderer/Text.php
+%{php_pear_dir}/%{_class}/%{_subclass}/Renderer/Xml.php
+
+# CSS for HTML Renderer
 %{php_pear_dir}/data/%{_pearname}
 
+# examples use other Renderers than null, so packaged here
 %{_examplesdir}/%{name}-%{version}
 
 %files cli
@@ -119,6 +151,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.39  2008/10/22 17:00:22  glen
+- add Renderers subpackage for minimal base dependency; rel 3
+
 Revision 1.38  2008/10/22 07:52:20  glen
 - package examples to examplesdir
 - less subdirs for tests; rel 2
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php-pear-PHP_CompatInfo.spec?r1=1.38&r2=1.39&f=u



More information about the pld-cvs-commit mailing list