diff --git a/.gitea/workflows/build-hyprpolkitagent.yml b/.gitea/workflows/build-hyprpolkitagent.yml new file mode 100644 index 0000000..a2c5bce --- /dev/null +++ b/.gitea/workflows/build-hyprpolkitagent.yml @@ -0,0 +1,32 @@ +name: Build hyprpolkitagent +on: + push: + branches: + - main + paths: + - .gitea/workflows/build-hyprpolkitagent.yml + - "hyprpolkitagent.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: ./hyprpolkitagent.spec + repository-user: eriq12 + repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }} diff --git a/hyprpolkitagent.spec b/hyprpolkitagent.spec new file mode 100644 index 0000000..665dfd1 --- /dev/null +++ b/hyprpolkitagent.spec @@ -0,0 +1,53 @@ +Name: hyprpolkitagent +Version: 0.1.3 +Release: %autorelease +Summary: A simple polkit authentication agent for Hyprland +License: BSD-3-Clause +URL: https://github.com/hyprwm/hyprpolkitagent +Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: cmake +BuildRequires: desktop-file-utils +BuildRequires: gcc-c++ +BuildRequires: systemd-rpm-macros + +BuildRequires: cmake(Qt6Quick) +BuildRequires: cmake(Qt6QuickControls2) +BuildRequires: cmake(Qt6Widgets) +BuildRequires: pkgconfig(hyprutils) +BuildRequires: pkgconfig(polkit-agent-1) +BuildRequires: pkgconfig(polkit-qt6-1) + +Requires: hyprland-qt-support%{?_isa} + +%description +A simple polkit authentication agent for Hyprland, written in QT/QML. + +%prep +%autosetup -p1 + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%post +%systemd_user_post %{name}.service + +%preun +%systemd_user_preun %{name}.service + +%files +%license LICENSE +%doc README.md +%{_datadir}/dbus-1/services/org.hyprland.%{name}.service +%{_libexecdir}/%{name} +%{_userunitdir}/%{name}.service + +%changelog +%autochangelog