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