From dfef7372c0ee07c0aa8c295d0479dc79ff388cbc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 25 Feb 2007 15:39:42 +0000 Subject: [PATCH] - generate mime.types - pass --user,--grop nginx to configure Changed files: nginx.spec -> 1.10 --- nginx.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/nginx.spec b/nginx.spec index f0cdb77..682634e 100644 --- a/nginx.spec +++ b/nginx.spec @@ -5,14 +5,16 @@ Summary: High perfomance HTTP and reverse proxy server 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 @@ -39,6 +41,9 @@ Serwer HTTP i odwrotne proxy o wysokiej wydajności. %setup -q %patch0 -p0 +# build mime.types.conf +sh %{SOURCE2} /etc/mime.types + %build # NB: not autoconf generated configure ./configure \ @@ -47,8 +52,8 @@ Serwer HTTP i odwrotne proxy o wysokiej wydajności. --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 \ @@ -70,6 +75,7 @@ rm -rf $RPM_BUILD_ROOT 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} -- 2.44.0