SPECS: php-pear.spec - add tests dir, create empty .filemap and .lock

glen glen at pld-linux.org
Sun Sep 18 13:51:54 CEST 2005


Author: glen                         Date: Sun Sep 18 11:51:54 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add tests dir, create empty .filemap and .lock

---- Files affected:
SPECS:
   php-pear.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SPECS/php-pear.spec
diff -u SPECS/php-pear.spec:1.12 SPECS/php-pear.spec:1.13
--- SPECS/php-pear.spec:1.12	Sun Sep  4 17:03:55 2005
+++ SPECS/php-pear.spec	Sun Sep 18 13:51:49 2005
@@ -3,7 +3,7 @@
 Summary(pl):	PEAR - rozszerzenie PHP i repozytorium aplikacji
 Name:		php-pear
 Version:	1.0
-Release:	5
+Release:	5.5
 Epoch:		4
 License:	Public Domain
 Group:		Development/Languages/PHP
@@ -15,8 +15,6 @@
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_sysconfdir /etc/pear
-
 %description
 PEAR - PHP Extension and Application Repository.
 
@@ -38,7 +36,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}/data
+install -d $RPM_BUILD_ROOT%{php_pear_dir}/{data,tests}
 
 while read dir; do
 	install -d $RPM_BUILD_ROOT$dir
@@ -68,14 +66,24 @@
 > $RPM_BUILD_ROOT%{php_pear_dir}/.filemap
 > $RPM_BUILD_ROOT%{php_pear_dir}/.lock
 
+%post
+umask 002
+if [ ! -e %{php_pear_dir}/.filemap ]; then
+	touch %{php_pear_dir}/.filemap
+fi
+if [ ! -e %{php_pear_dir}/.lock ]; then
+	touch %{php_pear_dir}/.lock
+fi
+
 %files
 %defattr(644,root,root,755)
 %dir %{php_pear_dir}
 # LANG=C is in 'prep', so this should work in locales like et_EE where [a-z] does not specify whole alphabet
 %{php_pear_dir}/[A-Z]*
 
-# for php-pear-phpDocumentor at DEVEL, perhaps others
+# see 'pear config-show'
 %dir %{php_pear_dir}/data
+%dir %{php_pear_dir}/tests
 
 # registry
 %dir %{php_pear_dir}/.registry
@@ -88,6 +96,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2005/09/18 11:51:49  glen
+- add tests dir, create empty .filemap and .lock
+
 Revision 1.12  2005/09/04 15:03:55  adamg
 - add MP3/ directory
 - release 5
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php-pear.spec?r1=1.12&r2=1.13&f=u




More information about the pld-cvs-commit mailing list