3 %define php_name php%{?php_suffix}
4 Summary: %{modname} - YP/NIS functions
5 Summary(pl.UTF-8): %{modname} - klient YP/NIS dla PHP
6 Name: %{php_name}-pecl-%{modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
12 # Source0-md5: 6c57bf144d1bb8c4aca5309cc4281407
13 URL: http://pecl.php.net/package/yp/
14 BuildRequires: %{php_name}-devel >= 4:5.3.0
15 BuildRequires: libnsl-devel
16 BuildRequires: rpmbuild(macros) >= 1.650
17 %{?requires_php_extension}
19 Obsoletes: php-pecl-yp < 1.0.0-0.RC1.1
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 NIS (formerly called Yellow Pages) allows network management of
25 important administrative files (e.g. the password file).
27 %description -l pl.UTF-8
28 Moduł PHP dodający obsługę NIS (Yellow Pages).
32 %{__mv} %{modname}-%{version}/* .
40 rm -rf $RPM_BUILD_ROOT
43 EXTENSION_DIR=%{php_extensiondir} \
44 INSTALL_ROOT=$RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
47 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
48 ; Enable %{modname} extension module
49 extension=%{modname}.so
53 rm -rf $RPM_BUILD_ROOT
56 %php_webserver_restart
60 %php_webserver_restart
64 %defattr(644,root,root,755)
66 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
67 %attr(755,root,root) %{php_extensiondir}/%{modname}.so