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