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 19
[-]
[+]
Changed
php5-pecl_http.spec
@@ -1,14 +1,15 @@ # norootforbuild %define pkg_name pecl_http +%define pkg_version %(php-config --version | awk -F. '{print $1"."$2 }' 2>/dev/null || echo PHPCONFIG_NOT_FOUND) %define php_version %(php-config --version 2>/dev/null) -%if %{php_version} >= 5.6 -%define pkg_version 2.4.3 +%if "%{pkg_version}" == "5.6" +%define my_version 2.4.3 %else -%define pkg_version 1.7.6 +%define my_version 1.7.6 %endif # Name: php5-pecl_http -Version: %{pkg_version} +Version: %{my_version} Release: 0 # License: BSD @@ -22,7 +23,7 @@ Requires: php5 = %{php_version} php-iconv php-hash # URL: http://pecl.php.net/pecl_http -Source: http://pecl.php.net/package/pecl_http/%{pkg_name}-%{pkg_version}.tar.bz2 +Source: http://pecl.php.net/package/pecl_http/%{pkg_name}-%{my_version}.tar.bz2 Source1: http.ini Summary: Extended HTTP Support @@ -37,7 +38,7 @@ %package devel Summary: Include files of php5-pecl_http Group: Development/Libraries/C and C++ -Requires: %{name} = %{pkg_version} php5-devel curl-devel file-devel libevent +Requires: %{name} = %{my_version} php5-devel curl-devel file-devel libevent %description devel @@ -49,7 +50,7 @@ %prep -%setup -q -n %{pkg_name}-%{pkg_version} +%setup -q -n %{pkg_name}-%{my_version} #%{__mkdir} %{name}