Summary: PEAR - PHP Extension and Application Repository
-Summary(pl): PEAR - rozszerzenie PHP i repozytorium aplikacji
+Summary(pl.UTF-8): PEAR - rozszerzenie PHP i repozytorium aplikacji
Name: php-pear
Version: 1.0
-Release: 10
+Release: 15
Epoch: 4
License: Public Domain
Group: Development/Languages/PHP
-Requires: php-pcre
-Requires: php-xml
Obsoletes: php-pear-additional_classes
Obsoletes: php4-pear
-Provides: php4-pear = %{epoch}:%{version}-%{release}
+Conflicts: php-pear-PEAR < 1:1.4.6-1.3
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
with PHP, please install appropriate php-pear-* (php-pear-PEAR,
php-PEAR-Archive_Tar, etc) packages.
-%description -l pl
+%description -l pl.UTF-8
PEAR (PHP Extension and Application Repository) - rozszerzenie PHP i
repozytorium aplikacji.
-Nale¿y pamiêtaæ, ¿e ten pakiet dostarcza tylko podstawow± strukturê
-katalogów. Aby u¿yæ podstawowych klas PEAR (PEAR.php PEAR/*.php),
-dostarczanych z PHP, nale¿y zainstalowaæ odpowiednie pakiety
+Należy pamiętać, że ten pakiet dostarcza tylko podstawową strukturę
+katalogów. Aby użyć podstawowych klas PEAR (PEAR.php PEAR/*.php),
+dostarczanych z PHP, należy zainstalować odpowiednie pakiety
php-pear-* (php-pear-PEAR, php-pear-Archive_Tar, itp).
%prep
while read dir; do
install -d $RPM_BUILD_ROOT$dir
done <<EOF
+%{php_pear_dir}/.registry
%{php_pear_dir}/Archive
%{php_pear_dir}/Auth
%{php_pear_dir}/Console
%{php_pear_dir}/Contact
%{php_pear_dir}/DB/DataObject
%{php_pear_dir}/Gtk
+%{php_pear_dir}/Gtk2
%{php_pear_dir}/HTML
%{php_pear_dir}/HTML/Template
%{php_pear_dir}/HTML/Table
%{php_pear_dir}/Net
%{php_pear_dir}/Numbers
%{php_pear_dir}/Payment
-%{php_pear_dir}/PEAR
%{php_pear_dir}/PHP
%{php_pear_dir}/Science
%{php_pear_dir}/Services
%{php_pear_dir}/Validate/Finance
EOF
-# registry
-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
+%clean
+rm -rf $RPM_BUILD_ROOT
%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]*
-
-# see 'pear config-show'
-%dir %{php_pear_dir}/data
-%dir %{php_pear_dir}/tests
-
-# registry
-%dir %{php_pear_dir}/.registry
-%ghost %{php_pear_dir}/.filemap
-%ghost %{php_pear_dir}/.lock
+%{php_pear_dir}