mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-04-10 06:44:37 +00:00
chore(HandyGCCS): Move spec out of tree
Moved here: https://github.com/kylegospo/handygccs
This commit is contained in:
parent
f7d6512198
commit
5e92fad32f
@ -1,58 +0,0 @@
|
|||||||
Name: HandyGCCS
|
|
||||||
%global _servicename handycon
|
|
||||||
Version: 2.0.0
|
|
||||||
Release: 1%{?dist}
|
|
||||||
Summary: Handheld Game Console Controller Support (Handy Geeks) for Linux
|
|
||||||
|
|
||||||
License: GPLv3
|
|
||||||
URL: https://github.com/ShadowBlip/%{name}
|
|
||||||
Source: %{url}/archive/refs/heads/main.zip
|
|
||||||
Patch0: fedora.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-pip
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
|
|
||||||
Requires: python3-evdev
|
|
||||||
|
|
||||||
%description
|
|
||||||
Handheld Game Console Controller Support (Handy Geeks) for Linux
|
|
||||||
|
|
||||||
# Disable debug packages
|
|
||||||
%define debug_package %{nil}
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -n %{name}-main
|
|
||||||
%patch 0 -p0
|
|
||||||
|
|
||||||
%build
|
|
||||||
# %make_build
|
|
||||||
# bash ./build.sh
|
|
||||||
%{__python3} -m venv venv
|
|
||||||
source venv/bin/activate
|
|
||||||
python -m pip install --upgrade pip setuptools
|
|
||||||
python -m pip install wheel build
|
|
||||||
python -m build --wheel --no-isolation
|
|
||||||
|
|
||||||
%install
|
|
||||||
cd "%{_builddir}/%{name}-main/dist"
|
|
||||||
%{__python3} -m pip install --target %{buildroot}%{python3_sitelib} %{_servicename}-*.whl
|
|
||||||
cp -r %{_builddir}/%{name}-main/usr %{buildroot}/
|
|
||||||
mkdir -p %{buildroot}/usr/bin
|
|
||||||
mv %{buildroot}%{python3_sitelib}/bin/%{_servicename} %{buildroot}/usr/bin
|
|
||||||
rm -r %{buildroot}%{python3_sitelib}/bin
|
|
||||||
|
|
||||||
%files
|
|
||||||
/usr/bin/handycon
|
|
||||||
%{python3_sitelib}/%{_servicename}
|
|
||||||
%{python3_sitelib}/%{_servicename}-%{version}.dist-info
|
|
||||||
/usr/lib/systemd/system/handycon.service
|
|
||||||
/usr/lib/udev/hwdb.d/59-handygccs-ayaneo.hwdb
|
|
||||||
/usr/lib/udev/rules.d/60-handycon.rules
|
|
||||||
/usr/share/handygccs/scripts/capture-system.py
|
|
||||||
|
|
||||||
%post
|
|
||||||
/usr/bin/systemctl enable %{_servicename}
|
|
||||||
/usr/bin/systemd-hwdb update
|
|
||||||
/usr/sbin/udevadm control -R
|
|
@ -1,23 +0,0 @@
|
|||||||
diff --git src/handycon/constants.py src/handycon/constants.py
|
|
||||||
index c725ea0..ae4bd72 100755
|
|
||||||
--- src/handycon/constants.py
|
|
||||||
+++ src/handycon/constants.py
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-#!/sbin/python3
|
|
||||||
+#!/usr/bin/python3
|
|
||||||
# This file is part of Handheld Game Console Controller System (HandyGCCS)
|
|
||||||
# Copyright 2022-2023 Derek J. Clark <derekjohn.clark@gmail.com>
|
|
||||||
|
|
||||||
diff --git usr/share/handygccs/scripts/capture-system.py usr/share/handygccs/scripts/capture-system.py
|
|
||||||
index 50bdcfa..cc37d42 100755
|
|
||||||
--- usr/share/handygccs/scripts/capture-system.py
|
|
||||||
+++ usr/share/handygccs/scripts/capture-system.py
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-#!/sbin/python3
|
|
||||||
+#!/usr/bin/python3
|
|
||||||
# Capture System
|
|
||||||
# Copyright 2022 Derek J. Clark <derekjohn dot clark at gmail dot com>
|
|
||||||
# Produces an output file that caputres relevant system data that can be uploaded
|
|
||||||
--
|
|
||||||
2.39.3
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user