Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
extensions
>
php5-pecl_http
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Added
php5-pecl_http.spec
@@ -0,0 +1,122 @@ +# norootforbuild +%define pkg_name pecl_http +%define php_version %(php-config --version 2>/dev/null) +# +Name: php5-pecl_http +Version: 1.6.0 +Release: 0 +# +License: BSD +Group: Productivity/Networking/Web/Servers +# +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build + +#yes, PHP modules are required for build, as configure tests it's precence, to enable +#or disable features. +BuildRequires: php5-devel curl-devel file-devel libevent php5-iconv php5-hash +Requires: php5 = %{php_version} php5-iconv php5-hash +# +URL: http://pecl.php.net/pecl_http +Source: http://pecl.php.net/package/pecl_http/%{pkg_name}-%{version}.tgz +Source1: http.ini +Summary: Extended HTTP Support + +%description + +Extended HTTP Support + +Authors: +--------- + Michael Wallner <mike@php.net> + +%package devel +Summary: Include files of php5-pecl_http +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} php5-devel curl-devel file-devel libevent + +%description devel + +Extended HTTP Support + +Authors: +--------- + Michael Wallner <mike@php.net> + + +%prep +%setup -q -n %{pkg_name}-%{version} + + +#%{__mkdir} %{name} + +%build +/usr/bin/phpize +#pushd %{name} + +CFLAGS="%{optflags} -fno-strict-aliasing" +CXXFLAGS="%{optflags} -fno-strict-aliasing" + +%if 0%{?suse_version} > 1000 +CFLAGS="$CFLAGS -fstack-protector" +CXXFLAGS="$CXXFLAGS -fstack-protector" +%endif + +export CFLAGS +export CXXFLAGS + +export PHP_EXECUTABLE="/usr/bin/php5" + +%configure \ +--with-http-magic-mime=%{_usr} \ +--with-http-zlib-compression=%{_usr} \ +--with-http-curl-requests=%{_usr} \ +--with-http-shared-deps \ +--with-libdir=%{_lib} + +%{__make} %{?jobs:-j%jobs} + +export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2 + +%{__make} test + +unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_ + +%install + +%makeinstall INSTALL_ROOT=%{buildroot} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d +%{__install} -m 644 %{S:1} %{buildroot}%{_sysconfdir}/php5/conf.d/http.ini + +%clean + +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_libdir}/php5/extensions/http.so +%config(noreplace) %{_sysconfdir}/php5/conf.d/http.ini + +%files devel +%defattr(-,root,root,-) +%dir %{_includedir}/php5/ext/http +%dir %{_includedir}/php5/ext/http/phpstr +%{_includedir}/php5/ext/http/*.h +%{_includedir}/php5/ext/http/phpstr/*.h + +%doc lib LICENSE CREDITS KnownIssues.txt + +%changelog -n php5-pecl_http +* Sun Feb 25 2007 - judas_iscariote@shorewall.net +- version bump to 1.5.2 +* Wed Feb 21 2007 - judas_iscariote@shorewall.net +- version 1.5.1 solves compile problems in older PHP versions. +* Tue Feb 20 2007 - judas_iscariote@shorewall.net +- update to version 1.5.0 +* Sun Jan 29 2007 - judas_iscariote@shorewall.net +- update to 1.4.1 +* Tue Jan 23 2007 - judas_iscariote@shorewall.net +- Update to 1.4.0 final. +* Mon Dec 11 2006 - judas_iscariote@shorewall.net +- we need to export php executable name and add php5-hash and php5-iconv to BuildRequires +* Thu Nov 09 2006 - soporte@onfocus.cl +- very first build