# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate selinux Name: rust-selinux Version: 0.4.2 Release: %autorelease Summary: Flexible Mandatory Access Control for Linux License: MIT URL: https://crates.io/crates/selinux Source: %{crates_source} # license file is in different directory # PR to fix: https://github.com/koutheir/selinux/pull/5 Source: https://raw.githubusercontent.com/koutheir/selinux/master/LICENSE.txt BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Flexible Mandatory Access Control for Linux.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: libacl-devel %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 # copy in license file cp -p %{SOURCE1} . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires echo 'libacl-devel' %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