1 %define php_name php%{?php_suffix}
4 Summary: %{modname} - PAM integration
5 Summary(pl.UTF-8): %{modname} - integracja z PAM-em
6 Name: %{php_name}-pecl-%{modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
12 # Source0-md5: 2dfd378a76021245050333cd4d49ed96
13 URL: http://pecl.php.net/package/PAM/
14 BuildRequires: %{php_name}-devel >= 3:5.0.0
15 BuildRequires: pam-devel
16 BuildRequires: rpmbuild(macros) >= 1.650
17 %{?requires_php_extension}
18 Requires: php(core) >= 5.0.4
19 Provides: php(%{modname}) = %{version}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This extension provides PAM (Pluggable Authentication Modules)
24 integration. PAM is a system of libraries that handle the
25 authentication tasks of applications and services. The library
26 provides a stable API for applications to defer to for authentication
29 In PECL status of this extension is: %{status}.
31 %description -l pl.UTF-8
32 Rozszerzenie to zapewnia integrację z systemem PAM (Pluggable
33 Authentication Modules). PAM to system bibliotek obsługujących proces
34 uwierzytelniania aplikacji i usług. Biblioteka dostarcza stabilne API
35 umożliwiające aplikacjom obsłużenie zadań uwierzytelniania.
37 To rozszerzenie ma w PECL status: %{status}.
41 mv %{modname}-%{version}/* .
49 rm -rf $RPM_BUILD_ROOT
51 EXTENSION_DIR=%{php_extensiondir} \
52 INSTALL_ROOT=$RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
55 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
56 ; Enable %{modname} extension module
57 extension=%{modname}.so
61 rm -rf $RPM_BUILD_ROOT
64 %php_webserver_restart
68 %php_webserver_restart
72 %defattr(644,root,root,755)
74 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
75 %attr(755,root,root) %{php_extensiondir}/%{modname}.so