From 1a53c3836877f74ba60f4b2328a56caef3c8a48d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 2 Jul 2014 13:24:29 +0200 Subject: [PATCH] sabnzbd: add missing bdeps; set noarch; set pycompile_dirs. --- ...sabnzbd-00-system-configobj-feedparser-gntp.patch | 12 ++++++------ srcpkgs/sabnzbd/template | 9 ++++++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch b/srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch index 48962f771f5..0f009ecf651 100644 --- a/srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch +++ b/srcpkgs/sabnzbd/patches/sabnzbd-00-system-configobj-feedparser-gntp.patch @@ -1,5 +1,5 @@ ---- a/sabnzbd/config.py -+++ b/sabnzbd/config.py +--- sabnzbd/config.py ++++ sabnzbd/config.py @@ -23,10 +23,12 @@ import os import logging import threading @@ -15,8 +15,8 @@ CONFIG_LOCK = threading.Lock() ---- a/sabnzbd/rss.py -+++ b/sabnzbd/rss.py +--- sabnzbd/rss.py ++++ sabnzbd/rss.py @@ -35,7 +35,7 @@ from sabnzbd.misc import cat_convert, sanitize_foldername, wildcard_to_re, cat_t import sabnzbd.emailer as emailer from sabnzbd.encoding import latin1, unicoder, xml_name @@ -26,8 +26,8 @@ __RSS = None # Global pointer to RSS-scanner instance ---- a/sabnzbd/growler.py -+++ b/sabnzbd/growler.py +--- sabnzbd/growler.py ++++ sabnzbd/growler.py @@ -31,7 +31,14 @@ import sabnzbd import sabnzbd.cfg from sabnzbd.encoding import unicoder, latin1 diff --git a/srcpkgs/sabnzbd/template b/srcpkgs/sabnzbd/template index 4fff65ccc9d..d7d46c2724d 100644 --- a/srcpkgs/sabnzbd/template +++ b/srcpkgs/sabnzbd/template @@ -1,10 +1,10 @@ # Template file for 'sabnzbd' pkgname=sabnzbd version=0.7.17 -revision=1 -patch_args="-p1" +revision=2 wrksrc="SABnzbd-${version}" -depends="par2cmdline python-cheetah python-configobj python-feedparser python-gntp python-openssl python-yenc python>=2.7 unzip" +makedepends="par2cmdline python-cheetah python-configobj python-feedparser python-gntp python-openssl python-yenc unzip" +depends="${makedepends}" maintainer="Dominik Honnef " # sabnzbd itself is GPL, but it bundles libraries that are covered by # BSD, LGPL-2 and MIT. In combination, that makes this package GPL. @@ -14,6 +14,9 @@ short_desc="SABnzbd is an Open Source Binary Newsreader written in Python" distfiles="http://downloads.sourceforge.net/sabnzbdplus/SABnzbd-${version}-src.tar.gz" checksum=a501517dbaf161deab2153118ff3b44512ee1d8984c3603bf17c593cf080eb09 +noarch=yes +pycompile_dirs="/usr/share/sabnzbd" + pre_install() { rm -rf gntp sabnzbd/utils/{feedparser,configobj}.py rm -f licenses/License-{feedparser,configobj,gntp,Python}.txt