Name: mozillavpn Version: 2.24.3~rc20241030191255 Release: 3%{?dist} Summary: Mozilla VPN License: MPL-2.0 URL: https://vpn.mozilla.org Source0: %{name}_%{version}.orig.tar.gz Requires: qt6-qtbase >= 6.0 Requires: qt6-qtnetworkauth >= 6.0 Requires: qt6-qtquickcontrols2 >= 6.0 Requires: qt6-qtsvg >= 6.0 Requires: qt6-qt5compat >= 6.0 Requires: wireguard-tools xde-menu hicolor-icon-theme Requires: dbus-common mozilla-filesystem webextension-gsconnect BuildRequires: gcc-c++ cargo golang >= 1.18 python3-yaml BuildRequires: libcap-devel libsecret-devel openssl-devel BuildRequires: qt6-qtbase-devel >= 6.0 BuildRequires: qt6-qtbase-private-devel >= 6.0 BuildRequires: qt6-qtnetworkauth-devel >= 6.0 BuildRequires: qt6-qtdeclarative-devel >= 6.0 BuildRequires: qt6-qtsvg-devel >= 6.0 BuildRequires: qt6-qttools-devel >= 6.0 BuildRequires: qt6-qtwebsockets-devel >= 6.0 BuildRequires: qt6-qt5compat-devel >= 6.0 BuildRequires: qt6-qtbase-mysql >= 6.0 BuildRequires: qt6-qtbase-odbc => 6.0 BuildRequires: qt6-qtbase-postgresql => 6.0 BuildRequires: systemd systemd-rpm-macros help2man desktop-file-utils %description A fast, secure and easy to use VPN. Built by the makers of Firefox. Read more on https://vpn.mozilla.org %prep %autosetup %undefine _lto_cflags # depricated functions in f41+ %if 0%{?fedora} > 40 sed -i -E 's|(#include "settings/setting.h")|\1\n\n#include |' src/settings/setting.cpp sed -i -E 's|(#include )|\1\n#include |' src/platforms/linux/daemon/apptracker.cpp sed -i 's|qv.type() == QVariant::|qv.typeId() == QMetaType::Q|' src/platforms/linux/daemon/apptracker.cpp sed -i 's|if (data.count() >= 4)|if (data.size() >= 4)|' src/platforms/linux/daemon/dbustypeslinux.h sed -i 's|, property.type()|, property.typeName()|' src/inspector/inspectorhandler.cpp sed -i 's|property.type()|property.metaType()|g' src/inspector/inspectorhandler.cpp sed -i 's|globalPos()|globalPosition()|g' src/itempicker.cpp sed -i 's|event->touchPoints().length|event->pointCount|g' src/itempicker.cpp sed -i 's|event->touchPoints()\[0\]|event->point(0)|' src/itempicker.cpp sed -i 's|point.pos()|point.position()|g' src/itempicker.cpp sed -i 's|m_replyData.count()|m_replyData.size()|' src/networkrequest.cpp #sed -i 's|QQmlDebuggingEnabler enabler|QQmlTriviallyDestructibleDebuggingEnabler()|' src/commands/commandui.cpp #sed -i 's|enabler.startTcpDebugServer(|true;|' src/commands/commandui.cpp #sed -i 's|1234, QQmlDebuggingEnabler::StartMode::DoNotWaitForClient, "0.0.0.0");||' src/commands/commandui.cpp sed -i -E 's|(#include )|\1\n#include |' src/localsocketcontroller.cpp sed -i ' s|timerResponseType.type() != QVariant::String|timerResponseType.typeId() != QMetaType::QString|' \ src/localsocketcontroller.cpp %endif %build %cmake -DWEBEXT_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release %cmake_build %install %cmake_install mkdir -p %{buildroot}%{_mandir}/man1/ help2man --no-discard-stderr "%{buildroot}%{_bindir}/%{name}" \ --version-option=version --output=%{buildroot}%{_mandir}/man1/%{name}.1 sed -i 's|%{buildroot}||g' %{buildroot}%{_mandir}/man1/%{name}.1 # validate desktop files desktop-file-edit --remove-key=Encoding %{buildroot}%{_datadir}/applications/org.mozilla.vpn.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/org.mozilla.vpn.desktop #%%pre #%%systemd_pre org.mozilla.vpn.dbus.service %post %systemd_post org.mozilla.vpn.dbus.service %preun %systemd_preun org.mozilla.vpn.dbus.service %postun %systemd_postun org.mozilla.vpn.dbus.service %check %files %{_bindir}/%{name} %{_libdir}/%{name}/ %{_libdir}/mozilla/native-messaging-hosts/%{name}.json %{_sysconfdir}/chromium/native-messaging-hosts/%{name}.json %{_sysconfdir}/opt/chrome/native-messaging-hosts/%{name}.json %{_sysconfdir}/xdg/autostart/org.mozilla.vpn-startup.desktop %{_unitdir}/%{name}.service %{_datadir}/applications/org.mozilla.vpn.desktop %{_datadir}/dbus-1/system-services/org.mozilla.vpn.dbus.service %{_datadir}/dbus-1/system.d/org.mozilla.vpn.conf %{_datadir}/icons/hicolor/*??x*??/apps/org.mozilla.vpn.png %{_mandir}/man?/* %license LICENSE.md %doc README.md CODE_OF_CONDUCT.md CONTRIBUTING.md CODEOWNERS %changelog * Mon Jan 6 2025 pappy 2.24.3~rc20241030191255-3 - Apply patch. Release build * Wed Jan 1 2025 pappy 2.24.3~rc20241030191255-2 - Fedoraize a bit more. Happy New Year! 🎉 * Mon Dec 30 2024 pappy 2.24.3~rc20241030191255-1 - First try - Original packager Naomi Kirby