4 Summary: %{_modname} - Cyrus SASL Extension
5 Summary(pl): %{_modname} - Rozszerzenie Cyrus SASL
6 Name: php-pecl-%{_modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
12 # Source0-md5: 8431731cc8a7921a2922af23a57a572f
13 URL: http://pecl.php.net/package/sasl/
14 BuildRequires: cyrus-sasl-devel
15 BuildRequires: libtool
16 BuildRequires: php-devel
18 Obsoletes: php-pear-%{_modname}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _sysconfdir /etc/php
22 %define extensionsdir %{_libdir}/php
25 SASL is the Simple Authentication and Security Layer (as defined by
26 RFC 2222). It provides a system for adding plugable authenticating
27 support to connection-based protocols. The SASL Extension for PHP
28 makes the Cyrus SASL library functions available to PHP. It aims to
29 provide a 1-to-1 wrapper around the SASL library to provide the
30 greatest amount of implementation flexibility. To that end, it is
31 possible to build both a client-side and server-side SASL
32 implementation entirely in PHP.
34 In PECL status of this extension is: %{_status}.
38 #To rozszerzenie ma w PECL status: %{_status}.
44 cd %{_modname}-%{version}
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{extensionsdir}
53 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
56 rm -rf $RPM_BUILD_ROOT
59 %{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
62 if [ "$1" = "0" ]; then
63 %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
67 %defattr(644,root,root,755)
68 %doc %{_modname}-%{version}/docs/TODO
69 %attr(755,root,root) %{extensionsdir}/%{_modname}.so