1 %define _modname archive
3 Summary: %{_modname} - manipulate tar/cpio archives
4 Summary(pl.UTF-8): %{_modname} - obróbka archiwów tar/cpio
5 Name: php-pecl-%{_modname}
9 Group: Development/Languages/PHP
10 Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
11 # Source0-md5: 1b121440b2c460b2a1af46e31f23e46e
12 Patch0: %{name}-php52.patch
13 URL: http://pecl.php.net/package/archive/
14 BuildRequires: libarchive-devel
15 BuildRequires: php-devel >= 3:5.0.0
16 BuildRequires: rpmbuild(macros) >= 1.344
17 %{?requires_php_extension}
18 Requires: php(core) >= 5.0.4
19 Obsoletes: php-pear-%{_modname}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 archive extension allows to read and write tar and cpio archives using
26 In PECL status of this extension is: %{_status}.
28 %description -l pl.UTF-8
29 Rozszerzenie archive pozwala na odczyt i zapis archiwów tar oraz cpio
30 przy użyciu biblioteki libarchive.
32 To rozszerzenie ma w PECL status: %{_status}.
36 cd %{_modname}-%{version}
40 cd %{_modname}-%{version}
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
49 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
50 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
51 ; Enable %{_modname} extension module
52 extension=%{_modname}.so
56 rm -rf $RPM_BUILD_ROOT
59 %php_webserver_restart
63 %php_webserver_restart
67 %defattr(644,root,root,755)
68 %doc %{_modname}-%{version}/{API.txt,CREDITS,tests}
69 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
70 %attr(755,root,root) %{php_extensiondir}/%{_modname}.so