From 5e8ff937a91f21f604973371a4cd3abd4f09299c Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Wed, 3 Dec 2025 13:05:50 -0500 Subject: [PATCH] Introduced hyprlang --- .gitea/workflows/build-hyprlang.yml | 32 ++++++++++++++++++ hyprlang.spec | 52 +++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 .gitea/workflows/build-hyprlang.yml create mode 100644 hyprlang.spec diff --git a/.gitea/workflows/build-hyprlang.yml b/.gitea/workflows/build-hyprlang.yml new file mode 100644 index 0000000..9cd3fe8 --- /dev/null +++ b/.gitea/workflows/build-hyprlang.yml @@ -0,0 +1,32 @@ +name: Build hyprlang +on: + push: + branches: + - main + paths: + - .gitea/workflows/build-hyprlang.yml + - "hyprlang.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: ./hyprlang.spec + repository-user: eriq12 + repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }} diff --git a/hyprlang.spec b/hyprlang.spec new file mode 100644 index 0000000..a4c2904 --- /dev/null +++ b/hyprlang.spec @@ -0,0 +1,52 @@ +Name: hyprlang +Version: 0.6.7 +Release: %autorelease -b12 +Summary: The official implementation library for the hypr config language + +License: LGPL-3.0-only +URL: https://github.com/hyprwm/hyprlang +Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: pkgconfig(hyprutils) + +%description +%{summary}. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description devel +Development files for %{name}. + +%prep +%autosetup -p1 +sed 's/.*/%{version}/' -i VERSION + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%check +%ctest + +%files +%license LICENSE +%doc README.md +%{_libdir}/libhyprlang.so.2 +%{_libdir}/libhyprlang.so.%{version} + +%files devel +%{_includedir}/hyprlang.hpp +%{_libdir}/libhyprlang.so +%{_libdir}/pkgconfig/hyprlang.pc + +%changelog +%autochangelog