Search
j0ke.net Open Build Service
>
Projects
>
server:php:applications
>
php-pear-net_smtp
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Changed
php-pear-net_smtp.spec
@@ -2,13 +2,14 @@ %define _prefix /usr -%if %suse_version >= 1010 +%if 0%{?suse_version} >= 1010 || 0%{?sles_version} >= 10 %define _name php5-pear-net_smtp %define _phpdir php5 %define _phpbin %{_bindir}/php5 %define _peardir PEAR %define _pear pear5 -%else +%endif +%if 0%{?suse_version} < 1010 && 0%{?suse_version} > 0 || 0%{?sles_version} == 9 %define _name php4-pear-net_smtp %define _phpdir php %define _phpbin %{_bindir}/php @@ -19,7 +20,7 @@ # otherwise build fail on > 1010 due to /tmp files # and --packageroot is the correct way but does not # work on 10.1 (pear error..) -%if %suse_version > 1010 +%if 0%{?suse_version} > 1010 %define _packorinst --packagingroot %else %define _packorinst --installroot @@ -37,20 +38,25 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Packager: Marcus Hüwe <suse-tux@gmx.de> -%if %suse_version >= 1010 -Requires: php5-pear -Requires: php5-pear-net_socket -Requires: php5-pear-auth_sasl -BuildRequires: php5 -BuildRequires: php5-pear -%else -Requires: php4-pear -Requires: php4-pear-net_socket -Requires: php4-pear-auth_sasl -BuildRequires: php4 -BuildRequires: php4-pear +%if 0%{?suse_version} >= 1010 +PreReq: php5-pear +Requires: php5-pear php5-pear-net_socket php5-pear-auth_sasl +BuildRequires: php5-pear +%endif + +%if 0%{?suse_version} < 1010 && 0%{?suse_version} > 0 +PreReq: php4-pear +Requires: php4-pear php4-pear-net_socket php4-pear-auth_sasl +BuildRequires: php4-pear +%endif + +%if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} +PreReq: php-pear +Requires: php-pear php-pear-net_socket php-pear-auth_sasl +BuildRequires: php-pear %endif + %description Provides an implementation of the SMTP protocol using PEAR's Net_Socket class.