Introduce openrgb udev rule rpm package
Some checks failed
Build openrgb-udev-rules / Build and push image (push) Failing after 1m55s
Some checks failed
Build openrgb-udev-rules / Build and push image (push) Failing after 1m55s
This commit is contained in:
32
.gitea/workflows/build-openrgb-udev-rules.yml
Normal file
32
.gitea/workflows/build-openrgb-udev-rules.yml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: Build openrgb-udev-rules
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- .gitea/workflows/build-openrgb-udev-rules.yml
|
||||||
|
- "openrgb-udev-rules.spec"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_push:
|
||||||
|
name: Build and push image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Setup environment
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y podman iptables
|
||||||
|
|
||||||
|
# These stage versions are pinned by https://github.com/renovatebot/renovate
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6 # v5
|
||||||
|
|
||||||
|
- name: Build RPM and Upload
|
||||||
|
uses: https://git.hydrosaber.com/hydros/build-rpm@main
|
||||||
|
with:
|
||||||
|
spec-file-path: ./openrgb-udev-rules.spec
|
||||||
|
repository-user: eriq12
|
||||||
|
repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }}
|
||||||
38
openrgb-udev-rules.spec
Normal file
38
openrgb-udev-rules.spec
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
Name: openrgb-udev-rules
|
||||||
|
Vendor: hydros
|
||||||
|
Version: 0.9
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: Additional udev file for openrgb support
|
||||||
|
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://openrgb.org/
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
Supplements: systemd-udev
|
||||||
|
|
||||||
|
Source0: https://openrgb.org/releases/release_%{version}/60-openrgb.rules
|
||||||
|
|
||||||
|
%description
|
||||||
|
Adds udev rules providing compatibilities for supported openrgb devices
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p -m0755 %{buildroot}%{_datadir}/%{VENDOR}/openrgb
|
||||||
|
|
||||||
|
# add openrgb remote-sourced rules
|
||||||
|
install -m0644 %{SOURCE0} %{buildroot}%{_datadir}/%{VENDOR}/openrgb/60-openrgb.rules
|
||||||
|
|
||||||
|
mkdir -p -m0755 %{buildroot}%{_exec_prefix}/lib/udev/rules.d
|
||||||
|
install -p -m0644 %{buildroot}%{_datadir}/%{VENDOR}/openrgb/60-openrgb.rules %{buildroot}%{_exec_prefix}/lib/udev/rules.d/
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_datadir}/%{VENDOR}/openrgb/60-openrgb.rules
|
||||||
|
%{_exec_prefix}/lib/udev/rules.d/60-openrgb.rules
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
%autochangelog
|
||||||
Reference in New Issue
Block a user