5 %define php_name php%{?php_suffix}
6 Summary: %{modname} - YP/NIS functions
7 Summary(pl.UTF-8): %{modname} - klient NIS dla PHP
8 Name: %{php_name}-pecl-%{modname}
10 Release: 0.%{subver}.%{rel}
12 Group: Development/Languages/PHP
13 Source0: http://pecl.php.net/get/%{modname}-%{version}%{subver}.tgz
14 # Source0-md5: 4ae09ff196f358a98a5f2cf30fabd733
15 URL: http://pecl.php.net/package/yp/
16 BuildRequires: %{php_name}-devel >= 4:5.3.0
17 BuildRequires: rpmbuild(macros) >= 1.650
18 %{?requires_php_extension}
20 Obsoletes: php-pecl-yp < 1.0.0-0.RC1.1
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 NIS (formerly called Yellow Pages) allows network management of
26 important administrative files (e.g. the password file).
28 %description -l pl.UTF-8
29 Moduł PHP dodający wsparcie dla NIS (Yellow Pages).
33 mv %{modname}-%{version}%{?subver}/* .
41 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