File xfce4-mixer.spec of Package xfce4-mixer
#
# spec file for package xfce4-mixer
#
# 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 panel_version 4.14.0
%define plugin mixer
%bcond_with git
Name: xfce4-mixer
Version: 4.18.1
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.18/xfce4-mixer-%{version}.tar.bz2
Source100: %{name}-rpmlintrc
BuildRequires: alsa-devel
BuildRequires: intltool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
%if %{with git}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: xfce4-dev-tools
%endif
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(libnotify)
BuildRequires: pkgconfig(libpulse-mainloop-glib)
BuildRequires: pkgconfig(libxfce4panel-2.0) >= %{panel_version}
BuildRequires: pkgconfig(libxfce4ui-2) >= 4.12.0
BuildRequires: pkgconfig(libxfce4util-1.0) >= 4.12.0
BuildRequires: pkgconfig(libxfconf-0) >= 4.12.0
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
%if %{with git}
NOCONFIGURE=1 xdt-autogen
%configure \
--enable-maintainer-mode \
--disable-static
%else
%configure --disable-static
%endif
%make_build
%install
%make_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
%{!?with_git:%doc NEWS}
%{_bindir}/xfce4-mixer
%{_datadir}/applications/*.desktop
%if %{with git}
%dir %{_datadir}/xfce4
%dir %{_datadir}/xfce4/mixer
%{_datadir}/xfce4/mixer/icons
%else
%{_datadir}/xfce4/mixer
%endif
%{_datadir}/pixmaps/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