1 %include /usr/lib/rpm/macros.php
4 %define _pearname %{_class}
6 Summary: %{_pearname} - main PHP PEAR class
7 Summary(pl): %{_pearname} - podstawowa klasa dla PHP PEAR
8 Name: php-pear-%{_pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
15 # Source0-md5: be4300609e4d966a6d68d6ec95942180
16 Source1: %{name}-template.spec
17 Patch0: %{name}-memory.patch
18 Patch1: %{name}-sysconfdir.patch
19 Patch2: %{name}-rpmpkgname.patch
20 Patch3: %{name}-rpmvars.patch
21 Patch4: %{name}-cli.patch
22 Patch5: %{name}-old-api.patch
23 URL: http://pear.php.net/package/PEAR
24 BuildRequires: rpm-php-pearprov >= 4.4.2-11
25 BuildRequires: php-cli
26 BuildRequires: php-pear >= 4:1.0-6
29 Requires: php-pear >= 4:1.0-5.5
30 Requires: php-pear-Archive_Tar >= 1.1
31 Requires: php-pear-Console_Getopt >= 1.2
32 Requires: php-pear-XML_RPC >= 1.4.0
35 Requires: %{name}-core = %{epoch}:%{version}-%{release}
36 Obsoletes: php-pear-PEAR-Command
37 Obsoletes: php-pear-PEAR-Frontend-CLI
38 Obsoletes: php-pear-PEAR-OS
39 Conflicts: php-pear-Archive_Tar = 1.3.0
40 Conflicts: php-pear-PEAR_Frontend_Web < 0.5.0
41 Conflicts: php-pear-PEAR_Frontend_Gtk < 0.4.0
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define _noautoreq 'pear(PEAR/FTP.php)' 'pear(Net/FTP.php)'
48 The PEAR package contains:
49 - the PEAR installer, for creating, distributing and installing
51 - the alpha-quality PEAR_Exception PHP5 error handling mechanism
52 - the beta-quality PEAR_ErrorStack advanced error handling mechanism
53 - the PEAR_Error error handling mechanism
54 - the OS_Guess class for retrieving info about the OS where PHP is
56 - the System class for quick handling of common operations with files
58 - the PEAR base class packages
60 In PEAR status of this package is: %{_status}.
64 - PEAR installer do tworzenia, dystrybucji i instalowania pakietów,
65 - mechanizm PEAR_Exception (w fazie alpha) do obs³ugi b³êdów PHP5,
66 - zaawansowany mechanizm PEAR_ErrorStack (w fazie beta) do obs³ugi
68 - mechanizm obs³ugi b³êdów PEAR_Error,
69 - klasê OS_Guess do pozyskiwania informacji na temat systemu
71 - klasê System do szybkiej obs³ugi typowych operacji na plikach i
73 - podstawow± klasy PEAR.
75 Ta klasa ma w PEAR status: %{_status}.
78 Summary: PEAR core classes
79 Summary(pl): G³ówne klasy PEAR-a
80 Group: Development/Languages/PHP
83 This package includes PEAR core classes:
84 - PEAR class and PEAR_Error
87 and classes for PHP 5:
88 - PEAR_ErrorStack and PEAR_Exception
90 %description core -l pl
91 Ten pakiet zawiera g³ówne klasy PEAR-a:
92 - klasê PEAR i PEAR_Error
96 - PEAR_ErrorStack i PEAR_Exception
107 find '(' -name '*~' -o -name '*.orig' ')' | xargs -r rm -v
110 rm -rf $RPM_BUILD_ROOT
112 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{php_pear_dir},%{_bindir}}
116 php -d output_buffering=1 -d include_path=".:${D}%{php_pear_dir}" ${D}%{php_pear_dir}/pearcmd.php -c ${D}/pearrc "$@"
118 pearcmd config-set doc_dir %{_docdir} || exit
119 pearcmd config-set data_dir %{php_pear_dir}/data || exit
120 pearcmd config-set php_dir %{php_pear_dir} || exit
121 pearcmd config-set test_dir %{php_pear_dir}/tests || exit
122 pearcmd config-set sig_bin %{_bindir}/gpg || exit
123 cp $D/pearrc $RPM_BUILD_ROOT%{_sysconfdir}/pear.conf
125 %pear_package_install
126 cp -a ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
128 sed -e '/^\$''Log: /,$d' %{SOURCE1} > $RPM_BUILD_ROOT%{php_pear_dir}/data/%{_class}/template.spec
129 echo '$''Log: $' >> $RPM_BUILD_ROOT%{php_pear_dir}/data/%{_class}/template.spec
132 rm -rf $RPM_BUILD_ROOT
135 %defattr(644,root,root,755)
137 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pear.conf
138 %attr(755,root,root) %{_bindir}/*
139 %{php_pear_dir}/.registry/*.reg
140 %{php_pear_dir}/pearcmd.php
141 %{php_pear_dir}/peclcmd.php
142 %{php_pear_dir}/PEAR/[!CE]*
143 %{php_pear_dir}/PEAR/ChannelFile*
144 %{php_pear_dir}/PEAR/Command*
145 %{php_pear_dir}/PEAR/Config.php
146 %{php_pear_dir}/PEAR/Common.php
148 %{php_pear_dir}/data/*
151 %defattr(644,root,root,755)
152 %{php_pear_dir}/PEAR.php
153 %{php_pear_dir}/System.php
155 %dir %{php_pear_dir}/PEAR
156 %{php_pear_dir}/PEAR/ErrorStack.php
157 %{php_pear_dir}/PEAR/Exception.php