]>
Commit | Line | Data |
---|---|---|
25de18da | 1 | Summary: PEAR - PHP Extension and Application Repository |
76e800da | 2 | Summary(pl.UTF-8): PEAR - rozszerzenie PHP i repozytorium aplikacji |
25de18da | 3 | Name: php-pear |
01f97755 | 4 | Version: 1.4 |
eedd2fcc | 5 | Release: 2 |
25de18da ER |
6 | Epoch: 4 |
7 | License: Public Domain | |
8 | Group: Development/Languages/PHP | |
3e35a10f | 9 | Source0: php-channel-prov.php |
6d85ce34 | 10 | Source100: update-channels.sh |
799471e8 ER |
11 | Source1: channel-phing.xml |
12 | Source2: channel-phpdb.xml | |
fcc14391 | 13 | Source3: channel-firephp.xml |
cdfa5e00 | 14 | Source4: channel-symfony.xml |
3e35a10f ER |
15 | Source5: channel-phpunit.xml |
16 | Source6: channel-phpseclib.xml | |
1275fa38 | 17 | Source7: channel-horde.xml |
cdfa5e00 | 18 | Source8: channel-rc.xml |
d9ff93b5 | 19 | Source9: channel-ezc.xml |
4c5242d9 | 20 | Source10: channel-propel.xml |
a9af1509 | 21 | Source11: channel-docblox.xml |
d92a3b44 | 22 | Source12: channel-michelf.xml |
f84845e8 ER |
23 | Source13: channel-phpmd.xml |
24 | Source14: channel-pdepend.xml | |
5f88c87c | 25 | Source15: channel-symfony2.xml |
d1682f5e | 26 | Source16: channel-saucelabs.xml |
73b1fcbc | 27 | Source17: channel-twig.xml |
3ba22036 | 28 | Source18: channel-zz.xml |
7a1a8238 | 29 | Source19: channel-theseer.xml |
7e5dea50 | 30 | Source20: channel-indeyets.xml |
237c2312 | 31 | Source21: channel-phpdoc.xml |
902a69a3 | 32 | Source22: channel-bartlett.xml |
924f9510 | 33 | BuildRequires: /usr/bin/php |
3d75bfd5 | 34 | BuildRequires: php-pear-PEAR >= 1:1.9.0 |
c827a14e | 35 | BuildRequires: rpmbuild(macros) >= 1.570 |
eedd2fcc | 36 | Requires: php-dirs >= 1.6-1 |
25de18da | 37 | Obsoletes: php-pear-additional_classes |
109b2b0a | 38 | Obsoletes: php4-pear |
448d9ae1 | 39 | Conflicts: php-pear-PEAR < 1:1.7.2-10 |
25de18da ER |
40 | BuildArch: noarch |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
c6fd9bb8 | 43 | %define __reg_provides %{__php} %{SOURCE0} |
924f9510 | 44 | |
57d254d6 | 45 | # find channel provides |
924f9510 ER |
46 | %define _use_internal_dependency_generator 0 |
47 | %define __find_provides %{__reg_provides} | |
48 | %define __find_requires %{nil} | |
49 | ||
57d254d6 ER |
50 | # avoid rpm 4.4.9 adding rm -rf buildroot, we need the dirs to check consistency |
51 | %define __spec_clean_body %{nil} | |
52 | ||
25de18da ER |
53 | %description |
54 | PEAR - PHP Extension and Application Repository. | |
55 | ||
56 | Please note that this package provides only basic directory structure. | |
57 | If you want to use base PEAR classes (PEAR.php, PEAR/*.php), that come | |
58 | with PHP, please install appropriate php-pear-* (php-pear-PEAR, | |
59 | php-PEAR-Archive_Tar, etc) packages. | |
60 | ||
84a3ead2 | 61 | %description -l pl.UTF-8 |
25de18da ER |
62 | PEAR (PHP Extension and Application Repository) - rozszerzenie PHP i |
63 | repozytorium aplikacji. | |
64 | ||
84a3ead2 JR |
65 | Należy pamiętać, że ten pakiet dostarcza tylko podstawową strukturę |
66 | katalogów. Aby użyć podstawowych klas PEAR (PEAR.php PEAR/*.php), | |
67 | dostarczanych z PHP, należy zainstalować odpowiednie pakiety | |
25de18da ER |
68 | php-pear-* (php-pear-PEAR, php-pear-Archive_Tar, itp). |
69 | ||
70 | %prep | |
367add8f | 71 | %setup -qcT |
25de18da | 72 | |
1d546840 ER |
73 | %build |
74 | rm -rf pear | |
75 | install -d pear | |
e47124f8 | 76 | |
367add8f | 77 | # add extra channels |
1d546840 | 78 | %{__pear} -c pearrc config-set php_dir pear |
8bbf817c ER |
79 | for xml in $(awk '/^Source[0-9]+:.+channel-.+.xml$/ {print $NF}' %{_specdir}/%{name}.spec); do |
80 | %{__pear} -c pearrc channel-add %{_sourcedir}/$xml | |
81 | done | |
367add8f | 82 | |
1d546840 ER |
83 | %install |
84 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/{.registry,bin,data,tests} | |
85 | cp -a pear/.??* $RPM_BUILD_ROOT%{php_pear_dir} | |
86 | ||
e47124f8 ER |
87 | while read dir; do |
88 | install -d $RPM_BUILD_ROOT$dir | |
89 | done <<EOF | |
e47124f8 | 90 | %{php_pear_dir}/Archive |
8b36818a | 91 | %{php_pear_dir}/Auth |
7051e1d1 | 92 | %{php_pear_dir}/Cache |
e47124f8 | 93 | %{php_pear_dir}/Console |
d135aaea | 94 | %{php_pear_dir}/Contact |
7051e1d1 | 95 | %{php_pear_dir}/Crypt |
b67f38ff | 96 | %{php_pear_dir}/Event |
6a776838 | 97 | %{php_pear_dir}/File |
7fe1ecf4 | 98 | %{php_pear_dir}/Genealogy |
8b36818a | 99 | %{php_pear_dir}/Gtk |
baff6ba1 | 100 | %{php_pear_dir}/Gtk2 |
e47124f8 | 101 | %{php_pear_dir}/HTML |
a64748d8 | 102 | %{php_pear_dir}/HTML/QuickForm |
3314c2d4 ER |
103 | %{php_pear_dir}/HTML/Table |
104 | %{php_pear_dir}/HTML/Template | |
e47124f8 | 105 | %{php_pear_dir}/HTTP |
21dc0ab4 ER |
106 | %{php_pear_dir}/HTTP/WebDAV |
107 | %{php_pear_dir}/HTTP/WebDAV/Tools | |
39946e2d | 108 | %{php_pear_dir}/Horde |
66057c98 | 109 | %{php_pear_dir}/Horde/Stream |
39946e2d ER |
110 | %{php_pear_dir}/Horde/Text |
111 | %{php_pear_dir}/Horde/Xml | |
f7198b38 | 112 | %{php_pear_dir}/I18N |
e47124f8 | 113 | %{php_pear_dir}/Image |
6c23b1d5 | 114 | %{php_pear_dir}/MP3 |
f15f8dfb | 115 | %{php_pear_dir}/Mail |
3314c2d4 | 116 | %{php_pear_dir}/Math |
e47124f8 | 117 | %{php_pear_dir}/Net |
c827a14e | 118 | %{php_pear_dir}/Net/UserAgent |
e47124f8 | 119 | %{php_pear_dir}/Numbers |
d135aaea | 120 | %{php_pear_dir}/PHP |
3314c2d4 | 121 | %{php_pear_dir}/Payment |
698a23ed | 122 | %{php_pear_dir}/QA |
e47124f8 | 123 | %{php_pear_dir}/Science |
0ac4465c | 124 | %{php_pear_dir}/SebastianBergmann |
e47124f8 | 125 | %{php_pear_dir}/Services |
d7c960b2 | 126 | %{php_pear_dir}/Structures |
ee179261 | 127 | %{php_pear_dir}/Symfony |
1f9bdd5d | 128 | %{php_pear_dir}/Symfony/Bridge |
ee179261 | 129 | %{php_pear_dir}/Symfony/Component |
dff95dc3 | 130 | %{php_pear_dir}/Testing |
e47124f8 | 131 | %{php_pear_dir}/Text |
f0386318 | 132 | %{php_pear_dir}/Text/CAPTCHA |
fb984fdb | 133 | %{php_pear_dir}/Text/Spell |
3438e6b2 | 134 | %{php_pear_dir}/URI |
c8e9976e AG |
135 | %{php_pear_dir}/Validate |
136 | %{php_pear_dir}/Validate/Finance | |
698a23ed AG |
137 | %{php_pear_dir}/VersionControl |
138 | %{php_pear_dir}/XML | |
e47124f8 | 139 | EOF |
54b72825 | 140 | |
08a1e49d | 141 | %clean |
57d254d6 | 142 | check_channel_dirs() { |
1d546840 ER |
143 | local RPMFILE=%{name}-%{version}-%{release}.%{_target_cpu}.rpm |
144 | local installed=$(mktemp -t instXXXXXX.tmp) | |
145 | local rpmfiles=$(mktemp -t rpmXXXXXX.tmp) | |
146 | local rc diff=$(mktemp -t diffXXXXXX.tmp) | |
147 | ||
148 | find $RPM_BUILD_ROOT%{php_pear_dir} | LC_ALL=C sort > $installed | |
149 | sed -i -re "s#^$RPM_BUILD_ROOT%{php_pear_dir}/?##" $installed | |
150 | ||
01f97755 ER |
151 | rpm -qpl %{_rpmdir}/$RPMFILE | LC_ALL=C sort > $rpmfiles |
152 | ||
1d546840 | 153 | sed -i -re "s#^%{php_pear_dir}/?##" $rpmfiles |
57d254d6 ER |
154 | |
155 | # find finds also '.', so use option -B for diff | |
1d546840 ER |
156 | if ! diff -uB $installed $rpmfiles > $diff; then |
157 | cat <<-EOF | |
158 | ||
159 | ERROR: some files/directories are not included in package: | |
160 | ||
161 | $(%{__sed} -ne '/^-[^-]/ s#^-#%%{php_pear_dir}/#p' $diff) | |
162 | ||
163 | EOF | |
164 | ||
57d254d6 ER |
165 | exit 1 |
166 | fi | |
1d546840 ER |
167 | rm -rf $RPM_BUILD_ROOT |
168 | rm -f $installed $rpmfiles $diff | |
57d254d6 | 169 | } |
1d546840 | 170 | |
57d254d6 | 171 | check_channel_dirs |
08a1e49d | 172 | |
25de18da ER |
173 | %files |
174 | %defattr(644,root,root,755) | |
367add8f ER |
175 | %dir %{php_pear_dir} |
176 | %{php_pear_dir}/* | |
177 | ||
01f97755 | 178 | # PEAR state files |
448d9ae1 ER |
179 | %ghost %{php_pear_dir}/.depdblock |
180 | %ghost %{php_pear_dir}/.depdb | |
181 | %ghost %{php_pear_dir}/.filemap | |
182 | %ghost %{php_pear_dir}/.lock | |
183 | ||
367add8f ER |
184 | %dir %{php_pear_dir}/.registry |
185 | %dir %{php_pear_dir}/.channels | |
186 | %dir %{php_pear_dir}/.channels/.alias | |
187 | ||
16d1038b | 188 | # core channels |
448d9ae1 ER |
189 | %{php_pear_dir}/.channels/__uri.reg |
190 | %{php_pear_dir}/.registry/.channel.__uri | |
191 | ||
192 | %{php_pear_dir}/.channels/.alias/pear.txt | |
193 | %{php_pear_dir}/.channels/pear.php.net.reg | |
194 | ||
195 | %{php_pear_dir}/.channels/.alias/pecl.txt | |
448d9ae1 ER |
196 | %{php_pear_dir}/.channels/pecl.php.net.reg |
197 | %{php_pear_dir}/.registry/.channel.pecl.php.net | |
198 | ||
16d1038b ER |
199 | %{php_pear_dir}/.channels/.alias/phpdocs.txt |
200 | %{php_pear_dir}/.channels/doc.php.net.reg | |
201 | %{php_pear_dir}/.registry/.channel.doc.php.net | |
202 | ||
203 | # addon channels | |
367add8f ER |
204 | %{php_pear_dir}/.channels/.alias/phpunit.txt |
205 | %{php_pear_dir}/.channels/pear.phpunit.de.reg | |
8ffa46a8 | 206 | %{php_pear_dir}/.registry/.channel.pear.phpunit.de |
799471e8 ER |
207 | |
208 | %{php_pear_dir}/.channels/.alias/phing.txt | |
209 | %{php_pear_dir}/.channels/pear.phing.info.reg | |
8ffa46a8 | 210 | %{php_pear_dir}/.registry/.channel.pear.phing.info |
799471e8 ER |
211 | |
212 | %{php_pear_dir}/.channels/.alias/phpdb.txt | |
213 | %{php_pear_dir}/.channels/pear.phpdb.org.reg | |
8ffa46a8 | 214 | %{php_pear_dir}/.registry/.channel.pear.phpdb.org |
fcc14391 ER |
215 | |
216 | %{php_pear_dir}/.channels/.alias/firephp.txt | |
217 | %{php_pear_dir}/.channels/pear.firephp.org.reg | |
57d254d6 | 218 | %{php_pear_dir}/.registry/.channel.pear.firephp.org |
16d1038b ER |
219 | |
220 | %{php_pear_dir}/.channels/.alias/symfony.txt | |
221 | %{php_pear_dir}/.channels/pear.symfony-project.com.reg | |
222 | %{php_pear_dir}/.registry/.channel.pear.symfony-project.com | |
3e35a10f ER |
223 | |
224 | %{php_pear_dir}/.channels/.alias/phpseclib.txt | |
225 | %{php_pear_dir}/.channels/phpseclib.sourceforge.net.reg | |
226 | %{php_pear_dir}/.registry/.channel.phpseclib.sourceforge.net | |
1275fa38 ER |
227 | |
228 | %{php_pear_dir}/.channels/.alias/horde.txt | |
229 | %{php_pear_dir}/.channels/pear.horde.org.reg | |
230 | %{php_pear_dir}/.registry/.channel.pear.horde.org | |
20007f01 ER |
231 | |
232 | %{php_pear_dir}/.channels/.alias/rc.txt | |
233 | %{php_pear_dir}/.channels/pear.roundcube.net.reg | |
234 | %{php_pear_dir}/.registry/.channel.pear.roundcube.net | |
d9ff93b5 ER |
235 | |
236 | %{php_pear_dir}/.channels/.alias/ezc.txt | |
237 | %{php_pear_dir}/.channels/components.ez.no.reg | |
238 | %{php_pear_dir}/.registry/.channel.components.ez.no | |
4c5242d9 ER |
239 | |
240 | %{php_pear_dir}/.channels/.alias/propel.txt | |
241 | %{php_pear_dir}/.channels/pear.propelorm.org.reg | |
242 | %{php_pear_dir}/.registry/.channel.pear.propelorm.org | |
a9af1509 ER |
243 | |
244 | %{php_pear_dir}/.channels/.alias/docblox.txt | |
245 | %{php_pear_dir}/.channels/pear.docblox-project.org.reg | |
246 | %{php_pear_dir}/.registry/.channel.pear.docblox-project.org | |
d92a3b44 ER |
247 | |
248 | %{php_pear_dir}/.channels/.alias/michelf.txt | |
249 | %{php_pear_dir}/.channels/pear.michelf.com.reg | |
250 | %{php_pear_dir}/.registry/.channel.pear.michelf.com | |
f84845e8 ER |
251 | |
252 | %{php_pear_dir}/.channels/.alias/pdepend.txt | |
253 | %{php_pear_dir}/.channels/pear.pdepend.org.reg | |
254 | %{php_pear_dir}/.registry/.channel.pear.pdepend.org | |
255 | ||
256 | %{php_pear_dir}/.channels/.alias/phpmd.txt | |
257 | %{php_pear_dir}/.channels/pear.phpmd.org.reg | |
258 | %{php_pear_dir}/.registry/.channel.pear.phpmd.org | |
5f88c87c ER |
259 | |
260 | %{php_pear_dir}/.channels/.alias/symfony2.txt | |
261 | %{php_pear_dir}/.channels/pear.symfony.com.reg | |
262 | %{php_pear_dir}/.registry/.channel.pear.symfony.com | |
d1682f5e ER |
263 | |
264 | %{php_pear_dir}/.channels/.alias/saucelabs.txt | |
265 | %{php_pear_dir}/.channels/saucelabs.github.com_pear.reg | |
266 | %{php_pear_dir}/.registry/.channel.saucelabs.github.com_pear | |
73b1fcbc ER |
267 | |
268 | %{php_pear_dir}/.channels/.alias/twig.txt | |
269 | %{php_pear_dir}/.channels/pear.twig-project.org.reg | |
270 | %{php_pear_dir}/.registry/.channel.pear.twig-project.org | |
3ba22036 ER |
271 | |
272 | %{php_pear_dir}/.channels/.alias/zz.txt | |
273 | %{php_pear_dir}/.channels/zustellzentrum.cweiske.de.reg | |
274 | %{php_pear_dir}/.registry/.channel.zustellzentrum.cweiske.de | |
7a1a8238 ER |
275 | |
276 | %{php_pear_dir}/.channels/.alias/theseer.txt | |
277 | %{php_pear_dir}/.channels/pear.netpirates.net.reg | |
278 | %{php_pear_dir}/.registry/.channel.pear.netpirates.net | |
7e5dea50 ER |
279 | |
280 | %{php_pear_dir}/.channels/.alias/indeyets.txt | |
281 | %{php_pear_dir}/.channels/pear.indeyets.ru.reg | |
282 | %{php_pear_dir}/.registry/.channel.pear.indeyets.ru | |
237c2312 ER |
283 | |
284 | %{php_pear_dir}/.channels/.alias/phpdoc.txt | |
285 | %{php_pear_dir}/.channels/pear.phpdoc.org.reg | |
286 | %{php_pear_dir}/.registry/.channel.pear.phpdoc.org | |
902a69a3 ER |
287 | |
288 | %{php_pear_dir}/.channels/.alias/bartlett.txt | |
289 | %{php_pear_dir}/.channels/bartlett.laurent-laville.org.reg | |
290 | %{php_pear_dir}/.registry/.channel.bartlett.laurent-laville.org |