# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} # prevent executables from being installed %global cargo_install_bin 0 %global crate libyaml-rs Name: rust-libyaml-rs Version: 0.3.0 Release: %autorelease Summary: Libyaml transpiled to Rust by c2rust License: MIT URL: https://crates.io/crates/libyaml-rs Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: Libyaml transpiled to rust by c2rust.} %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-MIT %doc %{crate_instdir}/README.md %{crate_instdir}/ %exclude %{crate_instdir}/Makefile %exclude %{crate_instdir}/util/ %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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * integration tests need the yaml-test-suite data, which is not included in # the published crate %cargo_test -- --lib %cargo_test -- --doc %endif %changelog %autochangelog