]> git.pld-linux.org Git - packages/apache1-mod_frontpage.git/blob - apache1-mod_frontpage.spec
- pl description, cosmetics, removed grep from Prereq (not used)
[packages/apache1-mod_frontpage.git] / apache1-mod_frontpage.spec
1 %define         mod_name        frontpage
2 %define         arname          mod_%{mod_name}
3 %define         apxs            /usr/sbin/apxs
4
5 Summary:        The improved mod_frontpage module for the Apache Web server
6 Summary(pl):    Ulepszony modu³ mod_frontpage dla serwera Apache
7 Name:           apache-mod_%{mod_name}
8 Version:        1.6.1
9 Release:        0.1
10 License:        Apache License
11 Group:          Networking/Daemons
12 #Source0: http://home.edo.uni-dortmund.de/~chripo/download/%{name}-%{version}mdk-1.3.19.tar.bz2
13 #The patch is now maintained by FreeBSD
14 Source0:        http://people.freebsd.org/~mbr/distfiles/mod_frontpage-%{version}.tar.bz2
15 Patch0:         %{arname}-PLD.patch
16 Patch1:         %{arname}-Makefile.patch
17 Patch2:         %{arname}-fpexec-PLD.patch
18 URL:            http://home.edo.uni-dortmund.de/~chripo/
19 Prereq:         apache(EAPI)  >= 1.3.23
20 Prereq:         %{_sbindir}/apxs
21 Requires:       apache
22 BuildRequires:  apache(EAPI)-devel >= 1.3.23
23 BuildRequires:  perl
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR)
27 %define         _sysconfdir     /etc/httpd
28
29 %description
30 This is a module for the Apache HTTP Server
31 <http://www.apache.org/httpd.html>. It replaces the Apache-FP patches
32 and module supplied with the FrontPage Server Extensions available
33 from Microsoft <http://www.microsoft.com/> and Ready-to-Run Software
34 <http://www.rtr.com/fpsupport/>.
35
36 Using this module allows you to use advanced features of the FrontPage
37 client with your Apache HTTP Server (e.g. creating FrontPage-extended
38 subwebs using the FrontPage client in contrast to creating them as
39 user "root" with "fpinstall.sh" or the "fpsrvadm.exe"-utility on the
40 system's shell).
41
42 %description -l pl
43 To jest modu³ dla serwera HTTP Apache. Zastêpuje ³aty Apache-FP oraz
44 modu³ dodawany do FrontPage Server Extensions dostêpnych od Microsoftu
45 i Ready-to-Run Software (<http://www.rtr.com/fpsupport/>).
46
47 U¿ycie tego modu³u pozwala na u¿ywanie zaawansowanych mo¿liwo¶ci
48 klienta FrontPage z serwerem Apache (np. tworzenie podstron z
49 rozszerzeniami FrontPage przy u¿yciu klienta FrontPage zamiast przez
50 uruchamiania fpinstall.sh lub fpsrvadm.exe z pow³oki systemowej).
51
52 %prep
53 %setup -q -n %{arname}-%{version}
54 %patch -p0
55 %patch1 -p0
56 %patch2 -p0
57
58 %build
59 perl Makefile.PL
60 %{__make} CFLAGS="%{rpmcflags} -DLINUX=22 -DINET6 -Dss_family=__ss_family -Dss_len=__ss_len -DDEV_RANDOM=/dev/random -DEAPI -DEAPI_MM"
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sbindir}}
65 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
66 install fp{exec,static} $RPM_BUILD_ROOT%{_sbindir}
67
68 gzip -9nf {CHANGES,FEATURES,INSTALL,LICENSE,README}
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post
74 %{_sbindir}/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
75 if [ -f /var/lock/subsys/httpd ]; then
76         /etc/rc.d/init.d/httpd restart 1>&2
77 fi
78
79 %preun
80 if [ "$1" = "0" ]; then
81         %{_sbindir}/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
82         if [ -f /var/lock/subsys/httpd ]; then
83                 /etc/rc.d/init.d/httpd restart 1>&2
84         fi
85 fi
86
87 %files
88 %defattr(644,root,root,755)
89 %doc *.gz
90 %attr(755,root,root) %{_pkglibdir}/*
91 %attr(4750,root,root) %{_sbindir}/fpexec
92 %attr(755,root,root) %{_sbindir}/fpstatic
This page took 0.063768 seconds and 4 git commands to generate.