638e8a
%global  _hardened_build     1
638e8a
%global  nginx_user          nginx
638e8a
638e8a
# Disable strict symbol checks in the link editor.
638e8a
# See: https://src.fedoraproject.org/rpms/redhat-rpm-config/c/078af19
638e8a
%undefine _strict_symbol_defs_build
638e8a
638e8a
%bcond_with geoip
638e8a
638e8a
# nginx gperftools support should be dissabled for RHEL >= 8
638e8a
# see: https://bugzilla.redhat.com/show_bug.cgi?id=1931402
638e8a
%if 0%{?rhel} >= 8
638e8a
%global with_gperftools 0
638e8a
%else
638e8a
# gperftools exist only on selected arches
638e8a
# gperftools *detection* is failing on ppc64*, possibly only configure
638e8a
# bug, but disable anyway.
638e8a
%ifnarch s390 s390x ppc64 ppc64le
638e8a
%global with_gperftools 1
638e8a
%endif
638e8a
%endif
638e8a
638e8a
%global with_aio 1
638e8a
638e8a
%if 0%{?fedora} > 22
638e8a
%global with_mailcap_mimetypes 1
638e8a
%endif
638e8a
e9d4df
# Cf. https://www.nginx.com/blog/creating-installable-packages-dynamic-modules/
e9d4df
%global nginx_abiversion %{version}
e9d4df
e9d4df
%global nginx_moduledir %{_libdir}/nginx/modules
e9d4df
%global nginx_moduleconfdir %{_datadir}/nginx/modules
e9d4df
%global nginx_srcdir %{_usrsrc}/%{name}-%{version}-%{release}
e9d4df
e9d4df
# Do not generate provides/requires from nginx sources
e9d4df
%global __provides_exclude_from ^%{nginx_srcdir}/.*$
e9d4df
%global __requires_exclude_from ^%{nginx_srcdir}/.*$	
e9d4df
e9d4df
638e8a
Name:              nginx
638e8a
Epoch:             1
638e8a
Version:           1.20.1
e9d4df
Release:           8%{?dist}
638e8a
638e8a
Summary:           A high performance web server and reverse proxy server
638e8a
# BSD License (two clause)
638e8a
# http://www.freebsd.org/copyright/freebsd-license.html
638e8a
License:           BSD
638e8a
URL:               https://nginx.org
638e8a
638e8a
Source0:           https://nginx.org/download/nginx-%{version}.tar.gz
638e8a
Source1:           https://nginx.org/download/nginx-%{version}.tar.gz.asc
638e8a
# Keys are found here: https://nginx.org/en/pgp_keys.html
638e8a
Source2:           https://nginx.org/keys/maxim.key
638e8a
Source3:           https://nginx.org/keys/mdounin.key
638e8a
Source4:           https://nginx.org/keys/sb.key
638e8a
Source10:          nginx.service
638e8a
Source11:          nginx.logrotate
638e8a
Source12:          nginx.conf
638e8a
Source13:          nginx-upgrade
638e8a
Source14:          nginx-upgrade.8
e9d4df
Source15:          macros.nginxmods.in
e9d4df
Source16:          nginxmods.attr
638e8a
Source102:         nginx-logo.png
638e8a
Source103:         404.html
638e8a
Source104:         50x.html
638e8a
Source200:         README.dynamic
638e8a
Source210:         UPGRADE-NOTES-1.6-to-1.10
638e8a
638e8a
# removes -Werror in upstream build scripts.  -Werror conflicts with
638e8a
# -D_FORTIFY_SOURCE=2 causing warnings to turn into errors.
638e8a
Patch0:            0001-remove-Werror-in-upstream-build-scripts.patch
638e8a
638e8a
# downstream patch - fix PIDFile race condition (rhbz#1869026)
638e8a
# rejected upstream: https://trac.nginx.org/nginx/ticket/1897
638e8a
Patch1:            0002-fix-PIDFile-handling.patch
638e8a
638e8a
# downstream patch for RHEL - https://bugzilla.redhat.com/show_bug.cgi?id=1955564
638e8a
Patch2:            0003-Support-loading-cert-hardware-token-PKC.patch
638e8a
e9d4df
# downstream patch for RHEL - https://bugzilla.redhat.com/show_bug.cgi?id=2006822
e9d4df
Patch3:            0004-Set-proper-compiler-optimalization-level-O2-for-perl.patch
e9d4df
e9d4df
# downstream patch for RHEL - https://bugzilla.redhat.com/show_bug.cgi?id=2006420
e9d4df
Patch4:            0005-Init-openssl-engine-properly.patch
e9d4df
638e8a
BuildRequires:     make
638e8a
BuildRequires:     gcc
638e8a
BuildRequires:     gnupg2
638e8a
%if 0%{?with_gperftools}
638e8a
BuildRequires:     gperftools-devel
638e8a
%endif
638e8a
%if 0%{?fedora} || 0%{?rhel} >= 8
638e8a
BuildRequires:     openssl-devel
638e8a
%else
638e8a
BuildRequires:     openssl11-devel
638e8a
%endif
638e8a
BuildRequires:     pcre-devel
638e8a
BuildRequires:     zlib-devel
638e8a
638e8a
Requires:          nginx-filesystem = %{epoch}:%{version}-%{release}
638e8a
%if 0%{?el7}
638e8a
# centos-logos el7 does not provide 'system-indexhtml'
638e8a
Requires:          system-logos redhat-indexhtml
638e8a
# need to remove epel7 geoip sub-package, doesn't work anymore
638e8a
# https://bugzilla.redhat.com/show_bug.cgi?id=1576034
638e8a
# https://bugzilla.redhat.com/show_bug.cgi?id=1664957
638e8a
Obsoletes:         nginx-mod-http-geoip <= 1:1.16
638e8a
%else
638e8a
Requires:          system-logos-httpd
638e8a
%endif
638e8a
638e8a
Requires:          openssl
638e8a
Requires:          pcre
638e8a
Requires(pre):     nginx-filesystem
638e8a
%if 0%{?with_mailcap_mimetypes}
638e8a
Requires:          nginx-mimetypes
638e8a
%endif
638e8a
Provides:          webserver
638e8a
%if 0%{?fedora} || 0%{?rhel} >= 8
638e8a
Recommends:        logrotate
638e8a
%endif
638e8a
638e8a
BuildRequires:     systemd
638e8a
Requires(post):    systemd
638e8a
Requires(preun):   systemd
638e8a
Requires(postun):  systemd
e9d4df
# For external nginx modules
e9d4df
Provides:          nginx(abi) = %{nginx_abiversion}
638e8a
638e8a
%description
638e8a
Nginx is a web server and a reverse proxy server for HTTP, SMTP, POP3 and
638e8a
IMAP protocols, with a strong focus on high concurrency, performance and low
638e8a
memory usage.
638e8a
638e8a
%package all-modules
638e8a
Summary:           A meta package that installs all available Nginx modules
638e8a
BuildArch:         noarch
638e8a
638e8a
%if %{with geoip}
638e8a
Requires:          nginx-mod-http-geoip = %{epoch}:%{version}-%{release}
638e8a
%endif
638e8a
Requires:          nginx-mod-http-image-filter = %{epoch}:%{version}-%{release}
638e8a
Requires:          nginx-mod-http-perl = %{epoch}:%{version}-%{release}
638e8a
Requires:          nginx-mod-http-xslt-filter = %{epoch}:%{version}-%{release}
638e8a
Requires:          nginx-mod-mail = %{epoch}:%{version}-%{release}
638e8a
Requires:          nginx-mod-stream = %{epoch}:%{version}-%{release}
638e8a
638e8a
%description all-modules
638e8a
Meta package that installs all available nginx modules.
638e8a
638e8a
%package filesystem
638e8a
Summary:           The basic directory layout for the Nginx server
638e8a
BuildArch:         noarch
638e8a
Requires(pre):     shadow-utils
638e8a
638e8a
%description filesystem
638e8a
The nginx-filesystem package contains the basic directory layout
638e8a
for the Nginx server including the correct permissions for the
638e8a
directories.
638e8a
638e8a
%if %{with geoip}
638e8a
%package mod-http-geoip
638e8a
Summary:           Nginx HTTP geoip module
638e8a
BuildRequires:     GeoIP-devel
e9d4df
Requires:          nginx(abi) = %{nginx_abiversion}
638e8a
Requires:          GeoIP
638e8a
638e8a
%description mod-http-geoip
638e8a
%{summary}.
638e8a
%endif
638e8a
638e8a
%package mod-http-image-filter
638e8a
Summary:           Nginx HTTP image filter module
638e8a
BuildRequires:     gd-devel
e9d4df
Requires:          nginx(abi) = %{nginx_abiversion}
638e8a
Requires:          gd
638e8a
638e8a
%description mod-http-image-filter
638e8a
%{summary}.
638e8a
638e8a
%package mod-http-perl
638e8a
Summary:           Nginx HTTP perl module
638e8a
BuildRequires:     perl-devel
638e8a
%if 0%{?fedora} >= 24 || 0%{?rhel} >= 7
638e8a
BuildRequires:     perl-generators
638e8a
%endif
638e8a
BuildRequires:     perl(ExtUtils::Embed)
e9d4df
Requires:          nginx(abi) = %{nginx_abiversion}
638e8a
Requires:          perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
638e8a
Requires:          perl(constant)
638e8a
638e8a
%description mod-http-perl
638e8a
%{summary}.
638e8a
638e8a
%package mod-http-xslt-filter
638e8a
Summary:           Nginx XSLT module
638e8a
BuildRequires:     libxslt-devel
e9d4df
Requires:          nginx(abi) = %{nginx_abiversion}
638e8a
638e8a
%description mod-http-xslt-filter
638e8a
%{summary}.
638e8a
638e8a
%package mod-mail
638e8a
Summary:           Nginx mail modules
e9d4df
Requires:          nginx(abi) = %{nginx_abiversion}
638e8a
638e8a
%description mod-mail
638e8a
%{summary}.
638e8a
638e8a
%package mod-stream
638e8a
Summary:           Nginx stream modules
e9d4df
Requires:          nginx(abi) = %{nginx_abiversion}
638e8a
638e8a
%description mod-stream
638e8a
%{summary}.
638e8a
e9d4df
%package mod-devel
e9d4df
Summary:           Nginx module development files
e9d4df
Requires:          nginx = %{epoch}:%{version}-%{release}
e9d4df
Requires:          make
e9d4df
Requires:          gcc
e9d4df
Requires:          gd-devel
e9d4df
%if 0%{?with_gperftools}
e9d4df
Requires:          gperftools-devel
e9d4df
%endif
e9d4df
%if %{with geoip}
e9d4df
Requires:          GeoIP-devel
e9d4df
%endif
e9d4df
Requires:          libxslt-devel
e9d4df
%if 0%{?fedora} || 0%{?rhel} >= 8
e9d4df
Requires:          openssl-devel
e9d4df
%else
e9d4df
Requires:          openssl11-devel
e9d4df
%endif
e9d4df
Requires:          pcre-devel
e9d4df
Requires:          perl-devel
e9d4df
Requires:          perl(ExtUtils::Embed)
e9d4df
Requires:          zlib-devel
e9d4df
e9d4df
%description mod-devel
e9d4df
%{summary}.
e9d4df
638e8a
638e8a
%prep
638e8a
# Combine all keys from upstream into one file
638e8a
cat %{S:2} %{S:3} %{S:4} > %{_builddir}/%{name}.gpg
638e8a
%{gpgverify} --keyring='%{_builddir}/%{name}.gpg' --signature='%{SOURCE1}' --data='%{SOURCE0}'
638e8a
%autosetup -p1
638e8a
cp %{SOURCE200} %{SOURCE210} %{SOURCE10} %{SOURCE12} .
638e8a
638e8a
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
638e8a
sed -i -e 's#KillMode=.*#KillMode=process#g' nginx.service
638e8a
sed -i -e 's#PROFILE=SYSTEM#HIGH:!aNULL:!MD5#' nginx.conf
638e8a
%endif
638e8a
638e8a
%if 0%{?rhel} == 7
638e8a
sed \
638e8a
  -e 's|\(ngx_feature_path=\)$|\1%{_includedir}/openssl11|' \
638e8a
  -e 's|\(ngx_feature_libs="\)|\1-L%{_libdir}/openssl11 |' \
638e8a
  -i auto/lib/openssl/conf
638e8a
%endif
638e8a
e9d4df
# Prepare sources for installation
e9d4df
cp -a ../%{name}-%{version} ../%{name}-%{version}-%{release}-src
e9d4df
mv ../%{name}-%{version}-%{release}-src .
e9d4df
638e8a
638e8a
%build
638e8a
# nginx does not utilize a standard configure script.  It has its own
638e8a
# and the standard configure options cause the nginx configure script
638e8a
# to error out.  This is is also the reason for the DESTDIR environment
638e8a
# variable.
638e8a
export DESTDIR=%{buildroot}
638e8a
# So the perl module finds its symbols:
638e8a
nginx_ldopts="$RPM_LD_FLAGS -Wl,-E"
638e8a
if ! ./configure \
638e8a
    --prefix=%{_datadir}/nginx \
638e8a
    --sbin-path=%{_sbindir}/nginx \
e9d4df
    --modules-path=%{nginx_moduledir} \
638e8a
    --conf-path=%{_sysconfdir}/nginx/nginx.conf \
638e8a
    --error-log-path=%{_localstatedir}/log/nginx/error.log \
638e8a
    --http-log-path=%{_localstatedir}/log/nginx/access.log \
638e8a
    --http-client-body-temp-path=%{_localstatedir}/lib/nginx/tmp/client_body \
638e8a
    --http-proxy-temp-path=%{_localstatedir}/lib/nginx/tmp/proxy \
638e8a
    --http-fastcgi-temp-path=%{_localstatedir}/lib/nginx/tmp/fastcgi \
638e8a
    --http-uwsgi-temp-path=%{_localstatedir}/lib/nginx/tmp/uwsgi \
638e8a
    --http-scgi-temp-path=%{_localstatedir}/lib/nginx/tmp/scgi \
638e8a
    --pid-path=/run/nginx.pid \
638e8a
    --lock-path=/run/lock/subsys/nginx \
638e8a
    --user=%{nginx_user} \
638e8a
    --group=%{nginx_user} \
638e8a
    --with-compat \
638e8a
    --with-debug \
638e8a
%if 0%{?with_aio}
638e8a
    --with-file-aio \
638e8a
%endif
638e8a
%if 0%{?with_gperftools}
638e8a
    --with-google_perftools_module \
638e8a
%endif
638e8a
    --with-http_addition_module \
638e8a
    --with-http_auth_request_module \
638e8a
    --with-http_dav_module \
638e8a
    --with-http_degradation_module \
638e8a
    --with-http_flv_module \
638e8a
%if %{with geoip}
638e8a
    --with-http_geoip_module=dynamic \
638e8a
%endif
638e8a
    --with-http_gunzip_module \
638e8a
    --with-http_gzip_static_module \
638e8a
    --with-http_image_filter_module=dynamic \
638e8a
    --with-http_mp4_module \
638e8a
    --with-http_perl_module=dynamic \
638e8a
    --with-http_random_index_module \
638e8a
    --with-http_realip_module \
638e8a
    --with-http_secure_link_module \
638e8a
    --with-http_slice_module \
638e8a
    --with-http_ssl_module \
638e8a
    --with-http_stub_status_module \
638e8a
    --with-http_sub_module \
638e8a
    --with-http_v2_module \
638e8a
    --with-http_xslt_module=dynamic \
638e8a
    --with-mail=dynamic \
638e8a
    --with-mail_ssl_module \
638e8a
    --with-pcre \
638e8a
    --with-pcre-jit \
638e8a
    --with-stream=dynamic \
638e8a
    --with-stream_ssl_module \
638e8a
    --with-stream_ssl_preread_module \
638e8a
    --with-threads \
638e8a
    --with-cc-opt="%{optflags} $(pcre-config --cflags)" \
638e8a
    --with-ld-opt="$nginx_ldopts"; then
638e8a
  : configure failed
638e8a
  cat objs/autoconf.err
638e8a
  exit 1
638e8a
fi
638e8a
638e8a
%make_build
638e8a
638e8a
638e8a
%install
638e8a
%make_install INSTALLDIRS=vendor
638e8a
638e8a
find %{buildroot} -type f -name .packlist -exec rm -f '{}' \;
638e8a
find %{buildroot} -type f -name perllocal.pod -exec rm -f '{}' \;
638e8a
find %{buildroot} -type f -empty -exec rm -f '{}' \;
638e8a
find %{buildroot} -type f -iname '*.so' -exec chmod 0755 '{}' \;
638e8a
638e8a
install -p -D -m 0644 ./nginx.service \
638e8a
    %{buildroot}%{_unitdir}/nginx.service
638e8a
install -p -D -m 0644 %{SOURCE11} \
638e8a
    %{buildroot}%{_sysconfdir}/logrotate.d/nginx
638e8a
638e8a
install -p -d -m 0755 %{buildroot}%{_sysconfdir}/systemd/system/nginx.service.d
638e8a
install -p -d -m 0755 %{buildroot}%{_unitdir}/nginx.service.d
638e8a
638e8a
install -p -d -m 0755 %{buildroot}%{_sysconfdir}/nginx/conf.d
638e8a
install -p -d -m 0755 %{buildroot}%{_sysconfdir}/nginx/default.d
638e8a
638e8a
install -p -d -m 0700 %{buildroot}%{_localstatedir}/lib/nginx
638e8a
install -p -d -m 0700 %{buildroot}%{_localstatedir}/lib/nginx/tmp
638e8a
install -p -d -m 0700 %{buildroot}%{_localstatedir}/log/nginx
638e8a
638e8a
install -p -d -m 0755 %{buildroot}%{_datadir}/nginx/html
e9d4df
install -p -d -m 0755 %{buildroot}%{nginx_moduleconfdir}
e9d4df
install -p -d -m 0755 %{buildroot}%{nginx_moduledir}
e9d4df
638e8a
638e8a
install -p -m 0644 ./nginx.conf \
638e8a
    %{buildroot}%{_sysconfdir}/nginx
638e8a
638e8a
rm -f %{buildroot}%{_datadir}/nginx/html/index.html
638e8a
%if 0%{?el7}
638e8a
ln -s ../../doc/HTML/index.html \
638e8a
      %{buildroot}%{_datadir}/nginx/html/index.html
638e8a
ln -s ../../doc/HTML/img \
638e8a
      %{buildroot}%{_datadir}/nginx/html/img
638e8a
ln -s ../../doc/HTML/en-US \
638e8a
      %{buildroot}%{_datadir}/nginx/html/en-US
638e8a
%else
638e8a
ln -s ../../testpage/index.html \
638e8a
      %{buildroot}%{_datadir}/nginx/html/index.html
638e8a
%endif
638e8a
install -p -m 0644 %{SOURCE102} \
638e8a
    %{buildroot}%{_datadir}/nginx/html
638e8a
ln -s nginx-logo.png %{buildroot}%{_datadir}/nginx/html/poweredby.png
638e8a
mkdir -p %{buildroot}%{_datadir}/nginx/html/icons
638e8a
638e8a
# Symlink for the powered-by-$DISTRO image:
638e8a
ln -s ../../../pixmaps/poweredby.png \
638e8a
      %{buildroot}%{_datadir}/nginx/html/icons/poweredby.png
638e8a
638e8a
%if 0%{?rhel} >= 9
638e8a
ln -s ../../pixmaps/system-noindex-logo.png \
638e8a
      %{buildroot}%{_datadir}/nginx/html/system_noindex_logo.png
638e8a
%endif
638e8a
638e8a
install -p -m 0644 %{SOURCE103} %{SOURCE104} \
638e8a
    %{buildroot}%{_datadir}/nginx/html
638e8a
638e8a
%if 0%{?with_mailcap_mimetypes}
638e8a
rm -f %{buildroot}%{_sysconfdir}/nginx/mime.types
638e8a
%endif
638e8a
638e8a
install -p -D -m 0644 %{_builddir}/nginx-%{version}/objs/nginx.8 \
638e8a
    %{buildroot}%{_mandir}/man8/nginx.8
638e8a
638e8a
install -p -D -m 0755 %{SOURCE13} %{buildroot}%{_bindir}/nginx-upgrade
638e8a
install -p -D -m 0644 %{SOURCE14} %{buildroot}%{_mandir}/man8/nginx-upgrade.8
638e8a
638e8a
for i in ftdetect ftplugin indent syntax; do
638e8a
    install -p -D -m644 contrib/vim/${i}/nginx.vim \
638e8a
        %{buildroot}%{_datadir}/vim/vimfiles/${i}/nginx.vim
638e8a
done
638e8a
638e8a
%if %{with geoip}
e9d4df
echo 'load_module "%{nginx_moduledir}/ngx_http_geoip_module.so";' \
e9d4df
    > %{buildroot}%{nginx_moduleconfdir}/mod-http-geoip.conf
638e8a
%endif
e9d4df
echo 'load_module "%{nginx_moduledir}/ngx_http_image_filter_module.so";' \
e9d4df
    > %{buildroot}%{nginx_moduleconfdir}/mod-http-image-filter.conf
e9d4df
echo 'load_module "%{nginx_moduledir}/ngx_http_perl_module.so";' \
e9d4df
    > %{buildroot}%{nginx_moduleconfdir}/mod-http-perl.conf
e9d4df
echo 'load_module "%{nginx_moduledir}/ngx_http_xslt_filter_module.so";' \
e9d4df
    > %{buildroot}%{nginx_moduleconfdir}/mod-http-xslt-filter.conf
e9d4df
echo 'load_module "%{nginx_moduledir}/ngx_mail_module.so";' \
e9d4df
    > %{buildroot}%{nginx_moduleconfdir}/mod-mail.conf
e9d4df
echo 'load_module "%{nginx_moduledir}/ngx_stream_module.so";' \
e9d4df
    > %{buildroot}%{nginx_moduleconfdir}/mod-stream.conf
e9d4df
e9d4df
# Install files for supporting nginx module builds
e9d4df
## Install source files
e9d4df
mkdir -p %{buildroot}%{_usrsrc}
e9d4df
mv %{name}-%{version}-%{release}-src %{buildroot}%{nginx_srcdir}
e9d4df
## Install rpm macros
e9d4df
mkdir -p %{buildroot}%{_rpmmacrodir}
e9d4df
sed -e "s|@@NGINX_ABIVERSION@@|%{nginx_abiversion}|g" \
e9d4df
    -e "s|@@NGINX_MODDIR@@|%{nginx_moduledir}|g" \
e9d4df
    -e "s|@@NGINX_MODCONFDIR@@|%{nginx_moduleconfdir}|g" \
e9d4df
    -e "s|@@NGINX_SRCDIR@@|%{nginx_srcdir}|g" \
e9d4df
    %{SOURCE15} > %{buildroot}%{_rpmmacrodir}/macros.nginxmods
e9d4df
## Install dependency generator
e9d4df
install -Dpm0644 -t %{buildroot}%{_fileattrsdir} %{SOURCE16}
e9d4df
e9d4df
638e8a
638e8a
%pre filesystem
638e8a
getent group %{nginx_user} > /dev/null || groupadd -r %{nginx_user}
638e8a
getent passwd %{nginx_user} > /dev/null || \
638e8a
    useradd -r -d %{_localstatedir}/lib/nginx -g %{nginx_user} \
638e8a
    -s /sbin/nologin -c "Nginx web server" %{nginx_user}
638e8a
exit 0
638e8a
638e8a
%post
638e8a
%systemd_post nginx.service
638e8a
638e8a
%if %{with geoip}
638e8a
%post mod-http-geoip
638e8a
if [ $1 -eq 1 ]; then
638e8a
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
638e8a
fi
638e8a
%endif
638e8a
638e8a
%post mod-http-image-filter
638e8a
if [ $1 -eq 1 ]; then
638e8a
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
638e8a
fi
638e8a
638e8a
%post mod-http-perl
638e8a
if [ $1 -eq 1 ]; then
638e8a
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
638e8a
fi
638e8a
638e8a
%post mod-http-xslt-filter
638e8a
if [ $1 -eq 1 ]; then
638e8a
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
638e8a
fi
638e8a
638e8a
%post mod-mail
638e8a
if [ $1 -eq 1 ]; then
638e8a
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
638e8a
fi
638e8a
638e8a
%post mod-stream
638e8a
if [ $1 -eq 1 ]; then
638e8a
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
638e8a
fi
638e8a
638e8a
%preun
638e8a
%systemd_preun nginx.service
638e8a
638e8a
%postun
638e8a
%systemd_postun nginx.service
638e8a
if [ $1 -ge 1 ]; then
638e8a
    /usr/bin/nginx-upgrade >/dev/null 2>&1 || :
638e8a
fi
638e8a
638e8a
%files
638e8a
%license LICENSE
638e8a
%doc CHANGES README README.dynamic
638e8a
%if 0%{?rhel} == 7
638e8a
%doc UPGRADE-NOTES-1.6-to-1.10
638e8a
%endif
638e8a
%{_datadir}/nginx/html/*
638e8a
%{_bindir}/nginx-upgrade
638e8a
%{_sbindir}/nginx
638e8a
%{_datadir}/vim/vimfiles/ftdetect/nginx.vim
638e8a
%{_datadir}/vim/vimfiles/ftplugin/nginx.vim
638e8a
%{_datadir}/vim/vimfiles/syntax/nginx.vim
638e8a
%{_datadir}/vim/vimfiles/indent/nginx.vim
638e8a
%{_mandir}/man3/nginx.3pm*
638e8a
%{_mandir}/man8/nginx.8*
638e8a
%{_mandir}/man8/nginx-upgrade.8*
638e8a
%{_unitdir}/nginx.service
638e8a
%config(noreplace) %{_sysconfdir}/nginx/fastcgi.conf
638e8a
%config(noreplace) %{_sysconfdir}/nginx/fastcgi.conf.default
638e8a
%config(noreplace) %{_sysconfdir}/nginx/fastcgi_params
638e8a
%config(noreplace) %{_sysconfdir}/nginx/fastcgi_params.default
638e8a
%config(noreplace) %{_sysconfdir}/nginx/koi-utf
638e8a
%config(noreplace) %{_sysconfdir}/nginx/koi-win
638e8a
%if ! 0%{?with_mailcap_mimetypes}
638e8a
%config(noreplace) %{_sysconfdir}/nginx/mime.types
638e8a
%endif
638e8a
%config(noreplace) %{_sysconfdir}/nginx/mime.types.default
638e8a
%config(noreplace) %{_sysconfdir}/nginx/nginx.conf
638e8a
%config(noreplace) %{_sysconfdir}/nginx/nginx.conf.default
638e8a
%config(noreplace) %{_sysconfdir}/nginx/scgi_params
638e8a
%config(noreplace) %{_sysconfdir}/nginx/scgi_params.default
638e8a
%config(noreplace) %{_sysconfdir}/nginx/uwsgi_params
638e8a
%config(noreplace) %{_sysconfdir}/nginx/uwsgi_params.default
638e8a
%config(noreplace) %{_sysconfdir}/nginx/win-utf
638e8a
%config(noreplace) %{_sysconfdir}/logrotate.d/nginx
638e8a
%attr(770,%{nginx_user},root) %dir %{_localstatedir}/lib/nginx
638e8a
%attr(770,%{nginx_user},root) %dir %{_localstatedir}/lib/nginx/tmp
638e8a
%dir %{_localstatedir}/log/nginx
e9d4df
%dir %{nginx_moduledir}
e9d4df
%dir %{nginx_moduleconfdir}
638e8a
638e8a
%files all-modules
638e8a
638e8a
%files filesystem
638e8a
%dir %{_datadir}/nginx
638e8a
%dir %{_datadir}/nginx/html
638e8a
%dir %{_sysconfdir}/nginx
638e8a
%dir %{_sysconfdir}/nginx/conf.d
638e8a
%dir %{_sysconfdir}/nginx/default.d
638e8a
%dir %{_sysconfdir}/systemd/system/nginx.service.d
638e8a
%dir %{_unitdir}/nginx.service.d
638e8a
638e8a
%if %{with geoip}
638e8a
%files mod-http-geoip
e9d4df
%{nginx_moduleconfdir}/mod-http-geoip.conf
e9d4df
%{nginx_moduledir}/ngx_http_geoip_module.so
638e8a
%endif
638e8a
638e8a
%files mod-http-image-filter
e9d4df
%{nginx_moduleconfdir}/mod-http-image-filter.conf
e9d4df
%{nginx_moduledir}/ngx_http_image_filter_module.so
638e8a
638e8a
%files mod-http-perl
e9d4df
%{nginx_moduleconfdir}/mod-http-perl.conf
e9d4df
%{nginx_moduledir}/ngx_http_perl_module.so
638e8a
%dir %{perl_vendorarch}/auto/nginx
638e8a
%{perl_vendorarch}/nginx.pm
638e8a
%{perl_vendorarch}/auto/nginx/nginx.so
638e8a
638e8a
%files mod-http-xslt-filter
e9d4df
%{nginx_moduleconfdir}/mod-http-xslt-filter.conf
e9d4df
%{nginx_moduledir}/ngx_http_xslt_filter_module.so
638e8a
638e8a
%files mod-mail
e9d4df
%{nginx_moduleconfdir}/mod-mail.conf
e9d4df
%{nginx_moduledir}/ngx_mail_module.so
638e8a
638e8a
%files mod-stream
e9d4df
%{nginx_moduleconfdir}/mod-stream.conf
e9d4df
%{nginx_moduledir}/ngx_stream_module.so
e9d4df
e9d4df
%files mod-devel
e9d4df
%{_rpmmacrodir}/macros.nginxmods
e9d4df
%{_fileattrsdir}/nginxmods.attr
e9d4df
%{nginx_srcdir}/
638e8a
638e8a
638e8a
%changelog
e9d4df
* Wed Sep 22 2021 Luboš Uhliarik <luhliari@redhat.com> - 1:1.20.1-8
e9d4df
- Resolves: #2007019 - use proper wording in error pages
e9d4df
e9d4df
* Wed Sep 22 2021 Luboš Uhliarik <luhliari@redhat.com> - 1:1.20.1-7
e9d4df
- Resolves: #2006420 - Broken loading certificates from hardware token (PKCS#11)
e9d4df
e9d4df
* Wed Sep 22 2021 Luboš Uhliarik <luhliari@redhat.com> - 1:1.20.1-6
e9d4df
- Resolves: #2006822 - Hardening tests fail for nginx
e9d4df
e9d4df
* Tue Sep 21 2021 Luboš Uhliarik <luhliari@redhat.com> - 1:1.20.1-5
e9d4df
- Add -mod-devel subpackage for building external nginx modules
e9d4df
  Resolves: rhbz#1991720 (Neal Gompa)
e9d4df
638e8a
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.20.1-4
638e8a
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
638e8a
  Related: rhbz#1991688
638e8a
638e8a
* Mon Aug 09 2021 Luboš Uhliarik <luhliari@redhat.com> - 1:1.20.1-3
638e8a
- Resolves: #1991600 - Add logo symlink required by new testpage
638e8a
638e8a
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.20.1-2
638e8a
- Rebuilt for RHEL 9 BETA for openssl 3.0
638e8a
  Related: rhbz#1971065
638e8a
638e8a
* Wed Jun 02 2021 Luboš Uhliarik <luhliari@redhat.com> - 1:1.20.1-1
638e8a
- new version 1.20.1
638e8a
- Resolves: #1964814 - CVE-2021-23017 nginx: Off-by-one in ngx_resolver_copy()
638e8a
  when labels are followed by a pointer to a root domain name
638e8a
638e8a
* Fri Apr 30 2021 Lubos Uhliarik <luhliari@redhat.com> - 1:1.20.0-5
638e8a
- Resolves: #1955564 - [RFE] Support loading certificates from hardware
638e8a
  token (PKCS#11)
638e8a
638e8a
* Fri Apr 30 2021 Lubos Uhliarik <luhliari@redhat.com> - 1:1.20.0-4
638e8a
- Resolves: #1955560 - centralizing default index.html on nginx
638e8a
638e8a
* Mon Apr 26 2021 Lubos Uhliarik <luhliari@redhat.com> - 1:1.20.0-3
638e8a
- Resolve: #1953639 - Rebase nginx to 1.20
638e8a
638e8a
* Wed Apr 21 2021 Felix Kaechele <heffer@fedoraproject.org> - 1:1.20.0-2
638e8a
- sync rawhide and EPEL7 spec files again
638e8a
- systemd service reload now checks config file (rhbz#1565377)
638e8a
- drop nginx requirement on nginx-all-modules (rhbz#1708799)
638e8a
- let nginx handle log creation on logrotate (rhbz#1683388)
638e8a
- have log directory owned by root (rhbz#1390183, CVE-2016-1247)
638e8a
- remove obsolete --with-ipv6 (src PR#8)
638e8a
- correction: pcre2 is actually not supported by nginx, reintroduce pcre
638e8a
638e8a
* Wed Apr 21 2021 Felix Kaechele <heffer@fedoraproject.org> - 1:1.20.0-1
638e8a
- update to 1.20.0
638e8a
- sync with mainline spec file
638e8a
- order configure options alphabetically for easier comparinggit
638e8a
- add --with-compat option (rhbz#1834452)
638e8a
- add patch to fix PIDFile race condition (rhbz#1869026)
638e8a
- use pcre2 instead of pcre (rhbz#1938984)
638e8a
- add Wants=network-online.target to systemd unit (rhbz#1943779)
638e8a
638e8a
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.18.0-6
638e8a
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
638e8a
638e8a
* Mon Feb 22 2021 Lubos Uhliarik <luhliari@redhat.com> - 1:1.18.0-5
638e8a
- Resolves: #1931402 - drop gperftools module
638e8a
638e8a
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.18.0-4
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
638e8a
638e8a
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.18.0-3
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
638e8a
638e8a
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.18.0-2
638e8a
- Perl 5.32 rebuild
638e8a
638e8a
* Fri Apr 24 2020 Felix Kaechele <heffer@fedoraproject.org> - 1:1.18.0-1
638e8a
- Update to 1.18.0
638e8a
- Increased types_hash_max_size to 4096 in default config
638e8a
- Add gpg source verification
638e8a
- Add Recommends: logrotate
638e8a
- Drop location / from default config (rhbz#1564768)
638e8a
- Drop default_sever from default config (rhbz#1373822)
638e8a
638e8a
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.16.1-2
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
638e8a
638e8a
* Sun Sep 15 2019 Warren Togami <warren@blockstream.com>
638e8a
- add conditionals for EPEL7, see rhbz#1750857
638e8a
638e8a
* Tue Aug 13 2019 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.16.1-1
638e8a
- Update to upstream release 1.16.1
638e8a
- Fixes CVE-2019-9511, CVE-2019-9513, CVE-2019-9516
638e8a
638e8a
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.16.0-5
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
638e8a
638e8a
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.16.0-4
638e8a
- Perl 5.30 rebuild
638e8a
638e8a
* Tue May 14 2019 Stephen Gallagher <sgallagh@redhat.com> - 1.16.0-3
638e8a
- Move to common default index.html
638e8a
- Resolves: rhbz#1636235
638e8a
638e8a
* Tue May 07 2019 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.16.0-2
638e8a
- Add missing directory for vim plugin
638e8a
638e8a
* Fri Apr 26 2019 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.16.0-1
638e8a
- Update to upstream release 1.16.0
638e8a
638e8a
* Mon Mar 04 2019 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.15.9-1
638e8a
- Update to upstream release 1.15.9
638e8a
- Enable ngx_stream_ssl_preread module
638e8a
- Remove redundant conditionals
638e8a
638e8a
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.14.1-5
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
638e8a
638e8a
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 1:1.14.1-4
638e8a
- Rebuilt for libcrypt.so.2 (#1666033)
638e8a
638e8a
* Tue Dec 11 2018 Joe Orton <jorton@redhat.com> - 1:1.14.1-3
638e8a
- fix unexpanded paths in nginx(8)
638e8a
638e8a
* Tue Nov 20 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.14.1-2
638e8a
- new version 1.14.1
638e8a
- Resolves: #1584426 - Upstream Nginx 1.14.0 is now available
638e8a
- Resolves: #1647255 - CVE-2018-16845 nginx: Denial of service and memory
638e8a
  disclosure via mp4 module
638e8a
- Resolves: #1647259 - CVE-2018-16843 nginx: Excessive memory consumption
638e8a
  via flaw in HTTP/2 implementation
638e8a
- Resolves: #1647258 - CVE-2018-16844 nginx: Excessive CPU usage via flaw
638e8a
  in HTTP/2 implementation
638e8a
638e8a
* Mon Aug 06 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-14
638e8a
- add requires on perl(constant) for mod-http-perl
638e8a
638e8a
* Mon Jul 30 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-13
638e8a
- don't build with geoip by default
638e8a
638e8a
* Thu Jul 19 2018 Joe Orton <jorton@redhat.com> - 1:1.12.1-12
638e8a
- add build conditional for geoip support
638e8a
638e8a
* Mon Jul 16 2018 Tadej Janež <tadej.j@nez.si> - 1:1.12.1-11
638e8a
- Add gcc to BuildRequires to account for
638e8a
  https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
638e8a
638e8a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.1-10
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
638e8a
638e8a
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.12.1-9
638e8a
- Perl 5.28 rebuild
638e8a
638e8a
* Mon May 14 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-8
638e8a
- Related: #1573942 - nginx fails on start
638e8a
638e8a
* Wed May 02 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-7
638e8a
- Resolves: #1573942 - nginx fails on start
638e8a
638e8a
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.1-6
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
638e8a
638e8a
* Wed Jan 24 2018 Björn Esser <besser82@fedoraproject.org> - 1:1.12.1-5
638e8a
- Add patch to apply glibc bugfix if really needed only
638e8a
- Disable strict symbol checks in the link editor
638e8a
638e8a
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 1:1.12.1-4
638e8a
- Rebuilt for switch to libxcrypt
638e8a
638e8a
* Tue Oct 24 2017 Joe Orton <jorton@redhat.com> - 1:1.12.1-3
638e8a
- rebuild
638e8a
638e8a
* Tue Sep 19 2017 Remi Collet <remi@fedoraproject.org> - 1:1.12.1-2
638e8a
- own system drop-in directories #1493036
638e8a
638e8a
* Tue Aug 15 2017 Joe Orton <jorton@redhat.com> - 1:1.12.1-1
638e8a
- update to 1.12.1 (#1469924)
638e8a
- enable http_auth_request_module (Tim Niemueller, #1471106)
638e8a
638e8a
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.0-4
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
638e8a
638e8a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.0-3
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
638e8a
638e8a
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.12.0-2
638e8a
- Perl 5.26 rebuild
638e8a
638e8a
* Tue May 30 2017 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.0-1
638e8a
- new version 1.12.0
638e8a
638e8a
* Wed Feb  8 2017 Joe Orton <jorton@redhat.com> - 1:1.10.3-1
638e8a
- update to upstream release 1.10.3
638e8a
638e8a
* Mon Oct 31 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.10.2-1
638e8a
- update to upstream release 1.10.2
638e8a
638e8a
* Tue May 31 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.10.1-1
638e8a
- update to upstream release 1.10.1
638e8a
638e8a
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.10.0-4
638e8a
- Perl 5.24 rebuild
638e8a
638e8a
* Sun May  8 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1:1.10.0-3
638e8a
- Enable AIO on aarch64 (rhbz 1258414)
638e8a
638e8a
* Wed Apr 27 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.10.0-2
638e8a
- only Require nginx-all-modules for EPEL and current Fedora releases
638e8a
638e8a
* Wed Apr 27 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.10.0-1
638e8a
- update to upstream release 1.10.0
638e8a
- split dynamic modules into subpackages
638e8a
- spec file cleanup
638e8a
638e8a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.8.1-2
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
638e8a
638e8a
* Tue Jan 26 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.1-1
638e8a
- update to upstream release 1.8.1
638e8a
- CVE-2016-0747: Insufficient limits of CNAME resolution in resolver
638e8a
- CVE-2016-0746: Use-after-free during CNAME response processing in resolver
638e8a
- CVE-2016-0742: Invalid pointer dereference in resolver
638e8a
638e8a
* Sun Oct 04 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-14
638e8a
- consistently use '%%global with_foo' style of logic
638e8a
- remove PID file before starting nginx (#1268621)
638e8a
638e8a
* Fri Sep 25 2015 Ville Skyttä <ville.skytta@iki.fi> - 1:1.8.0-13
638e8a
- Use nginx-mimetypes from mailcap (#1248736)
638e8a
- Mark LICENSE as %%license
638e8a
638e8a
* Thu Sep 10 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-12
638e8a
- also build with gperftools on aarch64 (#1258412)
638e8a
638e8a
* Wed Aug 12 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1:1.8.0-11
638e8a
- nginx.conf: added commented-out SSL configuration directives (#1179232)
638e8a
638e8a
* Fri Jul 03 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-10
638e8a
- switch back to /bin/kill in logrotate script due to SELinux denials
638e8a
638e8a
* Tue Jun 16 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-9
638e8a
- fix path to png in error pages (#1232277)
638e8a
- optimize png images with optipng
638e8a
638e8a
* Sun Jun 14 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-8
638e8a
- replace /bin/kill with /usr/bin/systemctl kill in logrotate script (#1231543)
638e8a
- remove After=syslog.target in nginx.service (#1231543)
638e8a
- replace ExecStop with KillSignal=SIGQUIT in nginx.service (#1231543)
638e8a
638e8a
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.8.0-7
638e8a
- Perl 5.22 rebuild
638e8a
638e8a
* Sun May 10 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-6
638e8a
- revert previous change
638e8a
638e8a
* Sun May 10 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-5
638e8a
- move default server to default.conf (#1220094)
638e8a
638e8a
* Sun May 10 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-4
638e8a
- add TimeoutStopSec=5 and KillMode=mixed to nginx.service
638e8a
- set worker_processes to auto
638e8a
- add some common options to the http block in nginx.conf
638e8a
- run nginx-upgrade on package update
638e8a
- remove some redundant scriptlet commands
638e8a
- listen on ipv6 for default server (#1217081)
638e8a
638e8a
* Wed Apr 22 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-3
638e8a
- improve nginx-upgrade script
638e8a
638e8a
* Wed Apr 22 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-2
638e8a
- add --with-pcre-jit
638e8a
638e8a
* Wed Apr 22 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-1
638e8a
- update to upstream release 1.8.0
638e8a
638e8a
* Thu Apr 09 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.7.12-1
638e8a
- update to upstream release 1.7.12
638e8a
638e8a
* Sun Feb 15 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.7.10-1
638e8a
- update to upstream release 1.7.10
638e8a
- remove systemd conditionals
638e8a
638e8a
* Wed Oct 22 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.2-4
638e8a
- fix package ownership of directories
638e8a
638e8a
* Wed Oct 22 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.2-3
638e8a
- add vim files (#1142849)
638e8a
638e8a
* Mon Sep 22 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.2-2
638e8a
- create nginx-filesystem subpackage (patch from Remi Collet)
638e8a
- create /etc/nginx/default.d as a drop-in directory for configuration files
638e8a
  for the default server block
638e8a
- clean up nginx.conf
638e8a
638e8a
* Wed Sep 17 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.2-1
638e8a
- update to upstream release 1.6.2
638e8a
- CVE-2014-3616 nginx: virtual host confusion (#1142573)
638e8a
638e8a
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.6.1-4
638e8a
- Perl 5.20 rebuild
638e8a
638e8a
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.6.1-3
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
638e8a
638e8a
* Tue Aug 05 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.1-2
638e8a
- add logic for EPEL 7
638e8a
638e8a
* Tue Aug 05 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.1-1
638e8a
- update to upstream release 1.6.1
638e8a
- (#1126891) CVE-2014-3556: SMTP STARTTLS plaintext injection flaw
638e8a
638e8a
* Wed Jul 02 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 1:1.6.0-3
638e8a
- Fix FTBFS on aarch64 (#1115559)
638e8a
638e8a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.6.0-2
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
638e8a
638e8a
* Sat Apr 26 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.0-1
638e8a
- update to upstream release 1.6.0
638e8a
638e8a
* Tue Mar 18 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.7-1
638e8a
- update to upstream release 1.4.7
638e8a
638e8a
* Wed Mar 05 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.6-1
638e8a
- update to upstream release 1.4.6
638e8a
638e8a
* Sun Feb 16 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.5-2
638e8a
- avoid multiple index directives (#1065488)
638e8a
638e8a
* Sun Feb 16 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.5-1
638e8a
- update to upstream release 1.4.5
638e8a
638e8a
* Wed Nov 20 2013 Peter Borsa <peter.borsa@gmail.com> - 1:1.4.4-1
638e8a
- Update to upstream release 1.4.4
638e8a
- Security fix BZ 1032267
638e8a
638e8a
* Sun Nov 03 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.3-1
638e8a
- update to upstream release 1.4.3
638e8a
638e8a
* Fri Aug 09 2013 Jonathan Steffan <jsteffan@fedoraproject.org> - 1:1.4.2-3
638e8a
- Add in conditionals to build for non-systemd targets
638e8a
638e8a
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 1:1.4.2-2
638e8a
- Perl 5.18 rebuild
638e8a
638e8a
* Fri Jul 19 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.2-1
638e8a
- update to upstream release 1.4.2
638e8a
638e8a
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1:1.4.1-3
638e8a
- Perl 5.18 rebuild
638e8a
638e8a
* Tue Jun 11 2013 Remi Collet <rcollet@redhat.com> - 1:1.4.1-2
638e8a
- rebuild for new GD 2.1.0
638e8a
638e8a
* Tue May 07 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.1-1
638e8a
- update to upstream release 1.4.1 (#960605, #960606):
638e8a
  CVE-2013-2028 stack-based buffer overflow when handling certain chunked
638e8a
  transfer encoding requests
638e8a
638e8a
* Sun Apr 28 2013 Dan Horák <dan[at]danny.cz> - 1:1.4.0-2
638e8a
- gperftools exist only on selected arches
638e8a
638e8a
* Fri Apr 26 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.0-1
638e8a
- update to upstream release 1.4.0
638e8a
- enable SPDY module (new in this version)
638e8a
- enable http gunzip module (new in this version)
638e8a
- enable google perftools module and add gperftools-devel to BR
638e8a
- enable debugging (#956845)
638e8a
- trim changelog
638e8a
638e8a
* Tue Apr 02 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.8-1
638e8a
- update to upstream release 1.2.8
638e8a
638e8a
* Fri Feb 22 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.7-2
638e8a
- make sure nginx directories are not world readable (#913724, #913735)
638e8a
638e8a
* Sat Feb 16 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.7-1
638e8a
- update to upstream release 1.2.7
638e8a
- add .asc file
638e8a
638e8a
* Tue Feb 05 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-6
638e8a
- use 'kill' instead of 'systemctl' when rotating log files to workaround
638e8a
  SELinux issue (#889151)
638e8a
638e8a
* Wed Jan 23 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-5
638e8a
- uncomment "include /etc/nginx/conf.d/*.conf by default but leave the
638e8a
  conf.d directory empty (#903065)
638e8a
638e8a
* Wed Jan 23 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-4
638e8a
- add comment in nginx.conf regarding "include /etc/nginf/conf.d/*.conf"
638e8a
  (#903065)
638e8a
638e8a
* Wed Dec 19 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-3
638e8a
- use correct file ownership when rotating log files
638e8a
638e8a
* Tue Dec 18 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-2
638e8a
- send correct kill signal and use correct file permissions when rotating
638e8a
  log files (#888225)
638e8a
- send correct kill signal in nginx-upgrade
638e8a
638e8a
* Tue Dec 11 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-1
638e8a
- update to upstream release 1.2.6
638e8a
638e8a
* Sat Nov 17 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.5-1
638e8a
- update to upstream release 1.2.5
638e8a
638e8a
* Sun Oct 28 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.4-1
638e8a
- update to upstream release 1.2.4
638e8a
- introduce new systemd-rpm macros (#850228)
638e8a
- link to official documentation not the community wiki (#870733)
638e8a
- do not run systemctl try-restart after package upgrade to allow the
638e8a
  administrator to run nginx-upgrade and avoid downtime
638e8a
- add nginx man page (#870738)
638e8a
- add nginx-upgrade man page and remove README.fedora
638e8a
- remove chkconfig from Requires(post/preun)
638e8a
- remove initscripts from Requires(preun/postun)
638e8a
- remove separate configuration files in "/etc/nginx/conf.d" directory
638e8a
  and revert to upstream default of a centralized nginx.conf file
638e8a
  (#803635) (#842738)
638e8a
638e8a
* Fri Sep 21 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.3-1
638e8a
- update to upstream release 1.2.3
638e8a
638e8a
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2.1-3
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
638e8a
638e8a
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 1:1.2.1-2
638e8a
- Perl 5.16 rebuild
638e8a
638e8a
* Sun Jun 10 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.1-1
638e8a
- update to upstream release 1.2.1
638e8a
638e8a
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 1:1.2.0-2
638e8a
- Perl 5.16 rebuild
638e8a
638e8a
* Wed May 16 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.0-1
638e8a
- update to upstream release 1.2.0
638e8a
638e8a
* Wed May 16 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-4
638e8a
- add nginx-upgrade to replace functionality from the nginx initscript
638e8a
  that was lost after migration to systemd
638e8a
- add README.fedora to describe usage of nginx-upgrade
638e8a
- nginx.logrotate: use built-in systemd kill command in postrotate script
638e8a
- nginx.service: start after syslog.target and network.target
638e8a
- nginx.service: remove unnecessary references to config file location
638e8a
- nginx.service: use /bin/kill instead of "/usr/sbin/nginx -s" following
638e8a
  advice from nginx-devel
638e8a
- nginx.service: use private /tmp
638e8a
638e8a
* Mon May 14 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-3
638e8a
- fix incorrect postrotate script in nginx.logrotate
638e8a
638e8a
* Thu Apr 19 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-2
638e8a
- renable auto-cc-gcc patch due to warnings on rawhide
638e8a
638e8a
* Sat Apr 14 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-1
638e8a
- update to upstream release 1.0.15
638e8a
- no need to apply auto-cc-gcc patch
638e8a
- add %%global _hardened_build 1
638e8a
638e8a
* Thu Mar 15 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.14-1
638e8a
- update to upstream release 1.0.14
638e8a
- amend some %%changelog formatting
638e8a
638e8a
* Tue Mar 06 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.13-1
638e8a
- update to upstream release 1.0.13
638e8a
- amend --pid-path and --log-path
638e8a
638e8a
* Sun Mar 04 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-5
638e8a
- change pid path in nginx.conf to match systemd service file
638e8a
638e8a
* Sun Mar 04 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-3
638e8a
- fix %%pre scriptlet
638e8a
638e8a
* Mon Feb 20 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-2
638e8a
- update upstream URL
638e8a
- replace %%define with %%global
638e8a
- remove obsolete BuildRoot tag, %%clean section and %%defattr
638e8a
- remove various unnecessary commands
638e8a
- add systemd service file and update scriptlets
638e8a
- add Epoch to accommodate %%triggerun as part of systemd migration
638e8a
638e8a
* Sun Feb 19 2012 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.0.12-1
638e8a
- Update to 1.0.12
638e8a
638e8a
* Thu Nov 17 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.10-1
638e8a
- Bugfix: a segmentation fault might occur in a worker process if resolver got a big DNS response. Thanks to Ben Hawkes.
638e8a
- Bugfix: in cache key calculation if internal MD5 implementation wasused; the bug had appeared in 1.0.4.
638e8a
- Bugfix: the module ngx_http_mp4_module sent incorrect "Content-Length" response header line if the "start" argument was used. Thanks to Piotr Sikora.
638e8a
638e8a
* Thu Oct 27 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.8-1
638e8a
- Update to new 1.0.8 stable release
638e8a
638e8a
* Fri Aug 26 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.5-1
638e8a
- Update nginx to Latest Stable Release
638e8a
638e8a
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.0.0-3
638e8a
- Perl mass rebuild
638e8a
638e8a
* Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.0.0-2
638e8a
- Perl 5.14 mass rebuild
638e8a
638e8a
* Wed Apr 27 2011 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.0.0-1
638e8a
- Update to 1.0.0
638e8a
638e8a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.53-6
638e8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
638e8a
638e8a
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53.5
638e8a
- Extract out default config into its own file (bug #635776)
638e8a
638e8a
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-4
638e8a
- Revert ownership of log dir
638e8a
638e8a
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-3
638e8a
- Change ownership of /var/log/nginx to be 0700 nginx:nginx
638e8a
- update init script to use killproc -p
638e8a
- add reopen_logs command to init script
638e8a
- update init script to use nginx -q option
638e8a
638e8a
* Sun Oct 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-2
638e8a
- Fix linking of perl module
638e8a
638e8a
* Sun Oct 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-1
638e8a
- Update to new stable 0.8.53
638e8a
638e8a
* Sat Jul 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.67-2
638e8a
- add Provides: webserver (bug #619693)
638e8a
638e8a
* Sun Jun 20 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.67-1
638e8a
- Update to new stable 0.7.67
638e8a
- fix bugzilla #591543
638e8a
638e8a
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.7.65-2
638e8a
- Mass rebuild with perl-5.12.0
638e8a
638e8a
* Mon Feb 15 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.65-1
638e8a
- Update to new stable 0.7.65
638e8a
- change ownership of logdir to root:root
638e8a
- add support for ipv6 (bug #561248)
638e8a
- add random_index_module
638e8a
- add secure_link_module
638e8a
638e8a
* Fri Dec 04 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.64-1
638e8a
- Update to new stable 0.7.64