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 Patch0: %{name}-lib_fix.patch
14 Patch1: %{name}-lib64_fix.patch
15 URL: http://pecl.php.net/package/sasl/
16 BuildRequires: cyrus-sasl-devel
17 BuildRequires: libtool
18 BuildRequires: php-devel
20 Obsoletes: php-pear-%{_modname}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _sysconfdir /etc/php
24 %define extensionsdir %{_libdir}/php
27 SASL is the Simple Authentication and Security Layer (as defined by
28 RFC 2222). It provides a system for adding plugable authenticating
29 support to connection-based protocols. The SASL extension for PHP
30 makes the Cyrus SASL library functions available to PHP. It aims to
31 provide a 1-to-1 wrapper around the SASL library to provide the
32 greatest amount of implementation flexibility. To that end, it is
33 possible to build both a client-side and server-side SASL
34 implementation entirely in PHP.
36 In PECL status of this extension is: %{_status}.
40 #To rozszerzenie ma w PECL status: %{_status}.
44 # Ugly, could be done somehow prettier (one combined patch?)
52 cd %{_modname}-%{version}
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{extensionsdir}
61 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
64 rm -rf $RPM_BUILD_ROOT
67 %{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
70 if [ "$1" = "0" ]; then
71 %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
75 %defattr(644,root,root,755)
76 %doc %{_modname}-%{version}/docs/TODO
77 %attr(755,root,root) %{extensionsdir}/%{_modname}.so