17
0

5 Commits

Author SHA256 Message Date
118776d1ce Accepting request 1315106 from hardware
- Update to version 3.0:

OBS-URL: https://build.opensuse.org/request/show/1315106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/switcheroo-control?expand=0&rev=14
2025-11-02 21:34:18 +00:00
c228901f89 Pull in kernel-devel and enable xe-drm
OBS-URL: https://build.opensuse.org/package/show/hardware/switcheroo-control?expand=0&rev=30
2025-11-02 13:02:49 +00:00
bf474e56eb * Update to version 3.0.
* 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'.

OBS-URL: https://build.opensuse.org/package/show/hardware/switcheroo-control?expand=0&rev=29
2025-11-02 12:30:15 +00:00
c19c9288fd OBS-URL: https://build.opensuse.org/package/show/hardware/switcheroo-control?expand=0&rev=28 2025-06-05 08:14:20 +00:00
90aa8b41e4 Accepting request 1282778 from home:sndirsch:branches:hardware
- changes of service file handling in %pre:
  * Mark to be set to presets, so packages like nvidia-video-G06 can
    make use of it; appropriate %systemd_post, %systemd_preun,
    %systemd_postun_with_restart macro usage to be provided in %post,
    %preun, %postun in these packages. And of course the preset itself.
- get rid of service file handling in %post/%preun/%postun; due to
  changes in %pre

OBS-URL: https://build.opensuse.org/request/show/1282778
OBS-URL: https://build.opensuse.org/package/show/hardware/switcheroo-control?expand=0&rev=27
2025-06-04 15:18:12 +00:00
5 changed files with 48 additions and 15 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b6413630b346aa132fb27ff1ee890061d3e86e0db42a991efe50b98eafd478b7
size 33636

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7c690b8e01a88493c43f760f6ab317ea7200e87d17cdeb796a6f4ce81f323537
size 38201

View File

@@ -1,2 +0,0 @@
# No man from upstream
addFilter("switcheroo-control.* no-manual-page-for-binary")

View File

@@ -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>

View File

@@ -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