From f3347f1bde539d3ab65d89e232269cb144aa8158 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Sat, 16 Sep 2023 00:09:05 -0700 Subject: [PATCH] feat: Add gnome-randr --- Containerfile | 1 + README.md | 1 + spec_files/gnome-randr-rust/LICENSE | 19 +++++++++ .../gnome-randr-rust/gnome-randr-rust.spec | 40 +++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 spec_files/gnome-randr-rust/LICENSE create mode 100644 spec_files/gnome-randr-rust/gnome-randr-rust.spec diff --git a/Containerfile b/Containerfile index 342bad7a..2e1a697a 100644 --- a/Containerfile +++ b/Containerfile @@ -116,6 +116,7 @@ RUN if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \ rpm-ostree install \ steamdeck-backgrounds \ gradience \ + gnome-randr-rust \ gnome-shell-extension-user-theme \ gnome-shell-extension-gsconnect \ gnome-shell-extension-system76-scheduler \ diff --git a/README.md b/README.md index 59a3f621..e49222c6 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,7 @@ Ported SteamOS and ChimeraOS packages, among others used by Bazzite, are built o |[extest](https://github.com/Supreeeme/extest)|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite-multilib/package/extest/status_image/last_build.png?)| |gamescope|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gamescope/status_image/last_build.png?)| |[gamescope-session](https://github.com/ChimeraOS/gamescope-session)|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gamescope-session/status_image/last_build.png?)| +|[gnome-randr-rust](https://github.com/maxwellainatchi/gnome-randr-rust)|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gnome-randr-rust/status_image/last_build.png?)| |gnome-shell-extension-bazzite-menu|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gnome-shell-extension-bazzite-menu/status_image/last_build.png?)| |[gnome-shell-extension-caribou-blocker](https://extensions.gnome.org/extension/1326/block-caribou/)|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gnome-shell-extension-caribou-blocker/status_image/last_build.png?)| |[gnome-shell-extension-hanabi](https://github.com/jeffshee/gnome-ext-hanabi)|![Build Status](https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/package/gnome-shell-extension-hanabi/status_image/last_build.png?)| diff --git a/spec_files/gnome-randr-rust/LICENSE b/spec_files/gnome-randr-rust/LICENSE new file mode 100644 index 00000000..732882c0 --- /dev/null +++ b/spec_files/gnome-randr-rust/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2022 Valve Corporation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/spec_files/gnome-randr-rust/gnome-randr-rust.spec b/spec_files/gnome-randr-rust/gnome-randr-rust.spec new file mode 100644 index 00000000..4ad4d48a --- /dev/null +++ b/spec_files/gnome-randr-rust/gnome-randr-rust.spec @@ -0,0 +1,40 @@ +Name: gnome-randr-rust +Version: {{{ git_dir_version }}} +Release: 1%{?dist} +Summary: xrandr for Gnome/wayland, on distros that don't support wlr-randr + +License: MIT +URL: https://github.com/maxwellainatchi/gnome-randr-rust +Source: %{url}/archive/refs/heads/main.zip + +BuildRequires: rust-packaging >= 21 +BuildRequires: lm_sensors-devel +BuildRequires: systemd-rpm-macros + +%description +xrandr for Gnome/wayland, on distros that don't support wlr-randr + +%prep +%setup -n %{name}-main +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install +rm -rf %{buildroot}%{_datadir}/cargo/registry + +%if %{with check} +%check +%cargo_test +%endif + +%files +%{_bindir}/gnome-randr + +%changelog +%autochangelog