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