# Generated by rust2rpm 25 # * missing dev-dependencies: interprocess ^1, ntest ^0.9 %bcond_with check %global crate sequoia-chameleon-gnupg Name: rust-sequoia-chameleon-gnupg Version: 0.4.0 Release: %autorelease Summary: Sequoia's reimplementation of the GnuPG interface # * sequoia-chameleon-gnupg: GPL-3.0-or-later # * bundled source file from libgpg-error: LGPL-2.1-or-later License: GPL-3.0-or-later AND LGPL-2.1-or-later URL: https://crates.io/crates/sequoia-chameleon-gnupg Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * port from obsolete "home-dir" crate to "shellexpand" # * drop features for unavailable crypto backends # * build with OpenSSL crypto backend Patch: sequoia-chameleon-gnupg-fix-metadata.diff # * backport upstream patch to port from "home-dir" to "shellexpand": # https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg/-/commit/03f23a7 Patch: 0001-port-from-home-dir-to-shellexpand.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Sequoia's reimplementation of the GnuPG interface.} %description %{_description} %package -n %{crate} Summary: %{summary} # (Apache-2.0 OR MIT) AND BSD-3-Clause # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # BSL-1.0 # GPL-3.0-or-later # LGPL-2.0-or-later # 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 OR Apache-2.0 OR MIT License: GPL-3.0-or-later AND Apache-2.0 AND BSD-3-Clause AND BSL-1.0 AND LGPL-2.0-or-later AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown # includes a copy of src/err-codes.h.in from libgpg-error (unknown version) Provides: bundled(libgpg-error) %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE.txt %license LICENSE.dependencies %doc AUTHORS.GnuPG %doc README.md %{_bindir}/gpg-sq %{_bindir}/gpgv-sq %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog