- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-ezc-Base.git] / php-ezc-Base.spec
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
6 Release:        2
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
31 install -d examples
32 mv docs/Base/docs/tutorial* examples
33 mv docs/Base/docs/repos examples
34
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
43 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
44 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45
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
55 %doc docs/Base/docs/*
56 %{php_pear_dir}/.registry/.channel.*/*.reg
57 %dir %{php_pear_dir}/ezc
58 %dir %{php_pear_dir}/ezc/autoload
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}
This page took 0.141692 seconds and 4 git commands to generate.