File mp3diags.spec of Package mp3diags
#
# spec file for package mp3diags
#
# Copyright © 2019 Markus S. <kamikazow@opensuse.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
Name: mp3diags
Version: 1.5.01
Release: 0
Summary: Find and fix problems in MP3 files
License: GPL-2.0-only
Group: Productivity/Multimedia/Sound/Editors and Convertors
Url: https://github.com/mciobanu/mp3diags/
Source0: https://github.com/mciobanu/mp3diags/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}.svg
BuildRequires: binutils gcc gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libboost_serialization-devel
BuildRequires: libboost_program_options-devel
BuildRequires: libqt5-linguist
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(zlib)
BuildRequires: update-desktop-files
%description
MP3 Diags finds problems in MP3 files and helps the user fix many of them. It
looks at both the audio part (VBR info, quality, normalization) and the tags
containing track information (ID3). It has a tag editor and a file renamer
which can rename files based on the fields in their ID3V2 tag (artist, track
number, album, genre, etc.).
%package lang
Summary: Translations for MP3 Diags
BuildArch: noarch
%description lang
Translations into various languages for MP3 Diags
%prep
%setup -q
%build
./Build.sh
%install
# Install binary
mkdir -p %{buildroot}/%{_bindir}
install -D -m 0755 ./bin/MP3Diags-unstable %{buildroot}%{_bindir}/%{name}
# Install hires icon
install -p -D -m 0644 %{S:1} %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
# Install translations
mkdir -p %{buildroot}/%{_datadir}/mp3diags-unstable/translations/
cp ./bin/*.qm %{buildroot}/%{_datadir}/mp3diags-unstable/translations/
# Generate and install "mp3diags.desktop"
%suse_update_desktop_file -c mp3diags MP3Diags "MP3 diagnosis and repair tool" mp3diags mp3diags Audio AudioVideoEditing
%files
%defattr(-,root,root)
%doc README.TXT
%license COPYING
%{_bindir}/mp3diags
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%files lang
%defattr(-,root,root)
%{_datadir}/mp3diags-unstable
%changelog