]> git.pld-linux.org Git - packages/php-pecl-hash.git/blame - php-pecl-hash.spec
provide php(extname) to really be supporting multiple php versions
[packages/php-pecl-hash.git] / php-pecl-hash.spec
CommitLineData
5cd31b3f
ER
1%define php_name php%{?php_suffix}
2%define modname hash
3%define status stable
4Summary: %{modname} - HASH Message Digest Framework
5Summary(pl.UTF-8): %{modname} - implementacja popularnych funkcji skrótu
6Name: %{php_name}-pecl-%{modname}
9dc6c8ad 7Version: 1.5
c25ea7be 8Release: 2
9dc6c8ad 9License: PHP 2.02
10Group: Development/Languages/PHP
5cd31b3f 11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
9dc6c8ad 12# Source0-md5: cb19f4ee392b05776788e54b51f98c83
4a6460b4 13URL: http://pecl.php.net/package/hash/
5cd31b3f
ER
14BuildRequires: %{php_name}-devel >= 3:5.0.0
15BuildRequires: rpmbuild(macros) >= 1.650
9dc6c8ad 16%{?requires_php_extension}
5cd31b3f 17Requires: php(core) >= 5.0.4
c25ea7be 18Provides: php(%{modname}) = %{version}
9dc6c8ad 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
5cd31b3f
ER
22Native implementations of common message digest algorithms using a
23generic factory method.
9dc6c8ad 24
5cd31b3f 25In PECL status of this extension is: %{status}.
9dc6c8ad 26
27%description -l pl.UTF-8
28Natywne implementacje popularnych algorytmów skrótu.
29
5cd31b3f 30To rozszerzenie ma w PECL status: %{status}.
9dc6c8ad 31
32%prep
5cd31b3f
ER
33%setup -qc
34mv %{modname}-%{version}/* .
9dc6c8ad 35
36%build
9dc6c8ad 37phpize
38%configure
39%{__make}
40
41%install
42rm -rf $RPM_BUILD_ROOT
43install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
9dc6c8ad 44%{__make} install \
9dc6c8ad 45 INSTALL_ROOT=$RPM_BUILD_ROOT \
46 EXTENSION_DIR=%{php_extensiondir}
5cd31b3f
ER
47cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
48; Enable %{modname} extension module
49extension=%{modname}.so
9dc6c8ad 50EOF
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post
56%php_webserver_restart
57
58%postun
59if [ "$1" = 0 ]; then
60 %php_webserver_restart
61fi
62
63%files
64%defattr(644,root,root,755)
5cd31b3f
ER
65%doc README
66%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
67%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.113359 seconds and 4 git commands to generate.