Projects
Multimedia
curlew
curlew-0.2.2_sitelib.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File curlew-0.2.2_sitelib.patch of Package curlew (Revision 8)
Currently displaying revision
8
,
Show latest
diff -U 3 -dHrN curlew-0.2.2.orig/curlew curlew-0.2.2/curlew --- curlew-0.2.2.orig/curlew 2016-03-07 13:52:48.000000000 +0300 +++ curlew-0.2.2/curlew 2016-03-14 15:02:59.504346113 +0300 @@ -1,9 +1,5 @@ #!/usr/bin/env python3 -from site import addsitedir -addsitedir('/usr/share/curlew') -addsitedir('/usr/local/share/curlew') - import sys -from modules.curlew import main +from curlew.curlew import main main(*sys.argv[1:]) diff -U 3 -dHrN curlew-0.2.2.orig/modules/codecs.py curlew-0.2.2/modules/codecs.py --- curlew-0.2.2.orig/modules/codecs.py 2016-03-10 16:19:55.000000000 +0300 +++ curlew-0.2.2/modules/codecs.py 2016-03-14 15:04:47.898214293 +0300 @@ -21,7 +21,7 @@ gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Pango -from modules.functions import get_available_codecs +from curlew.functions import get_available_codecs class CodecsDialog(Gtk.Dialog): def __init__(self, prnt, encoder, title, headerbar): diff -U 3 -dHrN curlew-0.2.2.orig/modules/configs.py curlew-0.2.2/modules/configs.py --- curlew-0.2.2.orig/modules/configs.py 2016-03-08 19:41:33.000000000 +0300 +++ curlew-0.2.2/modules/configs.py 2016-03-14 15:08:07.496466859 +0300 @@ -19,7 +19,7 @@ from gi.repository import GLib -from modules.consts import CONF_FILE +from curlew.consts import CONF_FILE GROUP = 'configs' diff -U 3 -dHrN curlew-0.2.2.orig/modules/consts.py curlew-0.2.2/modules/consts.py --- curlew-0.2.2.orig/modules/consts.py 2016-03-07 13:52:48.000000000 +0300 +++ curlew-0.2.2/modules/consts.py 2016-03-14 15:05:41.710010707 +0300 @@ -26,7 +26,7 @@ CONF_FILE = join(CONF_PATH, 'curlew.cfg') PKG_DIR = dirname(realpath(__file__)) -DTA_DIR = join(PKG_DIR, '../') +DTA_DIR = join(PKG_DIR, '../../../../share/curlew') ORG_FFILE = join(DTA_DIR, 'formats.cfg') USR_FFILE = join(CONF_PATH, 'formats.cfg') diff -U 3 -dHrN curlew-0.2.2.orig/modules/curlew.py curlew-0.2.2/modules/curlew.py --- curlew-0.2.2.orig/modules/curlew.py 2016-03-12 00:37:11.000000000 +0300 +++ curlew-0.2.2/modules/curlew.py 2016-03-14 15:08:07.536464240 +0300 @@ -38,23 +38,23 @@ from gi.repository import Gtk, GLib, Gdk, GObject, GdkPixbuf, Gio import dbus.glib, dbus.service - from modules.customwidgets import LabeledHBox, TimeLayout, HScale, \ + from curlew.customwidgets import LabeledHBox, TimeLayout, HScale, \ SpinsFrame, LabeledGrid, ComboWithEntry, ButtonWithIcon - from modules.about import About - from modules.functions import show_message, get_format_size, \ + from curlew.about import About + from curlew.functions import show_message, get_format_size, \ duration_to_time, time_to_duration, check_codec - from modules.logdialog import LogDialog - from modules.tray import StatusIcon - from modules.languages import LANGUAGES - from modules.favdialog import Favorite - from modules.waitdialog import WaitDialog - from modules.fileinfos import FileInfos - from modules.formats import Formats - from modules.infobars import InfoBar - from modules.codecs import CodecsDialog - from modules.consts import CONF_PATH, HOME, CONF_FILE, DTA_DIR, \ + from curlew.logdialog import LogDialog + from curlew.tray import StatusIcon + from curlew.languages import LANGUAGES + from curlew.favdialog import Favorite + from curlew.waitdialog import WaitDialog + from curlew.fileinfos import FileInfos + from curlew.formats import Formats + from curlew.infobars import InfoBar + from curlew.codecs import CodecsDialog + from curlew.consts import CONF_PATH, HOME, CONF_FILE, DTA_DIR, \ ORG_FFILE, USR_FFILE - from modules.configs import get_b_config + from curlew.configs import get_b_config except Exception as e: print(e) sys.exit(1) @@ -72,7 +72,7 @@ # Localization. DOMAIN = 'curlew' -LOCALDIR = join(DTA_DIR, 'locale') +LOCALDIR = join(DTA_DIR, '../locale') gettext.install(DOMAIN, LOCALDIR) # Create ".curlew" folder if not exist diff -U 3 -dHrN curlew-0.2.2.orig/modules/edition.py curlew-0.2.2/modules/edition.py --- curlew-0.2.2.orig/modules/edition.py 2016-03-11 19:29:53.000000000 +0300 +++ curlew-0.2.2/modules/edition.py 2016-03-14 15:08:07.492467120 +0300 @@ -24,9 +24,9 @@ from gi.repository import Gtk, GLib -from modules.customwidgets import LabeledGrid, ButtonWithIcon -from modules.consts import CONF_FILE, ORG_FFILE -from modules.functions import show_message +from curlew.customwidgets import LabeledGrid, ButtonWithIcon +from curlew.consts import CONF_FILE, ORG_FFILE +from curlew.functions import show_message class FormatEditor(Gtk.Dialog): diff -U 3 -dHrN curlew-0.2.2.orig/modules/formats.py curlew-0.2.2/modules/formats.py --- curlew-0.2.2.orig/modules/formats.py 2016-03-12 00:41:14.000000000 +0300 +++ curlew-0.2.2/modules/formats.py 2016-03-14 15:08:07.488467381 +0300 @@ -21,8 +21,8 @@ gi.require_version('Gtk', '3.0') from gi.repository import Gtk -from modules.edition import FormatEditor -from modules.customwidgets import ButtonWithIcon +from curlew.edition import FormatEditor +from curlew.customwidgets import ButtonWithIcon class Formats(Gtk.Popover): diff -U 3 -dHrN curlew-0.2.2.orig/setup.py curlew-0.2.2/setup.py --- curlew-0.2.2.orig/setup.py 2016-03-14 12:39:44.000000000 +0300 +++ curlew-0.2.2/setup.py 2016-03-14 15:11:55.448256414 +0300 @@ -17,8 +17,6 @@ doc_files = ['LICENSE-ar.txt', 'LICENSE-en.txt', 'AUTHORS', 'THANKS', 'ChangeLog', 'README'] data_files = [('share/applications/', ['curlew.desktop']), ('share/icons/hicolor/scalable/apps', ['curlew.svg']), - ('share/pixmaps', ['curlew.svg']), - ('share/doc/curlew', doc_files), ('share/curlew', ['formats.cfg']), #('share/curlew', ['formats.cfg', 'ffmpeg']), # Portable version ('share/curlew/modules', glob("modules/*.py")) @@ -58,7 +56,7 @@ # Generate mo files call("msgfmt {} -o {}".format(po_file, mo_path), shell=True) - locales = map(lambda i: ('share/curlew/'+i, [i+'/curlew.mo', ]), glob('locale/*/LC_MESSAGES')) + locales = map(lambda i: ('share/'+i, [i+'/curlew.mo', ]), glob('locale/*/LC_MESSAGES')) data_files.extend(locales) return 0 @@ -168,5 +166,7 @@ 'Topic :: Desktop Environment :: Gnome', 'Topic :: Multimedia :: Sound/Audio :: Conversion', 'Topic :: Utilities'], - data_files=data_files + data_files=data_files, + packages=['curlew'], + package_dir={"curlew" : "modules"} )
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.