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