From c0c2c28951a990fb998afac1b517baa5d97b01eb Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Wed, 3 Dec 2025 16:53:43 -0500 Subject: [PATCH] Introduce Hyprland GUI utils package --- .gitea/workflows/build-hyprland-guiutils.yml | 32 ++++++++++++ hyprland-guiutils.spec | 54 ++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 .gitea/workflows/build-hyprland-guiutils.yml create mode 100644 hyprland-guiutils.spec diff --git a/.gitea/workflows/build-hyprland-guiutils.yml b/.gitea/workflows/build-hyprland-guiutils.yml new file mode 100644 index 0000000..66ec9fc --- /dev/null +++ b/.gitea/workflows/build-hyprland-guiutils.yml @@ -0,0 +1,32 @@ +name: Build hyprland-guiutils +on: + push: + branches: + - main + paths: + - .gitea/workflows/build-hyprland-guiutils.yml + - "hyprland-guiutils.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: ./hyprland-guiutils.spec + repository-user: eriq12 + repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }} diff --git a/hyprland-guiutils.spec b/hyprland-guiutils.spec new file mode 100644 index 0000000..bee678e --- /dev/null +++ b/hyprland-guiutils.spec @@ -0,0 +1,54 @@ +Name: hyprland-guiutils +Version: 0.2.0 +Release: %autorelease +Summary: Hyprland Qt/qml utility apps +License: BSD-3-Clause +URL: https://github.com/hyprwm/hyprland-guiutils +Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: cmake +BuildRequires: gcc-c++ + +BuildRequires: cmake(Qt6Quick) +BuildRequires: cmake(Qt6QuickControls2) +BuildRequires: cmake(Qt6WaylandClient) +BuildRequires: cmake(Qt6Widgets) +BuildRequires: qt6-qtbase-private-devel +BuildRequires: pkgconfig(hyprlang) +BuildRequires: pkgconfig(hyprtoolkit) +BuildRequires: pkgconfig(pixman-1) +BuildRequires: pkgconfig(libdrm) +BuildRequires: pkgconfig(hyprutils) +BuildRequires: wayland-devel + +Requires: hyprland-qt-support%{?_isa} + +Obsoletes: hyprland-qtutils <= 0.1.5 + +%description +%{summary}. + +%prep +%autosetup + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%files +%license LICENSE +%doc README.md +%{_bindir}/hyprland-dialog +%{_bindir}/hyprland-donate-screen +%{_bindir}/hyprland-run +%{_bindir}/hyprland-update-screen +%{_bindir}/hyprland-welcome + +%changelog +%autochangelog