Import package vendor original specs for necessary manipulations.

Wed, 01 Apr 2009 16:30:59 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 01 Apr 2009 16:30:59 +0200
changeset 123
d578bc64f160
parent 122
d170463cc57b
child 124
e6362b30494e

Import package vendor original specs for necessary manipulations.

webalizer/webalizer.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/webalizer/webalizer.spec	Wed Apr 01 16:30:59 2009 +0200
     1.3 @@ -0,0 +1,119 @@
     1.4 +##
     1.5 +##  webalizer.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.7 +##
     1.8 +##  Permission to use, copy, modify, and distribute this software for
     1.9 +##  any purpose with or without fee is hereby granted, provided that
    1.10 +##  the above copyright notice and this permission notice appear in all
    1.11 +##  copies.
    1.12 +##
    1.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.24 +##  SUCH DAMAGE.
    1.25 +##
    1.26 +
    1.27 +#   package version
    1.28 +%define       V_real  2.20-03
    1.29 +%define       V_here  2.20.03
    1.30 +
    1.31 +#   package information
    1.32 +Name:         webalizer
    1.33 +Summary:      Graphical Web Statistics Program
    1.34 +URL:          http://www.mrunix.net/webalizer/
    1.35 +Vendor:       Bradford L. Barrett
    1.36 +Packager:     OpenPKG Foundation e.V.
    1.37 +Distribution: OpenPKG Community
    1.38 +Class:        PLUS
    1.39 +Group:        Logfile
    1.40 +License:      GPL
    1.41 +Version:      %{V_here}
    1.42 +Release:      20081215
    1.43 +
    1.44 +#   package options
    1.45 +%option       with_dns       no
    1.46 +
    1.47 +#   list of sources
    1.48 +Source0:      ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz
    1.49 +
    1.50 +#   build information
    1.51 +Prefix:       %{l_prefix}
    1.52 +BuildRoot:    %{l_buildroot}
    1.53 +BuildPreReq:  OpenPKG, openpkg >= 20040130
    1.54 +PreReq:       OpenPKG, openpkg >= 20040130
    1.55 +BuildPreReq:  gd, png, zlib, bzip2, db >= 4.1.24
    1.56 +PreReq:       gd, png, zlib, bzip2, db >= 4.1.24
    1.57 +%if "%{with_dns}" == "yes"
    1.58 +BuildPreReq:  db::with_compat = yes
    1.59 +PreReq:       db::with_compat = yes
    1.60 +%endif
    1.61 +AutoReq:      no
    1.62 +AutoReqProv:  no
    1.63 +
    1.64 +%description
    1.65 +    The Webalizer is a fast, free web server log file analysis program.
    1.66 +    It produces highly detailed, easily configurable usage reports in
    1.67 +    HTML format, for viewing with a standard web browser.
    1.68 +
    1.69 +%track
    1.70 +    prog webalizer = {
    1.71 +        version   = %{V_real}
    1.72 +        url       = ftp://ftp.mrunix.net/pub/webalizer/
    1.73 +        regex     = webalizer-(__VER__)-src\.tgz
    1.74 +    }
    1.75 +
    1.76 +%prep
    1.77 +    %setup -q -n webalizer-%{V_real}
    1.78 +
    1.79 +%build
    1.80 +    CC="%{l_cc}" \
    1.81 +    CFLAGS="%{l_cflags -O}" \
    1.82 +    CPPFLAGS="%{l_cppflags} -DHAVE_DB_185_H" \
    1.83 +    ./configure \
    1.84 +        --prefix=%{l_prefix} \
    1.85 +%if "%{with_dns}" == "yes"
    1.86 +        --enable-dns \
    1.87 +%endif
    1.88 +        --enable-bz2 \
    1.89 +        --with-bz2lib=%{l_prefix}/lib \
    1.90 +        --with-bz2=%{l_prefix}/include \
    1.91 +        --with-etcdir=%{l_prefix}/etc/webalizer \
    1.92 +        --with-gdlib=%{l_prefix}/lib \
    1.93 +        --with-gd=%{l_prefix}/include \
    1.94 +        --with-z-inc=%{l_prefix}/include \
    1.95 +        --with-zlib=%{l_prefix}/lib \
    1.96 +        --with-png-inc=%{l_prefix}/include \
    1.97 +        --with-png=%{l_prefix}/lib \
    1.98 +        --with-db=%{l_prefix}/include \
    1.99 +        --with-dblib=%{l_prefix}/lib
   1.100 +    %{l_make} %{l_mflags -O}
   1.101 +
   1.102 +%install
   1.103 +    rm -rf $RPM_BUILD_ROOT
   1.104 +    %{l_shtool} mkdir -f -p -m 755 \
   1.105 +        $RPM_BUILD_ROOT%{l_prefix}/bin \
   1.106 +        $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
   1.107 +        $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer
   1.108 +    %{l_shtool} install -c -s -m 755 \
   1.109 +        webalizer $RPM_BUILD_ROOT%{l_prefix}/bin/
   1.110 +    %{l_shtool} install -c -m 644 \
   1.111 +        webalizer.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
   1.112 +    %{l_shtool} install -c -m 644 \
   1.113 +        sample.conf $RPM_BUILD_ROOT%{l_prefix}/etc/webalizer/webalizer.conf
   1.114 +    ln $RPM_BUILD_ROOT%{l_prefix}/bin/webalizer \
   1.115 +       $RPM_BUILD_ROOT%{l_prefix}/bin/webazolver
   1.116 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   1.117 +
   1.118 +%files -f files
   1.119 +
   1.120 +%clean
   1.121 +    rm -rf $RPM_BUILD_ROOT
   1.122 +

mercurial