Overview

Request 2518 (accepted)

Restoring previous version.
Requires: gtk >= 3.12

Submit package home:awissu:branches:Multimedia / curlew to package Multimedia / curlew

curlew.changes Changed
x
 
1
@@ -1,16 +1,4 @@
2
 -------------------------------------------------------------------
3
-Sun Feb 28 04:04:00 UTC 2016 - avvissu@yandex.ru
4
-
5
-- Set mplayer as the default player
6
-
7
--------------------------------------------------------------------
8
-Sat Feb 27 16:34:14 UTC 2016 - avvissu@yandex.ru
9
-
10
-- Update to 0.2.1:
11
-  * see: /usr/share/doc/packages/curlew/ChangeLog
12
-- Add a language pack
13
-
14
--------------------------------------------------------------------
15
 Fri Apr 10 21:09:24 UTC 2015 - avvissu@yandex.ru
16
 
17
 - Initial package
18
curlew.spec Changed
114
 
1
@@ -1,7 +1,7 @@
2
 #
3
 # spec file for package curlew
4
 #
5
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
6
+# Copyright (c) 2015 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.2.1
15
+Version:        0.1.22.3
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-%{version}/%{name}-%{version}.tar.gz
22
-# PATCH-FIX-OPENSUSE path.patch avvissu@yandex.ru -- Change path to files
23
-Patch0:         curlew-0.2.1_path.patch
24
+Source0:        http://sourceforge.net/projects/curlew/files/curlew-0.1.22.3/%{name}-%{version}.tar.gz
25
+# PATCH-FIX-OPENSUSE desktop.patch avvissu@yandex.ru -- Generic name of the application
26
+Patch0:         curlew-0.1.22.3_desktop.patch
27
+BuildRequires:  ImageMagick
28
+BuildRequires:  desktop-file-utils
29
 BuildRequires:  hicolor-icon-theme
30
 BuildRequires:  intltool
31
-BuildRequires:  python3-base >= 3.3.2
32
-BuildRequires:  python3-setuptools
33
-BuildRequires:  rsvg-view
34
-BuildRequires:  update-desktop-files
35
-Requires:       dbus-1-python3
36
+BuildRequires:  python-devel
37
+BuildRequires:  python-distutils-extra
38
+BuildRequires:  python-gobject >= 3.0
39
+BuildRequires:  python-setuptools
40
 Requires:       ffmpeg
41
 Requires:       mediainfo
42
 Requires:       mencoder
43
-Requires:       python3-gobject
44
-Requires:       typelib(Gtk) = 3.0
45
+Requires:       python-gobject
46
 Requires:       xdg-utils
47
 # Conflict with ffmpeg
48
 #Requires:       libav-tools
49
@@ -61,48 +61,47 @@
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
 %patch0 -p1
59
 
60
-# Set mplayer as the default player
61
-sed -i '/self.player/s/avplay/mplayer/' $(grep -rl 'avplay')
62
-
63
 # Fix spurious-executable-perm
64
 find . -type f -perm /u+x -exec chmod 644 {} \; || :
65
 
66
 %build
67
-python3 setup.py build
68
+python setup.py build
69
 
70
 %install
71
-python3 setup.py install --root=%{buildroot}
72
-
73
-%suse_update_desktop_file -r %{name} AudioVideo Video AudioVideoEditing
74
+python setup.py install --root=%{buildroot}
75
 
76
 %find_lang %{name}
77
 
78
 %post
79
 %icon_theme_cache_post
80
 %desktop_database_post
81
+# Notify user about changes
82
+if [ $1 -ge 2 ] ; then
83
+mkdir -p %{_localstatedir}/adm/update-messages
84
+cat > %{_localstatedir}/adm/update-messages/%{name}-%{version} << EOF
85
+INFO: ValueError: unsupported pickle protocol: 3
86
+INFO: If you are switching between python versions, you will need to 
87
+INFO: remove the old profile from ~/.%{name}
88
+EOF
89
+fi
90
 
91
 %postun
92
 %icon_theme_cache_postun
93
 %desktop_database_postun
94
 
95
-%files
96
-%doc LICENSE* AUTHORS ChangeLog README
97
+%files -f %{name}.lang
98
+%defattr(-,root,root,-)
99
+%doc %{_datadir}/doc/curlew
100
 %{_bindir}/%{name}
101
-%{_datadir}/%{name}/
102
 %{_datadir}/applications/%{name}.desktop
103
 %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
104
 %{_datadir}/icons/hicolor/*/apps/%{name}.png
105
-%{python3_sitelib}/%{name}-*.egg-info
106
-%{python3_sitelib}/%{name}/
107
-
108
-%files lang -f %{name}.lang
109
-%defattr(-,root,root,-)
110
+%{python_sitelib}/Curlew
111
+%{python_sitelib}/%{name}-*
112
 
113
 %changelog
114
curlew-0.1.22.3_desktop.patch Added
18
 
1
@@ -0,0 +1,16 @@
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 Deleted
148
 
1
@@ -1,146 +0,0 @@
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.2.1.tar.gz -> curlew-0.1.22.3.tar.gz Changed
Refresh
Refresh
Request History
Aliaksei Padvalski's avatar

awissu created request about 9 years ago

Restoring previous version.
Requires: gtk >= 3.12


Aliaksei Padvalski's avatar

awissu accepted request about 9 years ago

Please add a comment