intel-gpu-tools/intel-gpu-tools.spec

110 lines
3.1 KiB
RPMSpec

#
# spec file for package intel-gpu-tools
#
# Copyright (c) 2022 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: intel-gpu-tools
Version: 1.26
Release: 0
Summary: Collection of tools for development and testing of the Intel DRM driver
License: MIT
Group: Development/Tools/Other
URL: https://xorg.freedesktop.org/
Source0: http://xorg.freedesktop.org/releases/individual/app/igt-gpu-tools-%{version}.tar.xz
Source1: http://xorg.freedesktop.org/releases/individual/app/igt-gpu-tools-%{version}.tar.xz.sig
Patch0: u_%{name}-1.7-fix-bashisms.patch
#PATCH-FIX-UPSTREAM build with latest meson (commit 963917a3)
Patch1: intel-gpu-tools_fix-meson.patch
BuildRequires: bison
BuildRequires: flex
BuildRequires: meson
BuildRequires: peg
BuildRequires: pkgconfig
BuildRequires: python3-docutils
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(gsl)
BuildRequires: pkgconfig(gtk-doc)
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libdrm_intel) >= 2.4.82
BuildRequires: pkgconfig(libdw)
BuildRequires: pkgconfig(libkmod)
BuildRequires: pkgconfig(liboping)
BuildRequires: pkgconfig(libprocps)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(libunwind)
BuildRequires: pkgconfig(pciaccess) >= 0.10
BuildRequires: pkgconfig(valgrind)
BuildRequires: pkgconfig(xmlrpc)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xv)
# This was part of the xorg-x11-driver-video package up to version 7.6
Conflicts: xorg-x11-driver-video <= 7.6
# Intel GPU is only available on x86 and x86-64
ExclusiveArch: %{ix86} x86_64
%description
This is a collection of tools for development and testing of the Intel
DRM driver.
%package devel
Summary: Development files for %{name}
Group: Development/Tools/Other
Requires: %{name} = %{version}
%description devel
Development files and library headers for %{name}
%prep
%setup -q -n igt-gpu-tools-%{version}
%patch0
%patch1 -p1
%build
%meson
%meson_build
%install
%meson_install
%check
%meson_test
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc README.md
%license COPYING
%{_bindir}/*
%{_libexecdir}/igt-gpu-tools/
%{_datadir}/igt-gpu-tools/
%{_libdir}/libigt.so.0
%{_libdir}/libi915_perf.so.1
%{_mandir}/man1/intel_*
%doc %{_datadir}/gtk-doc/html/igt-gpu-tools/
%files devel
%{_libdir}/libigt.so
%{_libdir}/libi915_perf.so
%{_libdir}/pkgconfig/i915-perf.pc
%{_libdir}/pkgconfig/intel-gen4asm.pc
%{_includedir}/i915-perf/
%changelog