-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
project pkg { | ||
rpm { | ||
spec = "duet-quirks.spec" | ||
} | ||
labels { | ||
nightly = "1" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
%global commit_date 20240824 | ||
%global commit d22b585a81b8645f1d660b4db22c95231c4301cf | ||
%global shortcommit %(c=%{commit}; echo ${c:0:7}) | ||
%global debug_package %{nil} | ||
%define __os_install_post %{nil} | ||
|
||
Name: duet-quirks | ||
Version: %commit_date.%shortcommit | ||
Release: 1%?dist | ||
|
||
License: CC-BY-SA-4.0 | ||
Summary: Quirks for the Lenovo Duet Chromebooks on Ultramarine Linux | ||
URL: https://github.com/Ultramarine-Linux/duet-quirks | ||
Source0: https://github.com/Ultramarine-Linux/duet-quirks/archive/%{commit}/duet-quirks-%{commit}.tar.gz | ||
|
||
Requires: udev libinput | ||
|
||
BuildArch: noarch | ||
|
||
%description | ||
Quirks for the Lenovo Duet Chromebooks on Ultramarine Linux. | ||
Including a libinput rule for trackpad configuration and a udev rule for display rotation. | ||
|
||
%prep | ||
%autosetup -n duet-quirks-%commit | ||
|
||
%install | ||
install -Dm644 udev/61-cros-ec-accel.rules %buildroot%{_sysconfdir}/udev/61-cros-ec-accel.rules | ||
install -Dm644 libinput/local-overrides.quirks %buildroot%{_sysconfdir}/libinput/local-overrides.quirks | ||
|
||
%files | ||
%doc README.md | ||
%license LICENSE | ||
%{_sysconfdir}/udev/61-cros-ec-accel.rules | ||
%{_sysconfdir}/libinput/local-overrides.quirks | ||
|
||
%changelog | ||
* Sat Aug 25 2024 junefish <[email protected]> | ||
- Initial package |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if filters.contains("nightly") { | ||
rpm.global("commit", gh_commit("Ultramarine-Linux/duet-quirks")); | ||
if rpm.changed() { | ||
rpm.release(); | ||
rpm.global("commit_date", date()); | ||
} | ||
} |