-
Notifications
You must be signed in to change notification settings - Fork 0
/
cherokee.spec.in
61 lines (51 loc) · 1.44 KB
/
cherokee.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Cherokee
# Copyright (C) 2001-2014 Alvaro Lopez Ortega
Name: @PACKAGE@
Version: @VERSION@
Release: 1
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_datadir}/doc
Autoreqprov: on
Source: %{name}-%{version}.tar.gz
Summary: Flexible and Fast web server
Group: Productivity/Networking/Web/Servers
URL: http://www.cherokee-project.com
%description
Cherokee is a very fast, flexible and easy to configure Web Server. It
supports the widespread technologies nowadays: FastCGI, SCGI, PHP,
CGI, uWSGI, SSI, TLS and SSL encrypted connections, Virtual hosts,
Authentication, on the fly encoding, Load Balancing, Apache compatible
log files, Data Base Balancing, Reverse HTTP Proxy, Traffic Shaper,
Video Streaming and much more.
%prep
%setup -q
gzip -dc %SOURCE | tar xvf -
%build
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--sbindir=%{_sbindir} \
--with-wwwroot=/home/httpd
make CFLAGS="-O0 -ggdb"
%install
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
mkdir -p /home/httpd
mkdir -p %{_localstatedir}/log
mkdir -p %{_localstatedir}/run
%postun
/sbin/ldconfig
%files
%{_mandir}/*
%{_bindir}/*
%{_libdir}/*
%{_datadir}/*
%{_sbindir}/*
%{_includedir}/*
%{_sysconfdir}/*
/home/httpd/*