Skip to content
Browse files

.spec corrections for EL4 build

  • Loading branch information...
2 parents 072d32b + 3a40c8b commit f91c3497bac481e5f5d4630f6aef58859bcdc933 Pavel Lisý committed Sep 14, 2011
Showing with 15 additions and 11 deletions.
  1. +2 −5 .gitignore
  2. +13 −6 cherokee.spec
View
7 .gitignore
@@ -4,8 +4,5 @@ cherokee-1.0.8.tar.gz
cherokee-1.0.20.tar.gz
clog
cherokee-1.2.1.tar.gz
-<<<<<<< HEAD
-/openssl-1.0.0d.tar.gz
-=======
-/cherokee-1.2.99.tar.gz
->>>>>>> master
+cherokee-1.2.99.tar.gz
+openssl-1.0.0d.tar.gz
View
19 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,15 +16,19 @@ 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
# Drop privileges to cherokee:cherokee after startup
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,15 +66,15 @@ This package holds the development files for cherokee.
%prep
-%if "%{dist}" == ".el5"
+%if "%{dist}" == ".el4" || "%{dist}" == ".el5"
%setup -q -a 100
%else
%setup -q
%endif
%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@fedoraproject.org> - 1.2.99-2
+- .spec corrections for EL4 build
+
* Sat Sep 10 2011 Pavel Lisý <pali@fedoraproject.org> - 1.2.99-1
- Latest 1.2.x upstream release
- Resolves bz 713306

0 comments on commit f91c349

Please sign in to comment.
Something went wrong with that request. Please try again.