Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 62 lines (51 sloc) 1.496 kb
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
1 # Cherokee
2 # Copyright (C) 2001-2006 Alvaro Lopez Ortega
3
4 Name: @PACKAGE@
5 Version: @VERSION@
6 Release: 1
7 License: GPL
8 BuildRoot: %{_tmppath}/%{name}-%{version}-build
9 Docdir: %{_datadir}/doc
10 Autoreqprov: on
11 Source: %{name}-%{version}.tar.gz
12 Summary: Flexible and Fast web server
13 Group: Productivity/Networking/Web/Servers
14 URL: http://www.0x50.org
15
16 %description
17 Cherokee is a very fast, flexible and easy to configure Web Server.
18 It supports the widespread technologies nowadays: FastCGI, SCGI, PHP,
19 CGI, TLS and SSL encrypted connections, Virtual hosts, Authentication,
20 on the fly encoding, Apache compatible log files, and much more.
21
22 %prep
23 %setup -q
24 gzip -dc %SOURCE | tar xvf -
25
26 %build
27 CFLAGS="$RPM_OPT_FLAGS" \
28 ./configure --prefix=%{_prefix} \
29 --sysconfdir=%{_sysconfdir} \
30 --mandir=%{_mandir} \
31 --sbindir=%{_sbindir} \
32 --with-wwwroot=/home/httpd/ \
33 --enable-pthreads
34 make CFLAGS="-O0 -g3"
35
36 %install
37 make install DESTDIR=$RPM_BUILD_ROOT
38 rm $RPM_BUILD_ROOT/etc/cherokee/sites-enabled/default
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %post
44 /sbin/ldconfig
45 ln -s %{_sysconfdir}/cherokee/sites-available/default \
46 %{_sysconfdir}/cherokee/sites-enabled/default
47 mkdir -p /home/httpd
48
49 %postun
50 /sbin/ldconfig
51
52 %files
53 %{_mandir}/*
54 %{_bindir}/*
55 %{_libdir}/*
56 %{_datadir}/*
57 %{_sbindir}/*
58 %{_includedir}/*
59 %{_sysconfdir}/*
60 /home/httpd/*
61
Something went wrong with that request. Please try again.