From 643d77c3f62954c6898f7617dd3a8f63dc391006 Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Sun, 30 Nov 2025 20:48:15 -0500 Subject: [PATCH] Introduce hyprutils building --- .gitea/workflows/build-hyprutils.yml | 32 +++++++++++++++++ hyprutils.spec | 51 ++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 .gitea/workflows/build-hyprutils.yml create mode 100644 hyprutils.spec diff --git a/.gitea/workflows/build-hyprutils.yml b/.gitea/workflows/build-hyprutils.yml new file mode 100644 index 0000000..f2f6418 --- /dev/null +++ b/.gitea/workflows/build-hyprutils.yml @@ -0,0 +1,32 @@ +name: Build hyprwayland-scanner +on: + push: + branches: + - main + paths: + - .gitea/workflows/build-hyprutils.yml + - "hyprutils.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: ./hyprutils.spec + repository-user: eriq12 + repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }} diff --git a/hyprutils.spec b/hyprutils.spec new file mode 100644 index 0000000..4dd60b3 --- /dev/null +++ b/hyprutils.spec @@ -0,0 +1,51 @@ +Name: hyprutils +Version: 0.10.4 +Release: %autorelease +Summary: Hyprland utilities library used across the ecosystem + +License: BSD-3-Clause +URL: https://github.com/hyprwm/hyprutils +Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: pkgconfig(pixman-1) + +%description +%{summary}. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description devel +Development files for %{name}. + +%prep +%autosetup -p1 + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%check +%ctest + +%files +%license LICENSE +%doc README.md +%{_libdir}/lib%{name}.so.%{version} +%{_libdir}/lib%{name}.so.9 + +%files devel +%{_includedir}/%{name}/ +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +%autochangelog