File puddletag.spec of Package puddletag

#
# spec file for package puddletag
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

%define pythons python3

Name:           puddletag
Version:        2.0.1
Release:        0
Summary:        An audio tag editor
License:        GPL-3.0-only
Group:          Productivity/Multimedia/Sound/Utilities
URL:            http://docs.puddletag.net
Source0:        %{name}-%{version}.tar
BuildRequires:  %{python_module setuptools}
BuildRequires:  update-desktop-files
BuildRequires:  fdupes
Requires:       python3-configobj
Requires:       python3-mutagen
Requires:       python3-pyparsing >= 1.5.5
Requires:       python3-qt5
Recommends:     python3-acoustid
BuildArch:      noarch

%description
%{name} is an audio tag editor (primarily created) for GNU/Linux similar
to the Windows program, Mp3tag. Unlike most taggers for GNU/Linux, it uses
a spreadsheet-like layout so that all the tags you want to edit by hand are
visible and easily editable. The usual tag editor features are supported
like extracting tag information from filenames, renaming files based on
their tags by using patterns and basic tag editing. Then there’re
Functions, which can do things like replace text, trim it, do case
conversions, etc. Actions can automate repetitive tasks. Doing web lookups
using Amazon (including cover art), Discogs (does cover art too!), FreeDB
and MusicBrainz is also supported. There’s quite a bit more, but I’ve
reached my comma quota. Supported formats: ID3v1, ID3v2 (mp3), MP4 (mp4,
m4a, etc.), VorbisComments (ogg, flac), Musepack (mpc), Monkey’s Audio
(.ape) and WavPack (wv).

%prep
%setup -q

%build
%{py3_build}

%install
%{py3_install}
%suse_update_desktop_file %{name} Mixer
%fdupes -s %buildroot/%{python_sitelib}

%files
%defattr(-,root,root)
%doc README TODO NEWS THANKS
%license LICENSE
%{_bindir}/%{name}
%{python_sitelib}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by