|
1 ## |
|
2 ## webalizer.spec -- OpenPKG RPM Package Specification |
|
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> |
|
4 ## |
|
5 ## Permission to use, copy, modify, and distribute this software for |
|
6 ## any purpose with or without fee is hereby granted, provided that |
|
7 ## the above copyright notice and this permission notice appear in all |
|
8 ## copies. |
|
9 ## |
|
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
|
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
|
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
|
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
21 ## SUCH DAMAGE. |
|
22 ## |
|
23 |
|
24 # package version |
|
25 %define V_real 2.20-03 |
|
26 %define V_here 2.20.03 |
|
27 |
|
28 # package information |
|
29 Name: webalizer |
|
30 Summary: Graphical Web Statistics Program |
|
31 URL: http://www.mrunix.net/webalizer/ |
|
32 Vendor: Bradford L. Barrett |
|
33 Packager: OpenPKG Foundation e.V. |
|
34 Distribution: OpenPKG Community |
|
35 Class: PLUS |
|
36 Group: Logfile |
|
37 License: GPL |
|
38 Version: %{V_here} |
|
39 Release: 20081215 |
|
40 |
|
41 # package options |
|
42 %option with_dns no |
|
43 |
|
44 # list of sources |
|
45 Source0: ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz |
|
46 |
|
47 # build information |
|
48 Prefix: %{l_prefix} |
|
49 BuildRoot: %{l_buildroot} |
|
50 BuildPreReq: OpenPKG, openpkg >= 20040130 |
|
51 PreReq: OpenPKG, openpkg >= 20040130 |
|
52 BuildPreReq: gd, png, zlib, bzip2, db >= 4.1.24 |
|
53 PreReq: gd, png, zlib, bzip2, db >= 4.1.24 |
|
54 %if "%{with_dns}" == "yes" |
|
55 BuildPreReq: db::with_compat = yes |
|
56 PreReq: db::with_compat = yes |
|
57 %endif |
|
58 AutoReq: no |
|
59 AutoReqProv: no |
|
60 |
|
61 %description |
|
62 The Webalizer is a fast, free web server log file analysis program. |
|
63 It produces highly detailed, easily configurable usage reports in |
|
64 HTML format, for viewing with a standard web browser. |
|
65 |
|
66 %track |
|
67 prog webalizer = { |
|
68 version = %{V_real} |
|
69 url = ftp://ftp.mrunix.net/pub/webalizer/ |
|
70 regex = webalizer-(__VER__)-src\.tgz |
|
71 } |
|
72 |
|
73 %prep |
|
74 %setup -q -n webalizer-%{V_real} |
|
75 |
|
76 %build |
|
77 CC="%{l_cc}" \ |
|
78 CFLAGS="%{l_cflags -O}" \ |
|
79 CPPFLAGS="%{l_cppflags} -DHAVE_DB_185_H" \ |
|
80 ./configure \ |
|
81 --prefix=%{l_prefix} \ |
|
82 %if "%{with_dns}" == "yes" |
|
83 --enable-dns \ |
|
84 %endif |
|
85 --enable-bz2 \ |
|
86 --with-bz2lib=%{l_prefix}/lib \ |
|
87 --with-bz2=%{l_prefix}/include \ |
|
88 --with-etcdir=%{l_prefix}/etc/webalizer \ |
|
89 --with-gdlib=%{l_prefix}/lib \ |
|
90 --with-gd=%{l_prefix}/include \ |
|
91 --with-z-inc=%{l_prefix}/include \ |
|
92 --with-zlib=%{l_prefix}/lib \ |
|
93 --with-png-inc=%{l_prefix}/include \ |
|
94 --with-png=%{l_prefix}/lib \ |
|
95 --with-db=%{l_prefix}/include \ |
|
96 --with-dblib=%{l_prefix}/lib |
|
97 %{l_make} %{l_mflags -O} |
|
98 |
|
99 %install |
|
100 rm -rf $RPM_BUILD_ROOT |
|
101 %{l_shtool} mkdir -f -p -m 755 \ |
|
102 $RPM_BUILD_ROOT%{l_prefix}/bin \ |
|
103 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ |
|
104 $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer |
|
105 %{l_shtool} install -c -s -m 755 \ |
|
106 webalizer $RPM_BUILD_ROOT%{l_prefix}/bin/ |
|
107 %{l_shtool} install -c -m 644 \ |
|
108 webalizer.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ |
|
109 %{l_shtool} install -c -m 644 \ |
|
110 sample.conf $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer/webalizer.conf |
|
111 ln $RPM_BUILD_ROOT%{l_prefix}/bin/webalizer \ |
|
112 $RPM_BUILD_ROOT%{l_prefix}/bin/webazolver |
|
113 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
114 |
|
115 %files -f files |
|
116 |
|
117 %clean |
|
118 rm -rf $RPM_BUILD_ROOT |
|
119 |