1 %include /usr/lib/rpm/macros.php
3 %define _pearname %{_class}
4 Summary: %{_class} - Framework for caching of arbitrary data
5 Summary(pl): %{_class} - Klasa do buforowania danych
6 Name: php-pear-%{_pearname}
10 Group: Development/Languages/PHP
11 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
12 BuildRequires: rpm-php-pearprov
13 URL: http://pear.php.net/
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 With the PEAR Cache you can cache the result of certain function
19 calls, as well as the output of a whole script run or share data
23 U¿ywaj±c klasy PEAR Cache mo¿na buforowaæ rezultaty wywo³añ funkcji, a
24 tak¿e wyniki wyj¶cia ca³ych skryptów oraz danych dzielonych pomiêdzy
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/Container
34 install %{_pearname}-%{version}/%{_class}.php $RPM_BUILD_ROOT%{php_pear_dir}/
35 install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/
36 install %{_pearname}-%{version}/Container/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/Container
38 rm $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_class}.php
41 rm -rf $RPM_BUILD_ROOT
44 %defattr(644,root,root,755)
45 %dir %{php_pear_dir}/%{_class}
46 %dir %{php_pear_dir}/%{_class}/Container
48 %{php_pear_dir}/%{_class}/*.php
49 %{php_pear_dir}/%{_class}/Container/*.php