File GPU-Viewer.spec of Package GPU-Viewer
#
# spec file for package GPU-Viewer
#
# Copyright (c) 2024-2025 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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: GPU-Viewer
Version: 3.12+1
Release: 0
Summary: A front-end to glxinfo, vulkaninfo, clinfo and es2_info
License: GPL-3.0
URL: https://github.com/arunsivaramanneo/GPU-Viewer
Source0: %{name}-%{version}.tar.xz
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: meson
## FIXME List of requires likely needs extending depending on user hardware
## MANUAL BEGIN
Requires: Mesa-demo-egl
Requires: Mesa-demo-es
Requires: Mesa-vulkan-device-select
Requires: clinfo
Requires: libva-utils
Requires: lsb-release
Requires: typelib-1_0-Adw-1
Requires: typelib-1_0-Gtk-4_0
Requires: vulkan-tools
## MANUAL END
BuildArch: noarch
%description
This project aims to capture all the important details of glxinfo, vulkaninfo and
clinfo in a GUI.
All the important details are extracted using glxinfo/vulkaninfo/clinfo with the
combination of grep, CAT , AWK commands and displayed in the front-end. There is
no hard OpenGL Programming involved, until glxinfo, vulkaninfo and clinfo works,
the GPU-viewer will also work.
%prep
%autosetup
%build
%meson
%meson_build
%install
%meson_install
## Remove as we install as %%license and %%doc
rm -f %{buildroot}%{_datadir}/gpu-viewer/LICENSE
rm -f %{buildroot}%{_datadir}/gpu-viewer/README.md
%fdupes -s %{buildroot}
%files
%license LICENSE
%doc README.md
%{_bindir}/gpu-viewer
%{_datadir}/gpu-viewer
%{_datadir}/metainfo/io.github.arunsivaramanneo.GPUViewer.metainfo.xml
%{_datadir}/applications/io.github.arunsivaramanneo.GPUViewer.desktop
%{_datadir}/icons/hicolor/*/apps/io.github.arunsivaramanneo.GPUViewer.png
%changelog