pyzor/pyzor.spec

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
parent 387
33ae2d61c751
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

michael@207 1 ##
michael@207 2 ## pyzor.spec -- OpenPKG RPM Specification
michael@567 3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
michael@207 4 ##
michael@207 5 ## Permission to use, copy, modify, and distribute this software for
michael@207 6 ## any purpose with or without fee is hereby granted, provided that
michael@207 7 ## the above copyright notice and this permission notice appear in all
michael@207 8 ## copies.
michael@207 9 ##
michael@207 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@207 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@207 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@207 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@207 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@207 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@207 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@207 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@207 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@207 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@207 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@207 21 ## SUCH DAMAGE.
michael@207 22 ##
michael@207 23
michael@207 24
michael@207 25 # package information
michael@207 26 Name: pyzor
michael@207 27 Summary: Networked UCE Signature Detection
michael@207 28 URL: http://pyzor.sourceforge.net/
michael@207 29 Vendor: Frank J. Tobin
michael@207 30 Packager: Michael Schloh von Bennewitz
michael@387 31 Distribution: Europalab Networks Production
michael@207 32 Class: EVAL
michael@207 33 Group: Mail
michael@207 34 License: GPL
michael@207 35 Version: 0.5.0
michael@567 36 Release: 20120800
michael@207 37
michael@207 38 # list of sources
michael@207 39 Source0: http://switch.dl.sourceforge.net/sourceforge/pyzor/pyzor-%{version}.tar.gz
michael@207 40
michael@207 41 # build information
michael@567 42 BuildPreReq: OpenPKG, openpkg >= 20100101, python
michael@567 43 PreReq: OpenPKG, openpkg >= 20100101, python
michael@207 44
michael@207 45 %description
michael@207 46 Pyzor is a UCE-blocking networked system that uses signatures
michael@207 47 to identify unsolicited commercial email (UCE.)
michael@207 48
michael@207 49 %track
michael@207 50 prog pyzor = {
michael@207 51 version = %{version}
michael@207 52 url = http://prdownloads.sourceforge.net/pyzor/
michael@207 53 regex = pyzor-(__VER__)\.tar\.gz
michael@207 54 }
michael@207 55
michael@207 56 %prep
michael@207 57 # unpack sources
michael@207 58 %setup -q
michael@207 59
michael@207 60 # correct build configuration
michael@207 61 %{l_shtool} subst \
michael@207 62 -e 's;share/doc/pyzor;share/pyzor/doc;g' \
michael@207 63 setup.py
michael@207 64
michael@207 65 %build
michael@207 66
michael@207 67 %install
michael@207 68 # run the native installation logic
michael@207 69 %{l_prefix}/bin/python \
michael@207 70 setup.py install \
michael@207 71 --prefix=%{l_prefix} \
michael@207 72 --root=$RPM_BUILD_ROOT
michael@207 73
michael@209 74 # copy neglected manpages
michael@209 75 %{l_shtool} mkdir -f -p -m 755 \
michael@209 76 $RPM_BUILD_ROOT%{l_prefix}/man/man1
michael@209 77 %{l_shtool} install -c -m 644 \
michael@209 78 docs/pyzor.1 \
michael@209 79 docs/pyzord.1 \
michael@209 80 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
michael@209 81
michael@207 82 # determine installation files
michael@209 83 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@209 84 #'%doc %{l_prefix}/share/pyzor/doc/*'
michael@207 85
michael@207 86 %files -f files
michael@207 87
michael@207 88 %clean
michael@207 89

mercurial