Jamie Nguyen 669abfd
%global  _hardened_build     1
Jamie Nguyen 6afa9eb
%global  nginx_user          nginx
Jamie Nguyen 6afa9eb
673d397
# Disable strict symbol checks in the link editor.
673d397
# See: https://src.fedoraproject.org/rpms/redhat-rpm-config/c/078af19
673d397
%undefine _strict_symbol_defs_build
673d397
9332102
%bcond_with geoip
c5387f8
7cd8bf6
# nginx gperftools support should be disabled for RHEL >= 8
cdbbf72
# see: https://bugzilla.redhat.com/show_bug.cgi?id=1931402
cdbbf72
%if 0%{?rhel} >= 8
cdbbf72
%global with_gperftools 0
cdbbf72
%else
7cd8bf6
# gperftools exists only on selected arches
a916571
# gperftools *detection* is failing on ppc64*, possibly only configure
a916571
# bug, but disable anyway.
a916571
%ifnarch s390 s390x ppc64 ppc64le
cd3634a
%global with_gperftools 1
4784dce
%endif
cdbbf72
%endif
4784dce
cd3634a
%global with_aio 1
9cbbeeb
58b4d7a
%if 0%{?fedora} > 22
cd3634a
%global with_mailcap_mimetypes 1
5ce6795
%endif
5ce6795
7cd8bf6
# kTLS requires OpenSSL 3.0 (default in F36+ and EL9+, available in EPEL8)
7cd8bf6
%if 0%{?fedora} >= 36 || 0%{?rhel} >= 8
7cd8bf6
%global with_ktls 1
7cd8bf6
%endif
7cd8bf6
7cd8bf6
# Build against OpenSSL 1.1 on EL7
7cd8bf6
%if 0%{?rhel} == 7
7cd8bf6
%global openssl_pkgversion 11
7cd8bf6
%endif
7cd8bf6
7cd8bf6
# Build against OpenSSL 3 on EL8
7cd8bf6
%if 0%{?rhel} == 8
7cd8bf6
%global openssl_pkgversion 3
7cd8bf6
%endif
7cd8bf6
f1c10bd
# Cf. https://www.nginx.com/blog/creating-installable-packages-dynamic-modules/
f1c10bd
%global nginx_abiversion %{version}
f1c10bd
f1c10bd
%global nginx_moduledir %{_libdir}/nginx/modules
f1c10bd
%global nginx_moduleconfdir %{_datadir}/nginx/modules
f1c10bd
%global nginx_srcdir %{_usrsrc}/%{name}-%{version}-%{release}
f1c10bd
f1c10bd
# Do not generate provides/requires from nginx sources
f1c10bd
%global __provides_exclude_from ^%{nginx_srcdir}/.*$
f1c10bd
%global __requires_exclude_from ^%{nginx_srcdir}/.*$
f1c10bd
f1c10bd
Jamie Nguyen 6afa9eb
Name:              nginx
Nikos Mavrogiannopoulos 3c05540
Epoch:             1
7cd8bf6
Version:           1.22.1
7cd8bf6
Release:           1%{?dist}
Jamie Nguyen 6afa9eb
Jamie Nguyen 6afa9eb
Summary:           A high performance web server and reverse proxy server
f2446d0
# BSD License (two clause)
ebd3993
# http://www.freebsd.org/copyright/freebsd-license.html
Jamie Nguyen 6afa9eb
License:           BSD
58b4d7a
URL:               https://nginx.org
Jamie Nguyen 6afa9eb
3bf1078
Source0:           https://nginx.org/download/nginx-%{version}.tar.gz
58b4d7a
Source1:           https://nginx.org/download/nginx-%{version}.tar.gz.asc
58b4d7a
# Keys are found here: https://nginx.org/en/pgp_keys.html
d1fd6c2
Source2:           https://nginx.org/keys/maxim.key
d1fd6c2
Source3:           https://nginx.org/keys/mdounin.key
d1fd6c2
Source4:           https://nginx.org/keys/sb.key
4c72581
Source5:           https://nginx.org/keys/thresh.key
501734e
Source10:          nginx.service
501734e
Source11:          nginx.logrotate
501734e
Source12:          nginx.conf
501734e
Source13:          nginx-upgrade
501734e
Source14:          nginx-upgrade.8
f1c10bd
Source15:          macros.nginxmods.in
f1c10bd
Source16:          nginxmods.attr
Jamie Nguyen 6afa9eb
Source102:         nginx-logo.png
Jamie Nguyen 6afa9eb
Source103:         404.html
Jamie Nguyen 6afa9eb
Source104:         50x.html
fcb7e6e
Source200:         README.dynamic
c90a743
Source210:         UPGRADE-NOTES-1.6-to-1.10
856e45a
856e45a
# removes -Werror in upstream build scripts.  -Werror conflicts with
856e45a
# -D_FORTIFY_SOURCE=2 causing warnings to turn into errors.
d1fd6c2
Patch0:            0001-remove-Werror-in-upstream-build-scripts.patch
Jamie Nguyen 6afa9eb
d1fd6c2
# downstream patch - fix PIDFile race condition (rhbz#1869026)
d1fd6c2
# rejected upstream: https://trac.nginx.org/nginx/ticket/1897
f935cbc
Patch1:            0002-fix-PIDFile-handling.patch
d1fd6c2
d1fd6c2
BuildRequires:     make
d506d2d
BuildRequires:     gcc
58b4d7a
BuildRequires:     gnupg2
4784dce
%if 0%{?with_gperftools}
52cc859
BuildRequires:     gperftools-devel
4784dce
%endif
7cd8bf6
BuildRequires:     openssl%{?openssl_pkgversion}-devel
4c72581
BuildRequires:     pcre2-devel
Jamie Nguyen 6afa9eb
BuildRequires:     zlib-devel
84b0cb9
84b0cb9
Requires:          nginx-filesystem = %{epoch}:%{version}-%{release}
c4a17e6
%if 0%{?el7}
c4a17e6
# centos-logos el7 does not provide 'system-indexhtml'
c4a17e6
Requires:          system-logos redhat-indexhtml
c4a17e6
# need to remove epel7 geoip sub-package, doesn't work anymore
c4a17e6
# https://bugzilla.redhat.com/show_bug.cgi?id=1576034
c4a17e6
# https://bugzilla.redhat.com/show_bug.cgi?id=1664957
c4a17e6
Obsoletes:         nginx-mod-http-geoip <= 1:1.16
c4a17e6
%else
8e14a8b
Requires:          system-logos-httpd
c4a17e6
%endif
8ce940b
6267fca
Provides:          webserver
f935cbc
%if 0%{?fedora} || 0%{?rhel} >= 8
58b4d7a
Recommends:        logrotate
f935cbc
%endif
bcc32b6
Requires:          %{name}-core = %{epoch}:%{version}-%{release}
6267fca
6267fca
BuildRequires:     systemd
a358587
Requires(post):    systemd
a358587
Requires(preun):   systemd
a358587
Requires(postun):  systemd
f1c10bd
# For external nginx modules
f1c10bd
Provides:          nginx(abi) = %{nginx_abiversion}
856e45a
856e45a
%description
Jamie Nguyen 6afa9eb
Nginx is a web server and a reverse proxy server for HTTP, SMTP, POP3 and
Jamie Nguyen 6afa9eb
IMAP protocols, with a strong focus on high concurrency, performance and low
Jamie Nguyen 6afa9eb
memory usage.
Jamie Nguyen 6afa9eb
bcc32b6
%package core
bcc32b6
Summary: nginx minimal core
bcc32b6
%if 0%{?with_mailcap_mimetypes}
bcc32b6
Requires:          nginx-mimetypes
bcc32b6
%endif
7cd8bf6
Requires:          openssl%{?openssl_pkgversion}-libs
bcc32b6
Requires(pre):     nginx-filesystem
a363532
Conflicts:         nginx < 1:1.20.2-4
bcc32b6
bcc32b6
%description core
bcc32b6
nginx minimal core
bcc32b6
8ce940b
%package all-modules
8ce940b
Summary:           A meta package that installs all available Nginx modules
8ce940b
BuildArch:         noarch
8ce940b
c5387f8
%if %{with geoip}
8ce940b
Requires:          nginx-mod-http-geoip = %{epoch}:%{version}-%{release}
c5387f8
%endif
8ce940b
Requires:          nginx-mod-http-image-filter = %{epoch}:%{version}-%{release}
8ce940b
Requires:          nginx-mod-http-perl = %{epoch}:%{version}-%{release}
8ce940b
Requires:          nginx-mod-http-xslt-filter = %{epoch}:%{version}-%{release}
8ce940b
Requires:          nginx-mod-mail = %{epoch}:%{version}-%{release}
8ce940b
Requires:          nginx-mod-stream = %{epoch}:%{version}-%{release}
8ce940b
8ce940b
%description all-modules
5b82bd7
Meta package that installs all available nginx modules.
8ce940b
84b0cb9
%package filesystem
84b0cb9
Summary:           The basic directory layout for the Nginx server
84b0cb9
BuildArch:         noarch
84b0cb9
Requires(pre):     shadow-utils
84b0cb9
84b0cb9
%description filesystem
84b0cb9
The nginx-filesystem package contains the basic directory layout
84b0cb9
for the Nginx server including the correct permissions for the
84b0cb9
directories.
84b0cb9
c5387f8
%if %{with geoip}
8ce940b
%package mod-http-geoip
8ce940b
Summary:           Nginx HTTP geoip module
8ce940b
BuildRequires:     GeoIP-devel
f1c10bd
Requires:          nginx(abi) = %{nginx_abiversion}
8ce940b
Requires:          GeoIP
8ce940b
8ce940b
%description mod-http-geoip
8ce940b
%{summary}.
c5387f8
%endif
8ce940b
8ce940b
%package mod-http-image-filter
8ce940b
Summary:           Nginx HTTP image filter module
8ce940b
BuildRequires:     gd-devel
f1c10bd
Requires:          nginx(abi) = %{nginx_abiversion}
8ce940b
Requires:          gd
8ce940b
8ce940b
%description mod-http-image-filter
8ce940b
%{summary}.
8ce940b
8ce940b
%package mod-http-perl
8ce940b
Summary:           Nginx HTTP perl module
8ce940b
BuildRequires:     perl-devel
c4a17e6
%if 0%{?fedora} >= 24 || 0%{?rhel} >= 7
23177a5
BuildRequires:     perl-generators
ff1f65a
%endif
8ce940b
BuildRequires:     perl(ExtUtils::Embed)
f1c10bd
Requires:          nginx(abi) = %{nginx_abiversion}
8ce940b
Requires:          perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
9f9495a
Requires:          perl(constant)
8ce940b
8ce940b
%description mod-http-perl
8ce940b
%{summary}.
8ce940b
8ce940b
%package mod-http-xslt-filter
8ce940b
Summary:           Nginx XSLT module
8ce940b
BuildRequires:     libxslt-devel
f1c10bd
Requires:          nginx(abi) = %{nginx_abiversion}
8ce940b
8ce940b
%description mod-http-xslt-filter
8ce940b
%{summary}.
8ce940b
8ce940b
%package mod-mail
8ce940b
Summary:           Nginx mail modules
f1c10bd
Requires:          nginx(abi) = %{nginx_abiversion}
8ce940b
8ce940b
%description mod-mail
8ce940b
%{summary}.
8ce940b
8ce940b
%package mod-stream
8ce940b
Summary:           Nginx stream modules
f1c10bd
Requires:          nginx(abi) = %{nginx_abiversion}
8ce940b
8ce940b
%description mod-stream
8ce940b
%{summary}.
8ce940b
f1c10bd
%package mod-devel
f1c10bd
Summary:           Nginx module development files
f1c10bd
Requires:          nginx = %{epoch}:%{version}-%{release}
f1c10bd
Requires:          make
f1c10bd
Requires:          gcc
f1c10bd
Requires:          gd-devel
f1c10bd
%if 0%{?with_gperftools}
f1c10bd
Requires:          gperftools-devel
f1c10bd
%endif
f1c10bd
%if %{with geoip}
f1c10bd
Requires:          GeoIP-devel
f1c10bd
%endif
f1c10bd
Requires:          libxslt-devel
7cd8bf6
Requires:          openssl%{?openssl_pkgversion}-devel
4c72581
Requires:          pcre2-devel
f1c10bd
Requires:          perl-devel
f1c10bd
Requires:          perl(ExtUtils::Embed)
f1c10bd
Requires:          zlib-devel
f1c10bd
f1c10bd
%description mod-devel
f1c10bd
%{summary}.
f1c10bd
856e45a
856e45a
%prep
58b4d7a
# Combine all keys from upstream into one file
4c72581
cat %{S:2} %{S:3} %{S:4} %{S:5} > %{_builddir}/%{name}.gpg
58b4d7a
%{gpgverify} --keyring='%{_builddir}/%{name}.gpg' --signature='%{SOURCE1}' --data='%{SOURCE0}'
d1fd6c2
%autosetup -p1
265c4d9
cp %{SOURCE200} %{SOURCE210} %{SOURCE10} %{SOURCE12} .
856e45a
265c4d9
%if 0%{?rhel} > 0 && 0%{?rhel} < 8
265c4d9
sed -i -e 's#KillMode=.*#KillMode=process#g' nginx.service
265c4d9
sed -i -e 's#PROFILE=SYSTEM#HIGH:!aNULL:!MD5#' nginx.conf
72706a4
%endif
72706a4
7cd8bf6
%if 0%{?openssl_pkgversion}
f935cbc
sed \
7cd8bf6
  -e 's|\(ngx_feature_path=\)$|\1%{_includedir}/openssl%{openssl_pkgversion}|' \
7cd8bf6
  -e 's|\(ngx_feature_libs="\)|\1-L%{_libdir}/openssl%{openssl_pkgversion} |' \
f935cbc
  -i auto/lib/openssl/conf
f935cbc
%endif
f935cbc
f1c10bd
# Prepare sources for installation
f1c10bd
cp -a ../%{name}-%{version} ../%{name}-%{version}-%{release}-src
f1c10bd
mv ../%{name}-%{version}-%{release}-src .
f1c10bd
Jamie Nguyen 6afa9eb
856e45a
%build
856e45a
# nginx does not utilize a standard configure script.  It has its own
856e45a
# and the standard configure options cause the nginx configure script
856e45a
# to error out.  This is is also the reason for the DESTDIR environment
Jamie Nguyen 6afa9eb
# variable.
856e45a
export DESTDIR=%{buildroot}
6197fb7
# So the perl module finds its symbols:
6197fb7
nginx_ldopts="$RPM_LD_FLAGS -Wl,-E"
6197fb7
if ! ./configure \
8ce940b
    --prefix=%{_datadir}/nginx \
Jamie Nguyen 6afa9eb
    --sbin-path=%{_sbindir}/nginx \
f1c10bd
    --modules-path=%{nginx_moduledir} \
8ce940b
    --conf-path=%{_sysconfdir}/nginx/nginx.conf \
8ce940b
    --error-log-path=%{_localstatedir}/log/nginx/error.log \
8ce940b
    --http-log-path=%{_localstatedir}/log/nginx/access.log \
8ce940b
    --http-client-body-temp-path=%{_localstatedir}/lib/nginx/tmp/client_body \
8ce940b
    --http-proxy-temp-path=%{_localstatedir}/lib/nginx/tmp/proxy \
8ce940b
    --http-fastcgi-temp-path=%{_localstatedir}/lib/nginx/tmp/fastcgi \
8ce940b
    --http-uwsgi-temp-path=%{_localstatedir}/lib/nginx/tmp/uwsgi \
8ce940b
    --http-scgi-temp-path=%{_localstatedir}/lib/nginx/tmp/scgi \
Jamie Nguyen 83f14e4
    --pid-path=/run/nginx.pid \
Jamie Nguyen 83f14e4
    --lock-path=/run/lock/subsys/nginx \
Jamie Nguyen 6afa9eb
    --user=%{nginx_user} \
8ce940b
    --group=%{nginx_user} \
d1fd6c2
    --with-compat \
d1fd6c2
    --with-debug \
9cbbeeb
%if 0%{?with_aio}
Jamie Nguyen 6afa9eb
    --with-file-aio \
9cbbeeb
%endif
d1fd6c2
%if 0%{?with_gperftools}
d1fd6c2
    --with-google_perftools_module \
d1fd6c2
%endif
856e45a
    --with-http_addition_module \
d1fd6c2
    --with-http_auth_request_module \
d1fd6c2
    --with-http_dav_module \
d1fd6c2
    --with-http_degradation_module \
d1fd6c2
    --with-http_flv_module \
c5387f8
%if %{with geoip}
8ce940b
    --with-http_geoip_module=dynamic \
4c72581
    --with-stream_geoip_module=dynamic \
c5387f8
%endif
52cc859
    --with-http_gunzip_module \
ba46476
    --with-http_gzip_static_module \
d1fd6c2
    --with-http_image_filter_module=dynamic \
d1fd6c2
    --with-http_mp4_module \
d1fd6c2
    --with-http_perl_module=dynamic \
1ba8dc9
    --with-http_random_index_module \
d1fd6c2
    --with-http_realip_module \
1ba8dc9
    --with-http_secure_link_module \
8ce940b
    --with-http_slice_module \
d1fd6c2
    --with-http_ssl_module \
f2446d0
    --with-http_stub_status_module \
d1fd6c2
    --with-http_sub_module \
d1fd6c2
    --with-http_v2_module \
d1fd6c2
    --with-http_xslt_module=dynamic \
8ce940b
    --with-mail=dynamic \
856e45a
    --with-mail_ssl_module \
7cd8bf6
%if 0%{?with_ktls}
7cd8bf6
    --with-openssl-opt=enable-ktls \
7cd8bf6
%endif
52cc859
    --with-pcre \
ed8afe3
    --with-pcre-jit \
8ce940b
    --with-stream=dynamic \
4c72581
    --with-stream_realip_module \
8ce940b
    --with-stream_ssl_module \
d1fd6c2
    --with-stream_ssl_preread_module \
d1fd6c2
    --with-threads \
4c72581
    --with-cc-opt="%{optflags} $(pcre2-config --cflags)" \
6197fb7
    --with-ld-opt="$nginx_ldopts"; then
6197fb7
  : configure failed
6197fb7
  cat objs/autoconf.err
6197fb7
  exit 1
6197fb7
fi
Jamie Nguyen 6afa9eb
d1fd6c2
%make_build
856e45a
Jamie Nguyen 6afa9eb
856e45a
%install
d1fd6c2
%make_install INSTALLDIRS=vendor
Jamie Nguyen 6afa9eb
Jamie Nguyen 6afa9eb
find %{buildroot} -type f -name .packlist -exec rm -f '{}' \;
Jamie Nguyen 6afa9eb
find %{buildroot} -type f -name perllocal.pod -exec rm -f '{}' \;
Jamie Nguyen 6afa9eb
find %{buildroot} -type f -empty -exec rm -f '{}' \;
Jamie Nguyen 6afa9eb
find %{buildroot} -type f -iname '*.so' -exec chmod 0755 '{}' \;
8ce940b
265c4d9
install -p -D -m 0644 ./nginx.service \
Jamie Nguyen 6afa9eb
    %{buildroot}%{_unitdir}/nginx.service
501734e
install -p -D -m 0644 %{SOURCE11} \
Jamie Nguyen 6afa9eb
    %{buildroot}%{_sysconfdir}/logrotate.d/nginx
Jamie Nguyen 6afa9eb
57a15b5
install -p -d -m 0755 %{buildroot}%{_sysconfdir}/systemd/system/nginx.service.d
57a15b5
install -p -d -m 0755 %{buildroot}%{_unitdir}/nginx.service.d
57a15b5
8ce940b
install -p -d -m 0755 %{buildroot}%{_sysconfdir}/nginx/conf.d
8ce940b
install -p -d -m 0755 %{buildroot}%{_sysconfdir}/nginx/default.d
8ce940b
8ce940b
install -p -d -m 0700 %{buildroot}%{_localstatedir}/lib/nginx
8ce940b
install -p -d -m 0700 %{buildroot}%{_localstatedir}/lib/nginx/tmp
8ce940b
install -p -d -m 0700 %{buildroot}%{_localstatedir}/log/nginx
8ce940b
8ce940b
install -p -d -m 0755 %{buildroot}%{_datadir}/nginx/html
f1c10bd
install -p -d -m 0755 %{buildroot}%{nginx_moduleconfdir}
f1c10bd
install -p -d -m 0755 %{buildroot}%{nginx_moduledir}
Jamie Nguyen 6afa9eb
265c4d9
install -p -m 0644 ./nginx.conf \
8ce940b
    %{buildroot}%{_sysconfdir}/nginx
8e14a8b
8e14a8b
rm -f %{buildroot}%{_datadir}/nginx/html/index.html
c4a17e6
%if 0%{?el7}
c4a17e6
ln -s ../../doc/HTML/index.html \
c4a17e6
      %{buildroot}%{_datadir}/nginx/html/index.html
c4a17e6
ln -s ../../doc/HTML/img \
c4a17e6
      %{buildroot}%{_datadir}/nginx/html/img
c4a17e6
ln -s ../../doc/HTML/en-US \
c4a17e6
      %{buildroot}%{_datadir}/nginx/html/en-US
c4a17e6
%else
e9edae1
ln -s ../../testpage/index.html \
8e14a8b
      %{buildroot}%{_datadir}/nginx/html/index.html
c4a17e6
%endif
8e14a8b
install -p -m 0644 %{SOURCE102} \
8ce940b
    %{buildroot}%{_datadir}/nginx/html
8e14a8b
ln -s nginx-logo.png %{buildroot}%{_datadir}/nginx/html/poweredby.png
8e14a8b
mkdir -p %{buildroot}%{_datadir}/nginx/html/icons
8e14a8b
8e14a8b
# Symlink for the powered-by-$DISTRO image:
8e14a8b
ln -s ../../../pixmaps/poweredby.png \
8e14a8b
      %{buildroot}%{_datadir}/nginx/html/icons/poweredby.png
8e14a8b
e4bc2af
%if 0%{?rhel} >= 9
e4bc2af
ln -s ../../pixmaps/system-noindex-logo.png \
e4bc2af
      %{buildroot}%{_datadir}/nginx/html/system_noindex_logo.png
e4bc2af
%endif
e4bc2af
Jamie Nguyen 6afa9eb
install -p -m 0644 %{SOURCE103} %{SOURCE104} \
8ce940b
    %{buildroot}%{_datadir}/nginx/html
Jamie Nguyen 6afa9eb
cd3634a
%if 0%{?with_mailcap_mimetypes}
cd3634a
rm -f %{buildroot}%{_sysconfdir}/nginx/mime.types
5ce6795
%endif
5ce6795
965b799
install -p -D -m 0644 %{_builddir}/nginx-%{version}/objs/nginx.8 \
a358587
    %{buildroot}%{_mandir}/man8/nginx.8
a358587
501734e
install -p -D -m 0755 %{SOURCE13} %{buildroot}%{_bindir}/nginx-upgrade
501734e
install -p -D -m 0644 %{SOURCE14} %{buildroot}%{_mandir}/man8/nginx-upgrade.8
Jamie Nguyen 705eb45
d8c792d
for i in ftdetect ftplugin indent syntax; do
790674d
    install -p -D -m644 contrib/vim/${i}/nginx.vim \
790674d
        %{buildroot}%{_datadir}/vim/vimfiles/${i}/nginx.vim
790674d
done
790674d
c5387f8
%if %{with geoip}
f1c10bd
echo 'load_module "%{nginx_moduledir}/ngx_http_geoip_module.so";' \
f1c10bd
    > %{buildroot}%{nginx_moduleconfdir}/mod-http-geoip.conf
c5387f8
%endif
f1c10bd
echo 'load_module "%{nginx_moduledir}/ngx_http_image_filter_module.so";' \
f1c10bd
    > %{buildroot}%{nginx_moduleconfdir}/mod-http-image-filter.conf
f1c10bd
echo 'load_module "%{nginx_moduledir}/ngx_http_perl_module.so";' \
f1c10bd
    > %{buildroot}%{nginx_moduleconfdir}/mod-http-perl.conf
f1c10bd
echo 'load_module "%{nginx_moduledir}/ngx_http_xslt_filter_module.so";' \
f1c10bd
    > %{buildroot}%{nginx_moduleconfdir}/mod-http-xslt-filter.conf
f1c10bd
echo 'load_module "%{nginx_moduledir}/ngx_mail_module.so";' \
f1c10bd
    > %{buildroot}%{nginx_moduleconfdir}/mod-mail.conf
f1c10bd
echo 'load_module "%{nginx_moduledir}/ngx_stream_module.so";' \
f1c10bd
    > %{buildroot}%{nginx_moduleconfdir}/mod-stream.conf
f1c10bd
f1c10bd
# Install files for supporting nginx module builds
f1c10bd
## Install source files
f1c10bd
mkdir -p %{buildroot}%{_usrsrc}
f1c10bd
mv %{name}-%{version}-%{release}-src %{buildroot}%{nginx_srcdir}
f1c10bd
## Install rpm macros
f1c10bd
mkdir -p %{buildroot}%{_rpmmacrodir}
f1c10bd
sed -e "s|@@NGINX_ABIVERSION@@|%{nginx_abiversion}|g" \
f1c10bd
    -e "s|@@NGINX_MODDIR@@|%{nginx_moduledir}|g" \
f1c10bd
    -e "s|@@NGINX_MODCONFDIR@@|%{nginx_moduleconfdir}|g" \
f1c10bd
    -e "s|@@NGINX_SRCDIR@@|%{nginx_srcdir}|g" \
f1c10bd
    %{SOURCE15} > %{buildroot}%{_rpmmacrodir}/macros.nginxmods
f1c10bd
## Install dependency generator
dc7e730
install -Dpm0644 %{SOURCE16} %{buildroot}%{_fileattrsdir}/nginxmods.attr
f1c10bd
856e45a
84b0cb9
%pre filesystem
8ce940b
getent group %{nginx_user} > /dev/null || groupadd -r %{nginx_user}
52cc859
getent passwd %{nginx_user} > /dev/null || \
8ce940b
    useradd -r -d %{_localstatedir}/lib/nginx -g %{nginx_user} \
52cc859
    -s /sbin/nologin -c "Nginx web server" %{nginx_user}
52cc859
exit 0
856e45a
856e45a
%post
a358587
%systemd_post nginx.service
Jamie Nguyen 6afa9eb
c5387f8
%if %{with geoip}
8ce940b
%post mod-http-geoip
8ce940b
if [ $1 -eq 1 ]; then
8ce940b
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
8ce940b
fi
c5387f8
%endif
8ce940b
8ce940b
%post mod-http-image-filter
8ce940b
if [ $1 -eq 1 ]; then
8ce940b
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
8ce940b
fi
8ce940b
8ce940b
%post mod-http-perl
8ce940b
if [ $1 -eq 1 ]; then
8ce940b
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
8ce940b
fi
8ce940b
8ce940b
%post mod-http-xslt-filter
8ce940b
if [ $1 -eq 1 ]; then
8ce940b
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
8ce940b
fi
8ce940b
8ce940b
%post mod-mail
8ce940b
if [ $1 -eq 1 ]; then
8ce940b
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
8ce940b
fi
8ce940b
8ce940b
%post mod-stream
8ce940b
if [ $1 -eq 1 ]; then
8ce940b
    /usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
8ce940b
fi
8ce940b
856e45a
%preun
a358587
%systemd_preun nginx.service
856e45a
856e45a
%postun
a358587
%systemd_postun nginx.service
5892e54
if [ $1 -ge 1 ]; then
5892e54
    /usr/bin/nginx-upgrade >/dev/null 2>&1 || :
5892e54
fi
Jamie Nguyen 6afa9eb
856e45a
%files
2059dfa
%if 0%{?rhel} == 7
c90a743
%doc UPGRADE-NOTES-1.6-to-1.10
c90a743
%endif
8ce940b
%{_datadir}/nginx/html/*
Jamie Nguyen 705eb45
%{_bindir}/nginx-upgrade
790674d
%{_datadir}/vim/vimfiles/ftdetect/nginx.vim
078d152
%{_datadir}/vim/vimfiles/ftplugin/nginx.vim
790674d
%{_datadir}/vim/vimfiles/syntax/nginx.vim
790674d
%{_datadir}/vim/vimfiles/indent/nginx.vim
a358587
%{_mandir}/man3/nginx.3pm*
a358587
%{_mandir}/man8/nginx.8*
a358587
%{_mandir}/man8/nginx-upgrade.8*
Jamie Nguyen 6afa9eb
%{_unitdir}/nginx.service
bcc32b6
bcc32b6
%files core
bcc32b6
%license LICENSE
bcc32b6
%doc CHANGES README README.dynamic
bcc32b6
%{_sbindir}/nginx
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/fastcgi.conf
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/fastcgi.conf.default
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/fastcgi_params
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/fastcgi_params.default
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/koi-utf
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/koi-win
cd3634a
%if ! 0%{?with_mailcap_mimetypes}
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/mime.types
5ce6795
%endif
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/mime.types.default
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/nginx.conf
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/nginx.conf.default
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/scgi_params
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/scgi_params.default
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/uwsgi_params
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/uwsgi_params.default
8ce940b
%config(noreplace) %{_sysconfdir}/nginx/win-utf
Jamie Nguyen 6afa9eb
%config(noreplace) %{_sysconfdir}/logrotate.d/nginx
d1e632c
%attr(770,%{nginx_user},root) %dir %{_localstatedir}/lib/nginx
d1e632c
%attr(770,%{nginx_user},root) %dir %{_localstatedir}/lib/nginx/tmp
f0de503
%attr(711,root,root) %dir %{_localstatedir}/log/nginx
f0de503
%ghost %attr(640,%{nginx_user},root) %{_localstatedir}/log/nginx/access.log
f0de503
%ghost %attr(640,%{nginx_user},root) %{_localstatedir}/log/nginx/error.log
f1c10bd
%dir %{nginx_moduledir}
f1c10bd
%dir %{nginx_moduleconfdir}
8ce940b
8ce940b
%files all-modules
8ce940b
8ce940b
%files filesystem
8ce940b
%dir %{_datadir}/nginx
8ce940b
%dir %{_datadir}/nginx/html
8ce940b
%dir %{_sysconfdir}/nginx
8ce940b
%dir %{_sysconfdir}/nginx/conf.d
8ce940b
%dir %{_sysconfdir}/nginx/default.d
57a15b5
%dir %{_sysconfdir}/systemd/system/nginx.service.d
57a15b5
%dir %{_unitdir}/nginx.service.d
8ce940b
c5387f8
%if %{with geoip}
8ce940b
%files mod-http-geoip
f1c10bd
%{nginx_moduleconfdir}/mod-http-geoip.conf
f1c10bd
%{nginx_moduledir}/ngx_http_geoip_module.so
c5387f8
%endif
8ce940b
8ce940b
%files mod-http-image-filter
f1c10bd
%{nginx_moduleconfdir}/mod-http-image-filter.conf
f1c10bd
%{nginx_moduledir}/ngx_http_image_filter_module.so
8ce940b
8ce940b
%files mod-http-perl
f1c10bd
%{nginx_moduleconfdir}/mod-http-perl.conf
f1c10bd
%{nginx_moduledir}/ngx_http_perl_module.so
Jamie Nguyen 6afa9eb
%dir %{perl_vendorarch}/auto/nginx
Jamie Nguyen 6afa9eb
%{perl_vendorarch}/nginx.pm
Jamie Nguyen 6afa9eb
%{perl_vendorarch}/auto/nginx/nginx.so
856e45a
8ce940b
%files mod-http-xslt-filter
f1c10bd
%{nginx_moduleconfdir}/mod-http-xslt-filter.conf
f1c10bd
%{nginx_moduledir}/ngx_http_xslt_filter_module.so
8ce940b
8ce940b
%files mod-mail
f1c10bd
%{nginx_moduleconfdir}/mod-mail.conf
f1c10bd
%{nginx_moduledir}/ngx_mail_module.so
8ce940b
8ce940b
%files mod-stream
f1c10bd
%{nginx_moduleconfdir}/mod-stream.conf
f1c10bd
%{nginx_moduledir}/ngx_stream_module.so
f1c10bd
f1c10bd
%files mod-devel
f1c10bd
%{_rpmmacrodir}/macros.nginxmods
f1c10bd
%{_fileattrsdir}/nginxmods.attr
f1c10bd
%{nginx_srcdir}/
84b0cb9
856e45a
856e45a
%changelog
7cd8bf6
* Wed Oct 19 2022 Felix Kaechele <felix@kaechele.ca> - 1:1.22.1-1
7cd8bf6
- update 1.22.1
7cd8bf6
- build against OpenSSL 3 on EL8
7cd8bf6
- enable kTLS support
7cd8bf6
3630270
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.22.0-4
3630270
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
3630270
a363532
* Mon Jun 27 2022 Luboš Uhliarik <luhliari@redhat.com> - 1:1.22.0-3
a363532
- Fix nginx downgrade issue after introducing core sub-package
a363532
5806fd7
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.22.0-2
5806fd7
- Perl 5.36 rebuild
5806fd7
4c72581
* Wed May 25 2022 Felix Kaechele <heffer@fedoraproject.org> - 1:1.22.0-1
4c72581
- update to 1.22.0
4c72581
- switch to pcre2
4c72581
- drop CVE-2021-3618 patch, it's upstreamed
4c72581
- add signing key of Konstantin Pavlov
4c72581
- add stream_geoip_module and stream_realip_module
4c72581
f8f18d5
* Thu Mar 24 2022 Honza Horak <hhorak@redhat.com> - 1:1.20.2-4
bcc32b6
- Introduce core sub-package for having a daemon only with a minimal footprint
bcc32b6
8a38d38
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.20.2-2
8a38d38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
8a38d38
221b226
* Fri Dec 17 2021 Felix Kaechele <heffer@fedoraproject.org> - 1:1.20.2-1
221b226
- update to 1.20.2
221b226
dc7e730
* Mon Oct 18 2021 Felix Kaechele <heffer@fedoraproject.org> - 1:1.20.1-9
dc7e730
- fix installation of nginxmods.attr for EPEL 7
dc7e730
3ba5cb0
* Mon Oct 18 2021 Felix Kaechele <heffer@fedoraproject.org> - 1:1.20.1-8
3ba5cb0
- Fix "file size changed while zipping" when rotating logs (rhbz#1980948,2015249,2015243)
3ba5cb0
0c7690e
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 1:1.20.1-7
0c7690e
- Rebuilt with OpenSSL 3.0.0
0c7690e
f1c10bd
* Tue Aug 10 2021 Neal Gompa <ngompa@datto.com> - 1:1.20.1-6
f1c10bd
- Add -mod-devel subpackage for building external nginx modules (rhbz#1989778)
f1c10bd
e4bc2af
* Mon Aug 09 2021 Luboš Uhliarik <luhliari@redhat.com> - 1:1.20.1-5
e4bc2af
- Add symlink used by system-logos-httpd
e4bc2af
9b08ea1
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.20.1-4
9b08ea1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9b08ea1
dc9dfb7
* Fri Jun 25 2021 Felix Kaechele <heffer@fedoraproject.org> - 1:1.20.1-3
dc9dfb7
- fix for CVE-2021-3618 (rhbz#1975651)
dc9dfb7
f0de503
* Tue Jun 01 2021 Felix Kaechele <heffer@fedoraproject.org> - 1:1.20.1-2
f0de503
- use different fix for rhbz#1683388 as it introduced permissions issues in 1:1.20.0-2
f0de503
72036ac
* Tue May 25 2021 Felix Kaechele <heffer@fedoraproject.org> - 1:1.20.1-1
72036ac
- update to 1.20.1 (fixes CVE-2021-23017)
72036ac
38fdedd
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.20.0-4
38fdedd
- Perl 5.34 rebuild
38fdedd
e9edae1
* Fri Apr 30 2021 Lubos Uhliarik <luhliari@redhat.com> - 1:1.20.0-3
e9edae1
- Related: #1636235 - centralizing default index.html on nginx
e9edae1
f935cbc
* Wed Apr 21 2021 Felix Kaechele <heffer@fedoraproject.org> - 1:1.20.0-2
f935cbc
- sync rawhide and EPEL7 spec files again
f935cbc
- systemd service reload now checks config file (rhbz#1565377)
f935cbc
- drop nginx requirement on nginx-all-modules (rhbz#1708799)
f935cbc
- let nginx handle log creation on logrotate (rhbz#1683388)
f935cbc
- have log directory owned by root (rhbz#1390183, CVE-2016-1247)
f935cbc
- remove obsolete --with-ipv6 (src PR#8)
f935cbc
- correction: pcre2 is actually not supported by nginx, reintroduce pcre
f935cbc
d1fd6c2
* Wed Apr 21 2021 Felix Kaechele <heffer@fedoraproject.org> - 1:1.20.0-1
d1fd6c2
- update to 1.20.0
d1fd6c2
- sync with mainline spec file
d1fd6c2
- order configure options alphabetically for easier comparinggit
d1fd6c2
- add --with-compat option (rhbz#1834452)
d1fd6c2
- add patch to fix PIDFile race condition (rhbz#1869026)
d1fd6c2
- use pcre2 instead of pcre (rhbz#1938984)
d1fd6c2
- add Wants=network-online.target to systemd unit (rhbz#1943779)
d1fd6c2
cdbbf72
* Mon Feb 22 2021 Lubos Uhliarik <luhliari@redhat.com> - 1:1.18.0-5
cdbbf72
- Resolves: #1931402 - drop gperftools module
cdbbf72
4efda91
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.18.0-4
4efda91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4efda91
bd726b7
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.18.0-3
bd726b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bd726b7
a054f9a
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.18.0-2
a054f9a
- Perl 5.32 rebuild
a054f9a
58b4d7a
* Fri Apr 24 2020 Felix Kaechele <heffer@fedoraproject.org> - 1:1.18.0-1
58b4d7a
- Update to 1.18.0
58b4d7a
- Increased types_hash_max_size to 4096 in default config
58b4d7a
- Add gpg source verification
58b4d7a
- Add Recommends: logrotate
58b4d7a
- Drop location / from default config (rhbz#1564768)
58b4d7a
- Drop default_sever from default config (rhbz#1373822)
58b4d7a
11ad27c
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.16.1-2
11ad27c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
11ad27c
c4a17e6
* Sun Sep 15 2019 Warren Togami <warren@blockstream.com>
c4a17e6
- add conditionals for EPEL7, see rhbz#1750857
c4a17e6
b589a2b
* Tue Aug 13 2019 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.16.1-1
b589a2b
- Update to upstream release 1.16.1
b589a2b
- Fixes CVE-2019-9511, CVE-2019-9513, CVE-2019-9516
b589a2b
2ebd7fd
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.16.0-5
2ebd7fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2ebd7fd
18d2380
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.16.0-4
18d2380
- Perl 5.30 rebuild
18d2380
8e14a8b
* Tue May 14 2019 Stephen Gallagher <sgallagh@redhat.com> - 1.16.0-3
8e14a8b
- Move to common default index.html
8e14a8b
- Resolves: rhbz#1636235
8e14a8b
078d152
* Tue May 07 2019 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.16.0-2
078d152
- Add missing directory for vim plugin
078d152
ec48d4f
* Fri Apr 26 2019 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.16.0-1
ec48d4f
- Update to upstream release 1.16.0
ec48d4f
5b82bd7
* Mon Mar 04 2019 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.15.9-1
5b82bd7
- Update to upstream release 1.15.9
5b82bd7
- Enable ngx_stream_ssl_preread module
5b82bd7
- Remove redundant conditionals
5b82bd7
d99d389
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.14.1-5
d99d389
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d99d389
4ee79c1
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 1:1.14.1-4
4ee79c1
- Rebuilt for libcrypt.so.2 (#1666033)
4ee79c1
965b799
* Tue Dec 11 2018 Joe Orton <jorton@redhat.com> - 1:1.14.1-3
965b799
- fix unexpanded paths in nginx(8)
965b799
965b799
* Tue Nov 20 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.14.1-2
f6d36b3
- new version 1.14.1
f6d36b3
- Resolves: #1584426 - Upstream Nginx 1.14.0 is now available
69059b4
- Resolves: #1647255 - CVE-2018-16845 nginx: Denial of service and memory
69059b4
  disclosure via mp4 module
69059b4
- Resolves: #1647259 - CVE-2018-16843 nginx: Excessive memory consumption
69059b4
  via flaw in HTTP/2 implementation
69059b4
- Resolves: #1647258 - CVE-2018-16844 nginx: Excessive CPU usage via flaw
69059b4
  in HTTP/2 implementation
f6d36b3
9f9495a
* Mon Aug 06 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-14
9f9495a
- add requires on perl(constant) for mod-http-perl
9f9495a
9332102
* Mon Jul 30 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-13
9332102
- don't build with geoip by default
9332102
c5387f8
* Thu Jul 19 2018 Joe Orton <jorton@redhat.com> - 1:1.12.1-12
c5387f8
- add build conditional for geoip support
c5387f8
d506d2d
* Mon Jul 16 2018 Tadej Janež <tadej.j@nez.si> - 1:1.12.1-11
d506d2d
- Add gcc to BuildRequires to account for
d506d2d
  https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
d506d2d
542b7d7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.1-10
542b7d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
542b7d7
aee3ca3
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.12.1-9
aee3ca3
- Perl 5.28 rebuild
aee3ca3
f3985e2
* Mon May 14 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-8
f3985e2
- Related: #1573942 - nginx fails on start
f3985e2
d1e632c
* Wed May 02 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-7
d1e632c
- Resolves: #1573942 - nginx fails on start
d1e632c
c6a3d45
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.1-6
c6a3d45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c6a3d45
13852f8
* Wed Jan 24 2018 Björn Esser <besser82@fedoraproject.org> - 1:1.12.1-5
13852f8
- Add patch to apply glibc bugfix if really needed only
673d397
- Disable strict symbol checks in the link editor
13852f8
e1a5a9a
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 1:1.12.1-4
e1a5a9a
- Rebuilt for switch to libxcrypt
e1a5a9a
692c6c0
* Tue Oct 24 2017 Joe Orton <jorton@redhat.com> - 1:1.12.1-3
692c6c0
- rebuild
692c6c0
57a15b5
* Tue Sep 19 2017 Remi Collet <remi@fedoraproject.org> - 1:1.12.1-2
57a15b5
- own system drop-in directories #1493036
57a15b5
3bf1078
* Tue Aug 15 2017 Joe Orton <jorton@redhat.com> - 1:1.12.1-1
3bf1078
- update to 1.12.1 (#1469924)
3bf1078
- enable http_auth_request_module (Tim Niemueller, #1471106)
3bf1078
1ccfe82
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.0-4
1ccfe82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1ccfe82
2954ce4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.12.0-3
2954ce4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2954ce4
e7b50e7
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.12.0-2
e7b50e7
- Perl 5.26 rebuild
e7b50e7
8c0bd09
* Tue May 30 2017 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.0-1
8c0bd09
- new version 1.12.0
8c0bd09
136d59e
* Wed Feb  8 2017 Joe Orton <jorton@redhat.com> - 1:1.10.3-1
136d59e
- update to upstream release 1.10.3
136d59e
f6939eb
* Mon Oct 31 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.10.2-1
f6939eb
- update to upstream release 1.10.2
f6939eb
fd83cdf
* Tue May 31 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.10.1-1
fd83cdf
- update to upstream release 1.10.1
fd83cdf
7060a88
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.10.0-4
7060a88
- Perl 5.24 rebuild
7060a88
3977c18
* Sun May  8 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1:1.10.0-3
3977c18
- Enable AIO on aarch64 (rhbz 1258414)
3977c18
72706a4
* Wed Apr 27 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.10.0-2
72706a4
- only Require nginx-all-modules for EPEL and current Fedora releases
72706a4
8ce940b
* Wed Apr 27 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.10.0-1
8ce940b
- update to upstream release 1.10.0
8ce940b
- split dynamic modules into subpackages
8ce940b
- spec file cleanup
8ce940b
2260d65
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.8.1-2
2260d65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2260d65
b9d488c
* Tue Jan 26 2016 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.1-1
b9d488c
- update to upstream release 1.8.1
b9d488c
- CVE-2016-0747: Insufficient limits of CNAME resolution in resolver
b9d488c
- CVE-2016-0746: Use-after-free during CNAME response processing in resolver
b9d488c
- CVE-2016-0742: Invalid pointer dereference in resolver
b9d488c
a8ec967
* Sun Oct 04 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-14
a8ec967
- consistently use '%%global with_foo' style of logic
a8ec967
- remove PID file before starting nginx (#1268621)
a8ec967
b715d57
* Fri Sep 25 2015 Ville Skyttä <ville.skytta@iki.fi> - 1:1.8.0-13
5ce6795
- Use nginx-mimetypes from mailcap (#1248736)
580389d
- Mark LICENSE as %%license
580389d
15381ee
* Thu Sep 10 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-12
15381ee
- also build with gperftools on aarch64 (#1258412)
15381ee
Nikos Mavrogiannopoulos ead84e8
* Wed Aug 12 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1:1.8.0-11
Nikos Mavrogiannopoulos ead84e8
- nginx.conf: added commented-out SSL configuration directives (#1179232)
Nikos Mavrogiannopoulos ead84e8
563206b
* Fri Jul 03 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-10
563206b
- switch back to /bin/kill in logrotate script due to SELinux denials
563206b
9099260
* Tue Jun 16 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-9
9099260
- fix path to png in error pages (#1232277)
9099260
- optimize png images with optipng
9099260
d639320
* Sun Jun 14 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-8
d639320
- replace /bin/kill with /usr/bin/systemctl kill in logrotate script (#1231543)
d639320
- remove After=syslog.target in nginx.service (#1231543)
d639320
- replace ExecStop with KillSignal=SIGQUIT in nginx.service (#1231543)
d639320
03809ae
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.8.0-7
03809ae
- Perl 5.22 rebuild
03809ae
923d7af
* Sun May 10 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-6
923d7af
- revert previous change
923d7af
4bafbd1
* Sun May 10 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-5
4bafbd1
- move default server to default.conf (#1220094)
4bafbd1
8d1199d
* Sun May 10 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-4
8d1199d
- add TimeoutStopSec=5 and KillMode=mixed to nginx.service
8d1199d
- set worker_processes to auto
8d1199d
- add some common options to the http block in nginx.conf
8d1199d
- run nginx-upgrade on package update
8d1199d
- remove some redundant scriptlet commands
8d1199d
- listen on ipv6 for default server (#1217081)
8d1199d
d6fe0bb
* Wed Apr 22 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-3
d6fe0bb
- improve nginx-upgrade script
d6fe0bb
ed8afe3
* Wed Apr 22 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-2
ed8afe3
- add --with-pcre-jit
ed8afe3
9adfe1e
* Wed Apr 22 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.8.0-1
9adfe1e
- update to upstream release 1.8.0
9adfe1e
3b7868d
* Thu Apr 09 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.7.12-1
3b7868d
- update to upstream release 1.7.12
3b7868d
6ab709a
* Sun Feb 15 2015 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.7.10-1
6ab709a
- update to upstream release 1.7.10
6ab709a
- remove systemd conditionals
6ab709a
ba5e503
* Wed Oct 22 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.2-4
ba5e503
- fix package ownership of directories
ba5e503
790674d
* Wed Oct 22 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.2-3
790674d
- add vim files (#1142849)
790674d
84b0cb9
* Mon Sep 22 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.2-2
84b0cb9
- create nginx-filesystem subpackage (patch from Remi Collet)
24a9355
- create /etc/nginx/default.d as a drop-in directory for configuration files
24a9355
  for the default server block
24a9355
- clean up nginx.conf
84b0cb9
934d604
* Wed Sep 17 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.2-1
934d604
- update to upstream release 1.6.2
934d604
- CVE-2014-3616 nginx: virtual host confusion (#1142573)
934d604
8f91f18
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.6.1-4
8f91f18
- Perl 5.20 rebuild
8f91f18
fc9c813
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.6.1-3
fc9c813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
fc9c813
3c10ed0
* Tue Aug 05 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.1-2
3c10ed0
- add logic for EPEL 7
3c10ed0
5a305d6
* Tue Aug 05 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.1-1
5a305d6
- update to upstream release 1.6.1
5a305d6
- (#1126891) CVE-2014-3556: SMTP STARTTLS plaintext injection flaw
5a305d6
9cbbeeb
* Wed Jul 02 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 1:1.6.0-3
9cbbeeb
- Fix FTBFS on aarch64 (#1115559)
9cbbeeb
2d20b78
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.6.0-2
2d20b78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2d20b78
f181109
* Sat Apr 26 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.6.0-1
f181109
- update to upstream release 1.6.0
f181109
6166551
* Tue Mar 18 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.7-1
6166551
- update to upstream release 1.4.7
6166551
7d51f58
* Wed Mar 05 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.6-1
7d51f58
- update to upstream release 1.4.6
7d51f58
9fc9ff2
* Sun Feb 16 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.5-2
9fc9ff2
- avoid multiple index directives (#1065488)
9fc9ff2
b55cfc2
* Sun Feb 16 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.5-1
b55cfc2
- update to upstream release 1.4.5
b55cfc2
Peter Borsa 8370461
* Wed Nov 20 2013 Peter Borsa <peter.borsa@gmail.com> - 1:1.4.4-1
Peter Borsa 8370461
- Update to upstream release 1.4.4
Peter Borsa 8370461
- Security fix BZ 1032267
Peter Borsa 8370461
7b9ca4a
* Sun Nov 03 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.3-1
7b9ca4a
- update to upstream release 1.4.3
7b9ca4a
6267fca
* Fri Aug 09 2013 Jonathan Steffan <jsteffan@fedoraproject.org> - 1:1.4.2-3
6267fca
- Add in conditionals to build for non-systemd targets
6267fca
eed161f
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 1:1.4.2-2
eed161f
- Perl 5.18 rebuild
eed161f
3d43073
* Fri Jul 19 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.2-1
3d43073
- update to upstream release 1.4.2
3d43073
45ce8ed
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1:1.4.1-3
45ce8ed
- Perl 5.18 rebuild
45ce8ed
798515d
* Tue Jun 11 2013 Remi Collet <rcollet@redhat.com> - 1:1.4.1-2
798515d
- rebuild for new GD 2.1.0
798515d
ef2548d
* Tue May 07 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.1-1
ef2548d
- update to upstream release 1.4.1 (#960605, #960606):
ef2548d
  CVE-2013-2028 stack-based buffer overflow when handling certain chunked
ef2548d
  transfer encoding requests
ef2548d
4784dce
* Sun Apr 28 2013 Dan Horák <dan[at]danny.cz> - 1:1.4.0-2
4784dce
- gperftools exist only on selected arches
4784dce
52cc859
* Fri Apr 26 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.0-1
52cc859
- update to upstream release 1.4.0
52cc859
- enable SPDY module (new in this version)
52cc859
- enable http gunzip module (new in this version)
52cc859
- enable google perftools module and add gperftools-devel to BR
52cc859
- enable debugging (#956845)
52cc859
- trim changelog
52cc859
9e462b8
* Tue Apr 02 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.8-1
9e462b8
- update to upstream release 1.2.8
9e462b8
0b5a896
* Fri Feb 22 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.7-2
0b5a896
- make sure nginx directories are not world readable (#913724, #913735)
0b5a896
501734e
* Sat Feb 16 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.7-1
501734e
- update to upstream release 1.2.7
501734e
- add .asc file
501734e
4f8de83
* Tue Feb 05 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-6
4f8de83
- use 'kill' instead of 'systemctl' when rotating log files to workaround
4f8de83
  SELinux issue (#889151)
4f8de83
04fa560
* Wed Jan 23 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-5
04fa560
- uncomment "include /etc/nginx/conf.d/*.conf by default but leave the
04fa560
  conf.d directory empty (#903065)
04fa560
f1b5ba4
* Wed Jan 23 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-4
f1b5ba4
- add comment in nginx.conf regarding "include /etc/nginf/conf.d/*.conf"
f1b5ba4
  (#903065)
f1b5ba4
48bb9f1
* Wed Dec 19 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-3
48bb9f1
- use correct file ownership when rotating log files
48bb9f1
ae0c321
* Tue Dec 18 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-2
ae0c321
- send correct kill signal and use correct file permissions when rotating
ae0c321
  log files (#888225)
ae0c321
- send correct kill signal in nginx-upgrade
ae0c321
7137e03
* Tue Dec 11 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-1
7137e03
- update to upstream release 1.2.6
7137e03
ff6cf91
* Sat Nov 17 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.5-1
ff6cf91
- update to upstream release 1.2.5
ff6cf91
a358587
* Sun Oct 28 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.4-1
a358587
- update to upstream release 1.2.4
a358587
- introduce new systemd-rpm macros (#850228)
a358587
- link to official documentation not the community wiki (#870733)
a358587
- do not run systemctl try-restart after package upgrade to allow the
a358587
  administrator to run nginx-upgrade and avoid downtime
a358587
- add nginx man page (#870738)
a358587
- add nginx-upgrade man page and remove README.fedora
a358587
- remove chkconfig from Requires(post/preun)
a358587
- remove initscripts from Requires(preun/postun)
a358587
- remove separate configuration files in "/etc/nginx/conf.d" directory
a358587
  and revert to upstream default of a centralized nginx.conf file
a358587
  (#803635) (#842738)
a358587
a358587
* Fri Sep 21 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.3-1
Jamie Nguyen fbdf34d
- update to upstream release 1.2.3
Jamie Nguyen fbdf34d
b021904
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2.1-3
b021904
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b021904
681f8d4
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 1:1.2.1-2
681f8d4
- Perl 5.16 rebuild
681f8d4
a358587
* Sun Jun 10 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.1-1
Jamie Nguyen 3574932
- update to upstream release 1.2.1
Jamie Nguyen 3574932
5344b15
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 1:1.2.0-2
5344b15
- Perl 5.16 rebuild
5344b15
a358587
* Wed May 16 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.0-1
Jamie Nguyen 13cf02b
- update to upstream release 1.2.0
Jamie Nguyen 13cf02b
a358587
* Wed May 16 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-4
Jamie Nguyen 705eb45
- add nginx-upgrade to replace functionality from the nginx initscript
Jamie Nguyen 705eb45
  that was lost after migration to systemd
Jamie Nguyen 705eb45
- add README.fedora to describe usage of nginx-upgrade
Jamie Nguyen 705eb45
- nginx.logrotate: use built-in systemd kill command in postrotate script
Jamie Nguyen 705eb45
- nginx.service: start after syslog.target and network.target
Jamie Nguyen 705eb45
- nginx.service: remove unnecessary references to config file location
Jamie Nguyen 705eb45
- nginx.service: use /bin/kill instead of "/usr/sbin/nginx -s" following
Jamie Nguyen 705eb45
  advice from nginx-devel
Jamie Nguyen 705eb45
- nginx.service: use private /tmp
Jamie Nguyen 705eb45
a358587
* Mon May 14 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-3
Jamie Nguyen 6380c10
- fix incorrect postrotate script in nginx.logrotate
Jamie Nguyen 6380c10
a358587
* Thu Apr 19 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-2
Jamie Nguyen 8a97985
- renable auto-cc-gcc patch due to warnings on rawhide
Jamie Nguyen 8a97985
a358587
* Sat Apr 14 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-1
Jamie Nguyen 669abfd
- update to upstream release 1.0.15
Jamie Nguyen 669abfd
- no need to apply auto-cc-gcc patch
Jamie Nguyen 669abfd
- add %%global _hardened_build 1
Jamie Nguyen 669abfd
a358587
* Thu Mar 15 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.14-1
Jamie Nguyen 4cdcd0c
- update to upstream release 1.0.14
Jamie Nguyen 4cdcd0c
- amend some %%changelog formatting
Jamie Nguyen 4cdcd0c
a358587
* Tue Mar 06 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.13-1
Jamie Nguyen 83f14e4
- update to upstream release 1.0.13
Jamie Nguyen 83f14e4
- amend --pid-path and --log-path
Jamie Nguyen 83f14e4
a358587
* Sun Mar 04 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-5
Jamie Nguyen ee9a369
- change pid path in nginx.conf to match systemd service file
Jamie Nguyen ee9a369
a358587
* Sun Mar 04 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-3
Jamie Nguyen a28f6d6
- fix %%pre scriptlet
Jamie Nguyen a28f6d6
a358587
* Mon Feb 20 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-2
Jamie Nguyen 6afa9eb
- update upstream URL
Jamie Nguyen 6afa9eb
- replace %%define with %%global
Jamie Nguyen 6afa9eb
- remove obsolete BuildRoot tag, %%clean section and %%defattr
Jamie Nguyen 6afa9eb
- remove various unnecessary commands
Jamie Nguyen 6afa9eb
- add systemd service file and update scriptlets
Jamie Nguyen 6afa9eb
- add Epoch to accommodate %%triggerun as part of systemd migration
Jamie Nguyen 6afa9eb
cd4c95c
* Sun Feb 19 2012 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.0.12-1
Jamie Nguyen 6afa9eb
- Update to 1.0.12
Jamie Nguyen 6afa9eb
Jamie Nguyen 6afa9eb
* Thu Nov 17 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.10-1
Jamie Nguyen 6afa9eb
- Bugfix: a segmentation fault might occur in a worker process if resolver got a big DNS response. Thanks to Ben Hawkes.
Jamie Nguyen 6afa9eb
- Bugfix: in cache key calculation if internal MD5 implementation wasused; the bug had appeared in 1.0.4.
Jamie Nguyen 6afa9eb
- Bugfix: the module ngx_http_mp4_module sent incorrect "Content-Length" response header line if the "start" argument was used. Thanks to Piotr Sikora.
cd4c95c
Jamie Nguyen 6afa9eb
* Thu Oct 27 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.8-1
Jamie Nguyen 6afa9eb
- Update to new 1.0.8 stable release
58a32dc
Jamie Nguyen 6afa9eb
* Fri Aug 26 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.5-1
Jamie Nguyen 6afa9eb
- Update nginx to Latest Stable Release
88163e4
9db7962
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.0.0-3
9db7962
- Perl mass rebuild
9db7962
09cc4a5
* Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.0.0-2
09cc4a5
- Perl 5.14 mass rebuild
09cc4a5
35391dc
* Wed Apr 27 2011 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.0.0-1
35391dc
- Update to 1.0.0
35391dc
39cb145
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.53-6
39cb145
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
39cb145
df45591
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53.5
df45591
- Extract out default config into its own file (bug #635776)
df45591
c9d5196
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-4
c9d5196
- Revert ownership of log dir
c9d5196
ab9c337
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-3
ab9c337
- Change ownership of /var/log/nginx to be 0700 nginx:nginx
ab9c337
- update init script to use killproc -p
ab9c337
- add reopen_logs command to init script
ab9c337
- update init script to use nginx -q option
ab9c337
ec8d40b
* Sun Oct 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-2
ec8d40b
- Fix linking of perl module
ec8d40b
2f134d1
* Sun Oct 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-1
2f134d1
- Update to new stable 0.8.53
2f134d1
5f09708
* Sat Jul 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.67-2
5f09708
- add Provides: webserver (bug #619693)
5f09708
c4e0545
* Sun Jun 20 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.67-1
c4e0545
- Update to new stable 0.7.67
c4e0545
- fix bugzilla #591543
c4e0545
3faabfd
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.7.65-2
3faabfd
- Mass rebuild with perl-5.12.0
3faabfd
1ba8dc9
* Mon Feb 15 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.65-1
1ba8dc9
- Update to new stable 0.7.65
1ba8dc9
- change ownership of logdir to root:root
1ba8dc9
- add support for ipv6 (bug #561248)
1ba8dc9
- add random_index_module
1ba8dc9
- add secure_link_module
1ba8dc9
9f868d6
* Fri Dec 04 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.64-1
9f868d6
- Update to new stable 0.7.64