From a965d6086e9a64f1c6ab814dd3d615c48a1fdcc7 Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Tue, 20 Aug 2024 01:19:49 +0700 Subject: [PATCH] otd: Build using .NET 8, but require .NET 6 at runtime (#1967) (cherry picked from commit 6e9b162f0879ac9557d32f90e8f6a22a65edf586) --- anda/system/opentabletdriver/opentabletdriver.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/anda/system/opentabletdriver/opentabletdriver.spec b/anda/system/opentabletdriver/opentabletdriver.spec index 07068f1bff..7b505a42fc 100644 --- a/anda/system/opentabletdriver/opentabletdriver.spec +++ b/anda/system/opentabletdriver/opentabletdriver.spec @@ -5,19 +5,24 @@ # We aren't using Mono but RPM expected Mono %global __requires_exclude_from ^/usr/lib/opentabletdriver/.*$ %global __os_install_post %{nil} -%global dotnet_runtime_version 8.0 +%global dotnet_sdk_version 8.0 +%global dotnet_runtime_version 6.0 Name: opentabletdriver Version: 0.6.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A cross-platform open source tablet driver License: LGPLv3 URL: https://github.com/OpenTabletDriver/OpenTabletDriver Packager: Cappy Ishihara %define otddir OpenTabletDriver-%{version} -BuildRequires: dotnet-sdk-%{dotnet_runtime_version} + +# This package can be built using a newer .NET SDK version, but you +# specifically need .NET 6.0 to run it. +BuildRequires: dotnet-sdk-%{dotnet_sdk_version} BuildRequires: git jq systemd-rpm-macros +BuildRequires: gtk3-devel Requires: dotnet-runtime-%{dotnet_runtime_version} Requires: libevdev.so.2()(64bit)