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