diff --git a/SearchAMG.py b/SearchAMG.py deleted file mode 100644 index d387616..0000000 --- a/SearchAMG.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- - -PLUGIN_NAME = u"Search AMG" -PLUGIN_AUTHOR = u"Brian Schweitzer" -PLUGIN_DESCRIPTION = "Search AMG" -PLUGIN_VERSION = "0.1" -PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"] - -from PyQt4 import QtCore -from picard.cluster import Cluster -from picard.util import webbrowser2 -from picard.ui.itemviews import BaseAction, register_cluster_action -from picard.ui.itemviews import BaseAction, register_album_action -from picard.ui.itemviews import BaseAction, register_file_action -from picard.metadata import register_track_metadata_processor - -class SearchAMGR(BaseAction): - NAME = "Search AMG for Release" - def callback(self, objs): - cluster = objs[0] - url = "http://wc10.allmusic.com/cg/amg.dll?P=amg&opt1=2&sql=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchAMGR()) -register_album_action(SearchAMGR()) - -class SearchAMGA(BaseAction): - NAME = "Search AMG for Artist" - def callback(self, objs): - cluster = objs[0] - url = "http://wc09.allmusic.com/cg/amg.dll?P=amg&opt1=1&sql=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["artist"]) - webbrowser2.open(url) -register_cluster_action(SearchAMGA()) -register_album_action(SearchAMGA()) - -class SearchAMGT(BaseAction): - NAME = "Search AMG for Track" - def callback(self, objs): - file = objs[0] - url = "http://wc10.allmusic.com/cg/amg.dll?P=amg&opt1=3&sql=" - url += QtCore.QUrl.toPercentEncoding(file.metadata["title"]) - webbrowser2.open(url) -register_file_action(SearchAMGT()) diff --git a/SearchAmazon3.py b/SearchAmazon3.py deleted file mode 100644 index 78ca242..0000000 --- a/SearchAmazon3.py +++ /dev/null @@ -1,86 +0,0 @@ -# -*- coding: utf-8 -*- - -PLUGIN_NAME = u"Search Amazon for Release (codebase 4.1)" -PLUGIN_AUTHOR = u"Brian Schweitzer" -PLUGIN_DESCRIPTION = "Search Amazon" -PLUGIN_VERSION = "0.1" -PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"] - -from PyQt4 import QtCore -from picard.cluster import Cluster -from picard.util import webbrowser2 -from picard.ui.itemviews import BaseAction, register_album_action -from picard.ui.itemviews import BaseAction, register_cluster_action - -class SearchAmazonCA(BaseAction): - NAME = "Search Amazon.ca" - def callback(self, objs): - cluster = objs[0] - url = "http://www.amazon.ca/s/?url=search-alias%3Dpopular&field-keywords=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["artist"]) - url += " " - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchAmazonCA()) -register_album_action(SearchAmazonCA()) - -class SearchAmazonCOM(BaseAction): - NAME = "Search Amazon.com" - def callback(self, objs): - cluster = objs[0] - url = "http://www.amazon.com/s/?url=search-alias%3Dpopular&field-keywords=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["artist"]) - url += " " - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchAmazonCOM()) -register_album_action(SearchAmazonCOM()) - -class SearchAmazonDE(BaseAction): - NAME = "Search Amazon.de" - def callback(self, objs): - cluster = objs[0] - url = "http://www.amazon.de/s/?url=search-alias%3Dpopular&field-keywords=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["artist"]) - url += " " - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchAmazonDE()) -register_album_action(SearchAmazonDE()) - -class SearchAmazonFR(BaseAction): - NAME = "Search Amazon.fr" - def callback(self, objs): - cluster = objs[0] - url = "http://www.amazon.fr/s/?url=search-alias%3Dpopular&field-keywords=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["artist"]) - url += " " - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchAmazonFR()) -register_album_action(SearchAmazonFR()) - -class SearchAmazonJP(BaseAction): - NAME = "Search Amazon.jp" - def callback(self, objs): - cluster = objs[0] - url = "http://www.amazon.jp/s/?url=search-alias%3Dpopular&field-keywords=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["artist"]) - url += " " - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchAmazonJP()) -register_album_action(SearchAmazonJP()) - -class SearchAmazonUK(BaseAction): - NAME = "Search Amazon.co.uk" - def callback(self, objs): - cluster = objs[0] - url = "http://www.amazon.co.uk/s/?url=search-alias%3Dpopular&field-keywords=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["artist"]) - url += " " - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchAmazonUK()) -register_album_action(SearchAmazonUK()) - diff --git a/SearchCastAlbums3.py b/SearchCastAlbums3.py deleted file mode 100644 index fc57b11..0000000 --- a/SearchCastAlbums3.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- - -PLUGIN_NAME = u"Search CastAlbums.org for Release (codebase 4.1)" -PLUGIN_AUTHOR = u"Brian Schweitzer" -PLUGIN_DESCRIPTION = "Search CastAlbums.org" -PLUGIN_VERSION = "0.1" -PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"] - -from PyQt4 import QtCore -from picard.cluster import Cluster -from picard.util import webbrowser2 -from picard.ui.itemviews import BaseAction, register_album_action -from picard.ui.itemviews import BaseAction, register_cluster_action - - -class SearchCastAlbums(BaseAction): - NAME = "Search with CastAlbums.org" - def callback(self, objs): - cluster = objs[0] - url = "http://www.castalbums.org/shows/search/" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchCastAlbums()) -register_album_action(SearchCastAlbums()) diff --git a/SearchDiscogs3.py b/SearchDiscogs3.py deleted file mode 100644 index b8217bc..0000000 --- a/SearchDiscogs3.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- - -PLUGIN_NAME = u"Search Discogs for Release (codebase 4.1)" -PLUGIN_AUTHOR = u"Brian Schweitzer" -PLUGIN_DESCRIPTION = "Search Discogs" -PLUGIN_VERSION = "0.1" -PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"] - -from PyQt4 import QtCore -from picard.cluster import Cluster -from picard.util import webbrowser2 -from picard.ui.itemviews import BaseAction, register_cluster_action -from picard.ui.itemviews import BaseAction, register_album_action - -class SearchDiscogs(BaseAction): - NAME = "Search Discogs" - def callback(self, objs): - cluster = objs[0] - url = "http://www.discogs.com/search?type=all&q=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["artist"]) - url += "+" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - url += "&btn=Search" - webbrowser2.open(url) -register_cluster_action(SearchDiscogs()) -register_album_action(SearchDiscogs()) diff --git a/SearchFilmMusziek3.py b/SearchFilmMusziek3.py deleted file mode 100644 index 698ba05..0000000 --- a/SearchFilmMusziek3.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- - -PLUGIN_NAME = u"Search FilmMuziek.be for Release (codebase 4.1)" -PLUGIN_AUTHOR = u"Brian Schweitzer" -PLUGIN_DESCRIPTION = "Search FilmMuziek.be" -PLUGIN_VERSION = "0.1" -PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"] - -from PyQt4 import QtCore -from picard.cluster import Cluster -from picard.util import webbrowser2 -from picard.ui.itemviews import BaseAction, register_cluster_action -from picard.ui.itemviews import BaseAction, register_album_action - - -class SearchFilmMusic(BaseAction): - NAME = "Search with FilmMuziek.be" - def callback(self, objs): - cluster = objs[0] - url = "http://www.filmmuziek.be/search.cgi?Match=0&Realm=All&Terms=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchFilmMusic()) -register_album_action(SearchFilmMusic()) diff --git a/SearchGMR.py b/SearchGMR.py deleted file mode 100644 index f1b56ea..0000000 --- a/SearchGMR.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- - -PLUGIN_NAME = u"Search Game Music Revolution (codebase 4.1)" -PLUGIN_AUTHOR = u"Brian Schweitzer" -PLUGIN_DESCRIPTION = "Search Game Music Revolution" -PLUGIN_VERSION = "0.1" -PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"] - -from PyQt4 import QtCore -from picard.cluster import Cluster -from picard.util import webbrowser2 -from picard.ui.itemviews import BaseAction, register_cluster_action -from picard.ui.itemviews import BaseAction, register_album_action - -class SearchGameMusicRevolution(BaseAction): - NAME = "Search with Game Music Revolution" - def callback(self, objs): - cluster = objs[0] - url = "http://www.gmronline.com/results.asp?display=0&go=Go+Find+It&searchType=Title&browseType=Title&results=25&search=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchGameMusicRevolution()) -register_album_action(SearchGameMusicRevolution()) diff --git a/SearchGoogle3.py b/SearchGoogle3.py deleted file mode 100644 index 0c8fb0f..0000000 --- a/SearchGoogle3.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- - -PLUGIN_NAME = u"Search with Google for Release (codebase 4.1)" -PLUGIN_AUTHOR = u"Brian Schweitzer" -PLUGIN_DESCRIPTION = "Search Google. Thanks to Lukas Lalinsky for bug-fix!" -PLUGIN_VERSION = "0.1.1" -PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"] - -from PyQt4 import QtCore -from picard.util import webbrowser2 -from picard.ui.itemviews import BaseAction, register_cluster_action -from picard.ui.itemviews import BaseAction, register_album_action -from picard.ui.itemviews import BaseAction, register_file_action -from picard.metadata import register_track_metadata_processor - -class SearchGoogle(BaseAction): - NAME = "Search with Google" - def callback(self, objs): - cluster = objs[0] - url = "http://www.google.com/search?hl=en&q=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["artist"]) - url += " " - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchGoogle()) -register_album_action(SearchGoogle()) - -class SearchGoogleTrack(BaseAction): - NAME = "Search with Google" - def callback(self, objs): - file = objs[0] - url = "http://www.google.com/search?hl=en&q=" - url += QtCore.QUrl.toPercentEncoding(file.metadata["artist"]) - url += " " - url += QtCore.QUrl.toPercentEncoding(file.metadata["album"]) - url += " " - url += QtCore.QUrl.toPercentEncoding(file.metadata["title"]) - webbrowser2.open(url) -register_file_action(SearchGoogleTrack()) diff --git a/SearchLortelArchives3.py b/SearchLortelArchives3.py deleted file mode 100644 index cde83a9..0000000 --- a/SearchLortelArchives3.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- - -PLUGIN_NAME = u"Search the Lortel Archives for Release (codebase 4.1)" -PLUGIN_AUTHOR = u"Brian Schweitzer" -PLUGIN_DESCRIPTION = "Search the Lortel Archives" -PLUGIN_VERSION = "0.1" -PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"] - -from PyQt4 import QtCore -from picard.cluster import Cluster -from picard.util import webbrowser2 -from picard.ui.itemviews import BaseAction, register_cluster_action -from picard.ui.itemviews import BaseAction, register_album_action - - -class SearchLortelArchives(BaseAction): - NAME = "Search the Lortel Archives" - def callback(self, objs): - cluster = objs[0] - url = "http://www.lortel.org/LLA_archive/index.cfm?keyword=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - url += "&COMMITT=YES&search_by=ALL&Go.x=0&Go.y=0" - webbrowser2.open(url) -register_cluster_action(SearchLortelArchives()) -register_album_action(SearchLortelArchives()) diff --git a/SearchSoundtrackCollector3.py b/SearchSoundtrackCollector3.py deleted file mode 100644 index bf1cbb8..0000000 --- a/SearchSoundtrackCollector3.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- - -PLUGIN_NAME = u"Search SoundtrackCollector for Release (codebase 4.1)" -PLUGIN_AUTHOR = u"Brian Schweitzer" -PLUGIN_DESCRIPTION = "Search SoundtrackCollector" -PLUGIN_VERSION = "0.1" -PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"] - -from PyQt4 import QtCore -from picard.cluster import Cluster -from picard.util import webbrowser2 -from picard.ui.itemviews import BaseAction, register_cluster_action -from picard.ui.itemviews import BaseAction, register_album_action - - -class SearchSoundtrackCollector(BaseAction): - NAME = "Search with SoundtrackCollector" - def callback(self, objs): - cluster = objs[0] - url = "http://www.soundtrackcollector.com/catalog/search.php?searchon=all&searchtext=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchSoundtrackCollector()) -register_album_action(SearchSoundtrackCollector()) diff --git a/SearchSoundtrackINFO3.py b/SearchSoundtrackINFO3.py deleted file mode 100644 index 1312189..0000000 --- a/SearchSoundtrackINFO3.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- - -PLUGIN_NAME = u"Search SoundtrackINFO (codebase 4.1)" -PLUGIN_AUTHOR = u"Brian Schweitzer" -PLUGIN_DESCRIPTION = "Search SoundtrackINFO" -PLUGIN_VERSION = "0.1" -PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"] - -from PyQt4 import QtCore -from picard.cluster import Cluster -from picard.util import webbrowser2 -from picard.ui.itemviews import BaseAction, register_cluster_action -from picard.ui.itemviews import BaseAction, register_album_action - -class SearchSoundtrackINFO(BaseAction): - NAME = "Search with SoundtrackINFO" - def callback(self, objs): - cluster = objs[0] - url = "http://www.soundtrackinfo.com/search.asp?q=" - url += QtCore.QUrl.toPercentEncoding(cluster.metadata["album"]) - webbrowser2.open(url) -register_cluster_action(SearchSoundtrackINFO()) -register_album_action(SearchSoundtrackINFO()) diff --git a/picard-1.4.2.tar.gz b/picard-1.4.2.tar.gz deleted file mode 100644 index 7904b30..0000000 --- a/picard-1.4.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f0adee3877bbd66c827a43b57dd2233037b99f6ebfdc1700b26cb9d400992234 -size 2116021 diff --git a/picard-2.0.0.tar.gz b/picard-2.0.0.tar.gz new file mode 100644 index 0000000..5944197 --- /dev/null +++ b/picard-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9607146f75c5ba56298062ae063db3c77ff107d0196fb21bd58eaf2e2f843054 +size 2736738 diff --git a/picard.changes b/picard.changes index f43426c..78f15df 100644 --- a/picard.changes +++ b/picard.changes @@ -1,3 +1,134 @@ +------------------------------------------------------------------- +Fri Jul 20 07:05:44 UTC 2018 - aloisio@gmx.com + +- Updated source URL + +------------------------------------------------------------------- +Thu Jul 19 12:38:11 UTC 2018 - aloisio@gmx.com + +- Update to version 2.0 + Bug-fix + * [PICARD-153] - Non-configuration data is saved in Picard.conf + * [PICARD-173] - ID3 tag TSOP appears to be stored blank + * [PICARD-340] - Cover art embedding will overwrite existing + ones + * [PICARD-405] - Save stopped working + * [PICARD-817] - On high-resolution / high DPI displays, + Picard's GUI is scaled wrong + * [PICARD-1047] - Incompatible plugins are loaded with picard + 2.0 + * [PICARD-1051] - Searching for similar tracks causes coredumps + * [PICARD-1052] - Not disabled Search for similar tracks can + cause coredumps + * [PICARD-1056] - Crash when viewing file info dialog + * [PICARD-1058] - Saving images as files doesn't work + * [PICARD-1062] - Picard crashes when moving files on release + * [PICARD-1063] - After #689 unit tests fail if astrcmp is not + compiled + * [PICARD-1064] - python setup.py test -v doesn't work + * [PICARD-1065] - python setup.py patch_version doesn't work + * [PICARD-1066] - python setup.py update_constants doesn't work + * [PICARD-1067] - Visual bug after un-checking an installed + plugin + * [PICARD-1073] - "Add New Tag" crashes picard + * [PICARD-1084] - Picard 2 doesn't find DVD drive + * [PICARD-1085] - Multi-Dir Add Folder not working + * [PICARD-1105] - Crashes when using the edit tag dialog + * [PICARD-1106] - cancel plugin installation file dialog + results in crash + * [PICARD-1114] - Cannot submit ratings in Picard 2.0 dev + * [PICARD-1119] - picard sets "Disc Subtitle" to the track + title + * [PICARD-1123] - Multiple work languages are collapsed + * [PICARD-1126] - Unhelpful error message logged on network + request errors + * [PICARD-1135] - Picard is not able to save on MTP devices + * [PICARD-1138] - Search crashes due to AttributeError + * [PICARD-1143] - Wrong amount of songs from added files + * [PICARD-1147] - FYI, Can't load "Alan Parsons" album "On + air" in Picard 1.2 + * [PICARD-1153] - "Lookup in Browser" and "Search" fail + silently if artist name contains umlaut + * [PICARD-1156] - Picard fails to start when trying to upgrade + plugin which is a symlink + * [PICARD-1159] - Can't open WAV files + * [PICARD-1161] - Dragging artwork from Chrome pages doesn't + work + * [PICARD-1171] - Text of "About" can't be selected + * [PICARD-1179] - Error while searching for alt. releases + * [PICARD-1181] - In-app search dialog excessive slow down + * [PICARD-1188] - Picard chooses incorrect value for language + tag + * [PICARD-1199] - Crash when right-clicking album + * [PICARD-1202] - Right click on tag listing causes exception + and crash + * [PICARD-1203] - Hide unsupported tags from the tag diff in UI + * [PICARD-1204] - Picard freezes on unchecking show diff tags + first + * [PICARD-1206] - Text is not displaying properly in some + fields. + * [PICARD-1210] - Long lines in the option dialogue don’t wrap + * [PICARD-1213] - Wrong Movement of coverart providers + * [PICARD-1215] - Does not use config / ini file specified on + command line + * [PICARD-1221] - Picard 2.0 won't start on Windows 10 + * [PICARD-1226] - Different fonts in the plugins dialog + * [PICARD-1230] - Looking up CD crashes Picard + * [PICARD-1234] - Crash when loading plugin from local + directory + * [PICARD-1252] - Crash on pasting invalid naming script + * [PICARD-1253] - Crash on image saving + * [PICARD-1255] - Crash on startup - no GUI + * [PICARD-1265] - Can't "Lookup in Browser": + UnicodeEncodeError: 'latin-1' codec can't encode characters in + position 0-7: ordinal not in range(256) + * [PICARD-1270] - Corruption of saved audio files located on a + network share + * [PICARD-1271] - Artist credit saved in tags sometimes loses + closing parenthesis + * [PICARD-1277] - Picard crashes on unknown cover art types + New Feature + * [PICARD-1187] - Add DSF file support + * [PICARD-1220] - Add keyboard shortcut for deleting scripts + from options > scripting page + Task + * [PICARD-960] - Migrate to PyQt5 + * [PICARD-1186] - Support only 64 bit Picard builds from 2.0 + Improvement + * [PICARD-259] - Make file-specific variables available to + tagger script + * [PICARD-581] - Picard XML processing should use lxml module + rather than QXmlStreamReader + * [PICARD-588] - Picard 2.0 based on Python 3 + * [PICARD-807] - Retry release fetch on MB server overload + * [PICARD-922] - Make multi-value script functions work + correctly + * [PICARD-976] - Reimplement the picard WS code to accommodate + future versions of MBWS + * [PICARD-978] - Distinguish in UI between unclustered and + release unmatched files + * [PICARD-1075] - Add unit tests for Metadata object variables + * [PICARD-1087] - Improvements to UI for Lookup CD + * [PICARD-1100] - Error when running confined in a snap + because of gconf + * [PICARD-1174] - Option to tolerate differences in track times + * [PICARD-1200] - In Options dialog, tree pane on the left + cannot be resized + * [PICARD-1201] - Add a command-line option to not restore + persisted UI sizes or positions + * [PICARD-1211] - The “X” close button doesn’t work on the + options dialogue + +- Switched to python3 and Qt5 + +- Dropped SearchAmazon3.py,SearchAMG.py,SearchCastAlbums3.py, + SearchDiscogs3.py,SearchFilmMusziek3.py,SearchGMR.py, + SearchGoogle3.py,SearchLortelArchives3.py, + SearchSoundtrackCollector3.py and SearchSoundtrackINFO3.py (not + compatible with API v2.0) + +- Spec cleanup + ------------------------------------------------------------------- Wed May 10 13:08:08 UTC 2017 - alarrosa@suse.com diff --git a/picard.spec b/picard.spec index 80ecd81..db495eb 100644 --- a/picard.spec +++ b/picard.spec @@ -1,7 +1,7 @@ # # spec file for package picard # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,40 +17,27 @@ Name: picard -Version: 1.4.2 +Version: 2.0.0 Release: 0 Summary: The Next Generation MusicBrainz Tagger -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Multimedia/Sound/Utilities -Url: http://musicbrainz.org/doc/PicardTagger -Source0: ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/%{name}-%{version}.tar.gz -# http://wiki.musicbrainz.org/Picard_Plugins -# All of the Search*.py files come from https://github.com/brianfreud/Picard-plugins -# The full URL can not be part of this specfile because download corrupts line endings -Source8: SearchAmazon3.py -Source9: SearchAMG.py -Source10: SearchCastAlbums3.py -Source11: SearchDiscogs3.py -Source12: SearchFilmMusziek3.py -Source13: SearchGMR.py -Source14: SearchGoogle3.py -Source15: SearchLortelArchives3.py -Source16: SearchSoundtrackCollector3.py -Source17: SearchSoundtrackINFO3.py -# +URL: https://picard.musicbrainz.org +Source0: https://codeload.github.com/metabrainz/picard/tar.gz/release-%{version}#/%{name}-%{version}.tar.gz BuildRequires: desktop-file-utils BuildRequires: gcc-c++ -BuildRequires: libofa-devel -BuildRequires: python-devel -BuildRequires: python-mutagen -Requires: python-mutagen BuildRequires: hicolor-icon-theme -BuildRequires: python-qt4 -BuildRequires: python-sip +BuildRequires: libofa-devel +BuildRequires: python3-devel +BuildRequires: python3-mutagen +BuildRequires: python3-qt5 +BuildRequires: python3-setuptools +BuildRequires: python3-sip BuildRequires: update-desktop-files -Recommends: python-discid -Requires: python-qt4 +Requires: python3-mutagen +Requires: python3-qt5 Recommends: chromaprint-fpcalc +Recommends: python3-discid %description MusicBrainz Picard is a MusicBrainz tag editor written in Python. @@ -63,24 +50,13 @@ track-based tagging. %setup -q -n %{name}-release-%{version} %build -python setup.py config -python setup.py build +export LANG=en_US.UTF-8 +python3 setup.py config +python3 setup.py build %install -python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot} - -# install plugins -PLUGINDIR=%{buildroot}%{py_sitedir}/picard/plugins/ -install -m 0644 %{SOURCE8} ${PLUGINDIR} -install -m 0644 %{SOURCE9} ${PLUGINDIR} -install -m 0644 %{SOURCE10} ${PLUGINDIR} -install -m 0644 %{SOURCE11} ${PLUGINDIR} -install -m 0644 %{SOURCE12} ${PLUGINDIR} -install -m 0644 %{SOURCE13} ${PLUGINDIR} -install -m 0644 %{SOURCE14} ${PLUGINDIR} -install -m 0644 %{SOURCE15} ${PLUGINDIR} -install -m 0644 %{SOURCE16} ${PLUGINDIR} -install -m 0644 %{SOURCE17} ${PLUGINDIR} +export LANG=en_US.UTF-8 +python3 setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot} %suse_update_desktop_file -G "Music Tagger" -N "picard" picard @@ -90,22 +66,23 @@ rm -rfv %{buildroot}%{_datadir}/locale/sco %find_lang %{name}-countries %{name}.lang %find_lang %{name}-attributes %{name}.lang +%if 0%{?suse_version} < 1500 %post %icon_theme_cache_post %postun %icon_theme_cache_postun +%endif %files -%defattr(-,root,root) -%doc AUTHORS.txt COPYING.txt NEWS.txt +%doc AUTHORS.txt NEWS.txt +%license COPYING.txt %{_bindir}/picard %{_datadir}/applications/%{name}.desktop -%{python_sitearch}/picard* +%{python3_sitearch}/picard* %{_datadir}/icons/hicolor/*/apps/picard.png %{_datadir}/icons/hicolor/*/apps/picard.svg %files lang -f %{name}.lang -%defattr(-,root,root) %changelog