File picard.spec of Package picard

#
# spec file for package picard
#
# Copyright (c) 2017 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
# 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
Version:        1512585114.5dad06ef
Release:        0
Summary:        Official MusicBrainz tagger
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Utilities
Url:            https://picard.musicbrainz.org/
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       chromaprint-fpcalc
Requires:       python3-discid
Requires:       python3-mutagen
Requires:       python3-qt5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
MusicBrainz Picard is a cross-platform (Linux/Mac OS X/Windows) application
written in Python and is the official MusicBrainz tagger.

%lang_package

%prep
echo 1
%setup -q
sed "/E265/d" -i setup.cfg

%build
echo 3
%python3_build

%install
%python3_install
%find_lang %{name} %{name}.lang
%find_lang %{name}-countries %{name}.lang
%find_lang %{name}-attributes %{name}.lang
rm %{buildroot}/usr/picard.in
%fdupes %{buildroot}

%files
%defattr(-,root,root)
%doc README.md
%{_bindir}/picard
%{python3_sitearch}/picard*
%{_datadir}/applications/picard.desktop
%{_datadir}/icons/hicolor

%files lang -f %{name}.lang

%changelog