Blame SPECS/nginx.spec

6aa56d
%{?scl:%scl_package nginx}
6aa56d
6aa56d
%if 0%{?rhel} > 6
6aa56d
%define use_systemd 1
6aa56d
%else
6aa56d
%define use_systemd 0
6aa56d
%endif
6aa56d
6aa56d
%define use_perl 1
6aa56d
6aa56d
%define use_geoip 0
6aa56d
%global with_gperftools     0
6aa56d
6aa56d
%global  _hardened_build     1
6aa56d
%global  nginx_user          nginx
6aa56d
%global  nginx_group         %{nginx_user}
6aa56d
%global  nginx_home          %{_localstatedir}/lib/nginx
6aa56d
%global  nginx_home_tmp      %{nginx_home}/tmp
6aa56d
%global  nginx_confdir       %{_sysconfdir}/nginx
6aa56d
%global  nginx_datadir       %{_datadir}/nginx
6aa56d
%global  nginx_logdir        %{_localstatedir}/log/nginx
6aa56d
%global  nginx_webroot       %{nginx_datadir}/html
6aa56d
6aa56d
%global service_name %{?scl_prefix}nginx
6aa56d
6aa56d
%if 0%{?scl:1}
6aa56d
%global scl_upper %{lua:print(string.upper(string.gsub(rpm.expand("%{scl}"), "-", "_")))}
6aa56d
%endif
6aa56d
6aa56d
%{!?scl_perl_prefix: %global scl_perl_prefix rh-perl526-}
6aa56d
%{!?_nginx_perl_vendorarch: %global _nginx_perl_vendorarch %perl_vendorarch}
6aa56d
6aa56d
%{?filter_setup:
6aa56d
%filter_requires_in %{_nginx_perl_vendorarch}
6aa56d
%filter_provides_in %{_nginx_perl_vendorarch}
6aa56d
%filter_provides_in %{_libdir}/nginx/modules
6aa56d
%filter_setup
6aa56d
}
6aa56d
6aa56d
Name:              %{?scl:%scl_prefix}nginx
6aa56d
Epoch:             1
5e3ef8
Version:           1.14.1
5e3ef8
Release:           1%{?dist}
6aa56d
Summary:           A high performance web server and reverse proxy server
6aa56d
Group:             System Environment/Daemons
6aa56d
# BSD License (two clause)
6aa56d
# http://www.freebsd.org/copyright/freebsd-license.html
6aa56d
License:           BSD
6aa56d
URL:               http://nginx.org/
6aa56d
6aa56d
Source0:           http://nginx.org/download/nginx-%{version}.tar.gz
6aa56d
Source2:           scl-register-helper.sh
6aa56d
Source3:           daemon-scl-helper.sh
6aa56d
Source10:          nginx.service
6aa56d
Source11:          nginx.logrotate
6aa56d
Source12:          nginx.conf
6aa56d
Source15:          nginx.init
6aa56d
Source16:          nginx.sysconfig
6aa56d
Source100:         index.html
6aa56d
Source101:         poweredby.png
6aa56d
Source102:         nginx-logo.png
6aa56d
Source103:         404.html
6aa56d
Source104:         50x.html
6aa56d
Source200:         README.dynamic
6aa56d
6aa56d
# removes -Werror in upstream build scripts.  -Werror conflicts with
6aa56d
# -D_FORTIFY_SOURCE=2 causing warnings to turn into errors.
6aa56d
Patch0:            nginx-auto-cc-gcc.patch
6aa56d
6aa56d
BuildRequires:     gd-devel
6aa56d
%if 0%{?with_gperftools}
6aa56d
BuildRequires:     gperftools-devel
6aa56d
%endif
6aa56d
BuildRequires:     libxslt-devel
6aa56d
BuildRequires:     openssl-devel >= 1:1.0.2k
6aa56d
BuildRequires:     pcre-devel
6aa56d
BuildRequires:     zlib-devel
6aa56d
%if 0%{?use_geoip}
6aa56d
BuildRequires:     GeoIP-devel
6aa56d
%endif
6aa56d
Requires:          gd
6aa56d
Requires(pre):     shadow-utils
6aa56d
Provides:          webserver
6aa56d
6aa56d
%if %{use_systemd}
6aa56d
BuildRequires:     systemd
6aa56d
Requires(post):    systemd
6aa56d
Requires(preun):   systemd
6aa56d
Requires(postun):  systemd
6aa56d
%else
6aa56d
Requires(post):    chkconfig
6aa56d
Requires(preun):   chkconfig, initscripts
6aa56d
Requires(postun):  initscripts
6aa56d
%endif
6aa56d
Requires(post): policycoreutils-python libselinux-utils
6aa56d
%{?scl:Requires:%scl_runtime}
6aa56d
6aa56d
%description
6aa56d
Nginx is a web server and a reverse proxy server for HTTP, SMTP, POP3 and
6aa56d
IMAP protocols, with a strong focus on high concurrency, performance and low
6aa56d
memory usage.
6aa56d
6aa56d
%if 0%{?use_geoip}
6aa56d
%package mod-http-geoip
6aa56d
Group:             System Environment/Daemons
6aa56d
Summary:           Nginx HTTP geoip module
6aa56d
BuildRequires:     GeoIP-devel
6aa56d
Requires:          %{?scl:%scl_prefix}nginx
6aa56d
Requires:          GeoIP
6aa56d
6aa56d
%description mod-http-geoip
6aa56d
%{summary}.
6aa56d
%endif
6aa56d
6aa56d
%package mod-http-image-filter
6aa56d
Group:             System Environment/Daemons
6aa56d
Summary:           Nginx HTTP image filter module
6aa56d
BuildRequires:     gd-devel
6aa56d
Requires:          %{?scl:%scl_prefix}nginx
6aa56d
Requires:          gd
6aa56d
6aa56d
%description mod-http-image-filter
6aa56d
%{summary}.
6aa56d
6aa56d
%if 0%{?use_perl}
6aa56d
%package mod-http-perl
6aa56d
Group:             System Environment/Daemons
6aa56d
Summary:           Nginx HTTP perl module
6aa56d
BuildRequires:     %{scl_perl_prefix}perl-devel
6aa56d
%if 0%{?fedora} >= 24
6aa56d
BuildRequires:     %{scl_perl_prefix}perl-generators
6aa56d
%endif
6aa56d
BuildRequires:     %{scl_perl_prefix}perl(ExtUtils::Embed)
6aa56d
Requires:          %{?scl:%scl_prefix}nginx
6aa56d
Requires:          %{scl_perl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl_perl} '}eval "`%{__perl} -V:version`"; echo $version%{?scl:'}))
6aa56d
Requires:          %{scl_perl_prefix}perl(constant)
6aa56d
6aa56d
%description mod-http-perl
6aa56d
%{summary}.
6aa56d
%endif
6aa56d
6aa56d
%package mod-http-xslt-filter
6aa56d
Group:             System Environment/Daemons
6aa56d
Summary:           Nginx XSLT module
6aa56d
BuildRequires:     libxslt-devel
6aa56d
Requires:          %{?scl:%scl_prefix}nginx
6aa56d
6aa56d
%description mod-http-xslt-filter
6aa56d
%{summary}.
6aa56d
6aa56d
%package mod-mail
6aa56d
Group:             System Environment/Daemons
6aa56d
Summary:           Nginx mail modules
6aa56d
Requires:          %{?scl:%scl_prefix}nginx
6aa56d
6aa56d
%description mod-mail
6aa56d
%{summary}.
6aa56d
6aa56d
%package mod-stream
6aa56d
Group:             System Environment/Daemons
6aa56d
Summary:           Nginx stream modules
6aa56d
Requires:          %{?scl:%scl_prefix}nginx
6aa56d
6aa56d
%description mod-stream
6aa56d
%{summary}.
6aa56d
6aa56d
6aa56d
%prep
6aa56d
%setup -q -n nginx-%{version}
6aa56d
%patch0 -p0
6aa56d
cp %{SOURCE200} .
6aa56d
6aa56d
%build
6aa56d
%if 0%{?use_perl}
6aa56d
%{?scl:scl enable %{scl_perl} - << \EOF}
6aa56d
%endif
6aa56d
set -x
6aa56d
6aa56d
# nginx does not utilize a standard configure script.  It has its own
6aa56d
# and the standard configure options cause the nginx configure script
6aa56d
# to error out.  This is is also the reason for the DESTDIR environment
6aa56d
# variable.
6aa56d
export DESTDIR=%{buildroot}
6aa56d
./configure \
6aa56d
    --prefix=%{nginx_datadir} \
6aa56d
    --sbin-path=%{_sbindir}/nginx \
6aa56d
    --modules-path=%{_libdir}/nginx/modules \
6aa56d
    --conf-path=%{nginx_confdir}/nginx.conf \
6aa56d
    --error-log-path=%{nginx_logdir}/error.log \
6aa56d
    --http-log-path=%{nginx_logdir}/access.log \
6aa56d
    --http-client-body-temp-path=%{nginx_home_tmp}/client_body \
6aa56d
    --http-proxy-temp-path=%{nginx_home_tmp}/proxy \
6aa56d
    --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \
6aa56d
    --http-uwsgi-temp-path=%{nginx_home_tmp}/uwsgi \
6aa56d
    --http-scgi-temp-path=%{nginx_home_tmp}/scgi \
6aa56d
    --pid-path=%{_localstatedir}/run/nginx/nginx.pid \
6aa56d
    --lock-path=%{_localstatedir}/lock/subsys/nginx \
6aa56d
    --user=%{nginx_user} \
6aa56d
    --group=%{nginx_group} \
6aa56d
    --with-file-aio \
6aa56d
    --with-ipv6 \
6aa56d
    --with-http_ssl_module \
6aa56d
    --with-http_v2_module \
6aa56d
    --with-http_auth_request_module \
6aa56d
    --with-http_realip_module \
6aa56d
    --with-http_addition_module \
6aa56d
    --with-http_xslt_module=dynamic \
6aa56d
    --with-http_image_filter_module=dynamic \
6aa56d
%if 0%{?use_geoip}
6aa56d
    --with-http_geoip_module=dynamic \
6aa56d
%endif
6aa56d
    --with-http_sub_module \
6aa56d
    --with-http_dav_module \
6aa56d
    --with-http_flv_module \
6aa56d
    --with-http_mp4_module \
6aa56d
    --with-http_gunzip_module \
6aa56d
    --with-http_gzip_static_module \
6aa56d
    --with-http_random_index_module \
6aa56d
    --with-http_secure_link_module \
6aa56d
    --with-http_degradation_module \
6aa56d
    --with-http_slice_module \
6aa56d
    --with-http_stub_status_module \
6aa56d
%if 0%{?use_perl}
6aa56d
    --with-http_perl_module=dynamic \
6aa56d
%endif
6aa56d
    --with-mail=dynamic \
6aa56d
    --with-mail_ssl_module \
6aa56d
    --with-pcre \
6aa56d
    --with-pcre-jit \
6aa56d
    --with-stream=dynamic \
6aa56d
    --with-stream_ssl_module \
6aa56d
%if 0%{?with_gperftools}
6aa56d
    --with-google_perftools_module \
6aa56d
%endif
6aa56d
    --with-debug \
6aa56d
    --with-cc-opt="%{optflags} $(pcre-config --cflags)" \
6aa56d
    --with-ld-opt="$RPM_LD_FLAGS -Wl,-E" # so the perl module finds its symbols
6aa56d
6aa56d
make %{?_smp_mflags}
6aa56d
%if 0%{?use_perl}
6aa56d
%{?scl:EOF}
6aa56d
%endif
6aa56d
6aa56d
%install
6aa56d
#include helper script for creating register stuff
6aa56d
export _SR_BUILDROOT=%{buildroot}
6aa56d
export _SR_SCL_SCRIPTS=%{?_scl_scripts}
6aa56d
source %{SOURCE2}
6aa56d
6aa56d
%if 0%{?use_perl}
6aa56d
%{?scl:scl enable %{scl_perl} - << \EOF}
6aa56d
%endif
6aa56d
set -x
6aa56d
make install DESTDIR=%{buildroot} INSTALLDIRS=vendor \
6aa56d
     INSTALLVENDORARCH=%{_nginx_perl_vendorarch} \
6aa56d
     INSTALLVENDORMAN3DIR=%{_mandir}/man3
6aa56d
%if 0%{?use_perl}
6aa56d
%{?scl:EOF}
6aa56d
%endif
6aa56d
6aa56d
find %{buildroot} -type f -name .packlist -exec rm -f '{}' \;
6aa56d
find %{buildroot} -type f -name perllocal.pod -exec rm -f '{}' \;
6aa56d
find %{buildroot} -type f -empty -exec rm -f '{}' \;
6aa56d
find %{buildroot} -type f -iname '*.so' -exec chmod 0755 '{}' \;
6aa56d
6aa56d
install -D -p -m 0755 %{SOURCE3} \
6aa56d
    %{buildroot}%{_libexecdir}/nginx-scl-helper
6aa56d
6aa56d
%if %{use_systemd}
6aa56d
install -p -D -m 0644 %{SOURCE10} \
6aa56d
    %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}nginx.service
6aa56d
6aa56d
sed -i 's|\$sbindir|%{_sbindir}|' \
6aa56d
    %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}nginx.service
6aa56d
sed -i 's|\$localstatedir|%{_localstatedir}|' \
6aa56d
    %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}nginx.service
6aa56d
sed -i 's|\$libexecdir|%{_libexecdir}|' \
6aa56d
    %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}nginx.service
6aa56d
touch -r %{SOURCE10} \
6aa56d
    %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}nginx.service
6aa56d
6aa56d
scl_reggen %{name} --cpfile %{_unitdir}/%{?scl:%scl_prefix}nginx.service
6aa56d
6aa56d
%else
6aa56d
install -p -D -m 0755 %{SOURCE15} \
6aa56d
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
6aa56d
6aa56d
sed -i 's|\$sbindir|%{_sbindir}|' \
6aa56d
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
6aa56d
sed -i 's|\$localstatedir|%{_localstatedir}|' \
6aa56d
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
6aa56d
sed -i 's|\$sysconfdir|%{_sysconfdir}|' \
6aa56d
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
6aa56d
sed -i 's|\$sclprefix|%scl_prefix|g' \
6aa56d
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
6aa56d
sed -i 's|\$sclname|%scl|g' \
6aa56d
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
6aa56d
sed -i 's|\$upperscl|%{scl_upper}|g' \
6aa56d
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
6aa56d
scl_reggen %{name} --cpfile %{_root_initddir}/%{?scl:%scl_prefix}nginx
6aa56d
6aa56d
install -p -D -m 0644 %{SOURCE16} \
6aa56d
    %{buildroot}/%{_sysconfdir}/sysconfig/%{?scl:%scl_prefix}nginx
6aa56d
6aa56d
sed -i 's|\$sysconfdir|%{_sysconfdir}|' \
6aa56d
    %{buildroot}/%{_sysconfdir}/sysconfig/%{?scl:%scl_prefix}nginx
6aa56d
scl_reggen %{name} --mkdir %{_sysconfdir}/sysconfig
6aa56d
scl_reggen %{name} --cpfile %{_sysconfdir}/sysconfig/%{?scl:%scl_prefix}nginx
6aa56d
%endif
6aa56d
6aa56d
install -p -D -m 0644 %{SOURCE11} \
6aa56d
    %{buildroot}/etc/logrotate.d/%{?scl:%scl_prefix}nginx
6aa56d
6aa56d
sed -i 's|\$logdir|%{nginx_logdir}|' \
6aa56d
    %{buildroot}/etc/logrotate.d/%{?scl:%scl_prefix}nginx
6aa56d
sed -i 's|\$localstatedir|%{_localstatedir}|' \
6aa56d
    %{buildroot}/etc/logrotate.d/%{?scl:%scl_prefix}nginx
6aa56d
scl_reggen %{name} --cpfile %{_root_sysconfdir}/logrotate.d/%{?scl:%scl_prefix}nginx
6aa56d
6aa56d
install -p -d -m 0755 %{buildroot}%{nginx_confdir}/conf.d
6aa56d
install -p -d -m 0755 %{buildroot}%{nginx_confdir}/default.d
6aa56d
6aa56d
install -p -d -m 0700 %{buildroot}%{nginx_home}
6aa56d
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}
6aa56d
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}/client_body
6aa56d
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}/proxy
6aa56d
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}/fastcgi
6aa56d
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}/uwsgi
6aa56d
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}/scgi
6aa56d
install -p -d -m 0700 %{buildroot}%{nginx_logdir}
6aa56d
install -p -d -m 0755 %{buildroot}%{nginx_webroot}
6aa56d
6aa56d
scl_reggen %{name} --mkdir %{nginx_confdir}/conf.d
6aa56d
scl_reggen %{name} --mkdir %{nginx_confdir}/default.d
6aa56d
scl_reggen %{name} --mkdir %{nginx_home}
6aa56d
scl_reggen %{name} --mkdir %{nginx_home_tmp}
6aa56d
scl_reggen %{name} --mkdir %{nginx_home_tmp}/client_body
6aa56d
scl_reggen %{name} --mkdir %{nginx_home_tmp}/proxy
6aa56d
scl_reggen %{name} --mkdir %{nginx_home_tmp}/fastcgi
6aa56d
scl_reggen %{name} --mkdir %{nginx_home_tmp}/uwsgi
6aa56d
scl_reggen %{name} --mkdir %{nginx_home_tmp}/scgi
6aa56d
scl_reggen %{name} --mkdir %{nginx_logdir}
6aa56d
scl_reggen %{name} --mkdir %{nginx_webroot}
6aa56d
6aa56d
scl_reggen %{name} --chmod 0755 %{nginx_confdir}/conf.d
6aa56d
scl_reggen %{name} --chmod 0755 %{nginx_confdir}/default.d
6aa56d
scl_reggen %{name} --chmod 0700 %{nginx_home}
6aa56d
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}
6aa56d
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}/client_body
6aa56d
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}/proxy
6aa56d
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}/fastcgi
6aa56d
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}/uwsgi
6aa56d
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}/scgi
6aa56d
scl_reggen %{name} --chmod 0700 %{nginx_logdir}
6aa56d
scl_reggen %{name} --chmod 0755 %{nginx_webroot}
6aa56d
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/fastcgi.conf
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/fastcgi.conf.default
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/fastcgi_params
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/fastcgi_params.default
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/koi-utf
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/koi-win
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/mime.types
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/mime.types.default
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/nginx.conf
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/nginx.conf.default
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/scgi_params
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/scgi_params.default
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/uwsgi_params
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/uwsgi_params.default
6aa56d
scl_reggen %{name} --cpfile %{nginx_confdir}/win-utf
6aa56d
6aa56d
6aa56d
scl_reggen %{name} --runafterregister "semanage fcontext -a -e /var/log/nginx %{nginx_logdir} >/dev/null 2>&1 || :"
6aa56d
scl_reggen %{name} --runafterregister "restorecon -R %{nginx_logdir} >/dev/null 2>&1 || :"
6aa56d
scl_reggen %{name} --runafterregister "semanage fcontext -a -e %{_root_sysconfdir}/nginx %{nginx_confdir} >/dev/null 2>&1 || :"
6aa56d
scl_reggen %{name} --runafterregister "restorecon -R %{nginx_confdir} >/dev/null 2>&1 || :"
6aa56d
scl_reggen %{name} --runafterregister "semanage fcontext -a -e %{_root_localstatedir}/lib/nginx %{_localstatedir}/lib/nginx >/dev/null 2>&1 || :"
6aa56d
scl_reggen %{name} --runafterregister "restorecon -R %{_localstatedir}/lib/nginx >/dev/null 2>&1 || :"
6aa56d
scl_reggen %{name} --runafterregister "semanage fcontext -a -e %{_root_localstatedir}/run/nginx %{_localstatedir}/run/nginx >/dev/null 2>&1 || :"
6aa56d
scl_reggen %{name} --runafterregister "restorecon -R %{_localstatedir}/run/nginx >/dev/null 2>&1 || :"
6aa56d
6aa56d
install -p -m 0644 %{SOURCE12} \
6aa56d
    %{buildroot}%{nginx_confdir}
6aa56d
6aa56d
# Change the nginx.conf paths
6aa56d
sed -i 's|\$datadir|%{_datadir}|' \
6aa56d
    %{buildroot}%{nginx_confdir}/nginx.conf
6aa56d
sed -i 's|\$docdir|%{_docdir}|' \
6aa56d
    %{buildroot}%{nginx_confdir}/nginx.conf
6aa56d
sed -i 's|\$sysconfdir|%{_sysconfdir}|' \
6aa56d
    %{buildroot}%{nginx_confdir}/nginx.conf
6aa56d
sed -i 's|\$localstatedir|%{_localstatedir}|' \
6aa56d
    %{buildroot}%{nginx_confdir}/nginx.conf
6aa56d
sed -i 's|\$logdir|%{nginx_logdir}|' \
6aa56d
    %{buildroot}%{nginx_confdir}/nginx.conf
6aa56d
6aa56d
install -p -d -m 0755 %{buildroot}%{_datadir}/nginx/modules
6aa56d
install -p -d -m 0755 %{buildroot}%{_libdir}/nginx/modules
6aa56d
6aa56d
%if 0%{?use_geoip}
6aa56d
echo 'load_module "%{_libdir}/nginx/modules/ngx_http_geoip_module.so";' \
6aa56d
    > %{buildroot}%{_datadir}/nginx/modules/mod-http-geoip.conf
6aa56d
%endif
6aa56d
echo 'load_module "%{_libdir}/nginx/modules/ngx_http_image_filter_module.so";' \
6aa56d
    > %{buildroot}%{_datadir}/nginx/modules/mod-http-image-filter.conf
6aa56d
%if 0%{?use_perl}
6aa56d
cat > %{buildroot}%{_datadir}/nginx/modules/mod-http-perl.conf <
6aa56d
load_module "%{_libdir}/nginx/modules/ngx_http_perl_module.so";
6aa56d
env PERL5LIB;
6aa56d
env LD_LIBRARY_PATH;
6aa56d
EOF
6aa56d
%endif
6aa56d
echo 'load_module "%{_libdir}/nginx/modules/ngx_http_xslt_filter_module.so";' \
6aa56d
    > %{buildroot}%{_datadir}/nginx/modules/mod-http-xslt-filter.conf
6aa56d
echo 'load_module "%{_libdir}/nginx/modules/ngx_mail_module.so";' \
6aa56d
    > %{buildroot}%{_datadir}/nginx/modules/mod-mail.conf
6aa56d
echo 'load_module "%{_libdir}/nginx/modules/ngx_stream_module.so";' \
6aa56d
    > %{buildroot}%{_datadir}/nginx/modules/mod-stream.conf
6aa56d
6aa56d
touch -r %{SOURCE12} %{buildroot}%{nginx_confdir}/nginx.conf \
6aa56d
      %{buildroot}%{_datadir}/nginx/modules/*.conf
6aa56d
6aa56d
install -p -m 0644 %{SOURCE100} \
6aa56d
    %{buildroot}%{nginx_webroot}
6aa56d
install -p -m 0644 %{SOURCE101} %{SOURCE102} \
6aa56d
    %{buildroot}%{nginx_webroot}
6aa56d
install -p -m 0644 %{SOURCE103} %{SOURCE104} \
6aa56d
    %{buildroot}%{nginx_webroot}
6aa56d
6aa56d
install -p -D -m 0644 %{_builddir}/nginx-%{version}/man/nginx.8 \
6aa56d
    %{buildroot}%{_mandir}/man8/nginx.8
6aa56d
6aa56d
mkdir -p %{buildroot}%{_localstatedir}/run/nginx
6aa56d
6aa56d
# Replaces variables in man page with proper values
6aa56d
sed -i 's|\%\%PREFIX\%\%|%{nginx_datadir}|' \
6aa56d
    %{buildroot}%{_mandir}/man8/nginx.8
6aa56d
sed -i 's|\%\%PID_PATH\%\%|%{_localstatedir}/run/nginx/nginx.pid|' \
6aa56d
    %{buildroot}%{_mandir}/man8/nginx.8
6aa56d
sed -i 's|\%\%CONF_PATH\%\%|%{nginx_confdir}/nginx.conf|' \
6aa56d
    %{buildroot}%{_mandir}/man8/nginx.8
6aa56d
sed -i 's|\%\%ERROR_LOG_PATH\%\%|%{nginx_logdir}/error.log|' \
6aa56d
    %{buildroot}%{_mandir}/man8/nginx.8
6aa56d
6aa56d
%if 0%{?scl:1}
6aa56d
cat << EOF | tee -a %{buildroot}%{?_scl_scripts}/service-environment
6aa56d
# Services are started in a fresh environment without any influence of user's
6aa56d
# environment (like environment variable values). As a consequence,
6aa56d
# information of all enabled collections will be lost during service start up.
6aa56d
# If user needs to run a service under any software collection enabled, this
6aa56d
# collection has to be written into %{scl_upper}_SCLS_ENABLED variable
6aa56d
# in %{?_scl_scripts}/service-environment.
6aa56d
%{scl_upper}_SCLS_ENABLED="%{scl}"
6aa56d
EOF
6aa56d
%endif #scl
6aa56d
6aa56d
%pre
6aa56d
getent group %{nginx_group} > /dev/null || groupadd -r %{nginx_group}
6aa56d
getent passwd %{nginx_user} > /dev/null || \
6aa56d
    useradd -r -d %{nginx_home} -g %{nginx_group} \
6aa56d
    -s /sbin/nologin -c "Nginx web server" %{nginx_user}
6aa56d
exit 0
6aa56d
6aa56d
%post
6aa56d
restorecon -R %{_scl_root} >/dev/null 2>&1 || :
6aa56d
semanage fcontext -a -e /var/log/nginx %{nginx_logdir} >/dev/null 2>&1 || :
6aa56d
restorecon -R %{nginx_logdir} >/dev/null 2>&1 || :
6aa56d
6aa56d
semanage fcontext -a -e %{_root_sysconfdir}/nginx %{nginx_confdir} >/dev/null 2>&1 || :
6aa56d
restorecon -R %{nginx_confdir} >/dev/null 2>&1 || :
6aa56d
6aa56d
semanage fcontext -a -e %{_root_localstatedir}/lib/nginx %{_localstatedir}/lib/nginx >/dev/null 2>&1 || :
6aa56d
restorecon -R %{_localstatedir}/lib/nginx >/dev/null 2>&1 || :
6aa56d
6aa56d
semanage fcontext -a -e %{_root_localstatedir}/run/nginx %{_localstatedir}/run/nginx >/dev/null 2>&1 || :
6aa56d
restorecon -R %{_localstatedir}/run/nginx >/dev/null 2>&1 || :
6aa56d
6aa56d
%if %{use_systemd}
6aa56d
# Ensure the helper script has the right context.
6aa56d
semanage fcontext -a -t httpd_exec_t %{_root_libexecdir}/nginx-scl-helper >/dev/null 2>&1 || :
6aa56d
restorecon -R %{_libexecdir}/nginx-scl-helper >/dev/null 2>&1 || :
6aa56d
%systemd_post %{service_name}.service
6aa56d
%else
6aa56d
semanage fcontext -a -e /etc/rc.d/init.d/nginx /etc/rc.d/init.d/%{?scl:%scl_prefix}nginx >/dev/null 2>&1 || :
6aa56d
restorecon -R /etc/rc.d/init.d/%{?scl:%scl_prefix}nginx >/dev/null 2>&1 || :
6aa56d
if [ $1 -eq 1 ]; then
6aa56d
    /sbin/chkconfig --add %{name}
6aa56d
fi
6aa56d
%endif
6aa56d
if [ $1 -eq 2 ]; then
6aa56d
    # Make sure these directories are not world readable.
6aa56d
    chmod 700 %{nginx_home}
6aa56d
    chmod -R 700 %{nginx_home_tmp}
6aa56d
    chmod 700 %{nginx_logdir}
6aa56d
fi
6aa56d
6aa56d
%preun
6aa56d
%if %{use_systemd}
6aa56d
%systemd_preun %{service_name}.service
6aa56d
%else
6aa56d
if [ $1 -eq 0 ]; then
6aa56d
    /sbin/service %{name} stop >/dev/null 2>&1
6aa56d
    /sbin/chkconfig --del %{name}
6aa56d
fi
6aa56d
%endif
6aa56d
6aa56d
%postun
6aa56d
%if %{use_systemd}
6aa56d
%systemd_postun %{service_name}.service
6aa56d
%else
6aa56d
if [ $1 -eq 2 ]; then
6aa56d
    /sbin/service %{name} upgrade || :
6aa56d
fi
6aa56d
%endif
6aa56d
6aa56d
%files
6aa56d
%doc LICENSE CHANGES README README.dynamic
6aa56d
%dir %{nginx_datadir}
6aa56d
%{nginx_datadir}/html
6aa56d
%dir %{nginx_datadir}/modules
6aa56d
%{_sbindir}/nginx
6aa56d
%{_mandir}/man8/nginx.8*
6aa56d
%{?scl:%{_libexecdir}/nginx-scl-helper}
6aa56d
%if %{use_systemd}
6aa56d
%{_unitdir}/%{service_name}.service
6aa56d
%else
6aa56d
/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
6aa56d
%config(noreplace) %{_sysconfdir}/sysconfig/%{?scl:%scl_prefix}nginx
6aa56d
%endif
6aa56d
%dir %{nginx_confdir}
6aa56d
%dir %{nginx_confdir}/conf.d
6aa56d
%dir %{nginx_confdir}/default.d
6aa56d
%config(noreplace) %{nginx_confdir}/fastcgi.conf
6aa56d
%config(noreplace) %{nginx_confdir}/fastcgi.conf.default
6aa56d
%config(noreplace) %{nginx_confdir}/fastcgi_params
6aa56d
%config(noreplace) %{nginx_confdir}/fastcgi_params.default
6aa56d
%config(noreplace) %{nginx_confdir}/koi-utf
6aa56d
%config(noreplace) %{nginx_confdir}/koi-win
6aa56d
%config(noreplace) %{nginx_confdir}/mime.types
6aa56d
%config(noreplace) %{nginx_confdir}/mime.types.default
6aa56d
%config(noreplace) %{nginx_confdir}/nginx.conf
6aa56d
%config(noreplace) %{nginx_confdir}/nginx.conf.default
6aa56d
%config(noreplace) %{nginx_confdir}/scgi_params
6aa56d
%config(noreplace) %{nginx_confdir}/scgi_params.default
6aa56d
%config(noreplace) %{nginx_confdir}/uwsgi_params
6aa56d
%config(noreplace) %{nginx_confdir}/uwsgi_params.default
6aa56d
%config(noreplace) %{nginx_confdir}/win-utf
6aa56d
%config(noreplace) /etc/logrotate.d/%{?scl:%scl_prefix}nginx
6aa56d
%attr(700,%{nginx_user},%{nginx_group}) %dir %{nginx_home}
6aa56d
%attr(700,%{nginx_user},%{nginx_group}) %{nginx_home_tmp}
6aa56d
%attr(700,%{nginx_user},%{nginx_group}) %dir %{nginx_logdir}
6aa56d
%attr(700,%{nginx_user},%{nginx_group}) %dir %{_localstatedir}/run/nginx
6aa56d
%dir %{_libdir}/nginx
6aa56d
%dir %{_libdir}/nginx/modules
6aa56d
6aa56d
%{?scl: %{_scl_scripts}/register.d/*}
6aa56d
%{?scl: %{_scl_scripts}/register.content/*}
6aa56d
%{?scl: %{_scl_scripts}/deregister.d/*}
6aa56d
%{?scl:%config(noreplace) %{?_scl_scripts}/service-environment}
6aa56d
6aa56d
%if 0%{?use_geoip}
6aa56d
%files mod-http-geoip
6aa56d
%{_datadir}/nginx/modules/mod-http-geoip.conf
6aa56d
%{_libdir}/nginx/modules/ngx_http_geoip_module.so
6aa56d
%endif
6aa56d
6aa56d
%files mod-http-image-filter
6aa56d
%{_datadir}/nginx/modules/mod-http-image-filter.conf
6aa56d
%{_libdir}/nginx/modules/ngx_http_image_filter_module.so
6aa56d
6aa56d
%if 0%{?use_perl}
6aa56d
%files mod-http-perl
6aa56d
%{_datadir}/nginx/modules/mod-http-perl.conf
6aa56d
%{_libdir}/nginx/modules/ngx_http_perl_module.so
6aa56d
%{_nginx_perl_vendorarch}/*
6aa56d
%{_mandir}/man3/nginx.3pm.*
6aa56d
%endif
6aa56d
6aa56d
%files mod-http-xslt-filter
6aa56d
%{_datadir}/nginx/modules/mod-http-xslt-filter.conf
6aa56d
%{_libdir}/nginx/modules/ngx_http_xslt_filter_module.so
6aa56d
6aa56d
%files mod-mail
6aa56d
%{_datadir}/nginx/modules/mod-mail.conf
6aa56d
%{_libdir}/nginx/modules/ngx_mail_module.so
6aa56d
6aa56d
%files mod-stream
6aa56d
%{_datadir}/nginx/modules/mod-stream.conf
6aa56d
%{_libdir}/nginx/modules/ngx_stream_module.so
6aa56d
6aa56d
%changelog
5e3ef8
* Thu Nov 15 2018 Lubos Uhliarik <luhliari@redhat.com> - 1:1.14.1-1
5e3ef8
- update to version 1.14.1
5e3ef8
- Resolves: #1650092 - CVE-2018-16843 rh-nginx114-nginx: nginx:
5e3ef8
  Excessive memory consumption via flaw in HTTP/2 implementation
5e3ef8
- Resolves: #1650093 - CVE-2018-16844 rh-nginx114-nginx: nginx:
5e3ef8
  Excessive CPU usage via flaw in HTTP/2 implementation
5e3ef8
- Resolves: #1648365 - CVE-2018-16845 rh-nginx114-nginx: nginx:
5e3ef8
  Denial of service and memory disclosure via mp4 module
5e3ef8
6aa56d
* Wed Aug 08 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.14.0-3
6aa56d
- fixed service file and error documents
6aa56d
6aa56d
* Wed Jul 18 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.14.0-2
6aa56d
- Resolves: #1470746 - rh-nginx112: unexpected initscpript action
6aa56d
6aa56d
* Thu Jul 12 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.14.0-1
6aa56d
- update to version 1.14.0
6aa56d
- Resolves: #1601544 - Switch rh-nginx114 to rh-perl526
6aa56d
6aa56d
* Tue Aug 08 2017 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-2
6aa56d
- Resolves: #1468712 - missing dependency for perl package
6aa56d
6aa56d
* Wed Jul 12 2017 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-1
6aa56d
- update to 1.12.1
6aa56d
- Resolves: CVE-2017-7529 nginx: Integer overflow in nginx range filter module
6aa56d
  leading to memory disclosure
6aa56d
6aa56d
* Tue Jun 13 2017 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.0-4
6aa56d
- Resolved: #1323835 - RFE: add nginx-auth-ldap to rh-nginx18
6aa56d
6aa56d
* Tue Jun 06 2017 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.0-1
6aa56d
- update to 1.12.0 (#1447400)
6aa56d
6aa56d
* Thu Mar 23 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-7
6aa56d
- filter auto-provides from module subpackages (#1434349)
6aa56d
- drop perl vendorarch directory ownership (#1434333)
6aa56d
6aa56d
* Thu Mar  2 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-6
6aa56d
- run nginx under SCL environment from SysV init script
6aa56d
6aa56d
* Thu Mar  2 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-5
6aa56d
- filter perl(*) req/prov (#1421927)
6aa56d
6aa56d
* Wed Mar  1 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-4
6aa56d
- drop explicit Requires for openssl, gd
6aa56d
- run nginx under SCL environment from systemd service
6aa56d
- fix module .conf path in nginx.conf
6aa56d
- pass PERL5LIB, LD_LIBRARY_PATH from env when perl is loaded (#1421927)
6aa56d
6aa56d
* Wed Feb  8 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-3
6aa56d
- add mod-http-perl
6aa56d
6aa56d
* Thu Jan 19 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-2
6aa56d
- own libdir/nginx
6aa56d
6aa56d
* Thu Jan 19 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-1
6aa56d
- update to 1.10.2 (#1404779)
6aa56d
- merge changes from Fedora
6aa56d
6aa56d
* Mon Jun 20 2016 Joe Orton <jorton@redhat.com> - 1:1.8.1-1
6aa56d
- update to 1.8.1 (CVE-2016-0742 CVE-2016-0746 CVE-2016-0747)
6aa56d
- add security fix for CVE-2016-4450
6aa56d
6aa56d
* Fri Nov 13 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.8.0-4
6aa56d
- fix SELinux context of /var/opt and /etc/opt directories (#1280221)
6aa56d
6aa56d
* Fri Sep 11 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.8.0-3
6aa56d
- fix bad path to nginx.pid in logrotate configuration (#1260595)
6aa56d
6aa56d
* Tue Aug 11 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.8.0-2
6aa56d
- move logs to /var/opt/rh/rh-nginx18/log (#1250095)
6aa56d
6aa56d
* Wed Jul 08 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.8.0-1
6aa56d
- update to version 1.8.0
6aa56d
6aa56d
* Wed Jan 21 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.2-3
6aa56d
- set use_systemd only on RHEL7
6aa56d
6aa56d
* Mon Jan 19 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.2-2
6aa56d
- add support for Phusion Passenger
6aa56d
6aa56d
* Tue Jan 06 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.2-1
6aa56d
- update to version 1.6.2
6aa56d
- do not use conditionals in systemd macros (#1152514)
6aa56d
6aa56d
* Wed Sep 17 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.1-2
6aa56d
- prevent SSL session reuse in unrelated server{} blocks (CVE-2014-3616)
6aa56d
6aa56d
* Wed Aug 06 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.1-1
6aa56d
- update to 1.6.1 (CVE-2014-3556)
6aa56d
6aa56d
* Wed Jul 02 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.0-4
6aa56d
- correct the path for previous SELinux fix (#1088912)
6aa56d
6aa56d
* Wed Jul 02 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.0-3
6aa56d
- fix SELinux context of initscript (#1088912)
6aa56d
6aa56d
* Tue Jun 24 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.0-2
6aa56d
- rebuild because of rename to nginx16
6aa56d
6aa56d
* Mon Jun  9 2014 Joe Orton <jorton@redhat.com> - 1:1.6.0-1
6aa56d
- update to 1.6.0 (#1101921)
6aa56d
6aa56d
* Tue Mar  4 2014 Joe Orton <jorton@redhat.com> - 1:1.4.4-10
6aa56d
- run restorecon in %%post for #1072266
6aa56d
6aa56d
* Tue Mar  4 2014 Joe Orton <jorton@redhat.com> - 1:1.4.4-9
6aa56d
- fix SELinux context for log directory (#1072266)
6aa56d
6aa56d
* Thu Feb 20 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.4-8
6aa56d
- update poweredby logo and show it on default pages (#1065981)
6aa56d
6aa56d
* Wed Jan 15 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.4-7
6aa56d
- call restorecon in post script (#1052935)
6aa56d
6aa56d
* Mon Jan 06 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.4-6
6aa56d
- create temp subdirectories in nginx_home_tmp during installation (#1040470)
6aa56d
6aa56d
* Tue Nov 26 2013 Joe Orton <jorton@redhat.com> - 1:1.4.4-5
6aa56d
- further default config tweak
6aa56d
6aa56d
* Tue Nov 26 2013 Joe Orton <jorton@redhat.com> - 1:1.4.4-4
6aa56d
- update config file for log directory
6aa56d
6aa56d
* Tue Nov 26 2013 Joe Orton <jorton@redhat.com> - 1:1.4.4-3
6aa56d
- change log directory
6aa56d
6aa56d
* Tue Nov 19 2013 Joe Orton <jorton@redhat.com> - 1:1.4.4-1
6aa56d
- update to 1.4.4 (CVE-2013-4547)
6aa56d
6aa56d
* Mon Nov 18 2013 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.2-6
6aa56d
- require scl_runtime
6aa56d
6aa56d
* Mon Nov 18 2013 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.2-5
6aa56d
- improved index.html
6aa56d
6aa56d
* Mon Nov 18 2013 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.2-4
6aa56d
- support for software collections
6aa56d
6aa56d
* Fri Aug 09 2013 Jonathan Steffan <jsteffan@fedoraproject.org> - 1:1.4.2-3
6aa56d
- Add in conditionals to build for non-systemd targets
6aa56d
6aa56d
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 1:1.4.2-2
6aa56d
- Perl 5.18 rebuild
6aa56d
6aa56d
* Fri Jul 19 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.2-1
6aa56d
- update to upstream release 1.4.2
6aa56d
6aa56d
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1:1.4.1-3
6aa56d
- Perl 5.18 rebuild
6aa56d
6aa56d
* Tue Jun 11 2013 Remi Collet <rcollet@redhat.com> - 1:1.4.1-2
6aa56d
- rebuild for new GD 2.1.0
6aa56d
6aa56d
* Tue May 07 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.1-1
6aa56d
- update to upstream release 1.4.1 (#960605, #960606):
6aa56d
  CVE-2013-2028 stack-based buffer overflow when handling certain chunked
6aa56d
  transfer encoding requests
6aa56d
6aa56d
* Sun Apr 28 2013 Dan Horák <dan[at]danny.cz> - 1:1.4.0-2
6aa56d
- gperftools exist only on selected arches
6aa56d
6aa56d
* Fri Apr 26 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.0-1
6aa56d
- update to upstream release 1.4.0
6aa56d
- enable SPDY module (new in this version)
6aa56d
- enable http gunzip module (new in this version)
6aa56d
- enable google perftools module and add gperftools-devel to BR
6aa56d
- enable debugging (#956845)
6aa56d
- trim changelog
6aa56d
6aa56d
* Tue Apr 02 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.8-1
6aa56d
- update to upstream release 1.2.8
6aa56d
6aa56d
* Fri Feb 22 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.7-2
6aa56d
- make sure nginx directories are not world readable (#913724, #913735)
6aa56d
6aa56d
* Sat Feb 16 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.7-1
6aa56d
- update to upstream release 1.2.7
6aa56d
- add .asc file
6aa56d
6aa56d
* Tue Feb 05 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-6
6aa56d
- use 'kill' instead of 'systemctl' when rotating log files to workaround
6aa56d
  SELinux issue (#889151)
6aa56d
6aa56d
* Wed Jan 23 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-5
6aa56d
- uncomment "include /etc/nginx/conf.d/*.conf" by default but leave the
6aa56d
  conf.d directory empty (#903065)
6aa56d
6aa56d
* Wed Jan 23 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-4
6aa56d
- add comment in nginx.conf regarding "include /etc/nginf/conf.d/*.conf"
6aa56d
  (#903065)
6aa56d
6aa56d
* Wed Dec 19 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-3
6aa56d
- use correct file ownership when rotating log files
6aa56d
6aa56d
* Tue Dec 18 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-2
6aa56d
- send correct kill signal and use correct file permissions when rotating
6aa56d
  log files (#888225)
6aa56d
- send correct kill signal in nginx-upgrade
6aa56d
6aa56d
* Tue Dec 11 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-1
6aa56d
- update to upstream release 1.2.6
6aa56d
6aa56d
* Sat Nov 17 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.5-1
6aa56d
- update to upstream release 1.2.5
6aa56d
6aa56d
* Sun Oct 28 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.4-1
6aa56d
- update to upstream release 1.2.4
6aa56d
- introduce new systemd-rpm macros (#850228)
6aa56d
- link to official documentation not the community wiki (#870733)
6aa56d
- do not run systemctl try-restart after package upgrade to allow the
6aa56d
  administrator to run nginx-upgrade and avoid downtime
6aa56d
- add nginx man page (#870738)
6aa56d
- add nginx-upgrade man page and remove README.fedora
6aa56d
- remove chkconfig from Requires(post/preun)
6aa56d
- remove initscripts from Requires(preun/postun)
6aa56d
- remove separate configuration files in "/etc/nginx/conf.d" directory
6aa56d
  and revert to upstream default of a centralized nginx.conf file
6aa56d
  (#803635) (#842738)
6aa56d
6aa56d
* Fri Sep 21 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.3-1
6aa56d
- update to upstream release 1.2.3
6aa56d
6aa56d
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2.1-3
6aa56d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6aa56d
6aa56d
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 1:1.2.1-2
6aa56d
- Perl 5.16 rebuild
6aa56d
6aa56d
* Sun Jun 10 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.1-1
6aa56d
- update to upstream release 1.2.1
6aa56d
6aa56d
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 1:1.2.0-2
6aa56d
- Perl 5.16 rebuild
6aa56d
6aa56d
* Wed May 16 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.0-1
6aa56d
- update to upstream release 1.2.0
6aa56d
6aa56d
* Wed May 16 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-4
6aa56d
- add nginx-upgrade to replace functionality from the nginx initscript
6aa56d
  that was lost after migration to systemd
6aa56d
- add README.fedora to describe usage of nginx-upgrade
6aa56d
- nginx.logrotate: use built-in systemd kill command in postrotate script
6aa56d
- nginx.service: start after syslog.target and network.target
6aa56d
- nginx.service: remove unnecessary references to config file location
6aa56d
- nginx.service: use /bin/kill instead of "/usr/sbin/nginx -s" following
6aa56d
  advice from nginx-devel
6aa56d
- nginx.service: use private /tmp
6aa56d
6aa56d
* Mon May 14 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-3
6aa56d
- fix incorrect postrotate script in nginx.logrotate
6aa56d
6aa56d
* Thu Apr 19 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-2
6aa56d
- renable auto-cc-gcc patch due to warnings on rawhide
6aa56d
6aa56d
* Sat Apr 14 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-1
6aa56d
- update to upstream release 1.0.15
6aa56d
- no need to apply auto-cc-gcc patch
6aa56d
- add %%global _hardened_build 1
6aa56d
6aa56d
* Thu Mar 15 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.14-1
6aa56d
- update to upstream release 1.0.14
6aa56d
- amend some %%changelog formatting
6aa56d
6aa56d
* Tue Mar 06 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.13-1
6aa56d
- update to upstream release 1.0.13
6aa56d
- amend --pid-path and --log-path
6aa56d
6aa56d
* Sun Mar 04 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-5
6aa56d
- change pid path in nginx.conf to match systemd service file
6aa56d
6aa56d
* Sun Mar 04 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-3
6aa56d
- fix %%pre scriptlet
6aa56d
6aa56d
* Mon Feb 20 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-2
6aa56d
- update upstream URL
6aa56d
- replace %%define with %%global
6aa56d
- remove obsolete BuildRoot tag, %%clean section and %%defattr
6aa56d
- remove various unnecessary commands
6aa56d
- add systemd service file and update scriptlets
6aa56d
- add Epoch to accommodate %%triggerun as part of systemd migration
6aa56d
6aa56d
* Sun Feb 19 2012 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.0.12-1
6aa56d
- Update to 1.0.12
6aa56d
6aa56d
* Thu Nov 17 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.10-1
6aa56d
- Bugfix: a segmentation fault might occur in a worker process if resolver got a big DNS response. Thanks to Ben Hawkes.
6aa56d
- Bugfix: in cache key calculation if internal MD5 implementation wasused; the bug had appeared in 1.0.4.
6aa56d
- Bugfix: the module ngx_http_mp4_module sent incorrect "Content-Length" response header line if the "start" argument was used. Thanks to Piotr Sikora.
6aa56d
6aa56d
* Thu Oct 27 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.8-1
6aa56d
- Update to new 1.0.8 stable release
6aa56d
6aa56d
* Fri Aug 26 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.5-1
6aa56d
- Update nginx to Latest Stable Release
6aa56d
6aa56d
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.0.0-3
6aa56d
- Perl mass rebuild
6aa56d
6aa56d
* Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.0.0-2
6aa56d
- Perl 5.14 mass rebuild
6aa56d
6aa56d
* Wed Apr 27 2011 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.0.0-1
6aa56d
- Update to 1.0.0
6aa56d
6aa56d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.53-6
6aa56d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6aa56d
6aa56d
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53.5
6aa56d
- Extract out default config into its own file (bug #635776)
6aa56d
6aa56d
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-4
6aa56d
- Revert ownership of log dir
6aa56d
6aa56d
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-3
6aa56d
- Change ownership of /var/log/nginx to be 0700 nginx:nginx
6aa56d
- update init script to use killproc -p
6aa56d
- add reopen_logs command to init script
6aa56d
- update init script to use nginx -q option
6aa56d
6aa56d
* Sun Oct 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-2
6aa56d
- Fix linking of perl module
6aa56d
6aa56d
* Sun Oct 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-1
6aa56d
- Update to new stable 0.8.53
6aa56d
6aa56d
* Sat Jul 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.67-2
6aa56d
- add Provides: webserver (bug #619693)
6aa56d
6aa56d
* Sun Jun 20 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.67-1
6aa56d
- Update to new stable 0.7.67
6aa56d
- fix bugzilla #591543
6aa56d
6aa56d
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.7.65-2
6aa56d
- Mass rebuild with perl-5.12.0
6aa56d
6aa56d
* Mon Feb 15 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.65-1
6aa56d
- Update to new stable 0.7.65
6aa56d
- change ownership of logdir to root:root
6aa56d
- add support for ipv6 (bug #561248)
6aa56d
- add random_index_module
6aa56d
- add secure_link_module
6aa56d
6aa56d
* Fri Dec 04 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.64-1
6aa56d
- Update to new stable 0.7.64