]> git.pld-linux.org Git - packages/php-pecl-sasl.git/blame_incremental - php-pecl-sasl.spec
add module load test
[packages/php-pecl-sasl.git] / php-pecl-sasl.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_without tests # build without tests
4
5%define php_name php%{?php_suffix}
6%define modname sasl
7%define status alpha
8Summary: %{modname} - Cyrus SASL extension
9Summary(pl.UTF-8): %{modname} - rozszerzenie Cyrus SASL
10Name: %{php_name}-pecl-%{modname}
11Version: 0.2.0
12Release: 1
13License: PHP 3.01
14Group: Development/Languages/PHP
15Source0: http://pecl.php.net/get/%{modname}-0.1.0.tgz
16# Source0-md5: 8431731cc8a7921a2922af23a57a572f
17Patch99: prepatch.patch
18Patch100: branch.diff
19Patch1: php-pecl-%{modname}-lib64_fix.patch
20URL: http://pecl.php.net/package/sasl/
21BuildRequires: %{php_name}-devel >= 3:5.0.4
22BuildRequires: cyrus-sasl-devel
23BuildRequires: rpmbuild(macros) >= 1.650
24%{?with_tests:BuildRequires: %{php_name}-cli}
25%{?requires_php_extension}
26Provides: php(%{modname}) = %{version}
27Obsoletes: php-pecl-sasl < 0.1.0-14
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31SASL is the Simple Authentication and Security Layer (as defined by
32RFC 2222). It provides a system for adding plugable authenticating
33support to connection-based protocols. The SASL extension for PHP
34makes the Cyrus SASL library functions available to PHP. It aims to
35provide a 1-to-1 wrapper around the SASL library to provide the
36greatest amount of implementation flexibility. To that end, it is
37possible to build both a client-side and server-side SASL
38implementation entirely in PHP.
39
40In PECL status of this extension is: %{status}.
41
42%description -l pl.UTF-8
43SASL to warstwa prostego uwierzytelnienia i bezpieczeństwa (Simple
44Authentication and Security Layer) zdefiniowana w RFC 2222. Dostarcza
45system do dodawania wtyczek obsługujących uwierzytelnianie do
46protokołów opartych na połączeniach. Rozszerzenie SASL dla PHP
47udostępnia w PHP funkcje biblioteki Cyrus SASL. Celem jest
48dostarczenie obudowania 1-do-1 biblioteki SASL, aby udostępnić jak
49największą elastyczność implementacji. W tym celu możliwe jest
50zbudowanie zarówno klienckiej jak i serwerowej implementacji SASL
51całkowicie w PHP.
52
53To rozszerzenie ma w PECL status: %{status}.
54
55%prep
56%setup -qc
57mv %{modname}-*/* .
58%patch99 -p1
59%patch100 -p0
60%if "%{_lib}" == "lib64"
61%patch1 -p1
62%endif
63
64%build
65phpize
66%configure
67%{__make}
68
69%if %{with tests}
70# simple module load test
71%{__php} -n \
72 -dextension_dir=modules \
73 -dextension=%{modname}.so \
74 -m > modules.log
75grep %{modname} modules.log
76%endif
77
78%install
79rm -rf $RPM_BUILD_ROOT
80install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
81install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
82cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
83; Enable %{modname} extension module
84extension=%{modname}.so
85EOF
86
87%clean
88rm -rf $RPM_BUILD_ROOT
89
90%post
91%php_webserver_restart
92
93%postun
94if [ "$1" = 0 ]; then
95 %php_webserver_restart
96fi
97
98%files
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
This page took 0.071846 seconds and 5 git commands to generate.