pyzor/pyzor.spec

Fri, 15 Oct 2010 18:46:25 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 15 Oct 2010 18:46:25 +0200
changeset 261
4f973c756446
parent 208
251f4db26a3f
child 387
33ae2d61c751
permissions
-rw-r--r--

Update copyright, file server URL, modify doc and link logic.
Now documentation is installed by default to the correct path,
and QtCreator links against Qt shared libraries instead of Qt
static libraries. This unfortunate change supports Nokia's
unfortunate decision to poorly support static linking in Qt.

michael@207 1 ##
michael@207 2 ## pyzor.spec -- OpenPKG RPM Specification
michael@207 3 ## Copyright (c) 2009 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@207 31 Distribution: Michael Schloh von Bennewitz
michael@207 32 Class: EVAL
michael@207 33 Group: Mail
michael@207 34 License: GPL
michael@207 35 Version: 0.5.0
michael@207 36 Release: 20090722
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@207 42 Prefix: %{l_prefix}
michael@207 43 BuildRoot: %{l_buildroot}
michael@207 44 BuildPreReq: OpenPKG, openpkg >= 20040130, python
michael@207 45 PreReq: OpenPKG, openpkg >= 20040130, python
michael@207 46 AutoReq: no
michael@207 47 AutoReqProv: no
michael@207 48
michael@207 49 %description
michael@207 50 Pyzor is a UCE-blocking networked system that uses signatures
michael@207 51 to identify unsolicited commercial email (UCE.)
michael@207 52
michael@207 53 %track
michael@207 54 prog pyzor = {
michael@207 55 version = %{version}
michael@207 56 url = http://prdownloads.sourceforge.net/pyzor/
michael@207 57 regex = pyzor-(__VER__)\.tar\.gz
michael@207 58 }
michael@207 59
michael@207 60 %prep
michael@207 61 # unpack sources
michael@207 62 %setup -q
michael@207 63
michael@207 64 # correct build configuration
michael@207 65 %{l_shtool} subst \
michael@207 66 -e 's;share/doc/pyzor;share/pyzor/doc;g' \
michael@207 67 setup.py
michael@207 68
michael@207 69 %build
michael@207 70
michael@207 71 %install
michael@207 72 # remove previously existing installations
michael@207 73 rm -rf $RPM_BUILD_ROOT
michael@207 74
michael@207 75 # run the native installation logic
michael@207 76 %{l_prefix}/bin/python \
michael@207 77 setup.py install \
michael@207 78 --prefix=%{l_prefix} \
michael@207 79 --root=$RPM_BUILD_ROOT
michael@207 80
michael@209 81 # copy neglected manpages
michael@209 82 %{l_shtool} mkdir -f -p -m 755 \
michael@209 83 $RPM_BUILD_ROOT%{l_prefix}/man/man1
michael@209 84 %{l_shtool} install -c -m 644 \
michael@209 85 docs/pyzor.1 \
michael@209 86 docs/pyzord.1 \
michael@209 87 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
michael@209 88
michael@207 89 # determine installation files
michael@209 90 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@209 91 #'%doc %{l_prefix}/share/pyzor/doc/*'
michael@207 92
michael@207 93 %files -f files
michael@207 94
michael@207 95 %clean
michael@207 96 rm -rf $RPM_BUILD_ROOT
michael@207 97

mercurial