File dba-php-538-http.spec of Package dba-php-549-http

%define pkg_name        pecl_http
%define real_vers       1.7.5

%define php_version     5.4.9
%define php_vers        549
%define prefix          /DBA/apache/PHP/%{php_version}
%define phpcmd          %{prefix}/bin/php
%define phpize          %{prefix}/bin/phpize
%define phpconf         %{prefix}/bin/php-config
%define maketest        0

Name:           dba-php-%{php_vers}-http
Summary: 	Extended HTTP Support
Version: 	%{real_vers}
Release: 	1
License: 	BSD
Packager: 	Holger Manthey <holger.manthey@bertelsmann.de>
Group: 		Productivity/Networking/Web/Servers
URL: 		http://pecl.php.net/pecl_http
Source: 	http://pecl.php.net/package/pecl_http/%{pkg_name}-%{real_vers}.tgz
Source1: 	http.ini
#
BuildRoot: 	%{_tmppath}/%{pkg_name}-%{real_vers}-build

%if 0%{?suse_version} >= 1100
BuildRequires:  -post-build-checks
%endif

#!BuildIgnore:  dba-postgresql-839 dba-postgresql-8319 dba-postgresql-842 dba-postgresql-845 dba-postgresql-846 dba-postgresql-8412
#!BuildIgnore:  dba-postgresql-901 dba-postgresql-902 dba-postgresql-904 dba-postgresql-905 dba-postgresql-906
#!BuildIgnore:  dba-postgresql-910 dba-postgresql-911 dba-postgresql-912 dba-postgresql-914
#!BuildIgnore:  dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c dba-net-snmp-572 dba-libxml2-290

BuildRequires:	dba-php-%{php_vers}
BuildRequires:	openssl-devel curl-devel >= 7.12.3
%if 0%{?suse_version}
%if 0%{?sles_version} != 9
BuildRequires:	file-devel
Requires:	file
%endif
%if 0%{?suse_version} > 1100
BuildRequires: libevent-devel
%else
%if 0%{?sles_version} != 9
BuildRequires: libevent
%endif
%endif
%else
# CentOS + RHEL
BuildRequires:	file
Requires:	file
%endif


%description

Extended HTTP Support

Authors:
---------
    Michael Wallner <mike@php.net>


%prep
%setup -q -n %{pkg_name}-%{real_vers}


%build
%{phpize}

export PHP_EXECUTABLE="%{phpcmd}"

%configure \
  --with-http-magic-mime=no \
  --with-http-zlib-compression=%{_usr} \
  --with-http-curl-requests=%{_usr} \
  --with-http-shared-deps \
  --with-php-config=%{phpconf} \
  --with-libdir=%{_lib}

%{__make} %{?jobs:-j%jobs}

export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2

%if %maketest
%{__make} test
%endif

unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_


%install
# %makeinstall INSTALL_ROOT=%{buildroot}
%{__mkdir_p} %{buildroot}%{prefix}/lib/php/extensions
%{__install} -D -m 0755 ./.libs/http.so %{buildroot}%{prefix}/lib/php/extensions/
if test -d %{buildroot}%{prefix}/include; then
%{__rm} -rf %{buildroot}%{prefix}/include
fi

%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-,root,root,-)
%dir %{prefix}/lib/php/extensions
%{prefix}/lib/php/extensions/http.so


%changelog
* Mon Dec 12 2011 Philipp Hellmich <philipp.hellmich@bertelsmann.de>
- update 1.7.1
* Tue Nov 23 2010 Holger Manthey <holger.manthey@bertelsmann.de>
- require file and update 1.7.0
* Tue Nov 16 2010 Holger Manthey <holger.manthey@bertelsmann.de>
- initial package
openSUSE Build Service is sponsored by