template-specs: php-pear.spec - update

glen glen at pld-linux.org
Fri Aug 20 18:42:37 CEST 2010


Author: glen                         Date: Fri Aug 20 16:42:37 2010 GMT
Module: template-specs                Tag: HEAD
---- Log message:
- update

---- Files affected:
template-specs:
   php-pear.spec (1.37 -> 1.38) 

---- Diffs:

================================================================
Index: template-specs/php-pear.spec
diff -u template-specs/php-pear.spec:1.37 template-specs/php-pear.spec:1.38
--- template-specs/php-pear.spec:1.37	Tue Jan 26 08:27:26 2010
+++ template-specs/php-pear.spec	Fri Aug 20 18:42:32 2010
@@ -1,15 +1,18 @@
 # $Revision$, $Date$
 #
 # NOTE
-# - you should use 'pear make-rpm-spec PEARPACKAGE' instead of this template
-#   this file exists just for a reference when updating existing packages
+# - You should use pear instead of this template to create new specs:
+#   $ pear download PEAR_PackageFileManager2
+#   $ pear make-rpm-spec PEAR_PackageFileManager2-1.0.1.tgz
+#   Wrote RPM spec file php-pear-PEAR_PackageFileManager2.spec
+#
+#   This file exists just for a reference when updating existing packages
 #
 %include	/usr/lib/rpm/macros.php
 %define		_class		class
 %define		_subclass	subclass
 %define		_status		stable
 %define		_pearname	%{_class}_%{_subclass}
-
 Summary:	%{_pearname} -
 Summary(pl.UTF-8):	%{_pearname} -
 Name:		php-pear-%{_pearname}
@@ -27,10 +30,10 @@
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # exclude optional dependencies
-%define		_noautoreq	'pear(XML/Beautifier/.*)'
+%define		_noautoreq	pear(XML/Beautifier/.*)
 
 # included in tests
-%define		_noautoreq 'pear(HTML_TestListener.php)' 'pear(TestUnit.php)'
+%define		_noautoreq pear(HTML_TestListener.php) pear(TestUnit.php)
 
 %description
 ...
@@ -46,9 +49,9 @@
 Summary:	Tests for PEAR::%{_pearname}
 Summary(pl.UTF-8):	Testy dla PEAR::%{_pearname}
 Group:		Development/Languages/PHP
-AutoReq:	no
 Requires:	%{name} = %{version}-%{release}
 AutoProv:	no
+AutoReq:	no
 
 %description tests
 Tests for PEAR::%{_pearname}.
@@ -59,6 +62,9 @@
 %prep
 %pear_package_setup
 
+# optional ext not reported properly. do it manually
+echo '%{name} can optionally use PHP extension "mhash"' >> install.log
+
 ## docs fixups
 
 # pear/docs -> docs
@@ -91,6 +97,7 @@
 mv ./%{php_pear_dir}/tests/{*,%{_pearname}}
 
 # examples fixups
+mv ./%{php_pear_dir}/examples .
 mv ./%{php_pear_dir}/%{_class}/examples .
 mv docs/%{_pearname}/examples .
 mv docs/%{_pearname}/docs/examples .
@@ -105,8 +112,12 @@
 install -p ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
 
 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir},%{_examplesdir}/%{name}-%{version}}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+# don't care for tests
+rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{_pearname}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -137,6 +148,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.38  2010/08/20 16:42:32  glen
+- update
+
 Revision 1.37  2010/01/26 07:27:26  glen
 - more examples moving around
 
================================================================

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



More information about the pld-cvs-commit mailing list