%global upstream_name cloudflare-warp %global upstream_version 2026.4.1390.0 %global upstream_release 1 Name: cloudflare-warp-bazzite Version: %{upstream_version} Release: 1%{?dist} Summary: Cloudflare WARP repackaged for Bazzite License: LicenseRef-Cloudflare-WARP URL: https://pkg.cloudflareclient.com/ Source0: https://pkg.cloudflareclient.com/rpm/fedora/%{upstream_name}-%{upstream_version}-%{upstream_release}.x86_64.rpm BuildRequires: cpio BuildRequires: rpm BuildRequires: systemd-rpm-macros Requires: webkit2gtk4.1 Requires: javascriptcoregtk4.1 Requires: nss-tools Requires: systemd Provides: %{upstream_name} = %{version}-%{release} Conflicts: %{upstream_name} %description Cloudflare WARP repackaged for Bazzite-style bootc images. This package extracts the official Cloudflare WARP RPM payload, moves the system service into the standard systemd unit directory, and avoids upstream scriptlets that try to start services at package installation time. %prep %setup -q -c -T rpm2cpio %{SOURCE0} | cpio -idm --quiet %build %install mkdir -p %{buildroot} install -d %{buildroot}%{_bindir} install -pm0755 ./bin/warp-cli %{buildroot}%{_bindir}/warp-cli install -pm0755 ./bin/warp-diag %{buildroot}%{_bindir}/warp-diag install -pm0755 ./bin/warp-svc %{buildroot}%{_bindir}/warp-svc cp -a ./usr %{buildroot}/ install -d %{buildroot}%{_unitdir} if [ -f ./opt/cloudflare-warp/warp-svc.service ]; then install -pm0644 ./opt/cloudflare-warp/warp-svc.service %{buildroot}%{_unitdir}/warp-svc.service fi if [ -d ./etc ]; then cp -a ./etc %{buildroot}/ fi rm -f %{buildroot}%{_sysconfdir}/systemd/system/warp-svc.service rm -f %{buildroot}%{_sysconfdir}/systemd/system/multi-user.target.wants/warp-svc.service rm -rf %{buildroot}%{_sysconfdir}/systemd/system/multi-user.target.wants rm -rf %{buildroot}/opt %files %{_bindir}/warp-cli %{_bindir}/warp-diag %{_bindir}/warp-svc %{_libdir}/warp/ %{_unitdir}/warp-svc.service %{_userunitdir}/warp-desktop-svc.service %dir %{_sysconfdir}/cloudflare-warp %changelog * Mon Jun 01 2026 syndrizzle - 2026.4.1390.0-1 - Repackage Cloudflare WARP for Bazzite-style images - Replace legacy webkit2gtk3 dependency with Fedora's webkit2gtk4.1 packages - Install systemd units into standard systemd paths - Omit upstream install-time service scriptlets