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