webalizer/webalizer.spec

Thu, 02 Apr 2009 14:01:28 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 02 Apr 2009 14:01:28 +0200
changeset 130
a92d68ac1ca3
parent 124
e6362b30494e
child 132
648dc0227614
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

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

mercurial