File alsa-scarlett-gui.spec of Package alsa-scarlett-gui

#
# spec file for package alsa-scarlett-gui
#
# Copyright (c) 2023 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 source_date_epoch_from_changelog 0
Name:           alsa-scarlett-gui
Version:        0.5.1+git.0.e6fbb4f
Release:        0
Summary:        GUI for the Focusrite Scarlett Gen 2/3 Mixer Driver
License:        GPL-3.0-or-later AND LGPL-3.0-or-later
Group:          Productivity/Multimedia/Sound/Utilities
URL:            https://github.com/geoffreybennett/alsa-scarlett-gui
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libssl)
BuildRequires:  pkgconfig(gtk4)

%description
Gtk4 GUI for the ALSA controls presented by the Linux kernel Focusrite Scarlett Gen 2/3 Mixer Driver.

%prep
%setup -q
%if 0%{?suse_version} < 1600
sed -i -e 's/-D_FORTIFY_SOURCE=3/-D_FORTIFY_SOURCE=2/' src/Makefile
%endif

%build
%make_build -C src PREFIX="%{_prefix}"

%install
%make_install  -C src PREFIX="%{_prefix}"

%files
%license LICENSES/GPL-3.0-or-later.txt LICENSES/LGPL-3.0-or-later.txt
%doc README.md FAQ.md
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/256x256/apps/vu.b4.alsa-scarlett-gui.png
%{_datadir}/applications/vu.b4.alsa-scarlett-gui.desktop

%changelog
openSUSE Build Service is sponsored by