]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with bootstrap # bootstrap build without PEAR installed (for first php-pear-PEAR installation) | |
4 | ||
5 | %define status stable | |
6 | %define pearname Archive_Tar | |
7 | %include /usr/lib/rpm/macros.php | |
8 | Summary: %{pearname} - Tar file management class | |
9 | Summary(pl.UTF-8): %{pearname} - klasa do zarządzania plikami Tar | |
10 | Name: php-pear-%{pearname} | |
11 | Version: 1.4.7 | |
12 | Release: 1 | |
13 | License: New BSD | |
14 | Group: Development/Languages/PHP | |
15 | Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz | |
16 | # Source0-md5: c038b569d715b2ff86857fe29368e665 | |
17 | URL: http://pear.php.net/package/Archive_Tar/ | |
18 | %if %{without bootstrap} | |
19 | BuildRequires: php-pear-PEAR | |
20 | %endif | |
21 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
22 | BuildRequires: rpmbuild(macros) >= 1.580 | |
23 | Requires: php-pear | |
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 | ||
32 | In PEAR status of this package is: %{status}. | |
33 | ||
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. | |
39 | ||
40 | Ta klasa ma w PEAR status: %{status}. | |
41 | ||
42 | %prep | |
43 | %if %{without bootstrap} | |
44 | %pear_package_setup | |
45 | %else | |
46 | %setup -q -c -n %{pearname}-%{version} | |
47 | %{__mv} %{pearname}-%{version}/* . | |
48 | %endif | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
53 | ||
54 | %if %{without bootstrap} | |
55 | %pear_package_install | |
56 | %else | |
57 | cp -pr Archive $RPM_BUILD_ROOT%{php_pear_dir} | |
58 | %endif | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
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 |