# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate capng Name: rust-%{crate} Version: 0.2.1 Release: 1%{?dist} Summary: Rust wrapper for libcap-ng # Upstream license specification: Apache-2.0 OR BSD-3-Clause License: ASL 2.0 or BSD URL: https://crates.io/crates/capng Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: libcap-ng-devel %global _description %{expand: Rust wrapper for libcap-ng.} %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 LICENSE-APACHE LICENSE-BSD-3-Clause %doc README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Thu Jan 13 2022 Sergio Lopez - 0.2.1-1 - Initial package