SPECS: nginx.spec - generate mime.types - pass --user, --grop nginx...

glen glen at pld-linux.org
Sun Feb 25 16:39:48 CET 2007


Author: glen                         Date: Sun Feb 25 15:39:48 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- generate mime.types
- pass --user,--grop nginx to configure

---- Files affected:
SPECS:
   nginx.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/nginx.spec
diff -u SPECS/nginx.spec:1.9 SPECS/nginx.spec:1.10
--- SPECS/nginx.spec:1.9	Sun Feb 25 16:33:45 2007
+++ SPECS/nginx.spec	Sun Feb 25 16:39:42 2007
@@ -6,14 +6,16 @@
 Summary(pl.UTF-8):	Serwer HTTP i odwrotne proxy o wysokiej wydajności
 Name:		nginx
 Version:	0.5.14
-Release:	0.1
+Release:	0.2
 License:	BSD-like
 Group:		Networking/Daemons
 Source0:	http://sysoev.ru/nginx/%{name}-%{version}.tar.gz
 # Source0-md5:	3415c2b49b66fae5b11ca348ec0c2605
 Source1:	%{name}.init
+Source2:	%{name}-mime.types.sh
 Patch0:		%{name}-config.patch
 URL:		http://nginx.net/
+BuildRequires:	mailcap
 BuildRequires:	openssl-devel
 BuildRequires:	pcre-devel
 BuildRequires:	rpmbuild(macros) >= 1.268
@@ -40,6 +42,9 @@
 %setup -q
 %patch0 -p0
 
+# build mime.types.conf
+sh %{SOURCE2} /etc/mime.types
+
 %build
 # NB: not autoconf generated configure
 ./configure \
@@ -48,8 +53,8 @@
 	--conf-path=%{_sysconfdir}/%{name}.conf \
 	--error-log-path=%{_localstatedir}/log/%{name}/error.log \
 	--pid-path=%{_localstatedir}/run/%{name}.pid \
-	--user=nobody \
-	--group=nobody \
+	--user=nginx \
+	--group=nginx \
 	--with-rtsig_module \
 	--with-select_module \
 	--with-poll_module \
@@ -71,6 +76,7 @@
 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sbindir},%{_sysconfdir},/var/{log/%{name},cache/%{name}}}
 
 install conf/* $RPM_BUILD_ROOT%{_sysconfdir}
+install mime.types $RPM_BUILD_ROOT%{_sysconfdir}/mime.types
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
 install objs/%{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
@@ -120,6 +126,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2007/02/25 15:39:42  glen
+- generate mime.types
+- pass --user,--grop nginx to configure
+
 Revision 1.9  2007/02/25 15:33:45  mis
 - free uid/gid
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/nginx.spec?r1=1.9&r2=1.10&f=u



More information about the pld-cvs-commit mailing list