File xfce4-taskmanager.spec of Package xfce4-taskmanager

#
# spec file for package xfce4-taskmanager
#
# 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/
#


Name:           xfce4-taskmanager
Version:        1.5.7
Release:        0
Summary:        Simple Taskmanager for the Xfce Desktop Environment
License:        GPL-2.0-or-later
Group:          System/Monitoring
URL:            https://docs.xfce.org/apps/xfce4-taskmanager
Source:         https://archive.xfce.org/src/apps/%{name}/1.5/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE xfce4-taskmanager-relax-x11-version.patch lower required X11 version to allow building for Leap which only has 1.6.5, which is enough, though
Patch0:         xfce4-taskmanager-relax-x11-version.patch
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(cairo) >= 1.5.0
BuildRequires:  pkgconfig(glib-2.0) >= 2.50.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22.0
BuildRequires:  pkgconfig(libwnck-3.0) >= 3.2
BuildRequires:  pkgconfig(libxfce4ui-2) >= 4.14
BuildRequires:  pkgconfig(libxfconf-0) >= 4.14
BuildRequires:  pkgconfig(xmu) >= 1.1.2
# uses exo-open
Requires:       exo-tools
Recommends:     %{name}-lang = %{version}

%description
xfce4-taskmanager is a simple taskmanager for the Xfce desktop environment. It
can display window and icon names in a tree view, columns can be reordered, and
CPU and memory usage are displayed as a graph.

%lang_package

%prep
%autosetup -p1

%build
%configure \
	--enable-gtk3
%make_build

%install
%make_install

%suse_update_desktop_file -r %{name} GTK System Monitor

%find_lang %{name} %{?no_lang_C}

%files
%doc AUTHORS NEWS README.md THANKS
%license COPYING
%{_bindir}/xfce4-taskmanager
%{_datadir}/applications/xfce4-taskmanager.desktop
%{_datadir}/icons/hicolor/*/actions/xc_crosshair*
%{_datadir}/icons/hicolor/*/apps/org.xfce.taskmanager.*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by