1 %define php_name php%{?php_suffix}
4 Summary: %{modname} - Cyrus SASL extension
5 Summary(pl.UTF-8): %{modname} - rozszerzenie Cyrus SASL
6 Name: %{php_name}-pecl-%{modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
12 # Source0-md5: 8431731cc8a7921a2922af23a57a572f
13 Patch0: php-pecl-%{modname}-lib_fix.patch
14 Patch1: php-pecl-%{modname}-lib64_fix.patch
15 URL: http://pecl.php.net/package/sasl/
16 BuildRequires: %{php_name}-devel >= 3:5.0.0
17 BuildRequires: cyrus-sasl-devel
18 BuildRequires: rpmbuild(macros) >= 1.650
19 %{?requires_php_extension}
20 Requires: php(core) >= 5.0.4
21 Provides: php(%{modname}) = %{version}
22 Obsoletes: php-pear-%{modname}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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}.
37 %description -l pl.UTF-8
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 mv %{modname}-%{version}/* .
53 # Ugly, could be done somehow prettier (one combined patch?)
54 %if "%{_lib}" == "lib64"
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
68 install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
69 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
70 ; Enable %{modname} extension module
71 extension=%{modname}.so
75 rm -rf $RPM_BUILD_ROOT
78 %php_webserver_restart
82 %php_webserver_restart
86 %defattr(644,root,root,755)
88 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
89 %attr(755,root,root) %{php_extensiondir}/%{modname}.so