Changes of Revision 5
[-] | Changed | php5-raphf.spec |
x 1
2 # norootforbuild 3 %define pkg_name raphf 4 +%define php_version %(php-config --version 2>/dev/null) 5 +%if "%{pkg_version}" >= "5.6" 6 +%define my_version 2.0.0 7 +%define upstream 1 8 +%else 9 +%define my_version 1.0.4 10 +%define upstream 0 11 +%endif 12 # 13 Name: php5-raphf 14 -Version: 2.0.0 15 +Version: %{my_version} 16 Release: 0 17 # 18 License: PHP 19 Group: Productivity/Networking/Web/Servers 20 # 21 -BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build 22 +BuildRoot: %{_tmppath}/%{pkg_name}-%{my_version}-build 23 BuildRequires: php5-devel 24 BuildRequires: -php5-raphf 25 BuildRequires: -php5-propro 26 # 27 URL: http://pecl.php.net/raphf 28 -Source: http://pecl.php.net/package/raphf/%{pkg_name}-%{version}.tgz 29 +Source: http://pecl.php.net/package/raphf/%{pkg_name}-%{my_version}.tgz 30 Summary: pecl_http's persistent handle and resource factory API 31 32 %description 33
34 35 %prep 36 37 -%setup -q -n %{pkg_name}-%{version} 38 +%setup -q -n %{pkg_name}-%{my_version} 39 40 %{__mkdir} %{name} 41 42 |