# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} # prevent library files from being installed %global __cargo_is_lib() 0 %global crate mujmap # Latest upstream commit %global commit_hash 5f700af890769185ad99d4aae9f53496bb2aa6f2 %global commit_short 5f700af8 Name: mujmap Version: 0.2.0 Release: 1%{?dist}.%{commit_short} Summary: JMAP integration for notmuch mail License: 0BSD OR MIT OR Apache-2.0 Apache-2.0 Apache-2.0 OR BSL-1.0 Apache-2.0 OR ISC OR MIT Apache-2.0 OR MIT Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT BSD-3-Clause GPL-3.0 GPL-3.0+ ISC MIT MIT OR Apache-2.0 MIT OR Apache-2.0 OR Zlib MIT OR Zlib OR Apache-2.0 MPL-2.0 Unlicense OR MIT Zlib Zlib OR Apache-2.0 OR MIT URL: https://github.com/elizagamedev/mujmap Source0: https://github.com/elizagamedev/mujmap/archive/%{commit_short}/mujmap-0.2.0.tar.gz Source1: mujmap-0.2.0-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 25 BuildRequires: notmuch-devel Requires: notmuch %global _description %{expand: JMAP integration for notmuch mail.} %description %{_description} %prep %autosetup -n %{crate}-%{commit_hash} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install strip %{buildroot}/%{_bindir}/mujmap %if %{with check} %check %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %{_bindir}/mujmap %changelog * Fri Dec 08 2023 Dan Campbell - 0.2.0-1.5f700af8 - Initial release based on version 0.2.0 and commit 5f700af8