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