Changes of Revision 10
curlew.changes
Changed
x
1
2
-------------------------------------------------------------------
3
+Tue May 23 16:40:23 UTC 2017 - avvissu@yandex.by
4
+
5
+- Update to 0.2.4:
6
+ * see: /usr/share/doc/packages/curlew/ChangeLog
7
+- Update patch: curlew-0.2.1_sitelib.patch > curlew-sitelib.patch
8
+
9
+-------------------------------------------------------------------
10
Fri Apr 21 21:21:34 UTC 2017 - avvissu@yandex.by
11
12
- Update to 0.2.3:
13
curlew.spec
Changed
19
1
2
3
4
Name: curlew
5
-Version: 0.2.3
6
+Version: 0.2.4
7
Release: 0
8
Summary: Multimedia converter
9
License: Waqf
10
11
Url: http://sourceforge.net/projects/curlew/
12
Source0: http://sourceforge.net/projects/curlew/files/curlew-%{version}/%{name}-%{version}.tar.gz
13
# PATCH-FIX-OPENSUSE sitelib.patch avvissu@yandex.ru -- Change path to files (use site-packages)
14
-Patch0: curlew-0.2.3_sitelib.patch
15
+Patch0: curlew-sitelib.patch
16
BuildRequires: dbus-1-python3
17
BuildRequires: hicolor-icon-theme
18
BuildRequires: intltool
19
curlew-0.2.3_sitelib.patch
Deleted
190
1
2
-diff -ruN curlew-0.2.3.orig/curlew curlew-0.2.3/curlew
3
---- curlew-0.2.3.orig/curlew 2016-03-04 16:39:47.000000000 +0300
4
-+++ curlew-0.2.3/curlew 2017-04-22 00:12:17.920666141 +0300
5
-@@ -1,9 +1,5 @@
6
- #!/usr/bin/env python3
7
-
8
--from site import addsitedir
9
--addsitedir('/usr/share/curlew')
10
--addsitedir('/usr/local/share/curlew')
11
--
12
- import sys
13
--from modules.curlew import main
14
-+from curlew.curlew import main
15
- main(*sys.argv[1:])
16
-diff -ruN curlew-0.2.3.orig/modules/codecs.py curlew-0.2.3/modules/codecs.py
17
---- curlew-0.2.3.orig/modules/codecs.py 2017-04-20 11:31:29.000000000 +0300
18
-+++ curlew-0.2.3/modules/codecs.py 2017-04-22 00:13:35.652887426 +0300
19
-@@ -21,7 +21,7 @@
20
- gi.require_version('Gtk', '3.0')
21
-
22
- from gi.repository import Gtk, Pango
23
--from modules.functions import get_available_codecs
24
-+from curlew.functions import get_available_codecs
25
-
26
- class CodecsDialog(Gtk.Dialog):
27
- def __init__(self, prnt, encoder, title, headerbar):
28
-diff -ruN curlew-0.2.3.orig/modules/configs.py curlew-0.2.3/modules/configs.py
29
---- curlew-0.2.3.orig/modules/configs.py 2017-04-20 11:31:29.000000000 +0300
30
-+++ curlew-0.2.3/modules/configs.py 2017-04-22 00:13:35.652887426 +0300
31
-@@ -19,7 +19,7 @@
32
-
33
-
34
- from gi.repository import GLib
35
--from modules.consts import CONF_FILE
36
-+from curlew.consts import CONF_FILE
37
-
38
- GROUP = 'configs'
39
-
40
-diff -ruN curlew-0.2.3.orig/modules/consts.py curlew-0.2.3/modules/consts.py
41
---- curlew-0.2.3.orig/modules/consts.py 2017-04-20 11:31:29.000000000 +0300
42
-+++ curlew-0.2.3/modules/consts.py 2017-04-22 00:14:14.996999426 +0300
43
-@@ -26,7 +26,7 @@
44
- CONF_FILE = join(CONF_PATH, 'curlew.cfg')
45
-
46
- PKG_DIR = dirname(realpath(__file__))
47
--DTA_DIR = join(PKG_DIR, '../')
48
-+DTA_DIR = join(PKG_DIR, '../../../../share/curlew')
49
-
50
- SOUND_FILE = join(DTA_DIR, 'done.ogg')
51
-
52
-diff -ruN curlew-0.2.3.orig/modules/curlew.py curlew-0.2.3/modules/curlew.py
53
---- curlew-0.2.3.orig/modules/curlew.py 2017-04-21 02:26:15.000000000 +0300
54
-+++ curlew-0.2.3/modules/curlew.py 2017-04-22 00:17:59.627062169 +0300
55
-@@ -39,24 +39,24 @@
56
- from gi.repository import Gtk, GLib, Gdk, GObject, GdkPixbuf, Gio
57
- import dbus.glib, dbus.service
58
-
59
-- from modules.customwidgets import LabeledHBox, TimeLayout, HScale, \
60
-+ from curlew.customwidgets import LabeledHBox, TimeLayout, HScale, \
61
- SpinsFrame, LabeledGrid, ComboWithEntry, ButtonWithIcon
62
-- from modules.about import About
63
-- from modules.functions import show_message, get_format_size, \
64
-+ from curlew.about import About
65
-+ from curlew.functions import show_message, get_format_size, \
66
- duration_to_time, time_to_duration, check_codec
67
-- from modules.logdialog import LogDialog
68
-- from modules.tray import StatusIcon
69
-- from modules.languages import LANGUAGES
70
-- from modules.favdialog import Favorite
71
-- from modules.waitdialog import WaitDialog
72
-- from modules.fileinfos import FileInfos
73
-- from modules.formats import Formats
74
-- from modules.infobars import InfoBar
75
-- from modules.codecs import CodecsDialog
76
-- from modules.consts import CONF_PATH, HOME, CONF_FILE, DTA_DIR, \
77
-+ from curlew.logdialog import LogDialog
78
-+ from curlew.tray import StatusIcon
79
-+ from curlew.languages import LANGUAGES
80
-+ from curlew.favdialog import Favorite
81
-+ from curlew.waitdialog import WaitDialog
82
-+ from curlew.fileinfos import FileInfos
83
-+ from curlew.formats import Formats
84
-+ from curlew.infobars import InfoBar
85
-+ from curlew.codecs import CodecsDialog
86
-+ from curlew.consts import CONF_PATH, HOME, CONF_FILE, DTA_DIR, \
87
- ORG_FFILE, USR_FFILE, SOUND_FILE
88
-- from modules.configs import get_b_config, get_s_config
89
-- from modules.players import Players
90
-+ from curlew.configs import get_b_config, get_s_config
91
-+ from curlew.players import Players
92
- except Exception as e:
93
- print(e)
94
- sys.exit(1)
95
-@@ -74,7 +74,7 @@
96
-
97
- # Localization.
98
- DOMAIN = 'curlew'
99
--LOCALDIR = join(DTA_DIR, 'locale')
100
-+LOCALDIR = join(DTA_DIR, '../locale')
101
- gettext.install(DOMAIN, LOCALDIR)
102
-
103
- # Treeview cols nbrs
104
-diff -ruN curlew-0.2.3.orig/modules/edition.py curlew-0.2.3/modules/edition.py
105
---- curlew-0.2.3.orig/modules/edition.py 2017-04-20 11:31:29.000000000 +0300
106
-+++ curlew-0.2.3/modules/edition.py 2017-04-22 00:13:35.640887391 +0300
107
-@@ -24,9 +24,9 @@
108
-
109
- from gi.repository import Gtk, GLib
110
-
111
--from modules.customwidgets import LabeledGrid, ButtonWithIcon
112
--from modules.consts import CONF_FILE, ORG_FFILE
113
--from modules.functions import show_message
114
-+from curlew.customwidgets import LabeledGrid, ButtonWithIcon
115
-+from curlew.consts import CONF_FILE, ORG_FFILE
116
-+from curlew.functions import show_message
117
-
118
-
119
- class FormatEditor(Gtk.Dialog):
120
-diff -ruN curlew-0.2.3.orig/modules/formats.py curlew-0.2.3/modules/formats.py
121
---- curlew-0.2.3.orig/modules/formats.py 2017-04-20 11:49:28.000000000 +0300
122
-+++ curlew-0.2.3/modules/formats.py 2017-04-22 00:13:35.644887403 +0300
123
-@@ -21,8 +21,8 @@
124
- gi.require_version('Gtk', '3.0')
125
-
126
- from gi.repository import Gtk
127
--from modules.edition import FormatEditor
128
--from modules.customwidgets import ButtonWithIcon
129
-+from curlew.edition import FormatEditor
130
-+from curlew.customwidgets import ButtonWithIcon
131
-
132
- class Formats(Gtk.Popover):
133
-
134
-diff -ruN curlew-0.2.3.orig/modules/__init__.py curlew-0.2.3/modules/__init__.py
135
---- curlew-0.2.3.orig/modules/__init__.py 2017-04-20 11:30:11.000000000 +0300
136
-+++ curlew-0.2.3/modules/__init__.py 2017-04-22 00:13:35.640887391 +0300
137
-@@ -19,7 +19,7 @@
138
-
139
- from gi.repository import GLib
140
-
141
--from modules.consts import CONF_FILE, USR_FFILE, CONF_PATH
142
-+from curlew.consts import CONF_FILE, USR_FFILE, CONF_PATH
143
- from os.path import exists
144
- import os
145
-
146
-diff -ruN curlew-0.2.3.orig/modules/players.py curlew-0.2.3/modules/players.py
147
---- curlew-0.2.3.orig/modules/players.py 2017-04-20 11:31:29.000000000 +0300
148
-+++ curlew-0.2.3/modules/players.py 2017-04-22 00:13:35.652887426 +0300
149
-@@ -23,8 +23,8 @@
150
- from shutil import which
151
-
152
- from gi.repository import Gtk
153
--from modules.customwidgets import ComboWithEntry
154
--from modules.configs import set_s_config
155
-+from curlew.customwidgets import ComboWithEntry
156
-+from curlew.configs import set_s_config
157
-
158
- PLAYERS_LIST = [
159
- 'mpv',
160
-diff -ruN curlew-0.2.3.orig/setup.py curlew-0.2.3/setup.py
161
---- curlew-0.2.3.orig/setup.py 2016-12-01 17:26:10.000000000 +0300
162
-+++ curlew-0.2.3/setup.py 2017-04-22 00:19:55.035178724 +0300
163
-@@ -17,8 +17,6 @@
164
- doc_files = ['LICENSE-ar.txt', 'LICENSE-en.txt', 'AUTHORS', 'THANKS', 'ChangeLog', 'README']
165
- data_files = [('share/applications/', ['curlew.desktop']),
166
- ('share/icons/hicolor/scalable/apps', ['curlew.svg']),
167
-- ('share/pixmaps', ['curlew.svg']),
168
-- ('share/doc/curlew', doc_files),
169
- ('share/curlew', ['formats.cfg', 'done.ogg']),
170
- #('share/curlew', ['formats.cfg', 'ffmpeg']), # Portable version
171
- ('share/curlew/modules', glob("modules/*.py"))
172
-@@ -58,7 +56,7 @@
173
- # Generate mo files
174
- call("msgfmt {} -o {}".format(po_file, mo_path), shell=True)
175
-
176
-- locales = map(lambda i: ('share/curlew/'+i, [i+'/curlew.mo', ]), glob('locale/*/LC_MESSAGES'))
177
-+ locales = map(lambda i: ('share/'+i, [i+'/curlew.mo', ]), glob('locale/*/LC_MESSAGES'))
178
- data_files.extend(locales)
179
-
180
- return 0
181
-@@ -168,5 +166,7 @@
182
- 'Topic :: Desktop Environment :: Gnome',
183
- 'Topic :: Multimedia :: Sound/Audio :: Conversion',
184
- 'Topic :: Utilities'],
185
-- data_files=data_files
186
-+ data_files=data_files,
187
-+ packages=['curlew'],
188
-+ package_dir={"curlew" : "modules"}
189
- )
190
curlew-sitelib.patch
Added
186
1
2
+diff -ruN curlew-0.2.4.orig/curlew curlew-0.2.4/curlew
3
+--- curlew-0.2.4.orig/curlew 2016-03-04 15:39:47.000000000 +0200
4
++++ curlew-0.2.4/curlew 2017-05-23 19:32:22.312050586 +0300
5
+@@ -1,9 +1,5 @@
6
+ #!/usr/bin/env python3
7
+
8
+-from site import addsitedir
9
+-addsitedir('/usr/share/curlew')
10
+-addsitedir('/usr/local/share/curlew')
11
+-
12
+ import sys
13
+-from modules.curlew import main
14
++from curlew.curlew import main
15
+ main(*sys.argv[1:])
16
+diff -ruN curlew-0.2.4.orig/modules/codecs.py curlew-0.2.4/modules/codecs.py
17
+--- curlew-0.2.4.orig/modules/codecs.py 2017-04-20 11:31:29.000000000 +0300
18
++++ curlew-0.2.4/modules/codecs.py 2017-05-23 19:31:37.587405490 +0300
19
+@@ -21,7 +21,7 @@
20
+ gi.require_version('Gtk', '3.0')
21
+
22
+ from gi.repository import Gtk, Pango
23
+-from modules.functions import get_available_codecs
24
++from curlew.functions import get_available_codecs
25
+
26
+ class CodecsDialog(Gtk.Dialog):
27
+ def __init__(self, prnt, encoder, title, headerbar):
28
+diff -ruN curlew-0.2.4.orig/modules/configs.py curlew-0.2.4/modules/configs.py
29
+--- curlew-0.2.4.orig/modules/configs.py 2017-04-20 11:31:29.000000000 +0300
30
++++ curlew-0.2.4/modules/configs.py 2017-05-23 19:31:37.587405490 +0300
31
+@@ -19,7 +19,7 @@
32
+
33
+
34
+ from gi.repository import GLib
35
+-from modules.consts import CONF_FILE
36
++from curlew.consts import CONF_FILE
37
+
38
+ GROUP = 'configs'
39
+
40
+diff -ruN curlew-0.2.4.orig/modules/consts.py curlew-0.2.4/modules/consts.py
41
+--- curlew-0.2.4.orig/modules/consts.py 2017-04-20 11:31:29.000000000 +0300
42
++++ curlew-0.2.4/modules/consts.py 2017-05-23 19:33:04.720625755 +0300
43
+@@ -26,7 +26,7 @@
44
+ CONF_FILE = join(CONF_PATH, 'curlew.cfg')
45
+
46
+ PKG_DIR = dirname(realpath(__file__))
47
+-DTA_DIR = join(PKG_DIR, '../')
48
++DTA_DIR = join(PKG_DIR, '../../../../share/curlew')
49
+
50
+ SOUND_FILE = join(DTA_DIR, 'done.ogg')
51
+
52
+diff -ruN curlew-0.2.4.orig/modules/curlew.py curlew-0.2.4/modules/curlew.py
53
+--- curlew-0.2.4.orig/modules/curlew.py 2017-04-29 22:20:50.000000000 +0300
54
++++ curlew-0.2.4/modules/curlew.py 2017-05-23 19:33:58.657310417 +0300
55
+@@ -39,23 +39,23 @@
56
+ from gi.repository import Gtk, GLib, Gdk, GObject, GdkPixbuf, Gio, Pango
57
+ import dbus.glib, dbus.service
58
+
59
+- from modules.customwidgets import LabeledHBox, TimeLayout, HScale, \
60
++ from curlew.customwidgets import LabeledHBox, TimeLayout, HScale, \
61
+ SpinsFrame, LabeledGrid, ComboWithEntry, ButtonWithIcon, ToggleBtnWithIcon
62
+- from modules.about import About
63
+- from modules.functions import show_message, get_format_size, \
64
++ from curlew.about import About
65
++ from curlew.functions import show_message, get_format_size, \
66
+ duration_to_time, time_to_duration, check_codec
67
+- from modules.logdialog import LogDialog
68
+- from modules.tray import StatusIcon
69
+- from modules.languages import LANGUAGES
70
+- from modules.favdialog import Favorite
71
+- from modules.waitdialog import WaitDialog
72
+- from modules.formats import Formats
73
+- from modules.infobars import InfoBar
74
+- from modules.codecs import CodecsDialog
75
+- from modules.consts import CONF_PATH, HOME, CONF_FILE, DTA_DIR, \
76
++ from curlew.logdialog import LogDialog
77
++ from curlew.tray import StatusIcon
78
++ from curlew.languages import LANGUAGES
79
++ from curlew.favdialog import Favorite
80
++ from curlew.waitdialog import WaitDialog
81
++ from curlew.formats import Formats
82
++ from curlew.infobars import InfoBar
83
++ from curlew.codecs import CodecsDialog
84
++ from curlew.consts import CONF_PATH, HOME, CONF_FILE, DTA_DIR, \
85
+ ORG_FFILE, USR_FFILE, SOUND_FILE
86
+- from modules.configs import get_b_config, get_s_config
87
+- from modules.players import choose_player
88
++ from curlew.configs import get_b_config, get_s_config
89
++ from curlew.players import choose_player
90
+ except Exception as e:
91
+ print(e)
92
+ sys.exit(1)
93
+@@ -73,7 +73,7 @@
94
+
95
+ # Localization.
96
+ DOMAIN = 'curlew'
97
+-LOCALDIR = join(DTA_DIR, 'locale')
98
++LOCALDIR = join(DTA_DIR, '../locale')
99
+ gettext.install(DOMAIN, LOCALDIR)
100
+
101
+ # Treeview cols nbrs
102
+diff -ruN curlew-0.2.4.orig/modules/edition.py curlew-0.2.4/modules/edition.py
103
+--- curlew-0.2.4.orig/modules/edition.py 2017-04-20 11:31:29.000000000 +0300
104
++++ curlew-0.2.4/modules/edition.py 2017-05-23 19:31:37.567405192 +0300
105
+@@ -24,9 +24,9 @@
106
+
107
+ from gi.repository import Gtk, GLib
108
+
109
+-from modules.customwidgets import LabeledGrid, ButtonWithIcon
110
+-from modules.consts import CONF_FILE, ORG_FFILE
111
+-from modules.functions import show_message
112
++from curlew.customwidgets import LabeledGrid, ButtonWithIcon
113
++from curlew.consts import CONF_FILE, ORG_FFILE
114
++from curlew.functions import show_message
115
+
116
+
117
+ class FormatEditor(Gtk.Dialog):
118
+diff -ruN curlew-0.2.4.orig/modules/formats.py curlew-0.2.4/modules/formats.py
119
+--- curlew-0.2.4.orig/modules/formats.py 2017-04-20 11:49:28.000000000 +0300
120
++++ curlew-0.2.4/modules/formats.py 2017-05-23 19:31:37.571405251 +0300
121
+@@ -21,8 +21,8 @@
122
+ gi.require_version('Gtk', '3.0')
123
+
124
+ from gi.repository import Gtk
125
+-from modules.edition import FormatEditor
126
+-from modules.customwidgets import ButtonWithIcon
127
++from curlew.edition import FormatEditor
128
++from curlew.customwidgets import ButtonWithIcon
129
+
130
+ class Formats(Gtk.Popover):
131
+
132
+diff -ruN curlew-0.2.4.orig/modules/__init__.py curlew-0.2.4/modules/__init__.py
133
+--- curlew-0.2.4.orig/modules/__init__.py 2017-04-20 11:30:11.000000000 +0300
134
++++ curlew-0.2.4/modules/__init__.py 2017-05-23 19:31:37.567405192 +0300
135
+@@ -19,7 +19,7 @@
136
+
137
+ from gi.repository import GLib
138
+
139
+-from modules.consts import CONF_FILE, USR_FFILE, CONF_PATH
140
++from curlew.consts import CONF_FILE, USR_FFILE, CONF_PATH
141
+ from os.path import exists
142
+ import os
143
+
144
+diff -ruN curlew-0.2.4.orig/modules/players.py curlew-0.2.4/modules/players.py
145
+--- curlew-0.2.4.orig/modules/players.py 2017-04-28 12:35:19.000000000 +0300
146
++++ curlew-0.2.4/modules/players.py 2017-05-23 19:31:37.587405490 +0300
147
+@@ -18,7 +18,7 @@
148
+ # http://waqf.ojuba.org/license
149
+
150
+ from shutil import which
151
+-from modules.configs import set_s_config
152
++from curlew.configs import set_s_config
153
+
154
+ PLAYERS_LIST = [
155
+ 'mpv',
156
+diff -ruN curlew-0.2.4.orig/setup.py curlew-0.2.4/setup.py
157
+--- curlew-0.2.4.orig/setup.py 2017-04-29 23:20:17.000000000 +0300
158
++++ curlew-0.2.4/setup.py 2017-05-23 19:35:34.198409459 +0300
159
+@@ -17,8 +17,6 @@
160
+ doc_files = ['LICENSE-ar.txt', 'LICENSE-en.txt', 'AUTHORS', 'THANKS', 'ChangeLog', 'README']
161
+ data_files = [('share/applications/', ['curlew.desktop']),
162
+ ('share/icons/hicolor/scalable/apps', ['curlew.svg']),
163
+- ('share/pixmaps', ['curlew.svg']),
164
+- ('share/doc/curlew', doc_files),
165
+ ('share/curlew', ['formats.cfg', 'done.ogg']),
166
+ #('share/curlew', ['formats.cfg', 'ffmpeg']), # Portable version
167
+ ('share/curlew/modules', glob("modules/*.py"))
168
+@@ -58,7 +56,7 @@
169
+ # Generate mo files
170
+ call("msgfmt {} -o {}".format(po_file, mo_path), shell=True)
171
+
172
+- locales = map(lambda i: ('share/curlew/'+i, [i+'/curlew.mo', ]), glob('locale/*/LC_MESSAGES'))
173
++ locales = map(lambda i: ('share/'+i, [i+'/curlew.mo', ]), glob('locale/*/LC_MESSAGES'))
174
+ data_files.extend(locales)
175
+
176
+ return 0
177
+@@ -168,5 +166,7 @@
178
+ 'Topic :: Desktop Environment :: Gnome',
179
+ 'Topic :: Multimedia :: Sound/Audio :: Conversion',
180
+ 'Topic :: Utilities'],
181
+- data_files=data_files
182
++ data_files=data_files,
183
++ packages=['curlew'],
184
++ package_dir={"curlew" : "modules"}
185
+ )
186
curlew-0.2.4.tar.gz
Added