# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate selinux Name: rust-selinux Version: 0.4.3 Release: %autorelease Summary: Flexible Mandatory Access Control for Linux License: MIT URL: https://crates.io/crates/selinux Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * lower serial_test from 3.0 to 2.0 Patch: selinux-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Flexible Mandatory Access Control for Linux.} %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.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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * test fixtures not shipped %cargo_test -- -- --skip avc::tests::access_vector_cache_ --skip label::tests::labeler_ --skip policy::tests::set_root_path --skip tests::se_user_and_level --skip tests::security_class_new --skip tests::security_context_ %endif %changelog %autochangelog