]> git.pld-linux.org Git - packages/apache1-mod_frontpage.git/blob - apache1-mod_frontpage.spec
- confdir enabled apache1
[packages/apache1-mod_frontpage.git] / apache1-mod_frontpage.spec
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):    Ulepszony modu³ mod_frontpage dla serwera Apache
5 Name:           apache1-mod_%{mod_name}
6 Version:        1.6.2
7 Release:        1.3
8 License:        Apache
9 Group:          Networking/Daemons
10 Source0:        http://dl.sourceforge.net/mirfak/mod_%{mod_name}_mirfak-%{version}.tar.bz2
11 # Source0-md5:  f7480918382067ce16e7afc40a633be4
12 Source1:        %{name}.pl
13 Patch0:         %{name}-mirfak.patch
14 URL:            http://mirfak.sourceforge.net/
15 BuildRequires:  apache1-devel >= 1.3.33-2
16 BuildRequires:  %{__perl}
17 Requires:               apache1 >= 1.3.33-2
18 Requires(triggerpostun):        %{apxs}
19 Obsoletes:      apache-mod_%{mod_name} <= %{version}
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
23 %define         _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
24
25 %description
26 This is a module for the Apache HTTP Server
27 <http://httpd.apache.org/>. It replaces the Apache-FP patches
28 and module supplied with the FrontPage Server Extensions available
29 from Microsoft <http://www.microsoft.com/> and Ready-to-Run Software
30 <http://www.rtr.com/fpsupport/>.
31
32 Using this module allows you to use advanced features of the FrontPage
33 client with your Apache HTTP Server (e.g. creating FrontPage-extended
34 subwebs using the FrontPage client in contrast to creating them as
35 user "root" with "fpinstall.sh" or the "fpsrvadm.exe"-utility on the
36 system's shell).
37
38 %description -l pl
39 To jest modu³ dla serwera HTTP Apache. Zastêpuje ³aty Apache-FP oraz
40 modu³ dodawany do FrontPage Server Extensions dostêpnych od Microsoftu
41 i Ready-to-Run Software (<http://www.rtr.com/fpsupport/>).
42
43 U¿ycie tego modu³u pozwala na u¿ywanie zaawansowanych mo¿liwo¶ci
44 klienta FrontPage z serwerem Apache (np. tworzenie podstron z
45 rozszerzeniami FrontPage przy u¿yciu klienta FrontPage zamiast przez
46 uruchamiania fpinstall.sh lub fpsrvadm.exe z pow³oki systemowej).
47
48 %prep
49 %setup -q -n mod_%{mod_name}_mirfak-%{version}
50 %patch0 -p1
51
52 %build
53 %{__perl} %{SOURCE1}
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d,%{_sbindir}}
59
60 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
61 install fp{exec,static} $RPM_BUILD_ROOT%{_sbindir}
62
63 echo 'LoadModule %{mod_name}_module     modules/mod_%{mod_name}.so' > \
64         $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post
70 if [ -f /var/lock/subsys/apache ]; then
71         /etc/rc.d/init.d/apache restart 1>&2
72 fi
73
74 %preun
75 if [ "$1" = "0" ]; then
76         if [ -f /var/lock/subsys/apache ]; then
77                 /etc/rc.d/init.d/apache restart 1>&2
78         fi
79 fi
80
81 %triggerpostun -- apache1-mod_%{mod_name} < 1.6.2-1.1
82 # check that they're not using old apache.conf
83 if grep -q '^Include conf\.d' /etc/apache/apache.conf; then
84         %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
85 fi
86
87 %files
88 %defattr(644,root,root,755)
89 %doc *.html CHANGES FEATURES README
90 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
91 %attr(755,root,root) %{_pkglibdir}/*
92 %attr(4750,root,root) %{_sbindir}/fpexec
93 %attr(755,root,root) %{_sbindir}/fpstatic
This page took 0.07114 seconds and 4 git commands to generate.