From d0c90bfc575be7e169bdf7c7be947997797feb0c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 18 Sep 2005 11:51:49 +0000 Subject: [PATCH] - add tests dir, create empty .filemap and .lock Changed files: php-pear.spec -> 1.13 --- php-pear.spec | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/php-pear.spec b/php-pear.spec index 4869def..a3d9e52 100644 --- a/php-pear.spec +++ b/php-pear.spec @@ -2,7 +2,7 @@ Summary: PEAR - PHP Extension and Application Repository 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 @@ -14,8 +14,6 @@ Provides: php4-pear = %{epoch}:%{version}-%{release} BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _sysconfdir /etc/pear - %description PEAR - PHP Extension and Application Repository. @@ -37,7 +35,7 @@ php-pear-* (php-pear-PEAR, php-pear-Archive_Tar, itp). %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 @@ -67,14 +65,24 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{php_pear_dir}/.registry} > $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@DEVEL, perhaps others +# see 'pear config-show' %dir %{php_pear_dir}/data +%dir %{php_pear_dir}/tests # registry %dir %{php_pear_dir}/.registry -- 2.44.0