# Generated by rust2rpm 15 # * Requires TPM server running %bcond_with check %global debug_package %{nil} %global crate tss-esapi Name: rust-%{crate} Version: 4.0.3~alpha.1 Release: 1%{?dist} Summary: Wrapper around TSS 2.0 Enhanced System API # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: https://crates.io/crates/tss-esapi Source: %{crates_source} ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Wrapper around TSS 2.0 Enhanced System API.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(tss2-esys) >= 2.3.3 Requires: pkgconfig(tss2-mu) >= 2.3.3 Requires: pkgconfig(tss2-tctildr) >= 2.3.3 %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+docs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+docs-devel %{_description} This package contains library source intended for building other packages which use "docs" feature of "%{crate}" crate. %files -n %{name}+docs-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 echo 'pkgconfig(tss2-esys) >= 2.3.3' echo 'pkgconfig(tss2-mu) >= 2.3.3' echo 'pkgconfig(tss2-tctildr) >= 2.3.3' %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Wed Jun 17 12:19:06 CEST 2020 Igor Raits - 4.0.3~alpha.1-1 - Initial package