Search
j0ke.net Open Build Service
>
Projects
>
Apache
>
apache2
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 29
[-]
[+]
Added
apache2.spec
@@ -0,0 +1,1052 @@ +# +# spec file for package apache2 (Version 2.2.8) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: apache2 +BuildRequires: db-devel ed libapr-util1-devel libapr1-devel openldap2 openldap2-devel +BuildRequires: openssl-devel pcre-devel zlib-devel +%if %{?suse_version:1}0 +%define httpduser wwwrun +%define httpdgroup www +%else +%define httpduser apache +%define httpdgroup apache +BuildRequires: expat-devel +%endif +# +%define pname apache2 +%define vers 2 +%define httpd httpd2 +%define apache_mmn %(test -s %{S:0} && { echo -n apache_mmn_; bzcat %{S:0} | awk '/^#define MODULE_MAGIC_NUMBER_MAJOR/ {printf "%d", $3}'; }) +%define default_mpm prefork +%{!?prefork:%define prefork 1} +%{!?worker:%define worker 1} +%{!?event:%define event 1} +%define mpms_to_build %(test %prefork = 1 && printf prefork) %(test %worker = 1 && printf worker) %(test %event = 1 && printf event) +# dir names +%define datadir /srv/www +%define htdocsdir %{datadir}/htdocs +%define manualdir %{_prefix}/share/%{pname}/manual +%define errordir %{_prefix}/share/%{pname}/error +%define iconsdir %{_prefix}/share/%{pname}/icons +%define cgidir %{datadir}/cgi-bin +%define localstatedir /var/lib/%{pname} +%define proxycachedir /var/cache/%{pname} +%define logfiledir /var/log/%{pname} +%define runtimedir /var/run +%define sysconfdir /etc/%{pname} +%define includedir %{_includedir}/%{pname} +%define libexecdir %_libdir/%{pname} +%define installbuilddir %{_prefix}/share/%{pname}/build +%define userdir public_html +%define suexec_safepath /usr/local/bin:/usr/bin:/bin +# "Server:" header +%define VENDOR SUSE +%define platform_string Linux/%VENDOR +License: The Apache Software License +Group: Productivity/Networking/Web/Servers +%define realver 2.2.10 +Version: 2.2.10 +Release: 20 +#Source0: http://www.apache.org/dist/httpd-%{version}.tar.bz2 +Source0: http://httpd.apache.org/dev/dist/httpd-%{realver}.tar.bz2 +Source10: SUSE-NOTICE +Source11: rc.%{pname} +Source13: sysconfig.%{pname} +Source16: certificate.sh +Source17: mkcert.sh.gz +Source18: robots.txt +Source20: favicon.ico +Source22: apache2-README.QUICKSTART +Source24: apache2-README +Source25: gensslcert +Source27: %{pname}.logrotate +Source28: permissions.%{pname} +Source29: apache-ssl-stuff.tar.bz2 +Source40: load_configuration +Source41: find_mpm +Source42: get_module_list +Source43: get_includes +Source44: find_httpd2_includes +# sysconf_addword is part of aaa_base.rpm starting with openSUSE 11.0 +# we bring our own copy for the cases where it is not available +Source45: sysconf_addword +Source46: a2enflag +Source47: a2enmod +Source48: apache2.xml +Source49: apache2.firewall +Source50: apache2.ssl-firewall +Source100: apache2-httpd.conf +Source101: apache2-errors.conf +Source102: apache2-default-server.conf +Source103: apache2-listen.conf +Source104: apache2-manual.conf +Source105: apache2-mod_autoindex-defaults.conf +Source106: apache2-mod_info.conf +Source107: apache2-mod_log_config.conf +Source108: apache2-mod_mime-defaults.conf +Source109: apache2-mod_status.conf +Source110: apache2-mod_userdir.conf +Source111: apache2-server-tuning.conf +Source113: apache2-ssl-global.conf +Source114: apache2-mod_usertrack.conf +Source130: apache2-vhost.template +Source131: apache2-vhost-ssl.template +Source140: apache2-check_forensic +Source141: apache-20-22-upgrade +Patch2: httpd-2.1.3alpha-layout.dif +Patch23: httpd-2.1.9-apachectl.dif +Patch65: httpd-2.0.49-log_server_status.dif +Patch66: httpd-2.0.54-envvars.dif +Patch67: httpd-2.2.0-apxs-a2enmod.dif +Patch68: httpd-2.x.x-logresolve.patch +Url: http://httpd.apache.org/ +Icon: Apache.xpm +Summary: The Apache Web Server Version 2.0 +AutoReqProv: on +Provides: httpd http_daemon %{apache_mmn} suse_help_viewer +Requires: %{pname}-MPM /etc/mime.types +PreReq: %{name}-utils +Requires: logrotate +Requires: libapr1 >= 1.0 +Requires: libapr1 < 2.0 +PreReq: fileutils textutils grep sed +%if %{?suse_version:1}0 +PreReq: %insserv_prereq %fillup_prereq permissions shadow +%endif +%if 0%{?suse_version} >= 901 && 0%{?sles_version} != 9 +Provides: apache +Obsoletes: apache < 1.3.29 +Obsoletes: mod_ssl < 2.8.16 +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Apache 2, the successor to Apache 1. + +Apache is the most used Web server software worldwide. + +Some new features in Apache 2: - hybrid multiprocess, multithreaded + mode for improved scalability + +- multiprotocol support + +- stream filtering + +- IPv6 support + +- new module API + +New modules include: - mod_auth_db + +- mod_auth_digest + +- mod_charset_lite + +- mod_dav + +- mod_file_cache + +Mod_ssl is no longer a separate package, but is now included in the +Apache distribution. + +See /usr/share/doc/packages/apache2/, http://httpd.apache.org/, and +http://httpd.apache.org/docs-2.0/upgrading.html. + + + +Authors: +-------- + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE + +%if %worker + +%package worker +License: The Apache Software License +Summary: Apache 2 worker MPM (Multi-Processing Module) +Group: Productivity/Networking/Web/Servers +Provides: %{pname}-MPM +Requires: %{name} = %{version} +%endif +%if %prefork + +%package prefork +License: The Apache Software License +Summary: Apache 2 "prefork" MPM (Multi-Processing Module) +Group: Productivity/Networking/Web/Servers +Provides: %{pname}-MPM +%if 0%{?suse_version} >= 901 && 0%{?sles_version} != 9 +Provides: apache:/usr/sbin/httpd +%endif +Requires: %{name} = %{version} +%endif +%if %event + +%package event +License: The Apache Software License +Summary: Apache 2 event MPM (Multi-Processing Module) +Group: Productivity/Networking/Web/Servers +Provides: %{pname}-MPM +Requires: %{name} = %{version}