Blame SPECS/nginx.spec

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