File xfce4-mixer.spec of Package xfce4-mixer
#
# spec file for package xfce4-mixer
#
# Copyright (c) 2024 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 panel_version 4.20.0
%define plugin mixer
Name: xfce4-mixer
Version: 4.20.0
Release: 0
Summary: Volume Control Application for the Xfce Desktop Environment
License: GPL-2.0-or-later
Group: Productivity/Multimedia/Sound/Mixers
URL: https://www.xfce.org/
Source0: https://archive.xfce.org/src/apps/xfce4-mixer/4.20/xfce4-mixer-%{version}.tar.xz
Source100: %{name}-rpmlintrc
BuildRequires: alsa-devel
BuildRequires: gettext >= 0.19.8
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0) >= 2.50.0
BuildRequires: pkgconfig(gstreamer-1.0) >= 1.0
BuildRequires: pkgconfig(gthread-2.0) >= 2.50.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.22.0
BuildRequires: pkgconfig(keybinder-3.0) >= 0.3
BuildRequires: pkgconfig(libpulse-mainloop-glib) >= 0.9.19
BuildRequires: pkgconfig(libxfce4panel-2.0) >= %{panel_version}
BuildRequires: pkgconfig(libxfce4ui-2) >= %{panel_version}
BuildRequires: pkgconfig(libxfce4util-1.0) >= %{panel_version}
BuildRequires: pkgconfig(libxfconf-0) >= %{panel_version}
# Work around broken provides on Leap
%if 0%{?suse_version} > 1500
BuildRequires: pkgconfig(sndio)
%endif
Recommends: %{name}-lang = %{version}
Suggests: xfce4-panel-plugin-mixer
%description
xfce4-mixer is a volume control application for the Xfce desktop
environment.
%package -n xfce4-%{plugin}-plugin
Summary: Volume Control Plugin for the Xfce Panel
Group: Productivity/Multimedia/Sound/Mixers
Requires: %{name} = %{version}
Requires: xfce4-panel >= %{panel_version}
# package was renamed in 2019 after Leap 15.1
Provides: xfce4-panel-plugin-%{plugin} = %{version}-%{release}
Obsoletes: xfce4-panel-plugin-%{plugin} < %{version}-%{release}
%description -n xfce4-%{plugin}-plugin
This package contains the xfce4-mixer Xfce panel plugin.
%lang_package
%prep
%autosetup -p1
%build
%meson \
%if 0%{?suse_version} < 1599
-Dsndio=disabled
%endif
%meson_build
%install
%meson_install
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
rm -f %{buildroot}%{_libdir}/xfce4/panel/plugins/libmixer.la
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file -i xfce4-mixer Settings DesktopSettings
%files
%license COPYING
%doc AUTHORS README
%{_bindir}/xfce4-mixer
%{_datadir}/applications/*.desktop
%{_datadir}/xfce4/mixer
%{_mandir}/man1/xfce4-mixer.1*
%files -n xfce4-mixer-plugin
%{_libdir}/xfce4/panel/plugins/libmixer.so
%{_datadir}/xfce4/panel/plugins/mixer.desktop
%files lang -f %{name}.lang
%changelog