1 %include /usr/lib/rpm/macros.php
4 Summary: %{pearname} - The Base package provides the basic infrastructure that all packages rely on
9 Group: Development/Languages/PHP
10 Source0: http://components.ez.no/get/%{pearname}-%{version}.tgz
11 # Source0-md5: f00eb71187ef9903bd1c2f7cdae3216a
12 URL: http://components.ez.no/package/Base/
13 BuildRequires: php-channel(components.ez.no)
14 BuildRequires: php-packagexml2cl
15 BuildRequires: php-pear-PEAR
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.580
18 Requires: php-channel(components.ez.no)
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The Base package provides the basic infrastructure that all packages
25 rely on. Therefore every component relies on this package.
27 In PEAR status of this package is: %{status}.
33 mv docs/Base/docs/tutorial* examples
34 mv docs/Base/docs/repos examples
37 packagexml2cl package.xml > ChangeLog
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{php_pear_dir}
44 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47 # don't care for tests
48 rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{pearname}
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc ChangeLog install.log
57 %{php_pear_dir}/.registry/.channel.*/*.reg
58 %dir %{php_pear_dir}/ezc
59 %{php_pear_dir}/ezc/autoload/base_autoload.php
60 %{php_pear_dir}/ezc/Base
61 %{php_pear_dir}/data/Base
62 %{_examplesdir}/%{name}-%{version}