]> git.pld-linux.org Git - packages/apache1.git/blobdiff - apache1.spec
- release 5
[packages/apache1.git] / apache1.spec
index 3654c7a182ce3d92c4e52b3819d8453f257f0986..0b184061c14d0fab26d695307dc4ee5cdbeb2e0f 100644 (file)
@@ -27,20 +27,21 @@ Summary(tr.UTF-8):  Lider WWW tarayıcı
 Summary(uk.UTF-8):     Найпопулярніший Web-Server
 Summary(zh_CN.UTF-8):  Internet 上应用最广泛的 Web 服务程序。
 Name:          apache1
-Version:       1.3.39
-Release:       7.1
-License:       Apache Group
+Version:       1.3.41
+Release:       5
+License:       Apache v2.0
 Group:         Networking/Daemons
 Source0:       http://www.apache.org/dist/httpd/apache_%{version}.tar.gz
-# Source0-md5: 76066f630203291acd20c764e5eedb6e
+# Source0-md5: f7f00b635243f03a787ca9f4d4c85651
 Source1:       %{name}.init
 Source2:       %{name}.logrotate
-Source3:       apache-icons.tar.gz
-# Source3-md5: 2b085cbc19fd28536dc883f0b864cd83
-Source4:       %{name}.sysconfig
+Source3:       %{name}.sysconfig
+# http://www.iagora.com/about/software/lingerd/
+Source4:       http://images.iagora.com/media/software/lingerd/lingerd-0.94.tar.gz
+# Source4-md5: 6401015bafad4f44fdf8a9a1795d9258
 Source5:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/apache-non-english-man-pages.tar.bz2
 # Source5-md5: 74ff6e8d8a7b365b48ed10a52fbeb84e
-
+Source6:       %{name}-defaultindex.conf
 Source7:       %{name}-httpd.conf
 Source8:       %{name}-common.conf
 Source9:       %{name}-mod_status.conf
@@ -59,9 +60,7 @@ Source21:     %{name}-mod_cern_meta.conf
 Source22:      %{name}-mod_setenvif.conf
 Source23:      %{name}-mod_vhost_alias.conf
 Source24:      %{name}-errordocs.conf
-# http://www.iagora.com/about/software/lingerd/
-Source25:      http://images.iagora.com/media/software/lingerd/lingerd-0.94.tar.gz
-# Source25-md5:        6401015bafad4f44fdf8a9a1795d9258
+Source25:      %{name}-manual.conf
 Patch0:                %{name}-PLD.patch
 Patch1:                %{name}-suexec.patch
 Patch2:                %{name}-errordocs.patch
@@ -128,6 +127,8 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _libexecdir     %{_prefix}/%{_lib}/%{name}
 %define                apxs            /usr/sbin/apxs1
 %define                httpdir         /home/services/apache
+%define                docroot         %{_datadir}/%{name}/html
+%define                errordir        %{_datadir}/%{name}/error
 %define                manualdir       %{_datadir}/%{name}/manual
 %define                cgibindir       %{_prefix}/lib/cgi-bin/%{name}
 
@@ -325,36 +326,46 @@ Apache tools.
 %description tools -l pl.UTF-8
 Narzędzia Apache'a.
 
-%package index
+%package defaultindex
 Summary:       Apache index.html* files
 Summary(pl.UTF-8):     Pliki Apache index.html*
 Group:         Documentation
 Requires:      %{name}-base = %{version}-%{release}
+Requires:      %{name}-mod_alias = %{version}-%{release}
+Requires:      %{name}-mod_dir = %{version}-%{release}
+Provides:      apache1-index
+Obsoletes:     apache1-index < 1.3.39-7.9
 Obsoletes:     indexhtml
 
-%description index
+%description defaultindex
 Apache index.html* files.
 
-%description index -l pl.UTF-8
+%description defaultindex -l pl.UTF-8
 Pliki Apache index.html*.
 
-%package doc
+%package manual
 Summary:       Apache 1.3.x manual
 Summary(pl.UTF-8):     Podręcznik do Apache'a 1.3.x
 Group:         Documentation
 Requires:      %{name}-base = %{version}-%{release}
+Requires:      %{name}-mod_alias = %{version}-%{release}
+Requires:      %{name}-mod_negotiation = %{version}-%{release}
+Provides:      apache1-doc
+Obsoletes:     apache1-doc < 1.3.39-7.9
 
-%description doc
+%description manual
 Apache 1.3.x manual.
 
-%description doc -l pl.UTF-8
+%description manual -l pl.UTF-8
 Podręcznik do Apache'a 1.3.x.
 
 %package errordocs
 Summary:       Apache 1.3.x HTTP error documents
 Summary(pl.UTF-8):     Dokumenty opisujące błędy HTTP dla Apache'a 1.3.x
 Group:         Applications/WWW
+Requires:      %{name}-mod_alias = %{version}-%{release}
 Requires:      %{name}-mod_include = %{version}-%{release}
+Requires:      %{name}-mod_negotiation = %{version}-%{release}
 
 %description errordocs
 Apache 1.3.x HTTP error documents. Currently in English and Polish
@@ -655,6 +666,7 @@ Summary(pl.UTF-8):  Moduł apache do wyświetlania indeksu plików
 Group:         Networking/Daemons
 Requires(triggerpostun):       sed >= 4.0
 Requires:      %{name}(EAPI) = %{version}-%{release}
+Requires:      %{name}-mod_alias = %{version}-%{release}
 Requires:      apache-icons
 Provides:      apache(mod_autoindex) = %{version}-%{release}
 
@@ -1281,7 +1293,7 @@ Two cgi test/demo programs: test-cgi and print-env.
 Dwa programy testowe/przykładowe cgi: test-cgi and print-env.
 
 %prep
-%setup -q -n apache_%{version} %{?with_lingerd:-a25}
+%setup -q -n apache_%{version} %{?with_lingerd:-a4}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
@@ -1333,6 +1345,9 @@ cp -a lingerd-*/{apache-1.3/ap_lingerd.c,li_config.h} src/main
 %patch42 -p1
 %endif
 
+# make manual link with full path
+%{__sed} -i -e 's,href="manual/,href="/manual/,i' htdocs/index.html.*
+
 # fix libdir (at least in PLD layout; no need to care about other ones)
 %{__sed} -i -e 's,/lib$,/%{_lib},' config.layout
 
@@ -1380,7 +1395,7 @@ rm -f src/modules/standard/mod_rewrite.so
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
        $RPM_BUILD_ROOT%{_sysconfdir}/{webapps.d,conf.d} \
-       $RPM_BUILD_ROOT%{httpdir} \
+       $RPM_BUILD_ROOT%{httpdir}/html \
        $RPM_BUILD_ROOT%{_libexecdir} \
        $RPM_BUILD_ROOT/var/{log/{apache,archive/apache},run/apache}
 
@@ -1389,15 +1404,15 @@ install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
 
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache1
 sed -e 's,/usr/lib,%{_libdir},g' %{SOURCE1} > $RPM_BUILD_ROOT/etc/rc.d/init.d/apache
-install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/apache
 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 mv $RPM_BUILD_ROOT%{_mandir}/hu/man8/{httpd,apache}.8
 mv $RPM_BUILD_ROOT%{_mandir}/pl/man8/{httpd,apache}.8
 
 touch $RPM_BUILD_ROOT/var/log/apache/{access,error,agent,referer}_log
 
-install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/errordocs
-cp -a errordocs/* $RPM_BUILD_ROOT%{_datadir}/%{name}/errordocs
+install -d $RPM_BUILD_ROOT%{errordir}
+cp -a errordocs/* $RPM_BUILD_ROOT%{errordir}
 
 mv $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf conf/apache.conf.dist
 cp -a %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
@@ -1422,6 +1437,8 @@ echo "LoadModule speling_module     modules/mod_speling.so" > $CFG/15_mod_spelin
 cp -a %{SOURCE15}      $CFG/16_mod_userdir.conf
 
 cp -a %{SOURCE8}       $CFG/20_common.conf
+cp -a %{SOURCE6}       $CFG/30_defaultindex.conf
+cp -a %{SOURCE25}      $CFG/30_manual.conf
 
 cp -a %{SOURCE23}      $CFG/20_mod_vhost_alias.conf
 cp -a %{SOURCE9}       $CFG/25_mod_status.conf
@@ -1452,7 +1469,7 @@ ScriptAlias /cgi-bin/printenv %{cgibindir}/printenv
 ScriptAlias /cgi-bin/test-cgi %{cgibindir}/test-cgi
 EOF
 
-ln -sf index.html.en $RPM_BUILD_ROOT%{_datadir}/%{name}/html/index.html
+ln -sf index.html.en $RPM_BUILD_ROOT%{docroot}/index.html
 
 mv $RPM_BUILD_ROOT%{_sbindir}/apxs $RPM_BUILD_ROOT%{apxs}
 mv $RPM_BUILD_ROOT%{_mandir}/man8/apxs.8 $RPM_BUILD_ROOT%{_mandir}/man8/apxs1.8
@@ -1473,8 +1490,6 @@ rm -f $RPM_BUILD_ROOT%{_libexecdir}/mod_{auth_dbm,example}.so
 rm -f $RPM_BUILD_ROOT%{_mandir}/README*
 
 rm -rf $RPM_BUILD_ROOT%{_datadir}/apache-icons
-install -d $RPM_BUILD_ROOT%{_datadir}/apache-icons
-%{__tar} -zxf %{SOURCE3} --strip-components=1 -C $RPM_BUILD_ROOT%{_datadir}/apache-icons
 
 # Not for our os or for older apache
 rm $RPM_BUILD_ROOT%{manualdir}/{cygwin,ebcdic,install-{z,}tpf,man-template}.html
@@ -1531,7 +1546,7 @@ if [ "$1" = "2" ]; then
        ' /etc/apache/apache.conf
 fi
 
-%triggerpostun base -- %{name} <= 1.3.31-5
+%triggerpostun base -- %{name} < 1.3.31-5.9
 %banner %{name} -e -a <<EOF
 WARNING!!!
  Since 1.3.31-5 version autoindex module has been separated to package %{name}-mod_autoindex
@@ -1583,7 +1598,7 @@ sed -i -e '
 ' /etc/apache/apache.conf
 fi
 
-%triggerpostun mod_auth_db -- apache-mod_auth_db <= 1.3.20-2
+%triggerpostun mod_auth_db -- apache-mod_auth_db < 1.3.20-16
 sed -i -e '/^\(Add\|Load\)Module.*mod_auth_dbm\.\(so\|c\)/d' /etc/apache/apache.conf
 
 %triggerpostun mod_autoindex -- apache1-mod_autoindex < 1.3.33-1.85
@@ -1868,14 +1883,24 @@ fi
 %postun mod_vhost_alias
 %module_postun
 
+%post defaultindex
+if [ "$1" = "1" ]; then
+       %service -q apache reload
+fi
+
+%postun defaultindex
+if [ "$1" = "0" ]; then
+       %service -q apache reload
+fi
+
 %post cgi_test
 if [ "$1" = "1" ]; then
-       %service -q httpd reload
+       %service -q apache reload
 fi
 
 %postun cgi_test
 if [ "$1" = "0" ]; then
-       %service -q httpd reload
+       %service -q apache reload
 fi
 
 %files
@@ -1911,8 +1936,9 @@ fi
 %attr(2750,root,logs) %dir /var/log/archive/apache
 %attr(640,root,logs) %ghost /var/log/apache/*
 %dir %{_datadir}/%{name}
-%dir %{_datadir}/%{name}/html
 %dir %{httpdir}
+%dir %{httpdir}/html
+%dir %{docroot}
 
 %files cgi_test
 %defattr(644,root,root,755)
@@ -1934,44 +1960,46 @@ fi
 %{_mandir}/man8/logresolve.8*
 %{_mandir}/man8/rotatelogs.8*
 
-%files index
+%files defaultindex
 %defattr(644,root,root,755)
-%config(noreplace,missingok) %{_datadir}/%{name}/html/index.html
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_defaultindex.conf
+%config(noreplace,missingok) %{docroot}/index.html
 # NOTE: html extensions are not the same as (g)libc locale names
-%lang(ca) %{_datadir}/%{name}/html/index.html.ca
-%lang(cs) %{_datadir}/%{name}/html/index.html.cz
-%lang(de) %{_datadir}/%{name}/html/index.html.de
-%lang(da) %{_datadir}/%{name}/html/index.html.dk
-%lang(et) %{_datadir}/%{name}/html/index.html.ee
-%lang(el) %{_datadir}/%{name}/html/index.html.el
-%{_datadir}/%{name}/html/index.html.en
-%lang(es) %{_datadir}/%{name}/html/index.html.es
-%lang(fr) %{_datadir}/%{name}/html/index.html.fr
-%lang(he) %{_datadir}/%{name}/html/index.html.he.iso8859-8
-%lang(hu) %{_datadir}/%{name}/html/index.html.hu
-%lang(it) %{_datadir}/%{name}/html/index.html.it
-%lang(ja) %{_datadir}/%{name}/html/index.html.ja.jis
-%lang(ko) %{_datadir}/%{name}/html/index.html.kr.iso-kr
-%lang(de_LU) %{_datadir}/%{name}/html/index.html.lb.utf8
-%lang(nl) %{_datadir}/%{name}/html/index.html.nl
-%lang(nn) %{_datadir}/%{name}/html/index.html.nn
-%lang(nb) %{_datadir}/%{name}/html/index.html.no
-%lang(pl) %{_datadir}/%{name}/html/index.html.po.iso-pl
-%lang(pt) %{_datadir}/%{name}/html/index.html.pt
-%lang(pt_BR) %{_datadir}/%{name}/html/index.html.pt-br
-%lang(ru) %{_datadir}/%{name}/html/index.html.ru.cp-1251
-%lang(ru) %{_datadir}/%{name}/html/index.html.ru.cp866
-%lang(ru) %{_datadir}/%{name}/html/index.html.ru.iso-ru
-%lang(ru) %{_datadir}/%{name}/html/index.html.ru.koi8-r
-%lang(ru) %{_datadir}/%{name}/html/index.html.ru.ucs2
-%lang(ru) %{_datadir}/%{name}/html/index.html.ru.ucs4
-%lang(ru) %{_datadir}/%{name}/html/index.html.ru.utf8
-%lang(sv) %{_datadir}/%{name}/html/index.html.se
-%lang(zh_TW) %{_datadir}/%{name}/html/index.html.zh-tw.big5
-%{_datadir}/%{name}/html/*.gif
-
-%files doc
+%lang(ca) %{docroot}/index.html.ca
+%lang(cs) %{docroot}/index.html.cz
+%lang(de) %{docroot}/index.html.de
+%lang(da) %{docroot}/index.html.dk
+%lang(et) %{docroot}/index.html.ee
+%lang(el) %{docroot}/index.html.el
+%{docroot}/index.html.en
+%lang(es) %{docroot}/index.html.es
+%lang(fr) %{docroot}/index.html.fr
+%lang(he) %{docroot}/index.html.he.iso8859-8
+%lang(hu) %{docroot}/index.html.hu
+%lang(it) %{docroot}/index.html.it
+%lang(ja) %{docroot}/index.html.ja.jis
+%lang(ko) %{docroot}/index.html.kr.iso-kr
+%lang(de_LU) %{docroot}/index.html.lb.utf8
+%lang(nl) %{docroot}/index.html.nl
+%lang(nn) %{docroot}/index.html.nn
+%lang(nb) %{docroot}/index.html.no
+%lang(pl) %{docroot}/index.html.po.iso-pl
+%lang(pt) %{docroot}/index.html.pt
+%lang(pt_BR) %{docroot}/index.html.pt-br
+%lang(ru) %{docroot}/index.html.ru.cp-1251
+%lang(ru) %{docroot}/index.html.ru.cp866
+%lang(ru) %{docroot}/index.html.ru.iso-ru
+%lang(ru) %{docroot}/index.html.ru.koi8-r
+%lang(ru) %{docroot}/index.html.ru.ucs2
+%lang(ru) %{docroot}/index.html.ru.ucs4
+%lang(ru) %{docroot}/index.html.ru.utf8
+%lang(sv) %{docroot}/index.html.se
+%lang(zh_TW) %{docroot}/index.html.zh-tw.big5
+%{docroot}/*.gif
+
+%files manual
 %defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_manual.conf
 %dir %{manualdir}
 %dir %{manualdir}/images
 %{manualdir}/images/apache_header.gif
@@ -2240,7 +2268,11 @@ fi
 %files errordocs
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_errordocs.conf
-%{_datadir}/%{name}/errordocs
+%dir %{errordir}
+%{errordir}/HEADER.shtml
+%{errordir}/FOOT.shtml
+%{errordir}/*.shtml.en
+%lang(pl) %{errordir}/*.shtml.po
 
 %files suexec
 %defattr(644,root,root,755)
@@ -2305,7 +2337,6 @@ fi
 %defattr(644,root,root,755)
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_autoindex.conf
 %attr(755,root,root) %{_libexecdir}/mod_autoindex.so
-%{_datadir}/apache-icons/*.gif
 
 %files mod_cern_meta
 %defattr(644,root,root,755)
This page took 0.062092 seconds and 4 git commands to generate.