20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
21 ## SUCH DAMAGE. |
21 ## SUCH DAMAGE. |
22 ## |
22 ## |
23 |
23 |
24 # package version |
24 # package version |
25 %define V_real 2.21-02 |
25 %define V_real 2.23-05 |
26 %define V_here 2.21.02 |
26 %define V_here 2.23.05 |
27 %define V_geodb 20090401 |
27 %define V_geodb 20120801 |
28 |
28 |
29 # package information |
29 # package information |
30 Name: webalizer |
30 Name: webalizer |
31 Summary: Graphical Web Statistics Program |
31 Summary: Graphical Web Statistics Program |
32 URL: http://www.mrunix.net/webalizer/ |
32 URL: http://www.mrunix.net/webalizer/ |
51 Source3: webgraphicon.png |
51 Source3: webgraphicon.png |
52 Source4: rc.webalizer |
52 Source4: rc.webalizer |
53 Patch0: webalizer.patch |
53 Patch0: webalizer.patch |
54 |
54 |
55 # build information |
55 # build information |
56 Prefix: %{l_prefix} |
56 BuildPreReq: OpenPKG, openpkg >= 20100101 |
57 BuildRoot: %{l_buildroot} |
57 PreReq: OpenPKG, openpkg >= 20100101 |
58 BuildPreReq: OpenPKG, openpkg >= 20040130 |
58 BuildPreReq: gd, png, zlib, bzip2, db >= 4.1.24, pkgconfig |
59 PreReq: OpenPKG, openpkg >= 20040130 |
|
60 BuildPreReq: gd, png, zlib, bzip2, db >= 4.1.24 |
|
61 PreReq: gd, png, zlib, bzip2, db >= 4.1.24 |
59 PreReq: gd, png, zlib, bzip2, db >= 4.1.24 |
62 %if "%{with_dns}" == "yes" |
60 %if "%{with_dns}" == "yes" |
63 BuildPreReq: db::with_compat = yes |
61 BuildPreReq: db::with_compat = yes |
64 PreReq: db::with_compat = yes |
62 PreReq: db::with_compat = yes |
65 %endif |
63 %endif |
66 %if "%{with_geoip}" == "yes" |
64 %if "%{with_geoip}" == "yes" |
67 BuildPreReq: geoip |
65 BuildPreReq: geoip |
68 PreReq: geoip |
66 PreReq: geoip |
69 %endif |
67 %endif |
70 AutoReq: no |
|
71 AutoReqProv: no |
|
72 |
68 |
73 %description |
69 %description |
74 The Webalizer is a fast, free web server log file analysis program. |
70 The Webalizer is a fast, free web server log file analysis program. |
75 It produces highly detailed, easily configurable usage reports in |
71 It produces highly detailed, easily configurable usage reports in |
76 HTML format, for viewing with a standard web browser. |
72 HTML format, for viewing with a standard web browser. |
91 %patch -p0 |
87 %patch -p0 |
92 %{l_shtool} subst \ |
88 %{l_shtool} subst \ |
93 -e "s;@l_gwidth@;%{with_gwidth};g" \ |
89 -e "s;@l_gwidth@;%{with_gwidth};g" \ |
94 graphs.c \ |
90 graphs.c \ |
95 output.c |
91 output.c |
|
92 %{l_shtool} subst \ |
|
93 -e 's;u_int64_t;uint64_t;g' \ |
|
94 *.c *.h configure |
|
95 %{l_shtool} subst \ |
|
96 -e "s;\(\${LIBS}\);\1 `%{l_prefix}/bin/pkg-config --libs-only-l db`;g" \ |
|
97 -e "s;\(\${WCMGR_LIBS}\);\1 `%{l_prefix}/bin/pkg-config --libs-only-l db`;g" \ |
|
98 Makefile.in |
96 |
99 |
97 %build |
100 %build |
98 CC="%{l_cc}" \ |
101 CC="%{l_cc}" \ |
99 CFLAGS="%{l_cflags -O}" \ |
102 CFLAGS="%{l_cflags -O}" \ |
100 CPPFLAGS="%{l_cppflags} -DHAVE_DB_185_H" \ |
103 CPPFLAGS="%{l_cppflags} -DHAVE_DB_185_H" \ |
122 --with-db=%{l_prefix}/include \ |
125 --with-db=%{l_prefix}/include \ |
123 --with-dblib=%{l_prefix}/lib |
126 --with-dblib=%{l_prefix}/lib |
124 %{l_make} %{l_mflags -O} |
127 %{l_make} %{l_mflags -O} |
125 |
128 |
126 %install |
129 %install |
127 rm -rf $RPM_BUILD_ROOT |
|
128 %{l_shtool} mkdir -f -p -m 755 \ |
130 %{l_shtool} mkdir -f -p -m 755 \ |
129 $RPM_BUILD_ROOT%{l_prefix}/bin \ |
131 $RPM_BUILD_ROOT%{l_prefix}/bin \ |
130 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ |
132 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ |
131 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ |
133 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ |
132 $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer \ |
134 $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer \ |