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