2010-09-21 12:53:13 +02:00
|
|
|
#
|
2011-02-03 01:49:17 +01:00
|
|
|
# spec file for package picard
|
2010-09-21 12:53:13 +02:00
|
|
|
#
|
2017-02-14 15:37:35 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-09-21 12:53:13 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: picard
|
2017-02-14 15:37:35 +01:00
|
|
|
Version: 1.4.0
|
2012-02-21 12:14:04 +01:00
|
|
|
Release: 0
|
2010-09-21 12:53:13 +02:00
|
|
|
Summary: The Next Generation MusicBrainz Tagger
|
2012-02-20 11:36:53 +01:00
|
|
|
License: GPL-2.0+
|
2010-09-21 12:53:13 +02:00
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
|
|
|
Url: http://musicbrainz.org/doc/PicardTagger
|
2017-02-14 15:37:35 +01:00
|
|
|
Source0: ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/%{name}-1.4.tar.gz
|
|
|
|
Patch0: fix-cover-art-downloads.diff
|
|
|
|
Patch1: 0001-Introduce-new-cover-art-thumbnail-class.patch
|
|
|
|
Patch2: 0002-Connect-events-for-CoverArtThumbnail-class.patch
|
|
|
|
Patch3: 0003-Update-coverartbox-class-to-include-new-and-original.patch
|
|
|
|
Patch4: 0004-Update-labels-in-_show-method.patch
|
|
|
|
Patch5: 0005-Update-mainwindow-to-display-original-coverart.patch
|
|
|
|
Patch6: 0006-Implement-__eq__-method-for-CoverArtThumbnail-and-up.patch
|
|
|
|
Patch7: 0007-Add-i18n-support-to-coverart-labels.patch
|
|
|
|
Patch8: 0008-Add-view-coverart-changes-button.patch
|
|
|
|
Patch9: 0009-Add-spacer-item-to-push-coverartbox-items-to-top.patch
|
2011-07-25 12:17:02 +02:00
|
|
|
# http://wiki.musicbrainz.org/Picard_Plugins
|
2017-02-14 15:37:35 +01:00
|
|
|
Source8: https://github.com/brianfreud/Picard-plugins/blob/master/SearchAmazon3.py
|
|
|
|
Source9: https://github.com/brianfreud/Picard-plugins/blob/master/SearchAMG.py
|
|
|
|
Source10: https://github.com/brianfreud/Picard-plugins/blob/master/SearchCastAlbums3.py
|
|
|
|
Source11: https://github.com/brianfreud/Picard-plugins/blob/master/SearchDiscogs3.py
|
|
|
|
Source12: https://github.com/brianfreud/Picard-plugins/blob/master/SearchFilmMusziek3.py
|
|
|
|
Source13: https://github.com/brianfreud/Picard-plugins/blob/master/SearchGMR.py
|
|
|
|
Source14: https://github.com/brianfreud/Picard-plugins/blob/master/SearchGoogle3.py
|
|
|
|
Source15: https://github.com/brianfreud/Picard-plugins/blob/master/SearchLortelArchives3.py
|
|
|
|
Source16: https://github.com/brianfreud/Picard-plugins/blob/master/SearchSoundtrackCollector3.py
|
|
|
|
Source17: https://github.com/brianfreud/Picard-plugins/blob/master/SearchSoundtrackINFO3.py
|
2012-02-21 12:14:04 +01:00
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libofa-devel
|
|
|
|
BuildRequires: python-devel
|
2012-04-11 15:35:39 +02:00
|
|
|
BuildRequires: python-mutagen
|
|
|
|
Requires: python-mutagen
|
2012-02-21 12:14:04 +01:00
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: python-qt4
|
|
|
|
BuildRequires: update-desktop-files
|
2016-07-04 13:58:15 +02:00
|
|
|
Recommends: python-discid
|
2012-02-23 12:06:28 +01:00
|
|
|
Requires: python-qt4
|
2015-12-08 19:57:29 +01:00
|
|
|
Recommends: chromaprint-fpcalc
|
2010-09-21 12:53:13 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
MusicBrainz Picard is a cross-platform MusicBrainz tag editor written in
|
|
|
|
Python. Picard Tagger is intended to be the next generation of tagger for
|
|
|
|
MusicBrainz, with a focus on album oriented tagging as opposed to track based
|
|
|
|
tagging and cross platform compatibility.
|
|
|
|
|
|
|
|
%lang_package
|
2015-03-12 10:01:45 +01:00
|
|
|
|
2010-09-21 12:53:13 +02:00
|
|
|
%prep
|
2017-02-14 15:37:35 +01:00
|
|
|
%setup -q -n %{name}-release-1.4
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2010-09-21 12:53:13 +02:00
|
|
|
|
|
|
|
%build
|
2012-02-21 12:14:04 +01:00
|
|
|
python setup.py config
|
|
|
|
python setup.py build
|
2010-09-21 12:53:13 +02:00
|
|
|
|
|
|
|
%install
|
2012-02-21 12:14:04 +01:00
|
|
|
python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
2010-09-21 12:53:13 +02:00
|
|
|
|
|
|
|
# install plugins
|
2012-02-21 12:14:04 +01:00
|
|
|
PLUGINDIR=%{buildroot}%{py_sitedir}/picard/plugins/
|
2010-09-21 12:53:13 +02:00
|
|
|
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}
|
|
|
|
|
|
|
|
%suse_update_desktop_file -G "Music Tagger" -N "picard" picard
|
|
|
|
|
2016-02-24 17:07:54 +01:00
|
|
|
rm -rfv %{buildroot}%{_datadir}/locale/sco
|
|
|
|
|
2015-03-12 10:01:45 +01:00
|
|
|
%find_lang %{name} %{name}.lang
|
|
|
|
%find_lang %{name}-countries %{name}.lang
|
|
|
|
%find_lang %{name}-attributes %{name}.lang
|
2010-09-21 12:53:13 +02:00
|
|
|
|
|
|
|
%post
|
2012-04-11 15:35:39 +02:00
|
|
|
%icon_theme_cache_post
|
2010-09-21 12:53:13 +02:00
|
|
|
|
|
|
|
%postun
|
2012-04-11 15:35:39 +02:00
|
|
|
%icon_theme_cache_postun
|
2010-09-21 12:53:13 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS.txt COPYING.txt NEWS.txt
|
|
|
|
%{_bindir}/picard
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2012-04-11 15:35:39 +02:00
|
|
|
%{python_sitearch}/picard*
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/picard.png
|
2017-02-14 15:37:35 +01:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/picard.svg
|
2012-04-11 15:35:39 +02:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
2010-09-21 12:53:13 +02:00
|
|
|
|
|
|
|
%changelog
|