# Generated by rust2rpm 26 # Upstream does not include test data in the crate. %bcond_with check %global debug_package %{nil} %global crate s2n-tls Name: rust-s2n-tls Version: 0.2.5 Release: %autorelease Summary: C99 implementation of the TLS/SSL protocols License: Apache-2.0 URL: https://crates.io/crates/s2n-tls Source: %{crates_source} # Manually created patch for downstream crate metadata changes Patch: s2n-tls-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A C99 implementation of the TLS/SSL protocols.} %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 # FIXME: no license files detected %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}+bytes-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bytes-devel %{_description} This package contains library source intended for building other packages which use the "bytes" feature of the "%{crate}" crate. %files -n %{name}+bytes-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}+pq-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pq-devel %{_description} This package contains library source intended for building other packages which use the "pq" feature of the "%{crate}" crate. %files -n %{name}+pq-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+quic-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+quic-devel %{_description} This package contains library source intended for building other packages which use the "quic" feature of the "%{crate}" crate. %files -n %{name}+quic-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+testing-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+testing-devel %{_description} This package contains library source intended for building other packages which use the "testing" feature of the "%{crate}" crate. %files -n %{name}+testing-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-fingerprint-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable-fingerprint-devel %{_description} This package contains library source intended for building other packages which use the "unstable-fingerprint" feature of the "%{crate}" crate. %files -n %{name}+unstable-fingerprint-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-ktls-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable-ktls-devel %{_description} This package contains library source intended for building other packages which use the "unstable-ktls" feature of the "%{crate}" crate. %files -n %{name}+unstable-ktls-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