michael@207: ## michael@207: ## pyzor.spec -- OpenPKG RPM Specification michael@567: ## Copyright (c) 2012 Michael Schloh von Bennewitz michael@207: ## michael@207: ## Permission to use, copy, modify, and distribute this software for michael@207: ## any purpose with or without fee is hereby granted, provided that michael@207: ## the above copyright notice and this permission notice appear in all michael@207: ## copies. michael@207: ## michael@207: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@207: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@207: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@207: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@207: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@207: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@207: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@207: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@207: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@207: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@207: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@207: ## SUCH DAMAGE. michael@207: ## michael@207: michael@207: michael@207: # package information michael@207: Name: pyzor michael@207: Summary: Networked UCE Signature Detection michael@207: URL: http://pyzor.sourceforge.net/ michael@207: Vendor: Frank J. Tobin michael@207: Packager: Michael Schloh von Bennewitz michael@387: Distribution: Europalab Networks Production michael@207: Class: EVAL michael@207: Group: Mail michael@207: License: GPL michael@207: Version: 0.5.0 michael@567: Release: 20120800 michael@207: michael@207: # list of sources michael@207: Source0: http://switch.dl.sourceforge.net/sourceforge/pyzor/pyzor-%{version}.tar.gz michael@207: michael@207: # build information michael@567: BuildPreReq: OpenPKG, openpkg >= 20100101, python michael@567: PreReq: OpenPKG, openpkg >= 20100101, python michael@207: michael@207: %description michael@207: Pyzor is a UCE-blocking networked system that uses signatures michael@207: to identify unsolicited commercial email (UCE.) michael@207: michael@207: %track michael@207: prog pyzor = { michael@207: version = %{version} michael@207: url = http://prdownloads.sourceforge.net/pyzor/ michael@207: regex = pyzor-(__VER__)\.tar\.gz michael@207: } michael@207: michael@207: %prep michael@207: # unpack sources michael@207: %setup -q michael@207: michael@207: # correct build configuration michael@207: %{l_shtool} subst \ michael@207: -e 's;share/doc/pyzor;share/pyzor/doc;g' \ michael@207: setup.py michael@207: michael@207: %build michael@207: michael@207: %install michael@207: # run the native installation logic michael@207: %{l_prefix}/bin/python \ michael@207: setup.py install \ michael@207: --prefix=%{l_prefix} \ michael@207: --root=$RPM_BUILD_ROOT michael@207: michael@209: # copy neglected manpages michael@209: %{l_shtool} mkdir -f -p -m 755 \ michael@209: $RPM_BUILD_ROOT%{l_prefix}/man/man1 michael@209: %{l_shtool} install -c -m 644 \ michael@209: docs/pyzor.1 \ michael@209: docs/pyzord.1 \ michael@209: $RPM_BUILD_ROOT%{l_prefix}/man/man1/ michael@209: michael@207: # determine installation files michael@209: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@209: #'%doc %{l_prefix}/share/pyzor/doc/*' michael@207: michael@207: %files -f files michael@207: michael@207: %clean michael@207: