]> git.pld-linux.org Git - packages/mathopd.git/blob - mathopd.spec
- Req user-http
[packages/mathopd.git] / mathopd.spec
1 Summary:        A fast, lightweighte, non-forking HTTP server for UN*X systems
2 Summary(pl):    Szybki, niedu¿y, nie forkuj±cy siê serwer HTTP
3 Name:           mathopd
4 Version:        1.4gamma
5 Release:        2
6 Group:          Networking
7 License:        BSD
8 Source0:        http://www.mathopd.org/dist/%{name}-1.4-gamma.tar.gz
9 Source1:        %{name}.init
10 Source2:        %{name}.conf
11 URL:            http://www.mathopd.org/
12 Provides:       httpd
13 Provides:       webserver
14 Requires(pre):  sh-utils
15 Requires(pre):  user-http
16 Requires(post,preun):   /sbin/chkconfig
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Mathopd is a very small, yet very fast HTTP server for UN*X systems.
21 Mathopd is designed specifically to handle a large number of
22 connections with minimal fuss. It contains no unnecessary add-ons, but
23 it does the trick for most things.
24
25 %description -l pl
26 Mathopd jest bardzo ma³ym, bardzo szybkim serwerem HTTP dla systemów
27 uniksowych. Jest zaprojektowany specjalnie do obs³ugi du¿ej liczby
28 po³±czeñ. Nie ma niepotrzebnych dodatków, ale potrafi wiêkszo¶æ
29 rzeczy.
30
31 %prep
32 %setup -q -n %{name}-1.4
33
34 %build
35 CFLAGS="%{rpmcflags}"; export CFLAGS
36 cd src
37 %{__make}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT/home/httpd/cgi-bin \
42         $RPM_BUILD_ROOT/etc/rc.d/init.d \
43         $RPM_BUILD_ROOT{%{_sbindir},%{_var}/log/mathopd}
44
45 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mathopd
46 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
47 install src/mathopd $RPM_BUILD_ROOT%{_sbindir}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post
53 /sbin/chkconfig --add %{name}
54 if [ -f /var/lock/subsys/mathopd ]; then
55         /etc/rc.d/init.d/mathopd restart 1>&2
56 else
57         echo "Run \"/etc/rc.d/init.d/mathopd start\" to start %{name} daemon."
58 fi
59
60 %preun
61 if [ "$1" = "0" ]; then
62         if [ -f /var/lock/subsys/mathopd ]; then
63                 /etc/rc.d/init.d/mathopd stop 1>&2
64         fi
65         /sbin/chkconfig --del %{name}
66 fi
67
68 %files
69 %defattr(644,root,root,755)
70 %doc [A-Z]* doc/*
71 %attr(755,root,root) %{_sbindir}/mathopd
72 %attr(-, http, http) /home/httpd/*
73 %attr(0755, root, root) /etc/rc.d/init.d/mathopd
74 %config %{_sysconfdir}/mathopd.conf
75 %attr(750,http,http) %dir %{_var}/log/mathopd
This page took 0.054071 seconds and 4 git commands to generate.