1 %define php_name php%{?php_suffix}
4 Summary: %{modname} - HASH Message Digest Framework
5 Summary(pl.UTF-8): %{modname} - implementacja popularnych funkcji skrótu
6 Name: %{php_name}-pecl-%{modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
12 # Source0-md5: cb19f4ee392b05776788e54b51f98c83
13 URL: http://pecl.php.net/package/hash/
14 BuildRequires: %{php_name}-devel >= 3:5.0.0
15 BuildRequires: rpmbuild(macros) >= 1.650
16 %{?requires_php_extension}
17 Requires: php(core) >= 5.0.4
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Native implementations of common message digest algorithms using a
22 generic factory method.
24 In PECL status of this extension is: %{status}.
26 %description -l pl.UTF-8
27 Natywne implementacje popularnych algorytmów skrótu.
29 To rozszerzenie ma w PECL status: %{status}.
33 mv %{modname}-%{version}/* .
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
44 INSTALL_ROOT=$RPM_BUILD_ROOT \
45 EXTENSION_DIR=%{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)
65 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
66 %attr(755,root,root) %{php_extensiondir}/%{modname}.so