[icinga-checkins] icinga.org: icinga-web/feature/sles-pkg-5094: Fix PHP package name on SLES.

git at icinga.org git at icinga.org
Mon Nov 18 12:44:01 CET 2013


Module: icinga-web
Branch: feature/sles-pkg-5094
Commit: a84db6013a28bdf35d7b96c8aa266341bc44a68e
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=a84db6013a28bdf35d7b96c8aa266341bc44a68e

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Mon Nov 18 12:06:35 2013 +0100

Fix PHP package name on SLES.

Refs #5094

---

 icinga-web.spec |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/icinga-web.spec b/icinga-web.spec
index 0c9b4a8..c2e57a2 100644
--- a/icinga-web.spec
+++ b/icinga-web.spec
@@ -10,7 +10,11 @@
 %define reportingcachedir %{_localstatedir}/cache/%{name}/reporting
 
 %if "%{_vendor}" == "suse"
+%if 0%{?suse_version} >= 1210 || 0%{?suse_version} <= 1120
 %define phpname php5
+%else
+%define phpname php53
+%endif
 %endif
 %if "%{_vendor}" == "redhat"
 %define phpname php
@@ -52,7 +56,9 @@ Source0:        https://downloads.sourceforge.net/project/icinga/icinga-web/%{ve
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
 BuildRequires:  %{phpname} >= 5.2.3
+%if "%{_vendor}" != "suse" || 0%{?suse_version} != 1130
 BuildRequires:  %{phpname}-devel >= 5.2.3
+%endif
 BuildRequires:  %{phpname}-gd
 BuildRequires:  %{phpname}-ldap
 BuildRequires:  %{phpname}-pdo
@@ -64,7 +70,9 @@ BuildRequires:  php-pear
 %if "%{_vendor}" == "suse"
 Requires:       %{phpname}-devel >= 5.2.3
 BuildRequires:  %{phpname}-json
+%if 0%{?suse_version} != 1130
 BuildRequires:  %{phpname}-sockets
+%endif
 BuildRequires:  %{phpname}-xsl
 BuildRequires:  %{phpname}-dom
 BuildRequires:  %{phpname}-pear





More information about the icinga-checkins mailing list