Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > bc16493655ee0b177ef6ce32ff33b106 > files > 1

php-sasl-5.0.4_0.1.0-1mdk.src.rpm

%define name    php-sasl
%define version 5.0.4
%define rversion 0.1.0

%define modname sasl
%define dirname %{modname}
%define soname %{modname}.so
%define inifile A40_%{modname}.ini

Summary:	Cyrus SASL Extension
Name:		%{name}
Version:	%{version}_%{rversion}
Release:	%mkrel 1
Group:		System/Servers
License:	PHP License
URL:		http://pecl.php.net/package/sasl
Source0:	sasl-%{rversion}.tar.bz2
Patch0:		sasl-0.1.0-lib64.diff.bz2
BuildRequires:	php-devel >= 5.0.4
BuildRequires:	libsasl-devel
Provides:	php5-sasl
Obsoletes:	php5-sasl
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
SASL is the Simple Authentication and Security Layer (as defined
by RFC 2222). It provides a system for adding plugable
authenticating support to connection-based protocols. The SASL
Extension for PHP makes the Cyrus SASL library functions available
to PHP. It aims to provide a 1-to-1 wrapper around the SASL
library to provide the greatest amount of implementation
flexibility. To that end, it is possible to build both a
client-side and server-side SASL implementation entirely in PHP.

%prep

%setup -q -n sasl-%{rversion}
%patch0 -p0

%build
export SASL_SUB="sasl"

phpize
%configure2_5x \
    --with-%{modname}=shared,%{_prefix}

%make
mv modules/*.so .

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m755 %{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}
EOF

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
[ "../package.xml" != "/" ] && rm -f ../package.xml

%files 
%defattr(-,root,root)
%doc docs tests
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

%changelog
* Thu May 26 2005 Oden Eriksson <oeriksson@mandriva.com> 5.0.4_0.1.0-1mdk
- rename the package

* Sat Apr 16 2005 Oden Eriksson <oeriksson@mandriva.com> 5.0.4_0.1.0-1mdk
- 5.0.4

* Sun Mar 20 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 5.0.3_0.1.0-2mdk
- use the %%mkrel macro

* Sat Feb 12 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 5.0.3_0.1.0-1mdk
- initial Mandrakelinux package
- added P0