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: 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}.
38 SASL to warstwa prostego uwierzytelnienia i bezpieczeñstwa (Simple
39 Authentication and Security Layer) zdefiniowana w RFC 2222. Dostarcza
40 system do dodawania wtyczek obs³uguj±cych uwierzytelnianie do
41 protoko³ów opartych na po³±czeniach. Rozszerzenie SASL dla PHP
42 udostêpnia w PHP funkcje biblioteki Cyrus SASL. Celem jest
43 dostarczenie obudowania 1-do-1 biblioteki SASL, aby udostêpniæ jak
44 najwiêksz± elastyczno¶æ implementacji. W tym celu mo¿liwe jest
45 zbudowanie zarówno klienckiej jak i serwerowej implementacji SASL
48 To rozszerzenie ma w PECL status: %{_status}.
52 # Ugly, could be done somehow prettier (one combined patch?)
53 %if "%{_lib}" == "lib64"
60 cd %{_modname}-%{version}
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{extensionsdir}
69 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
72 rm -rf $RPM_BUILD_ROOT
75 %{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
78 if [ "$1" = "0" ]; then
79 %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
83 %defattr(644,root,root,755)
84 %doc %{_modname}-%{version}/docs/TODO
85 %attr(755,root,root) %{extensionsdir}/%{_modname}.so