2 %define _pearname PHP_Archive
3 %include /usr/lib/rpm/macros.php
4 Summary: %{_pearname} - create and use PHP Archive files
5 Summary(pl.UTF-8): %{_pearname} - tworzenie i wykorzystanie archiwów PHP
6 Name: php-pear-%{_pearname}
10 Group: Development/Languages/PHP
11 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
12 # Source0-md5: be6dfa685d559ed445b93e4706d4ca2a
13 URL: http://pear.php.net/package/PHP_Archive/
14 BuildRequires: php-pear-PEAR >= 1:1.4.3
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.300
17 Requires: php(core) >= 5.1.0
18 Requires: php-pear >= 4:1.0-7
19 Requires: php-pear-Archive_Tar >= 1.3.1
20 Requires: php-pear-PEAR-core >= 1:1.4.3
21 Obsoletes: php-pear-PHP_Archive-tests
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 PHP_Archive allows you to create a single .phar file containing an
29 In PEAR status of this package is: %{_status}.
31 %description -l pl.UTF-8
32 PHP_Archive pozwala na tworzenie pojedynczych plików .phar
33 zawierajacych całe aplikacje.
35 Ta klasa ma w PEAR status: %{_status}.
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{php_pear_dir}
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
51 %{php_pear_dir}/.registry/*.reg
52 %{php_pear_dir}/PHP/*.php
53 %{php_pear_dir}/PHP/Archive
54 %{php_pear_dir}/data/%{_pearname}