1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
| > nginx-1.6.3.spec
Name: nginx-1.6.3
Version: 1.6.3
Release: 1%{?dist}
Summary: mall and high performance HTTP and reverse proxy server
Group: System Environment/stable
License: el6
URL: http://nginx.org
Source0: http://nginx.org/download/nginx-1.6.2.tar.gz
BuildRoot: %{_topdir}/BUILDROOT
BuildRequires: pcre-devel,zlib-devel,openssl,perl,perl(ExtUtils::Embed)
Requires: gcc,gcc-c++,make,pcre,openssl,perl-ExtUtils-Embed
%description
Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3
proxy server written by Igor Sysoev.
%prep
%setup -q
%build
./configure
--user=nginx
--group=nginx
--prefix=/usr/local/src/nginx-1.6.3
--with-http_ssl_module
--with-http_realip_module
--with-http_addition_module
--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
#make %{?_smp_mflags}
make
%install
#rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post
chkconfig --add nginx
chkconfig --level 345 nginx on
echo "ulimit -SHn 51200" >> /etc/rc.local
%files
%defattr(-,root,root,-)
%doc
%changelog
|