Overview

Request 2513 (accepted)

No description set
Submit package home:awissu:branches:Multimedia / curlew to package Multimedia / curlew

curlew.changes Changed
x
 
1
@@ -1,4 +1,11 @@
2
 -------------------------------------------------------------------
3
+Sat Feb 27 16:34:14 UTC 2016 - avvissu@yandex.ru
4
+
5
+- Update to 0.2.1:
6
+  * see: /usr/share/doc/packages/curlew/ChangeLog
7
+- Add a language pack
8
+
9
+-------------------------------------------------------------------
10
 Fri Apr 10 21:09:24 UTC 2015 - avvissu@yandex.ru
11
 
12
 - Initial package
13
curlew.spec Changed
96
 
1
@@ -1,7 +1,7 @@
2
 #
3
 # spec file for package curlew
4
 #
5
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
6
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
7
 #
8
 # All modifications and additions to the file contributed by third parties
9
 # remain the property of their copyright owners, unless otherwise agreed
10
@@ -17,27 +17,27 @@
11
 
12
 
13
 Name:           curlew
14
-Version:        0.1.22.3
15
+Version:        0.2.1
16
 Release:        0
17
 Summary:        Multimedia converter
18
 License:        Waqf
19
 Group:          Productivity/Multimedia/Video/Convertors
20
 Url:            http://sourceforge.net/projects/curlew/
21
-Source0:        http://sourceforge.net/projects/curlew/files/curlew-0.1.22.3/%{name}-%{version}.tar.gz
22
-# PATCH-FIX-OPENSUSE desktop.patch avvissu@yandex.ru -- Generic name of the application
23
-Patch0:         curlew-0.1.22.3_desktop.patch
24
-BuildRequires:  ImageMagick
25
-BuildRequires:  desktop-file-utils
26
+Source0:        http://sourceforge.net/projects/curlew/files/curlew-%{version}/%{name}-%{version}.tar.gz
27
+# PATCH-FIX-OPENSUSE desktop.patch avvissu@yandex.ru -- Change path to files
28
+Patch0:         curlew-0.2.1_path.patch
29
 BuildRequires:  hicolor-icon-theme
30
 BuildRequires:  intltool
31
-BuildRequires:  python-devel
32
-BuildRequires:  python-distutils-extra
33
-BuildRequires:  python-gobject >= 3.0
34
-BuildRequires:  python-setuptools
35
+BuildRequires:  python3-base >= 3.3.2
36
+BuildRequires:  python3-setuptools
37
+BuildRequires:  rsvg-view
38
+BuildRequires:  update-desktop-files
39
+Requires:       dbus-1-python3
40
 Requires:       ffmpeg
41
 Requires:       mediainfo
42
 Requires:       mencoder
43
-Requires:       python-gobject
44
+Requires:       python3-gobject
45
+Requires:       typelib(Gtk) = 3.0
46
 Requires:       xdg-utils
47
 # Conflict with ffmpeg
48
 #Requires:       libav-tools
49
@@ -61,6 +61,8 @@
50
   - Combine subtitle with video file.
51
   - Show error details if exist.
52
   - And more ...
53
+  
54
+%lang_package
55
 
56
 %prep
57
 %setup -q
58
@@ -70,10 +72,12 @@
59
 find . -type f -perm /u+x -exec chmod 644 {} \; || :
60
 
61
 %build
62
-python setup.py build
63
+python3 setup.py build
64
 
65
 %install
66
-python setup.py install --root=%{buildroot}
67
+python3 setup.py install --root=%{buildroot}
68
+
69
+%suse_update_desktop_file -r %{name} AudioVideo Video AudioVideoEditing
70
 
71
 %find_lang %{name}
72
 
73
@@ -85,14 +89,17 @@
74
 %icon_theme_cache_postun
75
 %desktop_database_postun
76
 
77
-%files -f %{name}.lang
78
-%defattr(-,root,root,-)
79
-%doc %{_datadir}/doc/curlew
80
+%files
81
+%doc LICENSE* AUTHORS ChangeLog README
82
 %{_bindir}/%{name}
83
+%{_datadir}/%{name}/
84
 %{_datadir}/applications/%{name}.desktop
85
 %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
86
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
87
-%{python_sitelib}/Curlew
88
-%{python_sitelib}/%{name}-*
89
+%{python3_sitelib}/%{name}-*.egg-info
90
+%{python3_sitelib}/%{name}/
91
+
92
+%files lang -f %{name}.lang
93
+%defattr(-,root,root,-)
94
 
95
 %changelog
96
curlew-0.1.22.3_desktop.patch Deleted
18
 
1
@@ -1,16 +0,0 @@
2
-diff -U 3 -H -d -r -N -- curlew-0.1.22.3.orig/curlew.desktop curlew-0.1.22.3/curlew.desktop
3
---- curlew-0.1.22.3.orig/curlew.desktop    2013-10-08 11:52:26.000000000 +0300
4
-+++ curlew-0.1.22.3/curlew.desktop 2015-04-11 01:14:51.039378764 +0300
5
-@@ -12,7 +12,11 @@
6
- Comment=Easy to use Multimedia Converter for Linux
7
- Comment[ar]=محول وسائط على لينكس سهل الاستخدام
8
- Comment[fr]=Un Convertisseur Multimédia simple à utiliser sous Linux
9
--Categories=AudioVideo;Video;
10
-+GenericName=Multimedia Converter
11
-+GenericName[ru]=Мультимедиа конвертер
12
-+GenericName[ar]=تحويل الوسائط المتعددة
13
-+GenericName[fr]=Convertisseur multimédia
14
-+Categories=AudioVideo;Video;AudioVideoEditing;
15
- #MimeType=audio/vorbis;audio/x-mp3;audio/x-ms-wma;audio/x-vorbis;audio/x-wav;video/x-ms-asf;audio/ogg;audio/3gpp;audio/AMR;audio/AMR-WB;video/3gpp;video/flv;video/mpeg;video/msvideo;video/x-mpeg;video/x-ms-asf;video/x-ms-wmv;video/quicktime;audio/x-realaudio;audio/x-pn-realaudio;video/vnd.rn-realvideo;audio/mp4a-latm;video/x-m4v;video/mp4;audio/x-matroska;video/x-matroska;audio/x-aiff;audio/x-monkeys-audio;video/x-m4v;audio/mp4a-latm;video/webm
16
- Encoding=UTF-8
17
- Terminal=false
18
curlew-0.2.1_path.patch Added
148
 
1
@@ -0,0 +1,146 @@
2
+diff -U 3 -dHrN curlew-0.2.1.orig/curlew curlew-0.2.1/curlew
3
+--- curlew-0.2.1.orig/curlew   2016-01-23 15:08:20.000000000 +0300
4
++++ curlew-0.2.1/curlew    2016-02-28 02:10:29.409365970 +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 -U 3 -dHrN curlew-0.2.1.orig/modules/codecs.py curlew-0.2.1/modules/codecs.py
17
+--- curlew-0.2.1.orig/modules/codecs.py    2016-02-27 10:27:05.000000000 +0300
18
++++ curlew-0.2.1/modules/codecs.py 2016-02-28 02:19:50.890717533 +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):
28
+diff -U 3 -dHrN curlew-0.2.1.orig/modules/consts.py curlew-0.2.1/modules/consts.py
29
+--- curlew-0.2.1.orig/modules/consts.py    2016-02-16 00:33:49.000000000 +0300
30
++++ curlew-0.2.1/modules/consts.py 2016-02-28 02:49:54.000000000 +0300
31
+@@ -26,7 +26,7 @@
32
+ CONF_FILE = join(CONF_PATH, 'curlew.cfg')
33
+ 
34
+ PKG_DIR = dirname(realpath(__file__))
35
+-DTA_DIR = join(PKG_DIR, '../')
36
++DTA_DIR = join(PKG_DIR, '../../../../share/curlew')
37
+ 
38
+ ORG_FFILE = join(DTA_DIR, 'formats.cfg')
39
+ USR_FFILE = join(CONF_PATH, 'formats.cfg')
40
+diff -U 3 -dHrN curlew-0.2.1.orig/modules/curlew.py curlew-0.2.1/modules/curlew.py
41
+--- curlew-0.2.1.orig/modules/curlew.py    2016-02-27 10:27:38.000000000 +0300
42
++++ curlew-0.2.1/modules/curlew.py 2016-02-28 02:50:14.000000000 +0300
43
+@@ -39,21 +39,21 @@
44
+     from gi.repository import Gtk, GLib, Gdk, GObject, GdkPixbuf, Gio
45
+     import dbus.glib, dbus.service
46
+     
47
+-    from modules.customwidgets import LabeledHBox, TimeLayout, HScale, \
48
++    from curlew.customwidgets import LabeledHBox, TimeLayout, HScale, \
49
+     SpinsFrame, LabeledGrid, ComboWithEntry
50
+-    from modules.about import About
51
+-    from modules.functions import show_message, get_format_size, \
52
++    from curlew.about import About
53
++    from curlew.functions import show_message, get_format_size, \
54
+     duration_to_time, time_to_duration, check_codec
55
+-    from modules.logdialog import LogDialog
56
+-    from modules.tray import StatusIcon
57
+-    from modules.languages import LANGUAGES
58
+-    from modules.favdialog import Favorite
59
+-    from modules.waitdialog import WaitDialog
60
+-    from modules.fileinfos import FileInfos
61
+-    from modules.formats import Formats
62
+-    from modules.infobars import InfoBar
63
+-    from modules.codecs import CodecsDialog
64
+-    from modules.consts import CONF_PATH, HOME, CONF_FILE, DTA_DIR, \
65
++    from curlew.logdialog import LogDialog
66
++    from curlew.tray import StatusIcon
67
++    from curlew.languages import LANGUAGES
68
++    from curlew.favdialog import Favorite
69
++    from curlew.waitdialog import WaitDialog
70
++    from curlew.fileinfos import FileInfos
71
++    from curlew.formats import Formats
72
++    from curlew.infobars import InfoBar
73
++    from curlew.codecs import CodecsDialog
74
++    from curlew.consts import CONF_PATH, HOME, CONF_FILE, DTA_DIR, \
75
+     ORG_FFILE, USR_FFILE
76
+ except Exception as e:
77
+     print(e)
78
+@@ -72,7 +72,7 @@
79
+ 
80
+ # Localization.
81
+ DOMAIN = 'curlew'
82
+-LOCALDIR = join(DTA_DIR, 'locale')
83
++LOCALDIR = join(DTA_DIR, '../locale')
84
+ gettext.install(DOMAIN, LOCALDIR)
85
+ 
86
+ # Create ".curlew" folder if not exist
87
+diff -U 3 -dHrN curlew-0.2.1.orig/modules/edition.py curlew-0.2.1/modules/edition.py
88
+--- curlew-0.2.1.orig/modules/edition.py   2016-02-27 10:28:13.000000000 +0300
89
++++ curlew-0.2.1/modules/edition.py    2016-02-28 02:19:50.886717580 +0300
90
+@@ -24,9 +24,9 @@
91
+ 
92
+ from gi.repository import Gtk, GLib
93
+ 
94
+-from modules.customwidgets import LabeledGrid, ButtonWithIcon
95
+-from modules.consts import CONF_FILE, ORG_FFILE
96
+-from modules.functions import show_message
97
++from curlew.customwidgets import LabeledGrid, ButtonWithIcon
98
++from curlew.consts import CONF_FILE, ORG_FFILE
99
++from curlew.functions import show_message
100
+ 
101
+ 
102
+ class FormatEditor(Gtk.Dialog):
103
+diff -U 3 -dHrN curlew-0.2.1.orig/modules/formats.py curlew-0.2.1/modules/formats.py
104
+--- curlew-0.2.1.orig/modules/formats.py   2016-02-27 10:29:02.000000000 +0300
105
++++ curlew-0.2.1/modules/formats.py    2016-02-28 02:19:50.882717628 +0300
106
+@@ -21,7 +21,7 @@
107
+ gi.require_version('Gtk', '3.0')
108
+ 
109
+ from gi.repository import Gtk
110
+-from modules.edition import FormatEditor
111
++from curlew.edition import FormatEditor
112
+ 
113
+ class Formats(Gtk.Popover):
114
+     
115
+diff -U 3 -dHrN curlew-0.2.1.orig/setup.py curlew-0.2.1/setup.py
116
+--- curlew-0.2.1.orig/setup.py 2016-02-27 10:24:30.000000000 +0300
117
++++ curlew-0.2.1/setup.py  2016-02-28 01:50:54.810509993 +0300
118
+@@ -17,11 +17,7 @@
119
+ doc_files  = ['LICENSE-ar.txt', 'LICENSE-en.txt', 'AUTHORS', 'ChangeLog', 'README']
120
+ data_files = [('share/applications/', ['curlew.desktop']),
121
+               ('share/icons/hicolor/scalable/apps', ['curlew.svg']),
122
+-              ('share/pixmaps', ['curlew.svg']),
123
+-              ('share/doc/curlew', doc_files),
124
+               ('share/curlew', ['formats.cfg']),
125
+-              #('share/curlew', ['formats.cfg', 'ffmpeg']), # Portable version
126
+-              ('share/curlew/modules', glob("modules/*.py"))
127
+               ]
128
+ 
129
+ # Prepare curlew icons
130
+@@ -58,7 +54,7 @@
131
+         # Generate mo files
132
+         call("msgfmt {} -o {}".format(po_file, mo_path), shell=True)
133
+     
134
+-    locales = map(lambda i: ('share/curlew/'+i, [i+'/curlew.mo', ]), glob('locale/*/LC_MESSAGES'))
135
++    locales = map(lambda i: ('share/'+i, [i+'/curlew.mo', ]), glob('locale/*/LC_MESSAGES'))
136
+     data_files.extend(locales)
137
+     
138
+     return 0
139
+@@ -163,5 +159,7 @@
140
+                      'Topic :: Desktop Environment :: Gnome',
141
+                      'Topic :: Multimedia :: Sound/Audio :: Conversion',
142
+                      'Topic :: Utilities'],
143
+-      data_files=data_files
144
++      data_files=data_files,
145
++      packages=['curlew'],
146
++      package_dir={"curlew" : "modules"},
147
+       )
148
curlew-0.1.22.3.tar.gz -> curlew-0.2.1.tar.gz Changed
Refresh
Refresh
Request History
Aliaksei Padvalski's avatar

awissu created request about 9 years ago


Aliaksei Padvalski's avatar

awissu accepted request about 9 years ago

Please add a comment