diff --git a/.gitea/workflows/build-hyprwire.yml b/.gitea/workflows/build-hyprwire.yml new file mode 100644 index 0000000..2053810 --- /dev/null +++ b/.gitea/workflows/build-hyprwire.yml @@ -0,0 +1,32 @@ +name: Build hyprwire +on: + push: + branches: + - main + paths: + - .gitea/workflows/build-hyprwire.yml + - "hyprwire.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: ./hyprwire.spec + repository-user: eriq12 + repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }} diff --git a/hyprwire.spec b/hyprwire.spec new file mode 100644 index 0000000..a5d1ef8 --- /dev/null +++ b/hyprwire.spec @@ -0,0 +1,56 @@ +Name: hyprwire +Version: 0.2.1 +Release: %autorelease +Summary: A fast and consistent wire protocol for IPC + +License: BSD-3-Clause +URL: https://github.com/hyprwm/hyprwire +Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: ninja-build +BuildRequires: pkgconfig(hyprutils) +BuildRequires: pkgconfig(libffi) +BuildRequires: pkgconfig(pugixml) + +%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 -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF +%cmake_build + +%install +%cmake_install + +%files +%license LICENSE +%doc README.md +%{_libdir}/lib%{name}.so.%{version} +%{_libdir}/lib%{name}.so.2 + +%files devel +%{_bindir}/%{name}-scanner +%{_includedir}/%{name}/ +%{_libdir}/cmake/%{name}-scanner/ +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/%{name}.pc +%{_libdir}/pkgconfig/%{name}-scanner.pc + +%changelog +%autochangelog