pyzor/pyzor.spec

changeset 771
7173ebcfc87e
parent 387
33ae2d61c751
equal deleted inserted replaced
3:16287d8786b7 4:950a2acfcc2f
1 ## 1 ##
2 ## pyzor.spec -- OpenPKG RPM Specification 2 ## pyzor.spec -- OpenPKG RPM Specification
3 ## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com> 3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
4 ## 4 ##
5 ## Permission to use, copy, modify, and distribute this software for 5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that 6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all 7 ## the above copyright notice and this permission notice appear in all
8 ## copies. 8 ## copies.
31 Distribution: Europalab Networks Production 31 Distribution: Europalab Networks Production
32 Class: EVAL 32 Class: EVAL
33 Group: Mail 33 Group: Mail
34 License: GPL 34 License: GPL
35 Version: 0.5.0 35 Version: 0.5.0
36 Release: 20090722 36 Release: 20120800
37 37
38 # list of sources 38 # list of sources
39 Source0: http://switch.dl.sourceforge.net/sourceforge/pyzor/pyzor-%{version}.tar.gz 39 Source0: http://switch.dl.sourceforge.net/sourceforge/pyzor/pyzor-%{version}.tar.gz
40 40
41 # build information 41 # build information
42 Prefix: %{l_prefix} 42 BuildPreReq: OpenPKG, openpkg >= 20100101, python
43 BuildRoot: %{l_buildroot} 43 PreReq: OpenPKG, openpkg >= 20100101, python
44 BuildPreReq: OpenPKG, openpkg >= 20040130, python
45 PreReq: OpenPKG, openpkg >= 20040130, python
46 AutoReq: no
47 AutoReqProv: no
48 44
49 %description 45 %description
50 Pyzor is a UCE-blocking networked system that uses signatures 46 Pyzor is a UCE-blocking networked system that uses signatures
51 to identify unsolicited commercial email (UCE.) 47 to identify unsolicited commercial email (UCE.)
52 48
67 setup.py 63 setup.py
68 64
69 %build 65 %build
70 66
71 %install 67 %install
72 # remove previously existing installations
73 rm -rf $RPM_BUILD_ROOT
74
75 # run the native installation logic 68 # run the native installation logic
76 %{l_prefix}/bin/python \ 69 %{l_prefix}/bin/python \
77 setup.py install \ 70 setup.py install \
78 --prefix=%{l_prefix} \ 71 --prefix=%{l_prefix} \
79 --root=$RPM_BUILD_ROOT 72 --root=$RPM_BUILD_ROOT
91 #'%doc %{l_prefix}/share/pyzor/doc/*' 84 #'%doc %{l_prefix}/share/pyzor/doc/*'
92 85
93 %files -f files 86 %files -f files
94 87
95 %clean 88 %clean
96 rm -rf $RPM_BUILD_ROOT
97 89

mercurial