]>
Commit | Line | Data |
---|---|---|
1f33969d ER |
1 | %define status stable |
2 | %define pearname Base | |
3 | Summary: %{pearname} - The Base package provides the basic infrastructure that all packages rely on | |
4 | Name: php-ezc-Base | |
5 | Version: 1.8 | |
5e2ce178 | 6 | Release: 2 |
1f33969d ER |
7 | License: New BSD |
8 | Group: Development/Languages/PHP | |
9 | Source0: http://components.ez.no/get/%{pearname}-%{version}.tgz | |
10 | # Source0-md5: f00eb71187ef9903bd1c2f7cdae3216a | |
11 | URL: http://components.ez.no/package/Base/ | |
12 | BuildRequires: php-channel(components.ez.no) | |
13 | BuildRequires: php-packagexml2cl | |
14 | BuildRequires: php-pear-PEAR | |
15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
16 | BuildRequires: rpmbuild(macros) >= 1.580 | |
17 | Requires: php-channel(components.ez.no) | |
18 | Requires: php-pear | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | The Base package provides the basic infrastructure that all packages | |
24 | rely on. Therefore every component relies on this package. | |
25 | ||
26 | In PEAR status of this package is: %{status}. | |
27 | ||
28 | %prep | |
29 | %pear_package_setup | |
30 | ||
b1f70754 ER |
31 | install -d examples |
32 | mv docs/Base/docs/tutorial* examples | |
33 | mv docs/Base/docs/repos examples | |
34 | ||
1f33969d ER |
35 | %build |
36 | packagexml2cl package.xml > ChangeLog | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
41 | %pear_package_install | |
42 | ||
b1f70754 ER |
43 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
44 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
45 | ||
1f33969d ER |
46 | # don't care for tests |
47 | rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{pearname} | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc ChangeLog install.log | |
b1f70754 | 55 | %doc docs/Base/docs/* |
1f33969d ER |
56 | %{php_pear_dir}/.registry/.channel.*/*.reg |
57 | %dir %{php_pear_dir}/ezc | |
5e2ce178 | 58 | %dir %{php_pear_dir}/ezc/autoload |
1f33969d ER |
59 | %{php_pear_dir}/ezc/autoload/base_autoload.php |
60 | %{php_pear_dir}/ezc/Base | |
61 | %{php_pear_dir}/data/Base | |
b1f70754 | 62 | %{_examplesdir}/%{name}-%{version} |