]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.spec
trigger base on base; drop older triggers
[packages/apache.git] / apache.spec
index b5aec683029e7acf4752967b07190bc18181c919..a4229da2724dd42ab53de93fb300b36d5886f614 100644 (file)
@@ -14,7 +14,6 @@
 # Conditional build:
 %bcond_without ssl             # build without SSL support
 %bcond_without ldap            # build without LDAP support
-%bcond_with    itk             # ITK MPM
 %bcond_with    distcache       # distcache support
 %bcond_with    bucketeer       # debug one
 
@@ -22,7 +21,7 @@
 %define                _apache_modules_api 20120211
 
 %define                openssl_ver     1.0.1e
-%define                apr_ver         1:1.4.6
+%define                apr_ver         1:1.5.0
 
 %include       /usr/lib/rpm/macros.perl
 Summary:       The most widely used Web server on the Internet
@@ -34,12 +33,12 @@ Summary(pt_BR.UTF-8):       Servidor HTTPD para prover serviços WWW
 Summary(ru.UTF-8):     Самый популярный веб-сервер
 Summary(tr.UTF-8):     Lider WWW tarayıcı
 Name:          apache
-Version:       2.4.6
-Release:       1
+Version:       2.4.9
+Release:       2
 License:       Apache v2.0
 Group:         Networking/Daemons/HTTP
 Source0:       http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
-# Source0-md5: ea5e361ca37b8d7853404419dd502efe
+# Source0-md5: 2ef4e65353497606b24fa9bb3e5a3c40
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
 Source3:       %{name}.sysconfig
@@ -76,7 +75,6 @@ Patch1:               %{name}-layout.patch
 Patch2:                %{name}-suexec.patch
 Patch3:                %{name}-branding.patch
 Patch4:                %{name}-apr.patch
-Patch5:                httpd-dummy-connection-result.patch
 
 Patch7:                %{name}-syslibs.patch
 
@@ -92,8 +90,6 @@ Patch23:      %{name}-suexec_fcgi.patch
 # http://scripts.mit.edu/trac/browser/trunk/server/common/patches/httpd-2.2.x-mod_ssl-sessioncaching.patch?rev=1348
 Patch25:       httpd-2.2.x-mod_ssl-sessioncaching.patch
 Patch26:       %{name}-mod_vhost_alias_docroot.patch
-# http://mpm-itk.sesse.net/
-Patch28:       %{name}-mpm-itk.patch
 Patch29:       libtool-tag.patch
 Patch30:       lua-lib.patch
 URL:           http://httpd.apache.org/
@@ -118,13 +114,18 @@ BuildRequires:    zlib-devel
 Requires:      %{name}-errordocs = %{version}-%{release}
 Requires:      %{name}-mod_alias = %{version}-%{release}
 Requires:      %{name}-mod_auth = %{version}-%{release}
+Requires:      %{name}-mod_autoindex = %{version}-%{release}
+Requires:      %{name}-mod_deflate = %{version}-%{release}
+Requires:      %{name}-mod_dir = %{version}-%{release}
 Requires:      %{name}-mod_env = %{version}-%{release}
 Requires:      %{name}-mod_log_config = %{version}-%{release}
+Requires:      %{name}-mod_logio = %{version}-%{release}
 Requires:      %{name}-mod_mime = %{version}-%{release}
 Requires:      %{name}-mod_mime_magic = %{version}-%{release}
 Requires:      %{name}-mod_negotiation = %{version}-%{release}
 Requires:      %{name}-mod_setenvif = %{version}-%{release}
 Requires:      %{name}-mod_speling = %{version}-%{release}
+Requires:      %{name}-mod_status = %{version}-%{release}
 Requires:      %{name}-mod_userdir = %{version}-%{release}
 Requires:      %{name}-mod_version = %{version}-%{release}
 Requires:      %{name}-tools = %{version}-%{release}
@@ -714,6 +715,7 @@ Group:              Networking/Daemons/HTTP
 URL:           http://httpd.apache.org/docs/2.4/mod/mod_authnz_ldap.html
 Requires:      %{name}-base = %{version}-%{release}
 Requires:      %{name}-mod_ldap = %{version}-%{release}
+Requires:      %{name}-mod_authn_core = %{version}-%{release}
 Requires:      apr-util-ldap
 Provides:      apache(mod_authnz_ldap) = %{version}-%{release}
 # compat
@@ -1214,8 +1216,8 @@ Summary(pl.UTF-8):        Moduł Apache'a kompresujący dane przed przesłaniem ich do
 Group:         Networking/Daemons/HTTP
 URL:           http://httpd.apache.org/docs/2.4/mod/mod_deflate.html
 Requires:      %{name}-base = %{version}-%{release}
-Requires:      %{name}-mod_headers = %{version}-%{release}
 Requires:      %{name}-mod_filter = %{version}-%{release}
+Requires:      %{name}-mod_headers = %{version}-%{release}
 Provides:      apache(mod_deflate) = %{version}-%{release}
 
 %description mod_deflate
@@ -1769,8 +1771,8 @@ This module allows the server to be extended with scripts written in
 the Lua programming language. The extension points (hooks) available
 with mod_lua include many of the hooks available to natively compiled
 Apache HTTP Server modules, such as mapping requests to files,
-generating dynamic responses, access control, authentication,
-and authorization.
+generating dynamic responses, access control, authentication, and
+authorization.
 
 %description mod_lua -l pl.UTF-8
 Ten moduł pozwala na rozszerzanie serwera poprzez skrypty napisane w
@@ -1781,24 +1783,24 @@ pliki, generowanie dynamicznych odpowiedzi, kontrola dostępu,
 uwierzytelnianie i autoryzacja.
 
 %package mod_macro
-Summary:       Provides macros within apache runtime configuration files
-Summary(pl.UTF-8):     Makra wewnątrz klików konfiguracyjnych apache
+Summary:       Provides macros within Apache runtime configuration files
+Summary(pl.UTF-8):     Makra wewnątrz klików konfiguracyjnych Apache'a
 Group:         Networking/Daemons/HTTP
 URL:           http://httpd.apache.org/docs/2.4/mod/mod_macro.html
 Requires:      %{name}-base = %{version}-%{release}
 Provides:      apache(mod_macro) = %{version}-%{release}
 
 %description mod_macro
-This module provides macros within apache runtime configuration files.
+This module provides macros within Apache runtime configuration files.
 These macros have parameters. They are expanded when used (parameters
 are substituted by their values given as an argument), and the result
 is processed normally.
 
 %description mod_macro -l pl.UTF-8
 Ten moduł umożliwia tworzenie makr wewnątrz plików konfiguracyjnych
-apache. Makra mogą mieć parametry. Makra są rozwijane w momencie
-użycia (argumenty makra są podstawiane za wartości parametrów) a wynik
-jest parsowany jak normalna konfiguracja.
+Apache'a. Makra mogą mieć parametry. Makra są rozwijane w momencie
+użycia (argumenty makra są podstawiane za wartości parametrów), a
+wynik jest przetwarzany jak normalna konfiguracja.
 
 %package mod_mime
 Summary:       Associates the requested filename's extensions with the file's behavior and content
@@ -2353,8 +2355,8 @@ Group:            Networking/Daemons/HTTP
 URL:           http://httpd.apache.org/docs/2.4/mod/mod_ssl.html
 Requires:      %{name}-base = %{version}-%{release}
 Requires:      %{name}-mod_socache_shmcb = %{version}-%{release}
-Requires:      openssl >= %{openssl_ver}
 Requires:      apr-util-dbm-db
+Requires:      openssl >= %{openssl_ver}
 Provides:      apache(mod_ssl) = 1:%{version}-%{release}
 
 %description mod_ssl
@@ -2609,7 +2611,6 @@ Dwa programy testowe/przykładowe cgi: test-cgi and print-env.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
-%patch5 -p1
 
 %patch7 -p1
 
@@ -2626,8 +2627,6 @@ Dwa programy testowe/przykładowe cgi: test-cgi and print-env.
 #%patch25 -p1
 # ?
 #%patch26 -p1
-# probably drop
-#%patch28 -p1
 %patch29 -p1
 %patch30 -p1
 
@@ -2951,14 +2950,16 @@ if [ ! -L /etc/httpd/httpd.conf ]; then
        install -d /etc/httpd
        ln -s conf.d /etc/httpd/httpd.conf
 fi
+
+# handle $HTTPD_MPM from sysconfig
 if [ -f /etc/sysconfig/httpd ]; then
-        MPM=$(grep ^HTTPD_MPM /etc/sysconfig/httpd |sed 's,HTTPD_MPM=,,;s,",,g')
-        if [ -n "$MPM" ]; then
-                echo "LoadModule mpm_${MPM}_module                modules/mod_mpm_${MPM}.so" > /etc/httpd/conf.d/10_mpm.conf.rpmnew
-                cat /etc/httpd/conf.d/10_mpm.conf >> /etc/httpd/conf.d/10_mpm.conf.rpmnew
-                mv /etc/httpd/conf.d/10_mpm.conf.rpmnew /etc/httpd/conf.d/10_mpm.conf
-                sed -i -e 's,HTTPD_MPM.*,,g' /etc/sysconfig/httpd
-        fi
+       MPM=$(grep ^HTTPD_MPM /etc/sysconfig/httpd | sed 's,HTTPD_MPM=,,;s,",,g')
+       if [ -n "$MPM" ]; then
+               echo "LoadModule mpm_${MPM}_module      modules/mod_mpm_${MPM}.so" > /etc/httpd/conf.d/10_mpm.conf.rpmnew
+               cat /etc/httpd/conf.d/10_mpm.conf >> /etc/httpd/conf.d/10_mpm.conf.rpmnew
+               mv -f /etc/httpd/conf.d/10_mpm.conf.rpmnew /etc/httpd/conf.d/10_mpm.conf
+               sed -i -e 's,HTTPD_MPM.*,,g' /etc/sysconfig/httpd
+       fi
 fi
 
 exit 0
@@ -2983,112 +2984,14 @@ if [ "$1" = "0" ]; then
 fi
 %systemd_reload
 
-%triggerpostun base -- %{name} < 2.0.50-6.9
-%banner %{name}-2.0.50-6 << EOF
-WARNING!!!
-Since apache-2.0.50-6 autoindex module has been separated to package
-%{name}-mod_autoindex If you want to have the same functionality do:
-poldek -Uv %{name}-mod_autoindex
-EOF
-
-%triggerpostun base -- %{name} < 2.0.54-4
-%banner %{name}-2.0.54-2 << EOF
-WARNING!!!
-CGI demo/test programs - printenv and test-cgi, have been released
-from package apache into separate subpackage apache-cgi_test. If you
-need printenv and/or test-cgi, please install apache-cgi_test package,
-e.g. by running poldek -Uv apache-cgi_test
-EOF
-
-# update /etc/sysconfig/apache -> httpd rename
-if [ -f /etc/sysconfig/apache.rpmsave ]; then
-       cp -f /etc/sysconfig/httpd{,.rpmnew}
-       mv -f /etc/sysconfig/{apache.rpmsave,httpd}
-fi
-
-%triggerpostun base -- %{name} < 2.0.55-3.1
-# check for config first as in 2.2 it's .rpmsave
-if [ -f /etc/httpd/httpd.conf/10_httpd.conf ]; then
-       if ! grep -q 'Include webapps.d/' /etc/httpd/httpd.conf/10_httpd.conf; then
-               # make sure webapps.d is included
-               cp -f /etc/httpd/httpd.conf/10_httpd.conf{,.rpmsave}
-               # this file is ugly, so just append new lines
-               cat <<-EOF >> /etc/httpd/httpd.conf/10_httpd.conf
-               # Include webapps config
-               Include webapps.d/*.conf
-EOF
-       fi
-fi
-
-%triggerpostun base -- %{name} < 2.4.0
-cp -f /etc/httpd/apache.conf{,.rpmsave}
-sed -i -e '
-        /^DefaultType.*/s,.*,,
-        /^Include /s,^Include ,IncludeOptional ,
-        /^NameVirtualHost.*/s,.*,,
-        /^User/s,^,LoadModule unixd_module modules/mod_unixd.so\n,
-' /etc/httpd/apache.conf
-sed -i -e '
-        s,^LockFile /var/run/httpd/accept.lock,Mutex file:/var/run/httpd/,g
-' /etc/httpd/conf.d/10_mpm.conf
-
-%triggerpostun base -- %{name} < 2.2.0
-# change HTTPD_CONF to point to new location. *only* if it's the
-# default config setting
-cp -f /etc/sysconfig/httpd{,.rpmorig}
-sed -i -e '/^HTTPD_CONF="\/etc\/httpd\/httpd.conf"/s,.*,HTTPD_CONF="/etc/httpd/apache.conf",' /etc/sysconfig/httpd
-
-if [ -f /etc/httpd/conf.d/10_httpd.conf.rpmsave ]; then
-       sed -e '
-       # as separate modules
-       /^LoadModule access_module/s,^,#,
-       /^LoadModule alias_module/s,^,#,
-       /^LoadModule asis_module/s,^,#,
-       /^LoadModule cern_meta_module/s,^,#,
-       /^LoadModule cgi_module/s,^,#,
-       /^LoadModule env_module/s,^,#,
-       /^LoadModule include_module/s,^,#,
-       /^LoadModule log_config_module/s,^,#,
-       /^LoadModule mime_magic_module/s,^,#,
-       /^LoadModule mime_module/s,^,#,
-       /^LoadModule negotiation_module/s,^,#,
-       /^LoadModule setenvif_module/s,^,#,
-       /^LoadModule speling_module/s,^,#,
-       /^LoadModule userdir_module/s,^,#,
-
-       # in 30_errordocs.conf
-       /<IfModule mod_include.c>/,/<\/IfModule>/s,^,#,
-
-       # in 57_mod_autoindex.conf
-       /^Alias \/icons\//s,^,#,
-
-       # in apache.conf
-       /^ScriptAlias \/cgi-bin\//s,^,#,
-       /^Listen 80/s,^,#,
-
-       # avoid loops
-       /Include conf.d\/\*.conf/s,^,#,
-       /Include webapps.d\/\*.conf/s,^,#,
-
-       ' < /etc/httpd/conf.d/10_httpd.conf.rpmsave > /etc/httpd/conf.d/10_httpd.conf
-fi
-
-%banner -e %{name} <<'EOF'
-NB! Apache main config has been changed to /etc/httpd/apache.conf
-
-There has been changed a lot, so many things could be broken.
-Please report bugs to <http://bugs.pld-linux.org/>.
-
-EOF
-
-%triggerpostun base -- %{name} < 2.2.22-2
+%triggerpostun base -- %{name}-base < 2.2.22-2
 . /etc/sysconfig/httpd
 if [ -z "$HTTPD_CONF" ]; then
        echo 'HTTPD_CONF="/etc/httpd/apache.conf"' >> /etc/sysconfig/httpd
 fi
 %systemd_trigger httpd.service
 
-%triggerpostun base -- %{name} < 2.4.0
+%triggerpostun base -- %{name}-base < 2.4.0
 cp -f /etc/httpd/apache.conf{,.rpmsave}
 sed -i -e '
        /^DefaultType/d
This page took 0.038499 seconds and 4 git commands to generate.