webalizer/webalizer.spec

Tue, 14 Apr 2009 13:13:43 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 14 Apr 2009 13:13:43 +0200
changeset 156
3831ba5c7ba7
parent 154
dfe80a536491
child 175
66c4ec7f657e
permissions
-rw-r--r--

Correct misaligned image and table in main output page.

     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 ##
    24 #   package version
    25 %define       V_real  2.21-02
    26 %define       V_here  2.21.02
    27 %define       V_geodb 20090401
    29 #   package information
    30 Name:         webalizer
    31 Summary:      Graphical Web Statistics Program
    32 URL:          http://www.mrunix.net/webalizer/
    33 Vendor:       Bradford L. Barrett
    34 Packager:     OpenPKG Foundation e.V.
    35 Distribution: OpenPKG Community
    36 Class:        PLUS
    37 Group:        Logfile
    38 License:      GPL
    39 Version:      %{V_here}
    40 Release:      20090414
    42 #   package options
    43 %option       with_dns    no
    44 %option       with_geoip  no
    45 %option       with_gwidth 512
    47 #   list of sources
    48 Source0:      ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz
    49 Source1:      ftp://ftp.mrunix.net/pub/webalizer/geodb/webalizer-geodb-%{V_geodb}.tgz
    50 Source2:      ftp://ftp.mrunix.net/pub/webalizer/webalizer-flags.tgz
    51 Source3:      rc.webalizer
    52 Patch0:       webalizer.patch
    54 #   build information
    55 Prefix:       %{l_prefix}
    56 BuildRoot:    %{l_buildroot}
    57 BuildPreReq:  OpenPKG, openpkg >= 20040130
    58 PreReq:       OpenPKG, openpkg >= 20040130
    59 BuildPreReq:  gd, png, zlib, bzip2, db >= 4.1.24
    60 PreReq:       gd, png, zlib, bzip2, db >= 4.1.24
    61 %if "%{with_dns}" == "yes"
    62 BuildPreReq:  db::with_compat = yes
    63 PreReq:       db::with_compat = yes
    64 %endif
    65 %if "%{with_geoip}" == "yes"
    66 BuildPreReq:  geoip
    67 PreReq:       geoip
    68 %endif
    69 AutoReq:      no
    70 AutoReqProv:  no
    72 %description
    73     The Webalizer is a fast, free web server log file analysis program.
    74     It produces highly detailed, easily configurable usage reports in
    75     HTML format, for viewing with a standard web browser.
    77 %track
    78     prog webalizer = {
    79         version   = %{V_real}
    80         url       = ftp://ftp.mrunix.net/pub/webalizer/
    81         regex     = webalizer-(__VER__)-src\.tgz
    82     }
    84 %prep
    85     %setup -q -n webalizer-%{V_real}
    86     ( cd webalizer-%{V_real}
    87       %{l_gzip} -d -c %{SOURCE1} | %{l_tar} xf -
    88       %{l_gzip} -d -c %{SOURCE2} | %{l_tar} xf -
    89     ) || exit $?
    90     %patch -p0
    91     %{l_shtool} subst \
    92         -e "s;@l_gwidth@;%{with_gwidth};g" \
    93         graphs.c \
    94         output.c
    96 %build
    97     CC="%{l_cc}" \
    98     CFLAGS="%{l_cflags -O}" \
    99     CPPFLAGS="%{l_cppflags} -DHAVE_DB_185_H" \
   100     GREP="grep" \
   101     ./configure \
   102         --prefix=%{l_prefix} \
   103         --sysconfdir=%{l_prefix}/etc/%{name} \
   104         --with-geodb=%{l_prefix}/var/%{name} \
   105 %if "%{with_dns}" == "yes"
   106         --enable-dns \
   107 %endif
   108 %if "%{with_geoip}" == "yes"
   109         --enable-geoip \
   110 %endif
   111         --enable-bz2 \
   112         --with-bz2lib=%{l_prefix}/lib \
   113         --with-bz2=%{l_prefix}/include \
   114         --with-etcdir=%{l_prefix}/etc/webalizer \
   115         --with-gdlib=%{l_prefix}/lib \
   116         --with-gd=%{l_prefix}/include \
   117         --with-z-inc=%{l_prefix}/include \
   118         --with-zlib=%{l_prefix}/lib \
   119         --with-png-inc=%{l_prefix}/include \
   120         --with-png=%{l_prefix}/lib \
   121         --with-db=%{l_prefix}/include \
   122         --with-dblib=%{l_prefix}/lib
   123     %{l_make} %{l_mflags -O}
   125 %install
   126     rm -rf $RPM_BUILD_ROOT
   127     %{l_shtool} mkdir -f -p -m 755 \
   128         $RPM_BUILD_ROOT%{l_prefix}/bin \
   129         $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
   130         $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
   131         $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer \
   132         $RPM_BUILD_ROOT%{l_prefix}/share/webalizer \
   133         $RPM_BUILD_ROOT%{l_prefix}/var/webalizer \
   134         $RPM_BUILD_ROOT%{l_prefix}/web/webalizer
   135     %{l_shtool} install -c -s -m 755 \
   136         webalizer $RPM_BUILD_ROOT%{l_prefix}/bin/
   137     %{l_shtool} install -c -m 644 \
   138         webalizer.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
   139     %{l_shtool} install -c -m 644 \
   140         sample.conf $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer/webalizer.conf
   141     %{l_shtool} install -c -m 644 \
   142         GeoDB.dat $RPM_BUILD_ROOT%{l_prefix}/var/webalizer/
   143     mv flags $RPM_BUILD_ROOT%{l_prefix}/share/webalizer/
   144     ln $RPM_BUILD_ROOT%{l_prefix}/bin/webalizer \
   145        $RPM_BUILD_ROOT%{l_prefix}/bin/webazolver
   146     %{l_shtool} install -c -m 755 %{l_value -s -a} \
   147         %{SOURCE rc.webalizer} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
   148     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
   149         %{l_files_std} \
   150         '%config %{l_prefix}/etc/webalizer/*'
   152 %files -f files
   154 %clean
   155     rm -rf $RPM_BUILD_ROOT

mercurial