Name: corrosion Version: 0.6.1 Release: %autorelease Summary: Easy Rust and C/C++ Integration SourceLicense: MIT # disable debuginfo subpackage %global debug_package %{nil} # Apache-2.0 OR BSL-1.0 # MIT # MIT OR Apache-2.0 # Unlicense OR MIT License: MIT AND (Apache-2.0 OR BSL-1.0) AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown URL: https://github.com/corrosion-rs/corrosion Source: %{url}/archive/v%{version}/corrosion-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ Requires: cmake %description Corrosion, formerly known as cmake-cargo, is a tool for integrating Rust into an existing CMake project. Corrosion can automatically import executables, static libraries, and dynamic libraries from a workspace or package manifest (Cargo.toml file). %prep %autosetup -p1 %build %cmake -DCORROSION_NATIVE_TOOLING:BOOL=ON %cmake_build %install %cmake_install %files %license LICENSE %doc README.md %doc RELEASES.md %{_libdir}/cmake/Corrosion/ %{_datadir}/cmake/{Corrosion,CorrosionGenerator,FindRust}.cmake %changelog %autochangelog