# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate ossl Name: rust-ossl Version: 1.3.1 Release: %autorelease Summary: OpenSSL version 3+ bindings to modern EVP APIs License: Apache-2.0 URL: https://crates.io/crates/ossl Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * relax bindgen dependency to allow both v0.71 and v0.72 Patch: ossl-fix-metadata.diff Patch2: 0001-Unconditionally-link-with-system-OpenSSL.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: pkgconfig(openssl) >= 3.0.0 %global _description %{expand: A PKCS #11 software token written in Rust.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: pkgconfig(openssl) >= 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-2.0.txt %{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}+dummy-integrity-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dummy-integrity-devel %{_description} This package contains library source intended for building other packages which use the "dummy-integrity" feature of the "%{crate}" crate. %files -n %{name}+dummy-integrity-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dynamic-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dynamic-devel %{_description} This package contains library source intended for building other packages which use the "dynamic" feature of the "%{crate}" crate. %files -n %{name}+dynamic-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fips-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fips-devel %{_description} This package contains library source intended for building other packages which use the "fips" feature of the "%{crate}" crate. %files -n %{name}+fips-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-devel %{_description} This package contains library source intended for building other packages which use the "log" feature of the "%{crate}" crate. %files -n %{name}+log-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ossl320-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ossl320-devel %{_description} This package contains library source intended for building other packages which use the "ossl320" feature of the "%{crate}" crate. %files -n %{name}+ossl320-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ossl350-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ossl350-devel %{_description} This package contains library source intended for building other packages which use the "ossl350" feature of the "%{crate}" crate. %files -n %{name}+ossl350-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rfc9580-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rfc9580-devel %{_description} This package contains library source intended for building other packages which use the "rfc9580" feature of the "%{crate}" crate. %files -n %{name}+rfc9580-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