# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate zlink Name: rust-zlink Version: 0.7.1 Release: %autorelease Summary: Async Varlink API License: MIT URL: https://crates.io/crates/zlink Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop dev-dependency serde-prefix-all: not available in EPEL 10 # * drop feature defmt: zlink-core is packaged without its optional defmt # dependency (not available in EPEL 10), and defmt logging is for embedded # targets # * declare the dropped features as expected cfg values # (lints.rust.unexpected_cfgs), so rustc does not warn about the code that # still tests them Patch: zlink-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Async Varlink API.} %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}/CHANGELOG.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}+idl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+idl-devel %{_description} This package contains library source intended for building other packages which use the "idl" feature of the "%{crate}" crate. %files -n %{name}+idl-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+idl-parse-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+idl-parse-devel %{_description} This package contains library source intended for building other packages which use the "idl-parse" feature of the "%{crate}" crate. %files -n %{name}+idl-parse-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+introspection-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+introspection-devel %{_description} This package contains library source intended for building other packages which use the "introspection" feature of the "%{crate}" crate. %files -n %{name}+introspection-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+proxy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+proxy-devel %{_description} This package contains library source intended for building other packages which use the "proxy" feature of the "%{crate}" crate. %files -n %{name}+proxy-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+server-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+server-devel %{_description} This package contains library source intended for building other packages which use the "server" feature of the "%{crate}" crate. %files -n %{name}+server-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+service-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+service-devel %{_description} This package contains library source intended for building other packages which use the "service" feature of the "%{crate}" crate. %files -n %{name}+service-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+smol-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+smol-devel %{_description} This package contains library source intended for building other packages which use the "smol" feature of the "%{crate}" crate. %files -n %{name}+smol-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-devel %{_description} This package contains library source intended for building other packages which use the "tokio" feature of the "%{crate}" crate. %files -n %{name}+tokio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tracing-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tracing-devel %{_description} This package contains library source intended for building other packages which use the "tracing" feature of the "%{crate}" crate. %files -n %{name}+tracing-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 # * test:peer_credentials needs the dev-dependency serde-prefix-all, which is # not available in EPEL 10 # * doc: the documentation includes files from the upstream book/ directory, # which is not in the published crate %cargo_test -- --lib %cargo_test -- --test creds-utils %cargo_test -- --test ftl %cargo_test -- --test integration_test_custom_type %cargo_test -- --test integration_test_custom_type_derive %cargo_test -- --test integration_test_type %cargo_test -- --test machined_proxy_e2e %cargo_test -- --test mock_machined_service %cargo_test -- --test ready_listener_exit %cargo_test -- --test socket_xattrs %endif %changelog %autochangelog