diff --git a/anda/apps/spacedrive/spacedrive.spec b/anda/apps/spacedrive/spacedrive.spec new file mode 100644 index 0000000000..2e83861cc0 --- /dev/null +++ b/anda/apps/spacedrive/spacedrive.spec @@ -0,0 +1,38 @@ +Name: spacedrive +Version: 0.2.3 +Release: 1%?dist +Summary: An open source cross-platform file explorer +License: AGPL-3.0 +URL: https://spacedrive.com +Source0: https://github.com/spacedriveapp/spacedrive/archive/refs/tags/%version.tar.gz +Requires: ffmpeg libheif gtk3 webkit2gtk4.1 pango gdk-pixbuf2 cairo libsoup glib2 +BuildRequires: pnpm clang git-core + +%description +Spacedrive is an open source cross-platform file manager, powered by a virtual distributed filesystem (VDFS) written in Rust. + +%prep +%autosetup + +# we need nightly cargo +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +rustup default nightly + +pnpm install + +%build +export CARGO_TARGET_DIR=target +export RUSTUP_TOOLCHAIN=1.73 + +pnpm prep +pnpm tauri build --bundles app -- --no-default-features + +%install +install -Dm755 -t %buildroot%_bindir apps/desktop/src-tauri/target/release/spacedrive + +%files +%license LICENSE +%_bindir/spacedrive + +%changelog +%autochangelog