# RPM for Fedora, built on COPR (iosonopiero/eyecansee) by tools/copr-build.sh, which sets Version # from the VERSION file. The COPR project has network access during builds: cargo downloads the # crates listed in Cargo.lock (--locked), instead of shipping ~700 MB of vendored sources. Name: eyecansee Version: 0.24.4 Release: 1%{?dist} Summary: Image viewer for local folders, phones, external disks, FTP and SFTP License: GPL-3.0-or-later URL: https://github.com/IoSonoPiero/eyecansee Source0: %{name}-%{version}.tar.gz BuildRequires: cargo >= 1.95 BuildRequires: rust >= 1.95 BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: nasm BuildRequires: clang-devel BuildRequires: pkgconfig(libheif) >= 1.23 BuildRequires: pkgconfig(MagickWand) >= 7 BuildRequires: desktop-file-utils # HEIC needs the HEVC decoder plugin, which Fedora does not ship (patents): RPM Fusion has it. Recommends: libheif-freeworld # The release profile strips the executable: there is no debug information to package. %global debug_package %{nil} # Fedora's LTO flags reach the C libraries built by cargo (libjpeg-turbo): on Fedora 43 GCC 15.3 # crashed linking them ("lto1: internal compiler error"). Rust code is not affected. %global _lto_cflags %{nil} %description EyeCanSee is an image viewer written in Rust. It browses local folders, Android phones connected directly over USB (MTP), external disks, FTP and SFTP servers, with thumbnails and a full-screen viewer. Formats: JPEG, PNG, WebP, GIF, TIFF, HEIC, AVIF, JPEG XL, SVG, camera RAW and many less common ones through ImageMagick. %prep %autosetup %build export CARGO_HOME=%{_builddir}/cargo-home cargo build --release --locked %install install -Dm755 target/release/eyecansee %{buildroot}%{_bindir}/eyecansee install -Dm644 assets/eyecansee.desktop %{buildroot}%{_datadir}/applications/eyecansee.desktop install -Dm644 assets/eyecansee.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/eyecansee.svg %check desktop-file-validate %{buildroot}%{_datadir}/applications/eyecansee.desktop %files %license LICENSE %doc README.md %{_bindir}/eyecansee %{_datadir}/applications/eyecansee.desktop %{_datadir}/icons/hicolor/scalable/apps/eyecansee.svg