]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache.spec
- rel 1; works here; upgrade from all-apache packages 2.2 to 2.4 worked; partial...
[packages/apache.git] / apache.spec
index 9e9b2e5879b7b655c71a6cc34e485315bb3ffe00..30b37547948ab0bdf9e2b15f95204d248a54605b 100644 (file)
@@ -4,7 +4,7 @@
 # - check those autn modules inner deps
 # - for external packages: don't use any apache module name in dep as they
 #  differ for apache 1.3/2.0/2.2!? any better ideas? rpm Suggests: tags?
-# - for mod_auth_* modules require each auth module to require virtual authn so at least *_default
+# - for mod_auth_* modules require each auth module to require virtual authn so at least *_core
 #  is chosen?
 # - same for mod_authz
 # - mod_auth_digest and mod_auth_basic R: apache(authn) ?
 # this is internal macro, don't change to %%apache_modules_api
 %define                _apache_modules_api 20120211
 
-%if "%{pld_release}" == "ac"
-%define                openssl_ver     0.9.7d
-%define                apr_ver         1:1.2
-%else
 %define                openssl_ver     0.9.8i
-%define                apr_ver         1:1.4.5
-%endif
+%define                apr_ver         1:1.4.6
+
 %include       /usr/lib/rpm/macros.perl
 Summary:       The most widely used Web server on the Internet
 Summary(de.UTF-8):     Leading World Wide Web-Server
@@ -39,7 +35,7 @@ Summary(ru.UTF-8):    Самый популярный веб-сервер
 Summary(tr.UTF-8):     Lider WWW tarayıcı
 Name:          apache
 Version:       2.4.3
-Release:       0.1
+Release:       1
 License:       Apache v2.0
 Group:         Networking/Daemons/HTTP
 Source0:       http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
@@ -2047,9 +2043,7 @@ 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}
-%if "%{pld_release}" != "ac"
 Requires:      apr-util-dbm-db
-%endif
 Provides:      apache(mod_ssl) = 1:%{version}-%{release}
 
 %description mod_ssl
@@ -2691,6 +2685,18 @@ 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
This page took 0.103104 seconds and 4 git commands to generate.