]>
Commit | Line | Data |
---|---|---|
fc3fd450 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with bootstrap # bootstrap build without PEAR installed (for first php-pear-PEAR installation) | |
4 | ||
d9bdeed7 ER |
5 | %define status stable |
6 | %define pearname Archive_Tar | |
4e380720 | 7 | %include /usr/lib/rpm/macros.php |
d9bdeed7 ER |
8 | Summary: %{pearname} - Tar file management class |
9 | Summary(pl.UTF-8): %{pearname} - klasa do zarządzania plikami Tar | |
10 | Name: php-pear-%{pearname} | |
a28179a0 | 11 | Version: 1.4.7 |
6e9130e7 | 12 | Release: 1 |
4e380720 | 13 | License: New BSD |
222b3c0a | 14 | Group: Development/Languages/PHP |
d9bdeed7 | 15 | Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz |
a28179a0 | 16 | # Source0-md5: c038b569d715b2ff86857fe29368e665 |
349e2eef | 17 | URL: http://pear.php.net/package/Archive_Tar/ |
fc3fd450 | 18 | %if %{without bootstrap} |
e6417252 | 19 | BuildRequires: php-pear-PEAR |
fc3fd450 | 20 | %endif |
e62ba5b5 | 21 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
d9bdeed7 | 22 | BuildRequires: rpmbuild(macros) >= 1.580 |
1173ee2d | 23 | Requires: php-pear |
222b3c0a PG |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This class provides handling of tar files in PHP. It supports | |
29 | creating, listing, extracting and adding to tar files. Gzip support is | |
30 | available if PHP has the zlib extension built-in or loaded. | |
31 | ||
d9bdeed7 | 32 | In PEAR status of this package is: %{status}. |
77c0ab69 | 33 | |
8686d5d2 JR |
34 | %description -l pl.UTF-8 |
35 | Ta klasa udostępnia obsługę plików tar w PHP. Pozwala na tworzenie, | |
36 | przeglądanie zawartości, rozpakowywanie i dodawanie plików do archiwów | |
37 | tar. Obsługa kompresji gzip jest dostępna, jeśli do PHP jest | |
38 | zainstalowany moduł rozszerzenia zlib. | |
222b3c0a | 39 | |
d9bdeed7 | 40 | Ta klasa ma w PEAR status: %{status}. |
77c0ab69 | 41 | |
222b3c0a | 42 | %prep |
fc3fd450 | 43 | %if %{without bootstrap} |
95ec96ba | 44 | %pear_package_setup |
fc3fd450 JB |
45 | %else |
46 | %setup -q -c -n %{pearname}-%{version} | |
47 | %{__mv} %{pearname}-%{version}/* . | |
48 | %endif | |
222b3c0a PG |
49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
95ec96ba | 52 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
fc3fd450 JB |
53 | |
54 | %if %{without bootstrap} | |
95ec96ba | 55 | %pear_package_install |
fc3fd450 JB |
56 | %else |
57 | cp -pr Archive $RPM_BUILD_ROOT%{php_pear_dir} | |
58 | %endif | |
222b3c0a PG |
59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
fc3fd450 JB |
65 | %if %{without bootstrap} |
66 | %doc install.log docs/%{pearname}/docs/* | |
67 | %{php_pear_dir}/.registry/archive_tar.reg | |
68 | %endif | |
69 | %{php_pear_dir}/Archive/Tar.php |