Blame SPECS/nginx.spec

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