# Generated by rust2rpm 28
%bcond check 1
%global debug_package %{nil}
%global crate native-ossl
Name: rust-%{crate}
Version: 0.1.0
Release: 1%{?dist}
Summary: Idiomatic Rust bindings to OpenSSL
License: Apache-2.0
URL: https://crates.io/crates/%{crate}
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
BuildRequires: openssl-devel
%global _description %{expand:
Safe, idiomatic Rust bindings to OpenSSL. Covers symmetric ciphers, digests,
MACs, KDFs, asymmetric keys (RSA, EC, Ed25519, X25519), X.509 certificates and
CRLs, PKCS#12 archives, OCSP, TLS, and FIPS-mode support.}
%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
%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}+fips-provider-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+fips-provider-devel %{_description}
This package contains library source intended for building other packages which
use the "fips-provider" feature of the "%{crate}" crate.
The fips-provider feature enables provider-internal FIPS APIs (vtable access,
prov_ctx helpers). It requires the OpenSSL source tree (OPENSSL_SOURCE_DIR)
at build time to generate bindings for non-public OpenSSL headers.
%files -n %{name}+fips-provider-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