Changes of Revision 29
[-] | Added | apache2.spec |
x 1
2 +# 3 +# spec file for package apache2 (Version 2.2.8) 4 +# 5 +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 10 +# 11 + 12 +# norootforbuild 13 + 14 + 15 +Name: apache2 16 +BuildRequires: db-devel ed libapr-util1-devel libapr1-devel openldap2 openldap2-devel 17 +BuildRequires: openssl-devel pcre-devel zlib-devel 18 +%if %{?suse_version:1}0 19 +%define httpduser wwwrun 20 +%define httpdgroup www 21 +%else 22 +%define httpduser apache 23 +%define httpdgroup apache 24 +BuildRequires: expat-devel 25 +%endif 26 +# 27 +%define pname apache2 28 +%define vers 2 29 +%define httpd httpd2 30 +%define apache_mmn %(test -s %{S:0} && { echo -n apache_mmn_; bzcat %{S:0} | awk '/^#define MODULE_MAGIC_NUMBER_MAJOR/ {printf "%d", $3}'; }) 31 +%define default_mpm prefork 32 +%{!?prefork:%define prefork 1} 33 +%{!?worker:%define worker 1} 34 +%{!?event:%define event 1} 35 +%define mpms_to_build %(test %prefork = 1 && printf prefork) %(test %worker = 1 && printf worker) %(test %event = 1 && printf event) 36 +# dir names 37 +%define datadir /srv/www 38 +%define htdocsdir %{datadir}/htdocs 39 +%define manualdir %{_prefix}/share/%{pname}/manual 40 +%define errordir %{_prefix}/share/%{pname}/error 41 +%define iconsdir %{_prefix}/share/%{pname}/icons 42 +%define cgidir %{datadir}/cgi-bin 43 +%define localstatedir /var/lib/%{pname} 44 +%define proxycachedir /var/cache/%{pname} 45 +%define logfiledir /var/log/%{pname} 46 +%define runtimedir /var/run 47 +%define sysconfdir /etc/%{pname} 48 +%define includedir %{_includedir}/%{pname} 49 +%define libexecdir %_libdir/%{pname} 50 +%define installbuilddir %{_prefix}/share/%{pname}/build 51 +%define userdir public_html 52 +%define suexec_safepath /usr/local/bin:/usr/bin:/bin 53 +# "Server:" header 54 +%define VENDOR SUSE 55 +%define platform_string Linux/%VENDOR 56 +License: The Apache Software License 57 +Group: Productivity/Networking/Web/Servers 58 +%define realver 2.2.10 59 +Version: 2.2.10 60 +Release: 20 61 +#Source0: http://www.apache.org/dist/httpd-%{version}.tar.bz2 62 +Source0: http://httpd.apache.org/dev/dist/httpd-%{realver}.tar.bz2 63 +Source10: SUSE-NOTICE 64 +Source11: rc.%{pname} 65 +Source13: sysconfig.%{pname} 66 +Source16: certificate.sh 67 +Source17: mkcert.sh.gz 68 +Source18: robots.txt 69 +Source20: favicon.ico 70 +Source22: apache2-README.QUICKSTART 71 +Source24: apache2-README 72 +Source25: gensslcert 73 +Source27: %{pname}.logrotate 74 +Source28: permissions.%{pname} 75 +Source29: apache-ssl-stuff.tar.bz2 76 +Source40: load_configuration 77 +Source41: find_mpm 78 +Source42: get_module_list 79 +Source43: get_includes 80 +Source44: find_httpd2_includes 81 +# sysconf_addword is part of aaa_base.rpm starting with openSUSE 11.0 82 +# we bring our own copy for the cases where it is not available 83 +Source45: sysconf_addword 84 +Source46: a2enflag 85 +Source47: a2enmod 86 +Source48: apache2.xml 87 +Source49: apache2.firewall 88 +Source50: apache2.ssl-firewall 89 +Source100: apache2-httpd.conf 90 +Source101: apache2-errors.conf 91 +Source102: apache2-default-server.conf 92 +Source103: apache2-listen.conf 93 +Source104: apache2-manual.conf 94 +Source105: apache2-mod_autoindex-defaults.conf 95 +Source106: apache2-mod_info.conf 96 +Source107: apache2-mod_log_config.conf 97 +Source108: apache2-mod_mime-defaults.conf 98 +Source109: apache2-mod_status.conf 99 +Source110: apache2-mod_userdir.conf 100 +Source111: apache2-server-tuning.conf 101 +Source113: apache2-ssl-global.conf 102 +Source114: apache2-mod_usertrack.conf 103 +Source130: apache2-vhost.template 104 +Source131: apache2-vhost-ssl.template 105 +Source140: apache2-check_forensic 106 +Source141: apache-20-22-upgrade 107 +Patch2: httpd-2.1.3alpha-layout.dif 108 +Patch23: httpd-2.1.9-apachectl.dif 109 +Patch65: httpd-2.0.49-log_server_status.dif 110 +Patch66: httpd-2.0.54-envvars.dif 111 +Patch67: httpd-2.2.0-apxs-a2enmod.dif 112 +Patch68: httpd-2.x.x-logresolve.patch 113 +Url: http://httpd.apache.org/ 114 +Icon: Apache.xpm 115 +Summary: The Apache Web Server Version 2.0 116 +AutoReqProv: on 117 +Provides: httpd http_daemon %{apache_mmn} suse_help_viewer 118 +Requires: %{pname}-MPM /etc/mime.types 119 +PreReq: %{name}-utils 120 +Requires: logrotate 121 +Requires: libapr1 >= 1.0 122 +Requires: libapr1 < 2.0 123 +PreReq: fileutils textutils grep sed 124 +%if %{?suse_version:1}0 125 +PreReq: %insserv_prereq %fillup_prereq permissions shadow 126 +%endif 127 +%if 0%{?suse_version} >= 901 && 0%{?sles_version} != 9 128 +Provides: apache 129 +Obsoletes: apache < 1.3.29 130 +Obsoletes: mod_ssl < 2.8.16 131 +%endif 132 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 133 + 134 +%description 135 +Apache 2, the successor to Apache 1. 136 + 137 +Apache is the most used Web server software worldwide. 138 + 139 +Some new features in Apache 2: - hybrid multiprocess, multithreaded 140 + mode for improved scalability 141 + 142 +- multiprotocol support 143 + 144 +- stream filtering 145 + 146 +- IPv6 support 147 + 148 +- new module API 149 + 150 +New modules include: - mod_auth_db 151 + 152 +- mod_auth_digest 153 + 154 +- mod_charset_lite 155 + 156 +- mod_dav 157 + 158 +- mod_file_cache 159 + 160 +Mod_ssl is no longer a separate package, but is now included in the 161 +Apache distribution. 162 + 163 +See /usr/share/doc/packages/apache2/, http://httpd.apache.org/, and 164 +http://httpd.apache.org/docs-2.0/upgrading.html. 165 + 166 + 167 + 168 +Authors: 169 +-------- 170 + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE 171 + 172 +%if %worker 173 + 174 +%package worker 175 +License: The Apache Software License 176 +Summary: Apache 2 worker MPM (Multi-Processing Module) 177 +Group: Productivity/Networking/Web/Servers 178 +Provides: %{pname}-MPM 179 +Requires: %{name} = %{version} 180 +%endif 181 +%if %prefork 182 + 183 +%package prefork 184 +License: The Apache Software License 185 +Summary: Apache 2 "prefork" MPM (Multi-Processing Module) 186 +Group: Productivity/Networking/Web/Servers 187 +Provides: %{pname}-MPM 188 +%if 0%{?suse_version} >= 901 && 0%{?sles_version} != 9 189 +Provides: apache:/usr/sbin/httpd 190 +%endif 191 +Requires: %{name} = %{version} 192 +%endif 193 +%if %event 194 + 195 +%package event 196 +License: The Apache Software License 197 +Summary: Apache 2 event MPM (Multi-Processing Module) 198 +Group: Productivity/Networking/Web/Servers 199 +Provides: %{pname}-MPM 200 +Requires: %{name} = %{version} 201 |