# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate libcryptsetup-rs Name: rust-libcryptsetup-rs Version: 0.13.0 Release: 1.20250527171108575450.pr432.2.ge8e2854%{?dist} Summary: High level Rust bindings for libcryptsetup License: MPL-2.0 URL: https://crates.io/crates/libcryptsetup-rs Source: libcryptsetup-rs-0.13.0.crate BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: High level Rust bindings for libcryptsetup.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/CHANGES.txt %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mutex-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mutex-devel %{_description} This package contains library source intended for building other packages which use the "mutex" feature of the "%{crate}" crate. %files -n %{name}+mutex-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+static-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+static-devel %{_description} This package contains library source intended for building other packages which use the "static" feature of the "%{crate}" crate. %files -n %{name}+static-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n libcryptsetup-rs-0.13.0 -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog