pali pushed to cherokee (epel7). ".spec corrections for EL4 build"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Apr 20 08:12:28 UTC 2015


>From 760d9e3e7eaf016a05defbd1900be0cf26f15914 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20Lis=C3=BD?= <pali at fedoraproject.org>
Date: Wed, 14 Sep 2011 11:33:56 +0200
Subject: .spec corrections for EL4 build


diff --git a/cherokee.spec b/cherokee.spec
index ed35fcd..4b76125 100644
--- a/cherokee.spec
+++ b/cherokee.spec
@@ -5,7 +5,7 @@
 
 Name:           cherokee
 Version:        1.2.99
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Flexible and Fast Webserver
 
 Group:          Applications/Internet
@@ -16,7 +16,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Source1:        %{name}.init
 Source2:        %{name}.logrotate
 Source3:        %{name}.service
-%if "%{dist}" == ".el5"
+%if "%{dist}" == ".el4" || "%{dist}" == ".el5"
 Source100:      http://www.openssl.org/source/openssl-%{opensslversion}.tar.gz
 %endif
 
@@ -24,7 +24,11 @@ Source100:      http://www.openssl.org/source/openssl-%{opensslversion}.tar.gz
 Patch0: 01-drop-privileges.patch
 
 BuildRequires:  pam-devel mysql-devel pcre
-BuildRequires:  php-cli GeoIP-devel openldap-devel
+%if "%{dist}" == ".el4"
+BuildRequires:  php
+%else
+BuildRequires:  php-cli
+%endif
 # BuildRequires:  pcre-devel
 BuildRequires:  gettext
 # For spawn-fcgi
@@ -62,7 +66,7 @@ This package holds the development files for cherokee.
 
 
 %prep
-%if "%{dist}" == ".el5"
+%if "%{dist}" == ".el4" || "%{dist}" == ".el5"
 %setup -q -a 100
 %else
 %setup -q
@@ -70,7 +74,7 @@ This package holds the development files for cherokee.
 %patch0 -p1 -b .privs
 
 %build
-%if "%{dist}" == ".el5"
+%if "%{dist}" == ".el4" || "%{dist}" == ".el5"
 pushd openssl-%{opensslversion}
 ./config --prefix=/usr --openssldir=%{_sysconfdir}/pki/tls shared
 RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wa,--noexecstack"
@@ -84,7 +88,7 @@ popd
 %endif
 
 %configure --with-wwwroot=%{_var}/www/%{name} \
-%if "%{dist}" == ".el5"
+%if "%{dist}" == ".el4" || "%{dist}" == ".el5"
    --with-libssl=$(pwd)/openssl-%{opensslversion} --enable-static-module=libssl \
 %else
    --with-libssl \
@@ -244,6 +248,9 @@ fi
 %{_libdir}/lib%{name}-*.so
 
 %changelog
+* Wed Sep 14 2011 Pavel Lisý <pali at fedoraproject.org> - 1.2.99-2
+- .spec corrections for EL4 build
+
 * Sat Sep 10 2011 Pavel Lisý <pali at fedoraproject.org> - 1.2.99-1
 - Latest 1.2.x upstream release
 - Resolves bz 713306
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/cherokee.git/commit/?h=epel7&id=760d9e3e7eaf016a05defbd1900be0cf26f15914


More information about the scm-commits mailing list