File xfce4-generic-slider.spec of Package xfce4-generic-slider

#
# spec file for package xfce4-generic-slider
#
# Copyright (c) 2025 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 xfce_version 4.18.0
Name:           xfce4-generic-slider
Version:        1.1.0
Release:        0
Summary:        A panel widget to control user-configurable variables
License:        GPL-3.0-or-later
URL:            https://docs.xfce.org/panel-plugins/xfce4-generic-slider/start
Source0:        https://archive.xfce.org/src/apps/xfce4-generic-slider/1.1/%{name}-%{version}.tar.xz
BuildRequires:  meson >= 0.54.0
BuildRequires:  pkgconfig(glib-2.0) >= 2.50.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22.0
BuildRequires:  pkgconfig(libxfce4panel-2.0) >= %{xfce_version}
BuildRequires:  pkgconfig(libxfce4ui-2) >= %{xfce_version}
BuildRequires:  pkgconfig(libxfce4util-1.0) >= %{xfce_version}

%description
Xfce4-generic-slider is a tool to help Xfce users deal with a variable
which they wish to both GET and SET. The getting side is similar to what
xfce4-genmon-plugin does except the command's numerical output is
represented visually in a slider. Dragging the slider is then used to
set the value through calls to a second command.

%lang_package

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install

%find_lang xfce4-generic-slider %{?no_lang_C}

%files
%license COPYING
%doc AUTHORS NEWS README.md
%{_libdir}/xfce4/panel/plugins/libgeneric-slider.so
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/icons/hicolor/*/*/*.svg
%{_datadir}/xfce4/panel/plugins/generic-slider.desktop

%files lang -f xfce4-generic-slider.lang

%changelog
openSUSE Build Service is sponsored by