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