]> git.pld-linux.org Git - packages/php-pecl-lchash.git/blame - php-pecl-lchash.spec
provide php(extname) to really be supporting multiple php versions
[packages/php-pecl-lchash.git] / php-pecl-lchash.spec
CommitLineData
51904704
ER
1%define php_name php%{?php_suffix}
2%define modname lchash
3%define status stable
4Summary: %{modname} - Libc Hash Interface
5Summary(pl.UTF-8): %{modname} - interfejs tablic haszujących libc
6Name: %{php_name}-pecl-%{modname}
7541e3af 7Version: 0.9.1
77daa34f 8Release: 2
7541e3af
AG
9License: PHP
10Group: Development/Languages/PHP
51904704 11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
7541e3af
AG
12# Source0-md5: 1ad9261f2461db033423e797e67c301c
13URL: http://pecl.php.net/package/lchash/
51904704 14BuildRequires: %{php_name}-devel >= 3:5.0.0
77daa34f 15BuildRequires: libtool
51904704 16BuildRequires: rpmbuild(macros) >= 1.650
7541e3af 17%{?requires_php_extension}
77daa34f
ER
18Requires: php(core) >= 5.0.4
19Provides: php(%{modname}) = %{version}
7541e3af
AG
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23The LCHASH extension provides interface to libc implementation of hash
24tables described by POSIX 1003.1-2001.
25
51904704 26In PECL status of this extension is: %{status}.
7541e3af 27
83e9dfb0 28%description -l pl.UTF-8
7541e3af 29Rozszerzenie LCHASH dostarcza interfejsu do implementacji libc tablic
83e9dfb0 30haszujących określonych przez standard POSIX 1003.1-2001.
7541e3af 31
51904704 32To rozszerzenie ma w PECL status: %{status}.
7541e3af
AG
33
34%prep
51904704
ER
35%setup -qc
36mv %{modname}-%{version}/* .
7541e3af
AG
37
38%build
7541e3af
AG
39phpize
40%configure
41%{__make}
42
43%install
44rm -rf $RPM_BUILD_ROOT
bf2b6341 45install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
51904704
ER
46install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
47cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
48; Enable %{modname} extension module
49extension=%{modname}.so
7541e3af
AG
50EOF
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post
bf2b6341 56%php_webserver_restart
7541e3af
AG
57
58%postun
59if [ "$1" = 0 ]; then
bf2b6341 60 %php_webserver_restart
7541e3af
AG
61fi
62
63%files
64%defattr(644,root,root,755)
51904704
ER
65%doc CREDITS EXPERIMENTAL
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.565676 seconds and 4 git commands to generate.