nginx.spec
来源:互联网 发布:个人视频源码 编辑:程序博客网 时间:2024/05/05 11:44
Name:nginxVersion:1.5.2Release:1%{?dist}Summary:Robust, small and high performance HTTP and reverse proxy serverGroup:System Environment/DaemonsLicense:BSDURL:http://nginx.net/Source0:http://nginx.org/download/nginx-%{version}.tar.gzBuildRoot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)%description%prep%setup -q%buildexport DESTDIR=%{buildroot}./configure \ --user=%{nginx_user} \ --group=%{nginx_group} \ --prefix=%{nginx_datadir} \ --sbin-path=%{_sbindir}/%{name} \ --conf-path=%{nginx_confdir}/%{name}.conf \ --error-log-path=%{nginx_logdir}/error.log \ --http-log-path=%{nginx_logdir}/access.log \ --http-client-body-temp-path=%{nginx_home_tmp}/client_body \ --http-proxy-temp-path=%{nginx_home_tmp}/proxy \ --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \ --http-uwsgi-temp-path=%{nginx_home_tmp}/uwsgi \ --http-scgi-temp-path=%{nginx_home_tmp}/scgi \ --pid-path=%{_localstatedir}/run/%{name}.pid \ --lock-path=%{_localstatedir}/lock/subsys/%{name} \ --with-http_ssl_module \ --with-http_realip_module \ --with-http_addition_module \ --with-http_xslt_module \ --with-http_image_filter_module \ --with-http_geoip_module \ --with-http_sub_module \ --with-http_dav_module \ --with-http_flv_module \ --with-http_gzip_static_module \ --with-http_random_index_module \ --with-http_secure_link_module \ --with-http_degradation_module \ --with-http_stub_status_module \ --with-http_perl_module \ --with-mail \ --with-file-aio \ --with-mail_ssl_module \ --with-ipv6 \ --with-cc-opt="%{optflags} $(pcre-config --cflags)" \ --with-ld-opt="-Wl,-E" # so the perl module finds its symbolsmake %{?_smp_mflags} %installrm -rf %{buildroot}make install DESTDIR=%{buildroot}%cleanrm -rf %{buildroot}%files%defattr(-,root,root,-)/usr/local/nginx/sbin/usr/local/nginx/run/usr/local/nginx/html%config /usr/local/nginx/conf/*%doc%changelog