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