File aacgain.spec of Package aacgain

#
# spec file for package aacgain
#
# Copyright (c) 2022 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/
#


Name:           aacgain
Version:        2.0.0
Release:        0
Summary:        AAC Volume Normalizer based on Replay Gain
License:        GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
Group:          Productivity/Multimedia/Sound/Editors and Convertors
URL:            http://%{name}.altosdesign.com/
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libtool

%description
AACGain is a modification to Glen Sawyer's excellent MP3Gain program. It supports AAC (mp4/m4a/QuickTime) audio files in addition to MP3 files. AACGain normalizes the volume of digital music files using the Replay Gain algorithm. It works by modifying the global_gain fields in the aac samples. Free-form metadata tags are added to the file to save undo information, making the normalization process reversable. AACGain uses the same command-line user interface as MP3Gain.

%prep
%setup -q

%build
%cmake -DCMAKE_CXX_FLAGS="-s" -DCMAKE_BUILD_TYPE=Release
%cmake_build

%install
%cmake_install
%{__mkdir_p} %{buildroot}%{_defaultdocdir}/%{name}
%{__mkdir_p} %{buildroot}%{_defaultlicensedir}/%{name}
%{__install} -m 0644 -p -t %{buildroot}%{_defaultdocdir}/%{name} README
%{__install} -m 0644 -p -t %{buildroot}%{_defaultlicensedir}/%{name} %{name}/COPYING

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%{_defaultdocdir}/%{name}/
%{_defaultlicensedir}/%{name}/

%changelog
openSUSE Build Service is sponsored by