rpms/nginx/devel nginx.spec,1.19,1.20
Jeremy Hinegardner (jjh)
fedora-extras-commits at redhat.com
Mon May 12 05:05:32 UTC 2008
Author: jjh
Update of /cvs/pkgs/rpms/nginx/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29822
Modified Files:
nginx.spec
Log Message:
spec updates for 0.6.30
Index: nginx.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nginx/devel/nginx.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- nginx.spec 18 Mar 2008 18:34:44 -0000 1.19
+++ nginx.spec 12 May 2008 05:04:52 -0000 1.20
@@ -5,10 +5,11 @@
%define nginx_logdir %{_localstatedir}/log/nginx
%define nginx_confdir %{_sysconfdir}/nginx
%define nginx_datadir %{_datadir}/nginx
+%define nginx_webroot %{nginx_datadir}/html
Name: nginx
-Version: 0.5.35
-Release: 3%{?dist}
+Version: 0.6.30
+Release: 1%{?dist}
Summary: Robust, small and high performance http and reverse proxy server
Group: System Environment/Daemons
@@ -31,6 +32,16 @@
Source0: http://sysoev.ru/nginx/nginx-%{version}.tar.gz
Source1: %{name}.init
Source2: %{name}.logrotate
+Source3: virtual.conf
+Source4: ssl.conf
+Source5: nginx-upstream-fair.tgz
+Source6: upstream-fair.conf
+Source7: %{name}.sysconfig
+Source100: index.html
+Source101: poweredby.png
+Source102: nginx-logo.png
+Source103: 50x.html
+Source104: 404.html
# removes -Werror in upstream build scripts. -Werror conflicts with
# -D_FORTIFY_SOURCE=2 causing warnings to turn into errors.
@@ -38,8 +49,8 @@
# nginx has its own configure/build scripts. These patches allow nginx
# to install into a buildroot.
-Patch1: nginx-auto-install.patch
-Patch2: nginx-auto-options.patch
+Patch1: nginx-auto-options.patch
+Patch2: nginx-auto-install.patch
# configuration patch to match all the Fedora paths for logs, pid files
# etc.
@@ -47,7 +58,10 @@
%description
Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3
-proxy server written by Igor Sysoev.
+proxy server written by Igor Sysoev.
+
+One third party module, nginx-upstream-fair, is added
+
%prep
%setup -q
@@ -56,6 +70,7 @@
%patch1 -p0
%patch2 -p0
%patch3 -p0
+%{__tar} zxvf %{SOURCE5}
%build
# nginx does not utilize a standard configure script. It has its own
@@ -83,13 +98,18 @@
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
+ --with-http_gzip_static_module \
--with-http_stub_status_module \
--with-http_perl_module \
--with-mail \
--with-mail_ssl_module \
- --with-cc-opt="%{optflags} $(pcre-config --cflags)"
+ --with-cc-opt="%{optflags} $(pcre-config --cflags)" \
+ --add-module=%{_builddir}/nginx-%{version}/nginx-upstream-fair
make %{?_smp_mflags}
+# rename the readme for nginx-upstream-fair so it doesn't conflict with the main
+# readme
+mv nginx-upstream-fair/README nginx-upstream-fair/README.nginx-upstream-fair
%install
rm -rf %{buildroot}
@@ -102,8 +122,14 @@
chmod 0755 %{buildroot}%{_sbindir}/nginx
%{__install} -p -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}
%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
+%{__install} -p -D -m 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
+%{__install} -p -d -m 0755 %{buildroot}%{nginx_confdir}/conf.d
+%{__install} -p -m 0644 %{SOURCE3} %{SOURCE4} %{SOURCE6} %{buildroot}%{nginx_confdir}/conf.d
%{__install} -p -d -m 0755 %{buildroot}%{nginx_home_tmp}
%{__install} -p -d -m 0755 %{buildroot}%{nginx_logdir}
+%{__install} -p -d -m 0755 %{buildroot}%{nginx_webroot}
+%{__install} -p -m 0644 %{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103} %{SOURCE104} %{buildroot}%{nginx_webroot}
+
# convert to UTF-8 all files that give warnings.
for textfile in CHANGES
@@ -135,22 +161,26 @@
%files
%defattr(-,root,root,-)
-%doc LICENSE CHANGES README
+%doc LICENSE CHANGES README nginx-upstream-fair/README.nginx-upstream-fair
%dir %{nginx_datadir}
-%dir %{nginx_datadir}/html
%{_datadir}/%{name}/*/*
%{_sbindir}/%{name}
%{_mandir}/man3/%{name}.3pm.gz
%{_initrddir}/%{name}
%dir %{nginx_confdir}
+%dir %{nginx_confdir}/conf.d
+%config(noreplace) %{nginx_confdir}/conf.d/*.conf
%config(noreplace) %{nginx_confdir}/win-utf
%config(noreplace) %{nginx_confdir}/%{name}.conf.default
%config(noreplace) %{nginx_confdir}/mime.types.default
+%config(noreplace) %{nginx_confdir}/fastcgi_params
+%config(noreplace) %{nginx_confdir}/fastcgi_params.default
%config(noreplace) %{nginx_confdir}/koi-win
%config(noreplace) %{nginx_confdir}/koi-utf
%config(noreplace) %{nginx_confdir}/%{name}.conf
%config(noreplace) %{nginx_confdir}/mime.types
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
+%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%dir %{perl_vendorarch}/auto/%{name}
%{perl_vendorarch}/%{name}.pm
%{perl_vendorarch}/auto/%{name}/%{name}.so
@@ -160,6 +190,16 @@
%changelog
+* Sun May 11 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.30-1
+- upate to new upstream stable branch 0.6
+- added 3rd party module nginx-upstream-fair
+- added default webpages
+
+* Sun Apr 20 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.35-2
+- update init script to match recommended guidelines
+- add /etc/nginx/conf.d support [#443280]
+- use /etc/sysconfig/nginx to determine nginx.conf [#442708]
+
* Tue Mar 18 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 0.5.35-3
- add Requires for versioned perl (libperl.so)
- drop silly file Requires
More information about the fedora-extras-commits
mailing list