SPECS: nginx.spec - working on

sardzent sardzent at pld-linux.org
Thu Nov 29 18:52:20 CET 2007


Author: sardzent                     Date: Thu Nov 29 17:52:20 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- working on 

---- Files affected:
SPECS:
   nginx.spec (1.42 -> 1.43) 

---- Diffs:

================================================================
Index: SPECS/nginx.spec
diff -u SPECS/nginx.spec:1.42 SPECS/nginx.spec:1.43
--- SPECS/nginx.spec:1.42	Thu Nov 29 17:44:12 2007
+++ SPECS/nginx.spec	Thu Nov 29 18:52:15 2007
@@ -57,6 +57,7 @@
 Requires(pre):	/usr/bin/getgid
 Requires(pre):	/usr/sbin/groupadd
 Requires(pre):	/usr/sbin/useradd
+Requires:	%{name}-common = %{version}-%{release}
 Requires:	openssl
 Requires:	pcre
 Requires:	rc-scripts >= 0.2.0
@@ -66,6 +67,9 @@
 Provides:	user(nginx)
 Provides:	webserver
 Conflicts:	logrotate < 3.7-4
+Conflicts:	%{name}-light
+Conflicts:	%{name}-mail
+Conflicts:	%{name}-perl
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_sysconfdir	/etc/%{name}
@@ -80,6 +84,9 @@
 beta, Nginx is known for its stability, rich feature set, simple
 configuration, and low resource consumption.
 
+This is standard nginx version, without perl support and imap, pop3,
+smtp proxy.
+
 %description -l pl.UTF-8
 Nginx ("engine x") jest wysokowydajnym serwerem HTTP, odwrotnym proxy
 a także IMAP/POP3 proxy. Nginx został napisany przez Igora Sysoev'a
@@ -89,56 +96,138 @@
 w fazie beta, już zasÅynÄÅ dzieki stabilnoÅi, bogactwu dodatków,
 prostej konfiguracji oraz maÅej "zasobożernoÅi".
 
+To jest standardowa wersja nginx, bez obs³ugi perla oraz proxy dla
+imap, pop3, smtp.
+
 %package light
 Summary:	High perfomance HTTP and reverse proxy server
 Summary(pl.UTF-8):	Serwer HTTP i odwrotne proxy o wysokiej wydajno�~[ci
-Group:		Applications/System
-Requires:	nginx-common
+License:	BSD-like
+Group:		Networking/Daemons
+URL:		http://nginx.net/
+Requires(post,preun):	/sbin/chkconfig
+Requires(postun):	/usr/sbin/groupdel
+Requires(postun):	/usr/sbin/userdel
+Requires:	%{name}-common = %{version}-%{release}
+Requires:	openssl
+Requires:	pcre
+Requires:	zlib
 Provides:	group(http)
 Provides:	group(nginx)
 Provides:	user(nginx)
 Provides:	webserver
+Conflicts:	%{name}
+Conflicts:	%{name}-mail
+Conflicts:	%{name}-perl
 
 %description light
+Nginx ("engine x") is a high-performance HTTP server and reverse
+proxy, as well as an IMAP/POP3 proxy server. Nginx was written by Igor
+Sysoev for Rambler.ru, Russia's second-most visited website, where it
+has been running in production for over two and a half years. Igor has
+released the source code under a BSD-like license. Although still in
+beta, Nginx is known for its stability, rich feature set, simple
+configuration, and low resource consumption.
+
 The smallest, but also the fastest nginx edition. No additional
-modules, no perl support, no imap, pop3, smtp proxy
+modules, no perl, no dav, no flv, no imap, pop3, smtp proxy.
 
 %description light -l pl.UTF-8
+Nginx ("engine x") jest wysokowydajnym serwerem HTTP, odwrotnym proxy
+a także IMAP/POP3 proxy. Nginx zostaÅ<82> napisany przez Igora Sysoev'a
+na potrzeby serwisu Rambler.ru. Jest to drugi pod wzglÄ<99>dem iloÅ<9B>ci
+odwiedzin serwis w Rosji i dziaÅ<82>a od ponad dwóch i póÅ<82> roku. Igor
+opublikowaÅ<82> źródÅ<82>a na licencji BSD. Mimo, że projekt jest ciÄ<85>gle
+w fazie beta, już zasÅynÄÅ dzieki stabilnoÅi, bogactwu dodatków,
+prostej konfiguracji oraz maÅej "zasobożernoÅi".
+
 Najmniejsza i najszybsza wersja nginx. Bez wsparcia dla perla,
-dodatkowych modulow oraz imap, pop3, smtp proxy
+dav, flv oraz imap, pop3, smtp proxy.
 
 %package perl
 Summary:	High perfomance HTTP and reverse proxy server
 Summary(pl.UTF-8):	Serwer HTTP i odwrotne proxy o wysokiej wydajno�~[ci
-Group:		Applications/System
-Requires:	nginx-common
+License:	BSD-like
+Group:		Networking/Daemons
+URL:            http://nginx.net/
+Requires(post,preun):	/sbin/chkconfig
+Requires(postun):	/usr/sbin/groupdel
+Requires(postun):	/usr/sbin/userdel
+Requires:	%{name}-common = %{version}-%{release}
+Requires:	openssl
 Requires:	perl-mod_%{mod_name} = %{epoch}:%{version}-%{release}
 Provides:	group(http)
 Provides:	group(nginx)
 Provides:	user(nginx)
 Provides:	webserver
+Conflicts:	%{name}
+Conflicts:	%{name}-light
+Conflicts:	%{name}-mail
 
 %description perl
+Nginx ("engine x") is a high-performance HTTP server and reverse
+proxy, as well as an IMAP/POP3 proxy server. Nginx was written by Igor
+Sysoev for Rambler.ru, Russia's second-most visited website, where it
+has been running in production for over two and a half years. Igor has
+released the source code under a BSD-like license. Although still in
+beta, Nginx is known for its stability, rich feature set, simple
+configuration, and low resource consumption.
+
 Nginx with perl support. Mail modules not included.
 
 %description perl -l pl.UTF-8
-Nignx z obsluga perla. Bez wsparcia dla modulow poczty.
+Nginx ("engine x") jest wysokowydajnym serwerem HTTP, odwrotnym proxy
+a także IMAP/POP3 proxy. Nginx zostaÅ<82> napisany przez Igora Sysoev'a
+na potrzeby serwisu Rambler.ru. Jest to drugi pod wzglÄ<99>dem iloÅ<9B>ci
+odwiedzin serwis w Rosji i dziaÅ<82>a od ponad dwóch i póÅ<82> roku. Igor
+opublikowaÅ<82> źródÅ<82>a na licencji BSD. Mimo, że projekt jest ciÄ<85>gle
+w fazie beta, już zasÅynÄÅ dzieki stabilnoÅi, bogactwu dodatków,
+prostej konfiguracji oraz maÅej "zasobożernoÅi".
+
+Nginx z obsluga perla. Bez wsparcia dla modulow poczty.
 
 %package mail
 Summary:	High perfomance HTTP and reverse proxy server
 Summary(pl.UTF-8):	Serwer HTTP i odwrotne proxy o wysokiej wydajno�~[ci
-Group:		Applications/System
-Requires:	nginx-common
+License:	BSD-like
+Group:		Networking/Daemons
+URL:		http://nginx.net/
+Requires(post,preun):	/sbin/chkconfig
+Requires(postun):	/usr/sbin/groupdel
+Requires(postun):	/usr/sbin/userdel
+Requires:	%{name}-common = %{version}-%{release}
+Requires:	openssl
+Requires:	pcre
+Requires:	zlib
 Provides:	group(http)
 Provides:	group(nginx)
 Provides:	user(nginx)
 Provides:	webserver
+Conflicts:	%{name}
+Conflicts:	%{name}-light
+Conflicts:	%{name}-perl
 
 %description mail
+Nginx ("engine x") is a high-performance HTTP server and reverse
+proxy, as well as an IMAP/POP3 proxy server. Nginx was written by Igor
+Sysoev for Rambler.ru, Russia's second-most visited website, where it
+has been running in production for over two and a half years. Igor has
+released the source code under a BSD-like license. Although still in
+beta, Nginx is known for its stability, rich feature set, simple
+configuration, and low resource consumption.
+
 Nginx with mail support. Only mail modules included.
 
 %description mail -l pl.UTF-8
-Nignx ze wsparciem tylko dla modulow poczty.
+Nginx ("engine x") jest wysokowydajnym serwerem HTTP, odwrotnym proxy
+a także IMAP/POP3 proxy. Nginx zostaÅ<82> napisany przez Igora Sysoev'a
+na potrzeby serwisu Rambler.ru. Jest to drugi pod wzglÄ<99>dem iloÅ<9B>ci
+odwiedzin serwis w Rosji i dziaÅ<82>a od ponad dwóch i póÅ<82> roku. Igor
+opublikowaÅ<82> źródÅ<82>a na licencji BSD. Mimo, że projekt jest ciÄ<85>gle
+w fazie beta, już zasÅynÄÅ dzieki stabilnoÅi, bogactwu dodatków,
+prostej konfiguracji oraz maÅej "zasobożernoÅi".
+
+Nginx ze wsparciem tylko dla modulow poczty.
 
 
 %package common
@@ -147,14 +236,33 @@
 Group:		Networking/Daemons
 
 %description common
-Common files for nginx daemon
+Nginx ("engine x") is a high-performance HTTP server and reverse
+proxy, as well as an IMAP/POP3 proxy server. Nginx was written by Igor
+Sysoev for Rambler.ru, Russia's second-most visited website, where it
+has been running in production for over two and a half years. Igor has
+released the source code under a BSD-like license. Although still in
+beta, Nginx is known for its stability, rich feature set, simple
+configuration, and low resource consumption.
+
+Common files for nginx daemon.
 
 %description common -l pl.UTF-8
-Niezbedne pliki dla nginx
+Nginx ("engine x") jest wysokowydajnym serwerem HTTP, odwrotnym proxy
+a także IMAP/POP3 proxy. Nginx zostaÅ<82> napisany przez Igora Sysoev'a
+na potrzeby serwisu Rambler.ru. Jest to drugi pod wzglÄ<99>dem iloÅ<9B>ci
+odwiedzin serwis w Rosji i dziaÅ<82>a od ponad dwóch i póÅ<82> roku. Igor
+opublikowaÅ<82> źródÅ<82>a na licencji BSD. Mimo, że projekt jest ciÄ<85>gle
+w fazie beta, już zasÅynÄÅ dzieki stabilnoÅi, bogactwu dodatków,
+prostej konfiguracji oraz maÅej "zasobożernoÅi".
+
+Niezbedne pliki dla nginx.
+
 %package -n monit-rc-nginx
 Summary:	Nginx  support for monit
 Summary(pl.UTF-8):	Wsparcie nginx dla monit
+License:	BSD-like
 Group:		Applications/System
+URL:		http://nginx.eu/
 Requires:	%{name} = %{version}-%{release}
 Requires:	monit
 
@@ -186,7 +294,6 @@
 	--lock-path=%{_localstatedir}/lock/subsys/%{name} \
 	--user=nginx \
 	--group=nginx \
-	--enable-fastcgi \
 	--with-http_perl_module \
 	--without-mail_pop3_module \
 	--without-mail_imap_module \
@@ -319,7 +426,6 @@
 	$RPM_BUILD_ROOT{%{_localstatedir}/log/{%{name},archive/%{name}},%{_localstatedir}/cache/%{name}} \
 	$RPM_BUILD_ROOT%{_localstatedir}/lock/subsys/%{name} \
 	$RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}} \
-	$RPM_BUILD_ROOT{%{perl_vendorarch},%{perl_vendorarch}/auto/%{name}} \
 	$RPM_BUILD_ROOT/etc/{logrotate.d,monit}
 
 install conf/* $RPM_BUILD_ROOT%{_sysconfdir}
@@ -332,10 +438,23 @@
 install %{SOURCE5} $RPM_BUILD_ROOT/etc/monit/%{name}.monitrc
 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/nginx.conf
 install %{SOURCE7} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+install objs/%{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
+
+%if %{with light}
+install contrib/nginx.light $RPM_BUILD_ROOT%{_sbindir}/%{name}
+%endif
+
+%if %{with mail}
+install contrib/nginx.mail $RPM_BUILD_ROOT%{_sbindir}/%{name}
+%endif
+
+%if %{with perl}
+install -d $RPM_BUILD_ROOT{%{perl_vendorarch},%{perl_vendorarch}/auto/%{name}}
 install objs/src/http/modules/perl/nginx.pm $RPM_BUILD_ROOT%{perl_vendorarch}/%{name}.pm
 install objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.so $RPM_BUILD_ROOT%{perl_vendorarch}/auto/%{name}/%{name}.so
 install objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.bs $RPM_BUILD_ROOT%{perl_vendorarch}/auto/%{name}/%{name}.bs
-install objs/%{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
+install contrib/nginx.perl $RPM_BUILD_ROOT%{_sbindir}/%{name}
+%endif
 
 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.default
 rm -rf $RPM_BUILD_ROOT%{_prefix}/html
@@ -374,6 +493,10 @@
 
 %files
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/%{name}
+
+%files common
+%defattr(644,root,root,755)
 %doc CHANGES LICENSE README html/index.html conf/nginx.conf objs/src/http/modules/perl/blib/man3/nginx.3pm
 %doc %lang(ru) CHANGES.ru
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
@@ -387,17 +510,34 @@
 %attr(640,root,root) %{_sysconfdir}/*[_-]*
 %attr(640,root,root) %{_sysconfdir}/proxy.conf
 %attr(640,root,root) %{_sysconfdir}/mime.types
-%attr(755,root,root) %{_sbindir}/%{name}
-%dir %{perl_vendorarch}/auto/%{name}
-%attr(755,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.so
-%attr(700,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.bs
-%attr(700,root,root) %{perl_vendorarch}/%{name}.pm
 %attr(770,root,%{name}) /var/cache/%{name}
 %attr(750,root,root) %dir /var/log/archive/%{name}
 %attr(750,%{name},logs) /var/log/%{name}
 %config(noreplace,missingok) %verify(not md5 mtime size) %{_nginxdir}/html/*
 %config(noreplace,missingok) %verify(not md5 mtime size) %{_nginxdir}/errors/*
 
+%if %{with mail}
+%files mail
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/%{name}
+%endif
+
+%if %{with light}
+%files light
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/%{name}
+%endif
+
+%if %{with perl}
+%files perl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/%{name}
+%dir %{perl_vendorarch}/auto/%{name}
+%attr(755,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.so
+%attr(700,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.bs
+%attr(700,root,root) %{perl_vendorarch}/%{name}.pm
+%endif
+
 %files -n monit-rc-nginx
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc
@@ -408,6 +548,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.43  2007-11-29 17:52:15  sardzent
+- working on
+
 Revision 1.42  2007-11-29 16:44:12  sardzent
 - fix with missing desc
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nginx.spec?r1=1.42&r2=1.43&f=u



More information about the pld-cvs-commit mailing list