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 URL: http://pecl.php.net/package/sasl/
15 BuildRequires: cyrus-sasl-devel
16 BuildRequires: libtool
17 BuildRequires: php-devel
19 Obsoletes: php-pear-%{_modname}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _sysconfdir /etc/php
23 %define extensionsdir %{_libdir}/php
26 SASL is the Simple Authentication and Security Layer (as defined by
27 RFC 2222). It provides a system for adding plugable authenticating
28 support to connection-based protocols. The SASL extension for PHP
29 makes the Cyrus SASL library functions available to PHP. It aims to
30 provide a 1-to-1 wrapper around the SASL library to provide the
31 greatest amount of implementation flexibility. To that end, it is
32 possible to build both a client-side and server-side SASL
33 implementation entirely in PHP.
35 In PECL status of this extension is: %{_status}.
39 #To rozszerzenie ma w PECL status: %{_status}.
46 cd %{_modname}-%{version}
48 LDFLAGS="%{_rpmldflags} -L%{_libdir}" %configure
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{extensionsdir}
55 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
58 rm -rf $RPM_BUILD_ROOT
61 %{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
64 if [ "$1" = "0" ]; then
65 %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
69 %defattr(644,root,root,755)
70 %doc %{_modname}-%{version}/docs/TODO
71 %attr(755,root,root) %{extensionsdir}/%{_modname}.so