]> git.pld-linux.org Git - packages/mathopd.git/blame - mathopd.spec
Release 6 (by relup.sh)
[packages/mathopd.git] / mathopd.spec
CommitLineData
540582ec 1Summary: A fast, lightweighte, non-forking HTTP server for UN*X systems
a6eee590 2Summary(pl.UTF-8): Szybki, nieduży, nie forkujący się serwer HTTP
0f277a05 3Name: mathopd
c8ce514a 4Version: 1.5
404221cd 5Release: 6
0f277a05 6License: BSD
c95c36e9 7Group: Networking
c8ce514a 8Source0: http://www.mathopd.org/dist/%{name}-%{version}p3.tar.gz
9# Source0-md5: 6e0fea187134cb52509c2f98a8644d11
0f277a05 10Source1: %{name}.init
11Source2: %{name}.conf
58e4e816 12Source3: http://www.mathopd.org/dist/dir_cgi.c.txt
540582ec 13URL: http://www.mathopd.org/
d2b8e099 14Patch0: %{name}-getline.patch
0a59d264 15BuildRequires: rpmbuild(macros) >= 1.268
89e7e8a9
ER
16Requires(post,preun): /sbin/chkconfig
17Requires(postun): /usr/sbin/groupdel
18Requires(postun): /usr/sbin/userdel
43d654f0 19Requires(pre): /bin/id
e0ce5439 20Requires(pre): /usr/bin/getgid
43d654f0 21Requires(pre): /usr/sbin/groupadd
22Requires(pre): /usr/sbin/useradd
e0ce5439 23Requires(pre): sh-utils
e0ce5439 24Provides: group(http)
e0ce5439 25Provides: user(http)
26Provides: webserver
0f277a05 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
8fccbf0c 29%define _datadir /home/services/httpd
30
0f277a05 31%description
32Mathopd is a very small, yet very fast HTTP server for UN*X systems.
33Mathopd is designed specifically to handle a large number of
34connections with minimal fuss. It contains no unnecessary add-ons, but
35it does the trick for most things.
36
f308e290
JR
37%description -l pl.UTF-8
38Mathopd jest bardzo małym, bardzo szybkim serwerem HTTP dla systemów
39uniksowych. Jest zaprojektowany specjalnie do obsługi dużej liczby
40połączeń. Nie ma niepotrzebnych dodatków, ale potrafi większość
540582ec 41rzeczy.
0f277a05 42
43%prep
89e7e8a9 44%setup -q -n %{name}-%{version}p3
d2b8e099 45%patch0 -p1
0f277a05 46
58e4e816 47cp -f %{SOURCE3} dir_cgi.c
48
0f277a05 49%build
50CFLAGS="%{rpmcflags}"; export CFLAGS
58e4e816 51%{__cc} %{rpmcflags} %{rpmldflags} -o mathopd-dir_cgi dir_cgi.c
52
0f277a05 53cd src
58e4e816 54%{__make} CC="%{__cc}"
0f277a05 55
56%install
57rm -rf $RPM_BUILD_ROOT
8fccbf0c 58install -d $RPM_BUILD_ROOT%{_datadir}/cgi-bin \
2bfa1db2 59 $RPM_BUILD_ROOT/etc/rc.d/init.d \
60 $RPM_BUILD_ROOT{%{_sbindir},%{_var}/log/mathopd}
0f277a05 61
62install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mathopd
2bfa1db2 63install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
64install src/mathopd $RPM_BUILD_ROOT%{_sbindir}
58e4e816 65install mathopd-dir_cgi $RPM_BUILD_ROOT%{_sbindir}
0f277a05 66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
b6088186 70%pre
b911ae27
ER
71%groupadd -g 51 -r -f http
72%useradd -u 51 -r -d %{_datadir} -s /bin/false -c "HTTP User" -g http http
b6088186 73
0f277a05 74%post
75/sbin/chkconfig --add %{name}
0a59d264 76%service mathopd restart "%{name} HTTP daemon"
0f277a05 77
78%preun
79if [ "$1" = "0" ]; then
0a59d264 80 %service mathopd stop
0f277a05 81 /sbin/chkconfig --del %{name}
82fi
83
b6088186 84%postun
85if [ "$1" = "0" ]; then
e0ce5439 86 %userremove http
87 %groupremove http
b6088186 88fi
89
0f277a05 90%files
91%defattr(644,root,root,755)
2bfa1db2 92%doc [A-Z]* doc/*
58e4e816 93%attr(755,root,root) %{_sbindir}/mathopd*
8fccbf0c 94%attr(755,http,http) %{_datadir}
41ea753a 95%attr(754,root,root) /etc/rc.d/init.d/mathopd
89e7e8a9 96%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mathopd.conf
2bfa1db2 97%attr(750,http,http) %dir %{_var}/log/mathopd
This page took 0.088305 seconds and 4 git commands to generate.