File rsgain.spec of Package rsgain
#
# spec file for package rsgain
#
# Copyright (c) 2025 SUSE LINUX Products 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: rsgain
Version: 3.6
Release: 0
License: BSD-2-Clause AND BSD-3-Clause
Summary: ReplayGain 2.0 loudness normalizer
URL: https://github.com/complexlogic/rsgain
Group: Sound Conversion Tools
Source0: https://github.com/complexlogic/rsgain/releases/download/v%{version}/rsgain-%{version}-source.tar.xz
BuildRequires: cmake
BuildRequires: pkgconfig(fmt)
BuildRequires: pkgconfig(inih)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libebur128)
BuildRequires: pkgconfig(taglib)
%if 0%{?suse_version} > 1500
BuildRequires: gcc-c++
%else
BuildRequires: gcc13-c++
%endif
%description
A modern ReplayGain 2.0 loudness normalizer utility
%prep
%autosetup -p1
%build
export CXX=g++
test -x "$(type -p g++-13)" && export CXX=g++-13
%cmake
%cmake_build
%install
%cmake_install
%check
%files
%license LICENSE LICENSE-CRCpp
%doc CHANGELOG README.md
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/presets
%{_bindir}/rsgain
%{_datadir}/%{name}/presets/default.ini
%{_datadir}/%{name}/presets/ebur128.ini
%{_datadir}/%{name}/presets/loudgain.ini
%{_datadir}/%{name}/presets/no_album.ini