Blame SPECS/nginx.spec

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