1 %define mod_name frontpage
2 %define apxs /usr/sbin/apxs1
3 Summary: The improved mod_frontpage module for the Apache Web server
4 Summary(pl.UTF-8): Ulepszony moduł mod_frontpage dla serwera Apache
5 Name: apache1-mod_%{mod_name}
9 Group: Networking/Daemons
10 Source0: http://dl.sourceforge.net/mirfak/mod_%{mod_name}_mirfak-%{version}.tar.bz2
11 # Source0-md5: f7480918382067ce16e7afc40a633be4
13 Patch0: %{name}-mirfak.patch
14 URL: http://mirfak.sourceforge.net/
15 BuildRequires: %{__perl}
16 BuildRequires: apache1-devel >= 1.3.39
17 BuildRequires: rpmbuild(macros) >= 1.268
18 Requires(triggerpostun): %{apxs}
19 Requires: apache1(EAPI)
20 Obsoletes: apache-mod_frontpage <= 1.6.2
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
24 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
27 This is a module for the Apache HTTP Server
28 <http://httpd.apache.org/>. It replaces the Apache-FP patches and
29 module supplied with the FrontPage Server Extensions available from
30 Microsoft <http://www.microsoft.com/> and Ready-to-Run Software
31 <http://www.rtr.com/fpsupport/>.
33 Using this module allows you to use advanced features of the FrontPage
34 client with your Apache HTTP Server (e.g. creating FrontPage-extended
35 subwebs using the FrontPage client in contrast to creating them as
36 user "root" with "fpinstall.sh" or the "fpsrvadm.exe"-utility on the
39 %description -l pl.UTF-8
40 To jest moduł dla serwera HTTP Apache. Zastępuje łaty Apache-FP oraz
41 moduł dodawany do FrontPage Server Extensions dostępnych od Microsoftu
42 i Ready-to-Run Software (<http://www.rtr.com/fpsupport/>).
44 Użycie tego modułu pozwala na używanie zaawansowanych możliwości
45 klienta FrontPage z serwerem Apache (np. tworzenie podstron z
46 rozszerzeniami FrontPage przy użyciu klienta FrontPage zamiast przez
47 uruchamiania fpinstall.sh lub fpsrvadm.exe z powłoki systemowej).
50 %setup -q -n mod_%{mod_name}_mirfak-%{version}
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d,%{_sbindir}}
61 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
62 install fp{exec,static} $RPM_BUILD_ROOT%{_sbindir}
64 echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
65 $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
68 rm -rf $RPM_BUILD_ROOT
71 %service -q apache restart
74 if [ "$1" = "0" ]; then
75 %service -q apache restart
78 %triggerpostun -- apache1-mod_%{mod_name} < 1.6.2-1.1
79 # check that they're not using old apache.conf
80 if grep -q '^Include conf\.d' /etc/apache/apache.conf; then
81 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
85 %defattr(644,root,root,755)
86 %doc *.html CHANGES FEATURES README
87 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
88 %attr(755,root,root) %{_pkglibdir}/*
89 %attr(4750,root,root) %{_sbindir}/fpexec
90 %attr(755,root,root) %{_sbindir}/fpstatic