1 %define _modname lchash
3 Summary: %{_modname} - Libc Hash Interface
4 Summary(pl): %{_modname} - interfejs tablic haszuj±cych libc
5 Name: php-pecl-%{_modname}
9 Group: Development/Languages/PHP
10 Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
11 # Source0-md5: 1ad9261f2461db033423e797e67c301c
12 URL: http://pecl.php.net/package/lchash/
13 BuildRequires: libtool
14 BuildRequires: php-devel >= 3:5.0.0
15 BuildRequires: rpmbuild(macros) >= 1.344
16 %{?requires_php_extension}
17 Requires: php-common >= 4:5.0.4
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 The LCHASH extension provides interface to libc implementation of hash
22 tables described by POSIX 1003.1-2001.
24 In PECL status of this extension is: %{_status}.
27 Rozszerzenie LCHASH dostarcza interfejsu do implementacji libc tablic
28 haszuj±cych okre¶lonych przez standard POSIX 1003.1-2001.
30 To rozszerzenie ma w PECL status: %{_status}.
36 cd %{_modname}-%{version}
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
45 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
46 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
47 ; Enable %{_modname} extension module
48 extension=%{_modname}.so
52 rm -rf $RPM_BUILD_ROOT
55 %php_webserver_restart
59 %php_webserver_restart
63 %defattr(644,root,root,755)
64 %doc %{_modname}-%{version}/{CREDITS,EXPERIMENTAL}
65 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
66 %attr(755,root,root) %{php_extensiondir}/%{_modname}.so