]> git.pld-linux.org Git - packages/php-pear.git/blob - php-pear.spec
- dirs list is verbose enough in %install. can simplify %files again
[packages/php-pear.git] / php-pear.spec
1 Summary:        PEAR - PHP Extension and Application Repository
2 Summary(pl):    PEAR - rozszerzenie PHP i repozytorium aplikacji
3 Name:           php-pear
4 Version:        1.0
5 Release:        4
6 Epoch:          4
7 License:        Public Domain
8 Group:          Development/Languages/PHP
9 Requires:       php-pcre
10 Requires:       php-xml
11 Obsoletes:      php-pear-additional_classes
12 Obsoletes:      php4-pear
13 Provides:       php4-pear = %{epoch}:%{version}-%{release}
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _sysconfdir /etc/pear
18
19 %description
20 PEAR - PHP Extension and Application Repository.
21
22 Please note that this package provides only basic directory structure.
23 If you want to use base PEAR classes (PEAR.php, PEAR/*.php), that come
24 with PHP, please install appropriate php-pear-* (php-pear-PEAR,
25 php-PEAR-Archive_Tar, etc) packages.
26
27 %description -l pl
28 PEAR (PHP Extension and Application Repository) - rozszerzenie PHP i
29 repozytorium aplikacji.
30
31 Nale¿y pamiêtaæ, ¿e ten pakiet dostarcza tylko podstawow± strukturê
32 katalogów. Aby u¿yæ podstawowych klas PEAR (PEAR.php PEAR/*.php),
33 dostarczanych z PHP, nale¿y zainstalowaæ odpowiednie pakiety
34 php-pear-* (php-pear-PEAR, php-pear-Archive_Tar, itp).
35
36 %prep
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{php_pear_dir}/data
41
42 while read dir; do
43         install -d $RPM_BUILD_ROOT$dir
44 done <<EOF
45 %{php_pear_dir}/Archive
46 %{php_pear_dir}/Console
47 %{php_pear_dir}/Crypt
48 %{php_pear_dir}/HTML
49 %{php_pear_dir}/HTML/Template
50 %{php_pear_dir}/HTTP
51 %{php_pear_dir}/Image
52 %{php_pear_dir}/Math
53 %{php_pear_dir}/Net
54 %{php_pear_dir}/Numbers
55 %{php_pear_dir}/PEAR
56 %{php_pear_dir}/Science
57 %{php_pear_dir}/Services
58 %{php_pear_dir}/Text
59 %{php_pear_dir}/XML
60 %{php_pear_dir}/Validate
61 %{php_pear_dir}/Validate/Finance
62 EOF
63
64 # registry
65 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{php_pear_dir}/.registry}
66 > $RPM_BUILD_ROOT%{php_pear_dir}/.filemap
67 > $RPM_BUILD_ROOT%{php_pear_dir}/.lock
68
69 %files
70 %defattr(644,root,root,755)
71 %dir %{php_pear_dir}
72 # LANG=C is in 'prep', so this should work in locales like et_EE where [a-z] does not specify whole alphabet
73 %{php_pear_dir}/[A-Z]*
74
75 # for php-pear-phpDocumentor@DEVEL, perhaps others
76 %dir %{php_pear_dir}/data
77
78 # registry
79 %dir %{php_pear_dir}/.registry
80 %ghost %{php_pear_dir}/.filemap
81 %ghost %{php_pear_dir}/.lock
This page took 0.05821 seconds and 4 git commands to generate.