1 %include /usr/lib/rpm/macros.php
4 %define _pearname %{_class}
5 %define _noautoreq 'pear(PEAR/FTP.php)'
7 Summary: %{_pearname} - main PHP PEAR class
8 Summary(pl): %{_pearname} - podstawowa klasa dla PHP PEAR
9 Name: php-pear-%{_pearname}
14 Group: Development/Languages/PHP
15 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
16 # Source0-md5: 8a1cf99a637d5420b7749a1c3dfaceb5
17 Source1: %{name}-template.spec
18 Patch0: %{name}-memory.patch
19 Patch1: %{name}-sysconfdir.patch
20 Patch2: %{name}-rpmpkgname.patch
21 Patch3: %{name}-rpmvars.patch
22 URL: http://pear.php.net/package/PEAR
23 BuildRequires: rpm-php-pearprov >= 4.4.2-11
24 BuildRequires: php-pear >= 4:1.0-6
25 Requires: php-pear >= 4:1.0-5.5
28 Obsoletes: php-pear-PEAR-Command
29 Obsoletes: php-pear-PEAR-Frontend-CLI
30 Obsoletes: php-pear-PEAR-OS
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 The PEAR package contains:
36 - the PEAR installer, for creating, distributing and installing
38 - the alpha-quality PEAR_Exception PHP5 error handling mechanism
39 - the beta-quality PEAR_ErrorStack advanced error handling mechanism
40 - the PEAR_Error error handling mechanism
41 - the OS_Guess class for retrieving info about the OS where PHP is
43 - the System class for quick handling of common operations with files
45 - the PEAR base class packages
47 In PEAR status of this package is: %{_status}.
51 - PEAR installer do tworzenia, dystrybucji i instalowania pakietów,
52 - mechanizm PEAR_Exception (w fazie alpha) do obs³ugi b³êdów PHP5,
53 - zaawansowany mechanizm PEAR_ErrorStack (w fazie beta) do obs³ugi
55 - mechanizm obs³ugi b³êdów PEAR_Error,
56 - klasê OS_Guess do pozyskiwania informacji na temat systemu
58 - klasê System do szybkiej obs³ugi typowych operacji na plikach i
60 - podstawow± klasy PEAR.
62 Ta klasa ma w PEAR status: %{_status}.
71 find '(' -name '*~' -o -name '*.orig' ')' | xargs -r rm -v
74 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{php_pear_dir},%{_bindir}}
80 php -d output_buffering=1 -d include_path=".:${D}%{php_pear_dir}" ${D}%{php_pear_dir}/pearcmd.php -c ${D}/pearrc "$@"
82 pearcmd config-set doc_dir %{_docdir} || exit
83 pearcmd config-set data_dir %{php_pear_dir}/data || exit
84 pearcmd config-set php_dir %{php_pear_dir} || exit
85 pearcmd config-set test_dir %{php_pear_dir}/tests || exit
86 pearcmd config-set sig_bin %{_bindir}/gpg || exit
87 cp $D/pearrc $RPM_BUILD_ROOT%{_sysconfdir}/pear.conf
90 cp -a ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
92 install %{SOURCE1} $RPM_BUILD_ROOT%{php_pear_dir}/data/%{_class}/template.spec
95 rm -rf $RPM_BUILD_ROOT
98 %defattr(644,root,root,755)
100 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pear.conf
101 %attr(755,root,root) %{_bindir}/*
102 %{php_pear_dir}/.registry/*.reg
103 %{php_pear_dir}/*.php
105 %{php_pear_dir}/PEAR/*
107 %{php_pear_dir}/data/*