]> git.pld-linux.org Git - packages/php-pecl-pam.git/blame - php-pecl-pam.spec
- obsolete old php name
[packages/php-pecl-pam.git] / php-pecl-pam.spec
CommitLineData
bff028bb 1%define php_name php%{?php_suffix}
178eb1f1 2%define modname pam
84005b97 3%define status stable
178eb1f1 4Summary: %{modname} - PAM integration
38921c91 5Summary(pl.UTF-8): %{modname} - integracja z PAM-em
bff028bb 6Name: %{php_name}-pecl-%{modname}
07b8b8a2 7Version: 1.0.3
a6444b85 8Release: 9
178eb1f1
AG
9License: PHP
10Group: Development/Languages/PHP
11Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
07b8b8a2 12# Source0-md5: 2dfd378a76021245050333cd4d49ed96
178eb1f1 13URL: http://pecl.php.net/package/PAM/
a6444b85 14BuildRequires: %{php_name}-devel >= 3:5.0.4
3709a31f 15BuildRequires: pam-devel
bff028bb 16BuildRequires: rpmbuild(macros) >= 1.650
178eb1f1 17%{?requires_php_extension}
3709a31f 18Provides: php(%{modname}) = %{version}
a6444b85 19Obsoletes: php-pecl-pam < 1.0.3-8
178eb1f1
AG
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23This extension provides PAM (Pluggable Authentication Modules)
24integration. PAM is a system of libraries that handle the
25authentication tasks of applications and services. The library
26provides a stable API for applications to defer to for authentication
27tasks.
28
84005b97 29In PECL status of this extension is: %{status}.
178eb1f1
AG
30
31%description -l pl.UTF-8
38921c91
JB
32Rozszerzenie to zapewnia integrację z systemem PAM (Pluggable
33Authentication Modules). PAM to system bibliotek obsługujących proces
34uwierzytelniania aplikacji i usług. Biblioteka dostarcza stabilne API
35umożliwiające aplikacjom obsłużenie zadań uwierzytelniania.
178eb1f1 36
84005b97 37To rozszerzenie ma w PECL status: %{status}.
178eb1f1
AG
38
39%prep
84005b97
ER
40%setup -qc
41mv %{modname}-%{version}/* .
178eb1f1
AG
42
43%build
178eb1f1
AG
44phpize
45%configure
46%{__make}
47
48%install
49rm -rf $RPM_BUILD_ROOT
178eb1f1 50%{__make} install \
84005b97
ER
51 EXTENSION_DIR=%{php_extensiondir} \
52 INSTALL_ROOT=$RPM_BUILD_ROOT
53
54install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
178eb1f1
AG
55cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
56; Enable %{modname} extension module
57extension=%{modname}.so
58EOF
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%post
64%php_webserver_restart
65
66%postun
67if [ "$1" = 0 ]; then
68 %php_webserver_restart
69fi
70
71%files
72%defattr(644,root,root,755)
84005b97 73%doc CREDITS README
178eb1f1
AG
74%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
75%attr(755,root,root) %{php_extensiondir}/%{modname}.so
This page took 0.045332 seconds and 4 git commands to generate.