diff --git a/.gitea/workflows/build-hyprwayland-scanner.yml b/.gitea/workflows/build-hyprwayland-scanner.yml new file mode 100644 index 0000000..5f15fe6 --- /dev/null +++ b/.gitea/workflows/build-hyprwayland-scanner.yml @@ -0,0 +1,35 @@ +name: Build hyprwayland-scanner +on: + push: + branches: + - main + paths: + - "hyprwayland-scanner/**" + workflow_dispatch: + +jobs: + build_push: + name: Build and push image + runs-on: ubuntu-24.04 + + steps: + - name: Prepare environment + shell: base + run: | + sudo apt-get update + sudo apt-get install -y podman toolbox + + - name: Build RPM + uses: https://git.hydrosaber.com/hydros/build-rpm@main + with: + spec-file-path: ./hyprwayland-scanner/hyprwayland-scanner.spec + + - name: List everything + shell: bash + run: | + echo "Home directory" + ls ~ + echo "Current directory" + ls . + echo "Supposed rpm location" + ls ~/rpm diff --git a/hyprwayland-scanner/hyprwayland-scanner.spec b/hyprwayland-scanner/hyprwayland-scanner.spec new file mode 100644 index 0000000..dd4b4e8 --- /dev/null +++ b/hyprwayland-scanner/hyprwayland-scanner.spec @@ -0,0 +1,44 @@ +Name: hyprwayland-scanner +Version: 0.4.5 +Release: %autorelease +Summary: A Hyprland implementation of wayland-scanner, in and for C++ + +License: BSD-3-Clause +URL: https://github.com/hyprwm/hyprwayland-scanner +Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: cmake +BuildRequires: cmake(pugixml) +BuildRequires: gcc-c++ + +%description +%{summary}. + +%package devel +Summary: A Hyprland implementation of wayland-scanner, in and for C++ + +%description devel +%{summary}. + +%prep +%autosetup -p1 + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%files devel +%license LICENSE +%doc README.md +%{_bindir}/%{name} +%{_libdir}/pkgconfig/%{name}.pc +%{_libdir}/cmake/%{name}/ + +%changelog +%autochangelog