# Generated by rust2rpm 25
%bcond_without check
%global debug_package %{nil}
%global crate psa-crypto-sys
Name: rust-psa-crypto-sys
Version: 0.12.0
Release: %autorelease
Summary: Wrapper around the PSA Cryptography API
License: Apache-2.0
URL: https://crates.io/crates/psa-crypto-sys
Source: %{crates_source}
Patch0: psa-crypto-sys-fix-metadata.diff
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Wrapper around the PSA Cryptography API.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
Provides: bundled(mbedtls) = 3.0.0
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE
%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
%package -n %{name}+bindgen-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+bindgen-devel %{_description}
This package contains library source intended for building other packages which
use the "bindgen" feature of the "%{crate}" crate.
%files -n %{name}+bindgen-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+interface-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+interface-devel %{_description}
This package contains library source intended for building other packages which
use the "interface" feature of the "%{crate}" crate.
%files -n %{name}+interface-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+operations-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+operations-devel %{_description}
This package contains library source intended for building other packages which
use the "operations" feature of the "%{crate}" crate.
%files -n %{name}+operations-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+prefix-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+prefix-devel %{_description}
This package contains library source intended for building other packages which
use the "prefix" feature of the "%{crate}" crate.
%files -n %{name}+prefix-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+static-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+static-devel %{_description}
This package contains library source intended for building other packages which
use the "static" feature of the "%{crate}" crate.
%files -n %{name}+static-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
%cargo_test
%endif
%changelog
%autochangelog