3 %bcond_without tests # build without tests
5 %define php_name php%{?php_suffix}
8 Summary: %{modname} - Cyrus SASL extension
9 Summary(pl.UTF-8): %{modname} - rozszerzenie Cyrus SASL
10 Name: %{php_name}-pecl-%{modname}
14 Group: Development/Languages/PHP
15 Source0: http://pecl.php.net/get/%{modname}-0.1.0.tgz
16 # Source0-md5: 8431731cc8a7921a2922af23a57a572f
17 Patch99: prepatch.patch
19 Patch1: php-pecl-%{modname}-lib64_fix.patch
20 URL: http://pecl.php.net/package/sasl/
21 BuildRequires: %{php_name}-devel >= 3:5.0.4
22 BuildRequires: cyrus-sasl-devel
23 BuildRequires: rpmbuild(macros) >= 1.650
24 %{?with_tests:BuildRequires: %{php_name}-cli}
25 %{?requires_php_extension}
26 Provides: php(%{modname}) = %{version}
27 Obsoletes: php-pecl-sasl < 0.1.0-14
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 SASL is the Simple Authentication and Security Layer (as defined by
32 RFC 2222). It provides a system for adding plugable authenticating
33 support to connection-based protocols. The SASL extension for PHP
34 makes the Cyrus SASL library functions available to PHP. It aims to
35 provide a 1-to-1 wrapper around the SASL library to provide the
36 greatest amount of implementation flexibility. To that end, it is
37 possible to build both a client-side and server-side SASL
38 implementation entirely in PHP.
40 In PECL status of this extension is: %{status}.
42 %description -l pl.UTF-8
43 SASL to warstwa prostego uwierzytelnienia i bezpieczeństwa (Simple
44 Authentication and Security Layer) zdefiniowana w RFC 2222. Dostarcza
45 system do dodawania wtyczek obsługujących uwierzytelnianie do
46 protokołów opartych na połączeniach. Rozszerzenie SASL dla PHP
47 udostępnia w PHP funkcje biblioteki Cyrus SASL. Celem jest
48 dostarczenie obudowania 1-do-1 biblioteki SASL, aby udostępnić jak
49 największą elastyczność implementacji. W tym celu możliwe jest
50 zbudowanie zarówno klienckiej jak i serwerowej implementacji SASL
53 To rozszerzenie ma w PECL status: %{status}.
60 %if "%{_lib}" == "lib64"
70 # simple module load test
72 -dextension_dir=modules \
73 -dextension=%{modname}.so \
75 grep %{modname} modules.log
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
81 install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
82 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
83 ; Enable %{modname} extension module
84 extension=%{modname}.so
88 rm -rf $RPM_BUILD_ROOT
91 %php_webserver_restart
95 %php_webserver_restart
99 %defattr(644,root,root,755)
100 %doc docs/TODO docs/guide.txt
101 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
102 %attr(755,root,root) %{php_extensiondir}/%{modname}.so