-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update OpenTabletDriver to .NET 8 (#1816)
* fix: update OpenTabletDriver to .NET 8 * create a temp dir for doing stuff (cherry picked from commit 3ca853a)
- Loading branch information
1 parent
b391b7d
commit 3ccd903
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,21 +5,23 @@ | |
# 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 | ||
|
||
Name: opentabletdriver | ||
Version: 0.6.4.0 | ||
Release: 1%{?dist} | ||
Summary: A cross-platform open source tablet driver | ||
License: LGPLv3 | ||
URL: https://github.com/OpenTabletDriver/OpenTabletDriver | ||
Packager: Cappy Ishihara <[email protected]> | ||
%define otddir OpenTabletDriver-%{version} | ||
|
||
BuildRequires: dotnet-sdk-6.0 git jq systemd-rpm-macros | ||
BuildRequires: dotnet-sdk-%{dotnet_runtime_version} | ||
BuildRequires: git jq systemd-rpm-macros | ||
|
||
Requires: dotnet-runtime-6.0 | ||
Requires: dotnet-runtime-%{dotnet_runtime_version} | ||
Requires: libevdev.so.2()(64bit) | ||
Requires: gtk3 | ||
Requires: gtk3 | ||
Requires: udev | ||
Suggests: libX11 | ||
Suggests: libXrandr | ||
|
@@ -28,12 +30,16 @@ Suggests: libXrandr | |
OpenTabletDriver is an open source, cross platform, user mode tablet driver. The goal of OpenTabletDriver is to be cross platform as possible with the highest compatibility in an easily configurable graphical user interface. | ||
|
||
%prep | ||
mkdir -p %{otddir} | ||
cd %{otddir} | ||
git clone -b v%version %url . | ||
|
||
%build | ||
cd %{otddir} | ||
./eng/linux/package.sh --output bin | ||
|
||
%install | ||
cd %{otddir} | ||
export DONT_STRIP=1 | ||
PREFIX="%{_prefix}" ./eng/linux/package.sh --package Generic --build false | ||
mkdir -p "%{buildroot}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
rpm.version(gh("OpenTabletDriver/OpenTabletDriver")); | ||
# todo: Check latest .NET runtime version from Fedora repos and set macros accordingly | ||
|
||
rpm.version(gh("OpenTabletDriver/OpenTabletDriver")); |