]> git.pld-linux.org Git - packages/php-pecl-tcpwrap.git/blame - php-pecl-tcpwrap.spec
support building for multiple php versions
[packages/php-pecl-tcpwrap.git] / php-pecl-tcpwrap.spec
CommitLineData
5157b54e
ER
1%define php_name php%{?php_suffix}
2%define modname tcpwrap
3%define status stable
4Summary: %{modname} - tcpwrapper bindings
5Summary(pl.UTF-8): %{modname} - dowiązania tcpwrapper
6Name: %{php_name}-pecl-%{modname}
2fdfbc06 7Version: 1.1.3
1db9d72f 8Release: 5
22d8549d 9License: PHP 3.01
584f9792 10Group: Development/Languages/PHP
5157b54e 11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
2fdfbc06 12# Source0-md5: 6db26ebbf6c59fedf2228e662fe78e3e
584f9792 13URL: http://pecl.php.net/package/tcpwrap/
711733f7 14BuildRequires: libwrap-devel
5157b54e
ER
15BuildRequires: %{php_name}-devel >= 3:5.0.0
16BuildRequires: rpmbuild(macros) >= 1.650
0efcb7da 17%{?requires_php_extension}
1db9d72f 18Requires: php(core) >= 5.0.4
5157b54e 19Obsoletes: php-pear-%{modname}
584f9792
AG
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
584f9792
AG
22%description
23This package handles /etc/hosts.allow and /etc/hosts.deny files.
24
5157b54e 25In PECL status of this package is: %{status}.
584f9792 26
0141dbf9
JR
27%description -l pl.UTF-8
28Za pomocą tego pakietu możliwa jest obsługa plików /etc/hosts.allow
0b4c45f0 29oraz /etc/hosts.deny.
584f9792 30
5157b54e 31To rozszerzenie ma w PECL status: %{status}.
584f9792
AG
32
33%prep
5157b54e
ER
34%setup -qc
35mv %{modname}-%{version}/* .
584f9792
AG
36
37%build
584f9792
AG
38phpize
39%configure
40%{__make}
41
42%install
43rm -rf $RPM_BUILD_ROOT
0ed376de 44install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
5157b54e
ER
45install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
46cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
47; Enable %{modname} extension module
48extension=%{modname}.so
0efcb7da 49EOF
584f9792
AG
50
51%clean
52rm -rf $RPM_BUILD_ROOT
53
54%post
0ed376de 55%php_webserver_restart
584f9792 56
0efcb7da
ER
57%postun
58if [ "$1" = 0 ]; then
0ed376de 59 %php_webserver_restart
584f9792
AG
60fi
61
62%files
63%defattr(644,root,root,755)
5157b54e
ER
64%doc 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
This page took 0.509108 seconds and 4 git commands to generate.