Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 118776d1ce | |||
| c228901f89 | |||
| bf474e56eb | |||
| c19c9288fd | |||
| 90aa8b41e4 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b6413630b346aa132fb27ff1ee890061d3e86e0db42a991efe50b98eafd478b7
|
||||
size 33636
|
||||
3
switcheroo-control-3.0.tar.gz
Normal file
3
switcheroo-control-3.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7c690b8e01a88493c43f760f6ab317ea7200e87d17cdeb796a6f4ce81f323537
|
||||
size 38201
|
||||
@@ -1,2 +0,0 @@
|
||||
# No man from upstream
|
||||
addFilter("switcheroo-control.* no-manual-page-for-binary")
|
||||
@@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 2 13:00:56 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Pull in kernel-devel and enable xe-drm.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 27 14:45:28 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 3.0:
|
||||
* Add new API to discover discrete GPUs; works with amdgpu,
|
||||
nouveau, i915, xe, and the proprietary NVIDIA driver.
|
||||
* Include environment variable VK_LOADER_DRIVERS_SELECT for
|
||||
selecting the approriate Vulkan driver.
|
||||
* Add Xe and AMDGPU drivers to the Vulkan driver list.
|
||||
- Build with discrete-gpu check for Intel Xe disabled because
|
||||
meson cannot find `drm/xe_drm.h`, which for openSUSE kernels is
|
||||
in `/usr/src/linux-<VER>/include/uapi/`. Meson fails at
|
||||
configure unless this is disabled.
|
||||
- Drop unnecessary rpmlintrc file since man file has been
|
||||
installed for a while now and rpmlint does not complain about
|
||||
'missing man file'.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 26 13:38:29 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package switcheroo-control
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,21 +17,22 @@
|
||||
|
||||
|
||||
Name: switcheroo-control
|
||||
Version: 2.6
|
||||
Version: 3.0
|
||||
Release: 0
|
||||
Summary: D-Bus service to check the availability of dual-GPU
|
||||
Summary: D-Bus service to check the availability of dual GPUs
|
||||
License: GPL-3.0-only
|
||||
Group: Hardware/Other
|
||||
URL: https://gitlab.freedesktop.org/hadess/switcheroo-control
|
||||
Source0: https://gitlab.freedesktop.org/hadess/switcheroo-control/-/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}-rpmlintrc
|
||||
Source: https://gitlab.freedesktop.org/hadess/switcheroo-control/-/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: harden_switcheroo-control.service.patch
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: kernel-devel
|
||||
BuildRequires: meson >= 0.50
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: systemd-rpm-macros
|
||||
BuildRequires: pkgconfig(gio-2.0)
|
||||
BuildRequires: pkgconfig(gudev-1.0) >= 232
|
||||
BuildRequires: pkgconfig(libdrm)
|
||||
BuildRequires: pkgconfig(udev)
|
||||
%{?systemd_requires}
|
||||
# SECTION For tests
|
||||
@@ -41,7 +42,7 @@ BuildRequires: pkgconfig(umockdev-1.0)
|
||||
# /SECTION
|
||||
|
||||
%description
|
||||
switcheroo-control is a D-Bus service to check the availability of dual-GPU.
|
||||
switcheroo-control is a D-Bus service to check the availability of dual GPUs.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
@@ -55,10 +56,20 @@ This package contains the documentation for %{name}.
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%set_build_flags
|
||||
if test -f /usr/src/linux/include/uapi/drm/xe_drm.h; then
|
||||
mkdir -pv xinc/drm
|
||||
cp -av /usr/src/linux/include/uapi/drm/xe_drm.h xinc/drm/
|
||||
export CFLAGS="$CFLAGS -I$PWD/xinc"
|
||||
xmeson=""
|
||||
else
|
||||
xmeson="-Ddrm_xe=disabled"
|
||||
fi
|
||||
%meson \
|
||||
-Dsystemdsystemunitdir=%{_unitdir} \
|
||||
-Dhwdbdir=%{_udevhwdbdir} \
|
||||
-Dgtk_doc=true
|
||||
-Dsystemdsystemunitdir=%{_unitdir} \
|
||||
-Dhwdbdir=%{_udevhwdbdir} \
|
||||
-Dgtk_doc=true \
|
||||
$xmeson
|
||||
|
||||
%meson_build
|
||||
|
||||
@@ -87,9 +98,11 @@ This package contains the documentation for %{name}.
|
||||
%doc NEWS README.md
|
||||
%{_bindir}/switcherooctl
|
||||
%{_libexecdir}/switcheroo-control
|
||||
%{_libexecdir}/switcheroo-control-check-discrete-*
|
||||
%{_mandir}/man1/switcherooctl.1%{?ext_man}
|
||||
%{_unitdir}/switcheroo-control.service
|
||||
%{_udevhwdbdir}/30-pci-intel-gpu.hwdb
|
||||
%{_udevrulesdir}/30-discrete-gpu.rules
|
||||
%{_datadir}/dbus-1/system.d/net.hadess.SwitcherooControl.conf
|
||||
|
||||
%files doc
|
||||
|
||||
Reference in New Issue
Block a user