]> git.pld-linux.org Git - packages/apache1.git/blobdiff - apache1.spec
- rel 3
[packages/apache1.git] / apache1.spec
index 74bc0811a2355fd34d5dd7abbae01e3b372c4b2d..fb003c5eebd9609834d73b67a7e062e6ed586ad5 100644 (file)
@@ -1,3 +1,5 @@
+# TODO
+# - split *all* modules to subpackages?
 #
 # Conditional build:
 %bcond_with    rewrite_ldap    # enable ldap map support for mod_rewrite (alpha)
@@ -27,7 +29,7 @@ Summary(uk):  
 Summary(zh_CN):        Internet ÉÏÓ¦ÓÃ×î¹ã·ºµÄ Web ·þÎñ³ÌÐò¡£
 Name:          apache1
 Version:       1.3.33
-Release:       1.90
+Release:       3
 License:       Apache Group
 Group:         Networking/Daemons
 Source0:       http://www.apache.org/dist/httpd/apache_%{version}.tar.gz
@@ -109,6 +111,7 @@ Provides:   group(http)
 Provides:      httpd
 Provides:      user(http)
 Provides:      webserver = apache
+Provides:      apache = %{version}-%{release}
 %{?with_ipv6:Provides: apache(ipv6)}
 Obsoletes:     apache < 2.0.0
 Obsoletes:     apache-extra
@@ -389,8 +392,8 @@ Paketet apache-devel inneh
 Summary:       Apache module for run CGI whenever a file of a certain type is requested
 Summary(pl):   Modu³ dla apache do uruchamiania skryptów cgi
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_actions = %{version}-%{release}
 Obsoletes:     apache-mod_actions < 2.0.0
 
 %description mod_actions
@@ -406,8 +409,8 @@ Ten modu
 Summary:       Apache module with user authentication using textual files
 Summary(pl):   Modu³ autentykacji u¿ytkownika przy u¿yciu plików tekstowych dla Apache
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_auth = %{version}-%{release}
 Obsoletes:     apache-mod_auth < 2.0.0
 
 %description mod_auth
@@ -422,8 +425,8 @@ u
 Summary:       Apache module with "anonymous" user access authentication
 Summary(pl):   Modu³ apache oferuj±cy anonimow± autoryzacjê u¿ytkownia
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_auth_anon = %{version}-%{release}
 Obsoletes:     apache-mod_auth_anon < 2.0.0
 
 %description mod_auth_anon
@@ -447,9 +450,9 @@ postaci adresu pocztowego u
 Summary:       Apache module with user authentication which uses Berkeley DB files
 Summary(pl):   Modu³ apache z mechanizmem autentykacji u¿ywaj±cym plików Berkeley DB
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
+Requires(triggerpostun):       %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
-Requires:      %{apxs}
+Provides:      apache-mod_auth_db = %{version}-%{release}
 Obsoletes:     apache-mod_auth_db < 2.0.0
 
 %description mod_auth_db
@@ -466,9 +469,9 @@ ale jako plik
 Summary:       Apache user authentication module using MD5 Digest Authentication
 Summary(pl):   Modu³ apache do autoryzacji MD5
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
 Obsoletes:     %{name}-mod_digest
+Provides:      apache-mod_auth_digest = %{version}-%{release}
 Obsoletes:     apache-mod_auth_digest < 2.0.0
 
 %description mod_auth_digest
@@ -483,7 +486,8 @@ Authentication.
 Summary:       Apache module - display index of files
 Summary(pl):   Modu³ apache do wy¶wietlania indeksu plików
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
+Requires(triggerpostun):       %{apxs}
+Provides:      apache-mod_autoindex = %{version}-%{release}
 Requires:      %{name}(EAPI) = %{version}-%{release}
 
 %description mod_autoindex
@@ -497,8 +501,8 @@ Ten pakiet dostarcza modu
 Summary:       Apache module - authentication variables for arbitrary directives
 Summary(pl):   Modu³ apache do definiowania zmiennych
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_define = %{version}-%{release}
 Obsoletes:     apache-mod_define < 2.0.0
 
 %description mod_define
@@ -512,8 +516,8 @@ Modu
 Summary:       Older version of apache user authentication module using MD5 Digest Authentication
 Summary(pl):   Starsza wersja modu³u apache do autoryzacji MD5
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_digest = %{version}-%{release}
 Obsoletes:     apache-mod_digest < 2.0.0
 
 %description mod_digest
@@ -535,8 +539,8 @@ wersji standardu.
 Summary:       Apache module for "trailing slash" redirects and serving directory index files
 Summary(pl):   Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu.
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_dir = %{version}-%{release}
 Obsoletes:     apache-mod_dir < 2.0.0
 
 %description mod_dir
@@ -550,8 +554,8 @@ Modu
 Summary:       Apache module which generates Expires HTTP headers
 Summary(pl):   Modu³ generuj±cy nag³ówki HTTP Expires
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_expires = %{version}-%{release}
 Obsoletes:     apache-mod_expires < 2.0.0
 
 %description mod_expires
@@ -569,8 +573,8 @@ wa
 Summary:       Apache module allows for the customization of HTTP response headers
 Summary(pl):   Modu³ pozwalaj±cy na modyfikacjê nag³ówków HTTP
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_headers = %{version}-%{release}
 Obsoletes:     apache-mod_headers < 2.0.0
 
 %description mod_headers
@@ -586,8 +590,8 @@ wysy
 Summary:       Apache module with imap-file handler
 Summary(pl):   Modu³ z obs³ug± imap-file
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_imap = %{version}-%{release}
 Obsoletes:     apache-mod_imap < 2.0.0
 
 %description mod_imap
@@ -602,8 +606,8 @@ Modu
 Summary:       Apache module with comprehensive overview of the server configuration
 Summary(pl):   Modu³ dostarczaj±cy informacji na temat serwera.
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_info = %{version}-%{release}
 Obsoletes:     apache-mod_info < 2.0.0
 
 %description mod_info
@@ -619,8 +623,8 @@ modu
 Summary:       Apache module for forensic logging of the requests
 Summary:       Modu³ Apache'a do logowania ¿±dañ w celu pó¼niejszej analizy
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_log_forensic = %{version}-%{release}
 Obsoletes:     apache-mod_log_forensic < 2.0.0
 
 %description mod_log_forensic
@@ -635,8 +639,8 @@ Logowanie jest wykonywane przed i po przetworzeniu 
 Summary:       Apache module for mmap()ing statically configured list files
 Summary(pl):   Modu³ s³u¿±cy do mmap()owania plików.
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_mmap_static = %{version}-%{release}
 Obsoletes:     apache-mod_mmap_static < 2.0.0
 
 %description mod_mmap_static
@@ -652,11 +656,9 @@ Modu
 Summary:       Apache module with Web proxy
 Summary(pl):   Modu³ dodaj±cy obs³ugê serwera proxy
 Group:         Networking/Daemons
-Requires(post,preun):  %{name}(EAPI) = %{version}-%{release}
-Requires(post,preun):  %{apxs}
-Requires(post,preun):  grep
-Requires(preun):       fileutils
+Requires(triggerpostun):       %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_proxy = %{version}-%{release}
 Obsoletes:     apache-mod_proxy < 2.0.0
 
 %description mod_proxy
@@ -674,8 +676,8 @@ HTTP/1.0.
 Summary:       Apache module with rule-based engine for rewrite requested URLs on the fly
 Summary(pl):   Modu³ do ,,przepisywania'' adresów URL w locie
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_rewrite = %{version}-%{release}
 Obsoletes:     apache-mod_rewrite < 2.0.0
 
 %description mod_rewrite
@@ -689,11 +691,9 @@ Modu
 Summary:       Server status report module for apache
 Summary(pl):   Modu³ dostarczaj±cy informacje statystyczne o serwerze.
 Group:         Networking/Daemons
-Requires(post,preun):  %{name}(EAPI) = %{version}-%{release}
-Requires(post,preun):  %{apxs}
-Requires(post,preun):  grep
-Requires(preun):       fileutils
+Requires(triggerpostun):       %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_status = %{version}-%{release}
 Obsoletes:     apache-mod_status < 2.0.0
 
 %description mod_status
@@ -711,8 +711,8 @@ pracy serwera apache (w postaci strony HTML).
 Summary:       Apache module which provides a magic token for each request
 Summary(pl):   Modu³ nadaj±cy ka¿demu ¿±daniu unikalny token
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_unique_id = %{version}-%{release}
 Obsoletes:     apache-mod_unique_id < 2.0.0
 
 %description mod_unique_id
@@ -734,8 +734,8 @@ UNIQUE_ID.
 Summary:       Apache module for user tracking using cookies
 Summary(pl):   Modu³ s³u¿±cy do ¶ledzenia u¿ytkowników przy u¿yciu ciasteczek
 Group:         Networking/Daemons
-Requires(post,preun):  %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_usertrack = %{version}-%{release}
 Obsoletes:     apache-mod_usertrack < 2.0.0
 
 %description mod_usertrack
@@ -752,11 +752,9 @@ wiele plik
 Summary:       Apache module for dynamically configured mass virtual hosting
 Summary(pl):   Modu³ dodaj±cy obs³ugê hostów wirtualnych.
 Group:         Networking/Daemons
-Requires(post,preun):  %{name}(EAPI) = %{version}-%{release}
-Requires(post,preun):  %{apxs}
-Requires(post,preun):  grep
-Requires(preun):       fileutils
+Requires(triggerpostun):       %{apxs}
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Provides:      apache-mod_vhost_alias = %{version}-%{release}
 Obsoletes:     apache-mod_vhost_alias < 2.0.0
 
 %description mod_vhost_alias
@@ -861,7 +859,7 @@ install errordocs/* $RPM_BUILD_ROOT%{_datadir}/errordocs
 mv $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf conf/apache.conf.dist
 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
 
-CFG="$RPM_BUILD_ROOT%{_sysconfdir}/conf.d/"
+CFG="$RPM_BUILD_ROOT%{_sysconfdir}/conf.d"
 
 echo "LoadModule access_module      modules/mod_access.so" > $CFG/01_mod_access.conf
 install %{SOURCE17}    $CFG/02_mod_alias.conf
@@ -1006,7 +1004,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_actions
+%postun mod_actions
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1020,7 +1018,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_auth
+%postun mod_auth
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1034,7 +1032,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_auth_anon
+%postun mod_auth_anon
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1048,7 +1046,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_auth_db
+%postun mod_auth_db
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1058,40 +1056,40 @@ fi
 %triggerpostun mod_auth_db -- apache-mod_auth_db <= 1.3.20-2
 %{apxs} -e -A -n auth_dbm %{_libexecdir}/mod_auth_dbm.so 1>&2
 
-%post mod_autoindex
-if [ -f /var/lock/subsys/apache ]; then
-       /etc/rc.d/init.d/apache restart 1>&2
-fi
-
-%preun mod_autoindex
+%post mod_auth_digest
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
+       else
+               echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
        fi
 fi
 
-%triggerpostun mod_autoindex -- apache1-mod_autoindex < 1.3.33-1.85
-%{apxs} -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
-sed -i -e '
-       s,^Include.*mod_autoindex.conf,Include %{_sysconfdir}/conf.d/*_mod_autoindex.conf,
-' /etc/apache/apache.conf
-
-%post mod_auth_digest
+%postun mod_auth_digest
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
-       else
-               echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
        fi
 fi
 
-%preun mod_auth_digest
+%post mod_autoindex
+if [ -f /var/lock/subsys/apache ]; then
+       /etc/rc.d/init.d/apache restart 1>&2
+fi
+
+%postun mod_autoindex
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
+%triggerpostun mod_autoindex -- apache1-mod_autoindex < 1.3.33-1.85
+%{apxs} -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
+sed -i -e '
+       s,^Include.*mod_autoindex.conf,Include %{_sysconfdir}/conf.d/*_mod_autoindex.conf,
+' /etc/apache/apache.conf
+
 %post mod_define
 if [ -f /var/lock/subsys/apache ]; then
        /etc/rc.d/init.d/apache restart 1>&2
@@ -1099,7 +1097,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_define
+%postun mod_define
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1113,7 +1111,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_digest
+%postun mod_digest
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1127,7 +1125,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_dir
+%postun mod_dir
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1141,7 +1139,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_expires
+%postun mod_expires
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1155,7 +1153,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_headers
+%postun mod_headers
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1169,7 +1167,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_imap
+%postun mod_imap
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1183,7 +1181,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_info
+%postun mod_info
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1197,10 +1195,10 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_log_forensic
+%postun mod_log_forensic
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
 
@@ -1211,7 +1209,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_mmap_static
+%postun mod_mmap_static
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1225,7 +1223,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_proxy
+%postun mod_proxy
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1245,7 +1243,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_rewrite
+%postun mod_rewrite
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1259,7 +1257,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_status
+%postun mod_status
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1279,7 +1277,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_unique_id
+%postun mod_unique_id
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1293,7 +1291,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_usertrack
+%postun mod_usertrack
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
@@ -1307,7 +1305,7 @@ else
        echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
 fi
 
-%preun mod_vhost_alias
+%postun mod_vhost_alias
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/apache ]; then
                /etc/rc.d/init.d/apache restart 1>&2
This page took 0.065378 seconds and 4 git commands to generate.