dspam/dspam.spec

Mon, 17 Sep 2012 19:10:10 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 17 Sep 2012 19:10:10 +0200
changeset 689
9fe04d4d4e5a
parent 543
5e1f47ec716e
permissions
-rw-r--r--

Update to new version of vendor software although Oracle fails to deliver.
More specifically, newer db(3) patch revisions exist but Oracle has
removed them from the canonical download server URI for Berkely DB.

michael@543 1 ##
michael@543 2 ## dspam.spec -- OpenPKG RPM Package Specification
michael@543 3 ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@543 4 ##
michael@543 5 ## Permission to use, copy, modify, and distribute this software for
michael@543 6 ## any purpose with or without fee is hereby granted, provided that
michael@543 7 ## the above copyright notice and this permission notice appear in all
michael@543 8 ## copies.
michael@543 9 ##
michael@543 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@543 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@543 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@543 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@543 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@543 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@543 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@543 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@543 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@543 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@543 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@543 21 ## SUCH DAMAGE.
michael@543 22 ##
michael@543 23
michael@543 24 # package version
michael@543 25 %define V_opkg 3.10.2
michael@543 26 %define V_dist 3.10.2
michael@543 27
michael@543 28 # package information
michael@543 29 Name: dspam
michael@543 30 Summary: Statistical Anti-Spam Filter
michael@543 31 URL: http://dspam.sourceforge.net/
michael@543 32 Vendor: Jonathan A. Zdziarski
michael@543 33 Packager: OpenPKG Foundation e.V.
michael@543 34 Distribution: OpenPKG Community
michael@543 35 Class: BASE
michael@543 36 Group: Mail
michael@543 37 License: GPL
michael@543 38 Version: %{V_opkg}
michael@544 39 Release: 20120800
michael@543 40
michael@543 41 # list of sources
michael@543 42 Source0: http://switch.dl.sourceforge.net/dspam/dspam-%{V_dist}.tar.gz
michael@543 43
michael@543 44 # build information
michael@543 45 BuildPreReq: OpenPKG, openpkg >= 20100101, pkgconfig
michael@543 46 PreReq: OpenPKG, openpkg >= 20100101
michael@543 47 BuildPreReq: sqlite
michael@543 48 PreReq: sqlite
michael@543 49
michael@543 50 %description
michael@543 51 DSPAM (as in De-Spam) is an extremely scalable, open-source
michael@543 52 statistical anti-spam filter. While most commercial solutions only
michael@543 53 claim a mere 95% accuracy (1 error in 20), a majority of DSPAM users
michael@543 54 frequently see around 99.95% (1 error in 2000) and can sometimes
michael@543 55 reach peaks as high as 99.991% (2 errors in 22,786). DSPAM presently
michael@543 56 functions as both a server-side agent for UNIX email servers and a
michael@543 57 developer's library for mail clients, other anti-spam tools, and
michael@543 58 similar projects requiring drop-in spam filtering. DSPAM has been
michael@543 59 implemented on many large and small scale systems.
michael@543 60
michael@543 61 %track
michael@543 62 prog dspam = {
michael@543 63 version = %{version}
michael@543 64 url = http://sourceforge.net/projects/dspam/files/
michael@543 65 regex = dspam-(\d+\.\d+\.\d+)\.tar\.gz
michael@543 66 }
michael@543 67
michael@543 68 %prep
michael@543 69 %setup -q -n dspam-%{V_dist}
michael@543 70
michael@543 71 %build
michael@543 72 CC="%{l_cc}" \
michael@543 73 CFLAGS="%{l_cflags -O} `pkg-config sqlite3 --cflags-only-other`" \
michael@543 74 CPPFLAGS="%{l_cppflags} `pkg-config sqlite3 --cflags-only-I`" \
michael@543 75 LDFLAGS="%{l_ldflags} `pkg-config sqlite3 --libs-only-other`" \
michael@543 76 LIBS="`pkg-config sqlite3 --libs-only-l`" \
michael@543 77 ./configure \
michael@543 78 --prefix=%{l_prefix} \
michael@543 79 --sysconfdir=%{l_prefix}/etc/dspam \
michael@543 80 --with-dspam-home=%{l_prefix}/share/dspam \
michael@543 81 --with-dspam-home-mode=755 \
michael@543 82 --with-dspam-home-owner="`%{l_shtool} echo -e %u`" \
michael@543 83 --with-dspam-home-group="`%{l_shtool} echo -e %g`" \
michael@543 84 --with-dspam-mode=755 \
michael@543 85 --with-dspam-owner="`%{l_shtool} echo -e %u`" \
michael@543 86 --with-dspam-group="`%{l_shtool} echo -e %g`" \
michael@543 87 --with-logdir=%{l_prefix}/var/dspam \
michael@543 88 --with-storage-driver="sqlite3_drv" \
michael@543 89 --with-sqlite-includes=%{l_prefix}/include \
michael@543 90 --with-sqlite-libraries=%{l_prefix}/lib \
michael@543 91 --disable-homedir \
michael@543 92 --disable-shared \
michael@543 93 --enable-warnings=no
michael@544 94 %{l_make} %{l_mflags}
michael@543 95
michael@543 96 %install
michael@543 97 %{l_shtool} mkdir -f -p -m 755 \
michael@543 98 $RPM_BUILD_ROOT%{l_prefix}/man/man3 \
michael@543 99 $RPM_BUILD_ROOT%{l_prefix}/var/dspam
michael@543 100 %{l_shtool} subst -e 's;ln -s ;ln $(DESTDIR);g' Makefile
michael@544 101 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
michael@543 102 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
michael@543 103 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
michael@543 104 %{l_files_std} \
michael@543 105 '%config %{l_prefix}/etc/dspam/dspam.conf'
michael@543 106
michael@543 107 %files -f files
michael@543 108
michael@543 109 %clean
michael@543 110

mercurial