Search
j0ke.net Open Build Service
>
Projects
>
server:php:applications
>
php-pear-mail
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Changed
php-pear-mail.spec
@@ -9,19 +9,29 @@ # norootforbuild -%if %suse_version >= 1010 +%if 0%{?suse_version} >= 1010 || 0%{?sles_version} >= 10 %define _name php5-pear-mail %define _phpdir php5 %define _phpbin %{_bindir}/php5 %define _peardir PEAR %define _pear pear5 -%else +%endif +%if 0%{?suse_version} < 1010 || 0%{?sles_version} == 9 %define _name php4-pear-mail %define _phpdir php %define _phpbin %{_bindir}/php %define _peardir / %define _pear pear %endif +%if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} +%define _name php-pear-mail +%define _phpdir php +%define _phpbin %{_bindir}/php +%define _peardir / +%define _pear pear +%endif + + %define peardir %(%{_pear} config-get php_dir 2> /dev/null || echo %{_datadir}/pear) %define xmldir /var/lib/pear @@ -33,16 +43,24 @@ Release: 0 Summary: PEAR class that provides multiple interfaces for sending emails URL: http://pear.php.net/package/Mail -%if %suse_version >= 1010 -Requires: php5-pear -Requires: php5-pear-net_smtp -BuildRequires: php5-pear -PreReq: php5-pear -%else -Requires: php4-pear -Requires: php4-pear-net_smtp -BuildRequires: php4-pear +%if 0%{?suse_version} >= 1010 +PreReq: php5-pear +Requires: php5-pear php5-pear-net_smtp +BuildRequires: php5-pear +%endif + +%if 0%{?suse_version} < 1010 && 0%{?suse_version} > 0 +PreReq: php4-pear +Requires: php4-pear php4-pear-net_smtp +BuildRequires: php4-pear %endif + +%if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} +PreReq: php-pear +Requires: php-pear php-pear-net_smtp +BuildRequires: php-pear +%endif + Provides: php-pear-mail Source: http://pear.php.net/get/Mail-%{version}.tgz BuildArch: noarch