1 Summary: PEAR - PHP Extension and Application Repository
2 Summary(pl.UTF-8): PEAR - rozszerzenie PHP i repozytorium aplikacji
8 Group: Development/Languages/PHP
9 Source0: php-channel-prov.php
10 Source1: channel-phing.xml
11 Source2: channel-phpdb.xml
12 Source3: channel-firephp.xml
13 Source4: channel-symfony.xml
14 Source5: channel-phpunit.xml
15 Source6: channel-phpseclib.xml
16 Source7: channel-horde.xml
17 Source8: channel-rc.xml
18 Source9: channel-ezc.xml
19 BuildRequires: /usr/bin/php
20 BuildRequires: php-pear-PEAR >= 1:1.9.0
21 BuildRequires: rpmbuild(macros) >= 1.570
22 Obsoletes: php-pear-additional_classes
24 Conflicts: php-pear-PEAR < 1:1.7.2-10
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define __reg_provides php %{SOURCE0}
30 # find channel provides
31 %define _use_internal_dependency_generator 0
32 %define __find_provides %{__reg_provides}
33 %define __find_requires %{nil}
35 # avoid rpm 4.4.9 adding rm -rf buildroot, we need the dirs to check consistency
36 %define __spec_clean_body %{nil}
39 PEAR - PHP Extension and Application Repository.
41 Please note that this package provides only basic directory structure.
42 If you want to use base PEAR classes (PEAR.php, PEAR/*.php), that come
43 with PHP, please install appropriate php-pear-* (php-pear-PEAR,
44 php-PEAR-Archive_Tar, etc) packages.
46 %description -l pl.UTF-8
47 PEAR (PHP Extension and Application Repository) - rozszerzenie PHP i
48 repozytorium aplikacji.
50 Należy pamiętać, że ten pakiet dostarcza tylko podstawową strukturę
51 katalogów. Aby użyć podstawowych klas PEAR (PEAR.php PEAR/*.php),
52 dostarczanych z PHP, należy zainstalować odpowiednie pakiety
53 php-pear-* (php-pear-PEAR, php-pear-Archive_Tar, itp).
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{php_pear_dir}/{.registry,bin,data,tests}
63 %{__pear} -c pearrc config-set php_dir $RPM_BUILD_ROOT%{php_pear_dir}
64 %{__pear} -c pearrc channel-add %{SOURCE1}
65 %{__pear} -c pearrc channel-add %{SOURCE2}
66 %{__pear} -c pearrc channel-add %{SOURCE3}
67 %{__pear} -c pearrc channel-add %{SOURCE4}
68 %{__pear} -c pearrc channel-add %{SOURCE5}
69 %{__pear} -c pearrc channel-add %{SOURCE6}
70 %{__pear} -c pearrc channel-add %{SOURCE7}
71 %{__pear} -c pearrc channel-add %{SOURCE8}
72 %{__pear} -c pearrc channel-add %{SOURCE9}
75 install -d $RPM_BUILD_ROOT$dir
77 %{php_pear_dir}/Archive
80 %{php_pear_dir}/Console
81 %{php_pear_dir}/Contact
83 %{php_pear_dir}/DB/DataObject
86 %{php_pear_dir}/Genealogy
90 %{php_pear_dir}/HTML/QuickForm
91 %{php_pear_dir}/HTML/Table
92 %{php_pear_dir}/HTML/Template
94 %{php_pear_dir}/HTTP/WebDAV
95 %{php_pear_dir}/HTTP/WebDAV/Tools
102 %{php_pear_dir}/Net/UserAgent
103 %{php_pear_dir}/Numbers
105 %{php_pear_dir}/Payment
107 %{php_pear_dir}/Science
108 %{php_pear_dir}/Services
109 %{php_pear_dir}/Structures
110 %{php_pear_dir}/Testing
112 %{php_pear_dir}/Text/CAPTCHA
113 %{php_pear_dir}/Text/Spell
115 %{php_pear_dir}/Validate
116 %{php_pear_dir}/Validate/Finance
117 %{php_pear_dir}/VersionControl
122 cd $RPM_BUILD_ROOT%{php_pear_dir}
124 check_channel_dirs() {
125 RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm
127 find .channels .registry -type d | LC_ALL=C sort > $TMPFILE
129 # find finds also '.', so use option -B for diff
130 if rpm -qplv %{_rpmdir}/$RPMFILE | sed -ne '/^d/s,^.*%{php_pear_dir}/\.,.,p' | LC_ALL=C sort | diff -uB $TMPFILE - ; then
131 rm -rf $RPM_BUILD_ROOT
133 echo -e "\nNot so good, some channel directories are not included in package\n"
141 %defattr(644,root,root,755)
145 %ghost %{php_pear_dir}/.depdblock
146 %ghost %{php_pear_dir}/.depdb
147 %ghost %{php_pear_dir}/.filemap
148 %ghost %{php_pear_dir}/.lock
150 %dir %{php_pear_dir}/.registry
151 %dir %{php_pear_dir}/.channels
152 %dir %{php_pear_dir}/.channels/.alias
155 %{php_pear_dir}/.channels/__uri.reg
156 %{php_pear_dir}/.registry/.channel.__uri
158 %{php_pear_dir}/.channels/.alias/pear.txt
159 %{php_pear_dir}/.channels/pear.php.net.reg
161 %{php_pear_dir}/.channels/.alias/pecl.txt
162 %{php_pear_dir}/.channels/pecl.php.net.reg
163 %{php_pear_dir}/.registry/.channel.pecl.php.net
165 %{php_pear_dir}/.channels/.alias/phpdocs.txt
166 %{php_pear_dir}/.channels/doc.php.net.reg
167 %{php_pear_dir}/.registry/.channel.doc.php.net
170 %{php_pear_dir}/.channels/.alias/phpunit.txt
171 %{php_pear_dir}/.channels/pear.phpunit.de.reg
172 %{php_pear_dir}/.registry/.channel.pear.phpunit.de
174 %{php_pear_dir}/.channels/.alias/phing.txt
175 %{php_pear_dir}/.channels/pear.phing.info.reg
176 %{php_pear_dir}/.registry/.channel.pear.phing.info
178 %{php_pear_dir}/.channels/.alias/phpdb.txt
179 %{php_pear_dir}/.channels/pear.phpdb.org.reg
180 %{php_pear_dir}/.registry/.channel.pear.phpdb.org
182 %{php_pear_dir}/.channels/.alias/firephp.txt
183 %{php_pear_dir}/.channels/pear.firephp.org.reg
184 %{php_pear_dir}/.registry/.channel.pear.firephp.org
186 %{php_pear_dir}/.channels/.alias/symfony.txt
187 %{php_pear_dir}/.channels/pear.symfony-project.com.reg
188 %{php_pear_dir}/.registry/.channel.pear.symfony-project.com
190 %{php_pear_dir}/.channels/.alias/phpseclib.txt
191 %{php_pear_dir}/.channels/phpseclib.sourceforge.net.reg
192 %{php_pear_dir}/.registry/.channel.phpseclib.sourceforge.net
194 %{php_pear_dir}/.channels/.alias/horde.txt
195 %{php_pear_dir}/.channels/pear.horde.org.reg
196 %{php_pear_dir}/.registry/.channel.pear.horde.org
198 %{php_pear_dir}/.channels/.alias/rc.txt
199 %{php_pear_dir}/.channels/pear.roundcube.net.reg
200 %{php_pear_dir}/.registry/.channel.pear.roundcube.net
202 %{php_pear_dir}/.channels/.alias/ezc.txt
203 %{php_pear_dir}/.channels/components.ez.no.reg
204 %{php_pear_dir}/.registry/.channel.components.ez.no