diff --git a/.gitea/workflows/build-hyprland-protocols.yml b/.gitea/workflows/build-hyprland-protocols.yml new file mode 100644 index 0000000..ef2ad04 --- /dev/null +++ b/.gitea/workflows/build-hyprland-protocols.yml @@ -0,0 +1,32 @@ +name: Build hyprland-protocols +on: + push: + branches: + - main + paths: + - .gitea/workflows/build-hyprland-protocols.yml + - "hyprland-protocols.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-protocols.spec + repository-user: eriq12 + repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }} diff --git a/hyprland-protocols.spec b/hyprland-protocols.spec new file mode 100644 index 0000000..b4cdb99 --- /dev/null +++ b/hyprland-protocols.spec @@ -0,0 +1,44 @@ +Name: hyprland-protocols +Version: 0.7.0 +Release: %autorelease +Summary: Wayland protocol extensions for Hyprland +BuildArch: noarch + +License: BSD-3-Clause +URL: https://github.com/hyprwm/hyprland-protocols +Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: meson + +%description +%{summary}. + +%package devel +Summary: Wayland protocol extensions for Hyprland + +%description devel +%{summary}. + + +%prep +%autosetup -p1 + + +%build +%meson +%meson_build + + +%install +%meson_install + + +%files devel +%license LICENSE +%doc README.md +%{_datadir}/pkgconfig/%{name}.pc +%{_datadir}/%{name}/ + + +%changelog +%autochangelog