%global debug_package %{nil} %global upstream_version 0.1.0-alpha.7 Name: flectar-mail Version: 0.1.0 Release: 0.alpha.7%{?dist} Summary: Flectar Mail delivers native performance, instant startup, and as little as 80 MB of RAM. License: AGPL-3.0-only URL: https://github.com/flectar/mail ExclusiveArch: x86_64 Source0: https://github.com/flectar/mail/archive/refs/tags/v%{upstream_version}.tar.gz BuildRequires: cargo BuildRequires: rust BuildRequires: gcc BuildRequires: (gcc-g++ or gcc-c++) BuildRequires: fontconfig-devel BuildRequires: libX11-devel BuildRequires: libXcursor-devel BuildRequires: libXi-devel BuildRequires: libxkbcommon-devel BuildRequires: libxkbcommon-x11-devel BuildRequires: wayland-devel BuildRequires: openssl-devel BuildRequires: python3 Requires: fontconfig Requires: hicolor-icon-theme Requires: libX11 Requires: libX11-xcb Requires: libXcursor Requires: libXi Requires: libwayland-client Requires: libxkbcommon Requires: libxkbcommon-x11 Requires: xdg-utils Recommends: gnome-keyring Recommends: gnupg2 Recommends: pinentry Recommends: xdg-desktop-portal %description Built from the ground up for speed. Flectar Mail delivers native performance, instant startup, and as little as 80 MB of RAM. %prep %autosetup -n mail-%{upstream_version} python3 scripts/stage-pdfium.py linux-x64 %{_builddir}/pdfium-staging %build cargo build --locked --bin flectar-mail --release --no-default-features --features remote-content,gpu-renderer python3 scripts/stage-linux-metadata.py %{_builddir}/metadata %install install -Dm0755 target/release/flectar-mail %{buildroot}%{_bindir}/flectar-mail install -Dm0755 %{_builddir}/pdfium-staging/libpdfium.so %{buildroot}%{_libdir}/flectar-mail/libpdfium.so install -Dm0644 %{_builddir}/metadata/usr/share/applications/com.flectar.mail.desktop %{buildroot}%{_datadir}/applications/com.flectar.mail.desktop install -Dm0644 %{_builddir}/metadata/usr/share/metainfo/com.flectar.mail.metainfo.xml %{buildroot}%{_datadir}/metainfo/com.flectar.mail.metainfo.xml install -Dm0644 resources/app-icon/flectar-mail-masked-512.png %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/com.flectar.mail.png install -Dm0644 resources/app-icon/flectar-mail-masked.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/com.flectar.mail.svg install -Dm0644 LICENSE %{buildroot}%{_licensedir}/%{name}/LICENSE mkdir -p %{buildroot}%{_licensedir}/%{name}/LICENSES cp -a LICENSES/. %{buildroot}%{_licensedir}/%{name}/LICENSES/ install -Dm0644 THIRD_PARTY_NOTICES.md %{buildroot}%{_docdir}/%{name}/THIRD_PARTY_NOTICES.md install -Dm0644 resources/fonts/google-sans-flex/OFL.txt %{buildroot}%{_licensedir}/%{name}/google-sans-flex/OFL.txt install -Dm0644 resources/fonts/google-sans-flex/README.md %{buildroot}%{_docdir}/%{name}/google-sans-flex/README.md mkdir -p %{buildroot}%{_licensedir}/%{name}/pdfium cp -a %{_builddir}/pdfium-staging/pdfium-licenses/. %{buildroot}%{_licensedir}/%{name}/pdfium/ %check desktop-file-validate %{buildroot}%{_datadir}/applications/com.flectar.mail.desktop appstreamcli validate --no-net %{buildroot}%{_datadir}/metainfo/com.flectar.mail.metainfo.xml %files %{_bindir}/flectar-mail %{_libdir}/flectar-mail/ %{_datadir}/applications/com.flectar.mail.desktop %{_datadir}/metainfo/com.flectar.mail.metainfo.xml %{_datadir}/icons/hicolor/512x512/apps/com.flectar.mail.png %{_datadir}/icons/hicolor/scalable/apps/com.flectar.mail.svg %license %{_licensedir}/%{name} %doc %{_docdir}/%{name} %changelog * Mon Oct 26 2026 Lezetho - 0.1.0-0.alpha.7 - init copr