Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 1383ddc47d4dd0165a08cbcec7db4873 > files > 1

php-sasl-0.1.0-38.mga3.src.rpm

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

Summary:	Cyrus SASL Extension
Name:		php-%{modname}
Epoch:		1
Version:	0.1.0
Release:	%mkrel 38
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/sasl
Source0:	sasl-%{version}.tar.bz2
Patch0:		sasl-0.1.0-lib64.diff
Patch1:		sasl-0.1.0-php54x.diff
Patch2:		sasl-0.1.0-sasl2_shared.diff
BuildRequires:	php-devel >= 3:5.4.3
BuildRequires:	libsasl-devel %{_lib}sasl2

%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-%{version}
%patch0 -p0
%patch1 -p0
%patch2 -p0

%build
%serverbuild

export SASL_SUB="sasl"
export SASL_SHARED_LIBADD="-lsasl2"

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

%make
mv modules/*.so .

%install
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
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

* Wed Jan 30 2013 oden <oden> 1:0.1.0-38.mga3
+ Revision: 393320
- rebuilt for php-5.4.11

* Sun Jan 13 2013 umeabot <umeabot> 1:0.1.0-37.mga3
+ Revision: 377561
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Jul 15 2012 spuhler <spuhler> 1:0.1.0-36.mga3
+ Revision: 270841
- Rebuilt for php-5.4
  added needed patches
- Rebuilt for php-5.4

* Mon Mar 19 2012 fwang <fwang> 1:0.1.0-35.mga2
+ Revision: 224278
- fix detection on .so libs

  + luigiwalser <luigiwalser>
    - try to workaround libsasl-devel bug
    - httpd restart is handled by filetriggers now

  + spuhler <spuhler>
    - rebuild for php-devel-3.5.9

* Sat Apr 30 2011 ahmad <ahmad> 1:0.1.0-34.mga1
+ Revision: 93835
- Bump then rel to smoothen upgrades from mdv 2010.1

* Sat Jan 15 2011 spuhler <spuhler> 1:0.1.0-1.mga1
+ Revision: 19483
-Release:	%%mkrel 37
  +Release:	%%mkrel 1
-BuildRoot:    %%{_tmppath}/%%{name}-%%{version}-%%{release}-buildroot
- imported package php-sasl