# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate metrics-exporter-prometheus Name: rust-metrics-exporter-prometheus Version: 0.18.1 Release: %autorelease Summary: Metrics-compatible exporter for sending metrics to Prometheus License: MIT URL: https://crates.io/crates/metrics-exporter-prometheus Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * - Switch hyper-rustls provider to ring Patch: metrics-exporter-prometheus-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A metrics-compatible exporter for sending metrics to Prometheus.} %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 %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}+_hyper-client-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+_hyper-client-devel %{_description} This package contains library source intended for building other packages which use the "_hyper-client" feature of the "%{crate}" crate. %files -n %{name}+_hyper-client-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+_hyper-server-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+_hyper-server-devel %{_description} This package contains library source intended for building other packages which use the "_hyper-server" feature of the "%{crate}" crate. %files -n %{name}+_hyper-server-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+_push-gateway-common-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+_push-gateway-common-devel %{_description} This package contains library source intended for building other packages which use the "_push-gateway-common" feature of the "%{crate}" crate. %files -n %{name}+_push-gateway-common-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-runtime-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-runtime-devel %{_description} This package contains library source intended for building other packages which use the "async-runtime" feature of the "%{crate}" crate. %files -n %{name}+async-runtime-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+http-body-util-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+http-body-util-devel %{_description} This package contains library source intended for building other packages which use the "http-body-util" feature of the "%{crate}" crate. %files -n %{name}+http-body-util-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+http-listener-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+http-listener-devel %{_description} This package contains library source intended for building other packages which use the "http-listener" feature of the "%{crate}" crate. %files -n %{name}+http-listener-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hyper-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hyper-devel %{_description} This package contains library source intended for building other packages which use the "hyper" feature of the "%{crate}" crate. %files -n %{name}+hyper-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hyper-rustls-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hyper-rustls-devel %{_description} This package contains library source intended for building other packages which use the "hyper-rustls" feature of the "%{crate}" crate. %files -n %{name}+hyper-rustls-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hyper-util-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hyper-util-devel %{_description} This package contains library source intended for building other packages which use the "hyper-util" feature of the "%{crate}" crate. %files -n %{name}+hyper-util-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ipnet-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ipnet-devel %{_description} This package contains library source intended for building other packages which use the "ipnet" feature of the "%{crate}" crate. %files -n %{name}+ipnet-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mime-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mime-devel %{_description} This package contains library source intended for building other packages which use the "mime" feature of the "%{crate}" crate. %files -n %{name}+mime-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+prost-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+prost-devel %{_description} This package contains library source intended for building other packages which use the "prost" feature of the "%{crate}" crate. %files -n %{name}+prost-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+prost-build-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+prost-build-devel %{_description} This package contains library source intended for building other packages which use the "prost-build" feature of the "%{crate}" crate. %files -n %{name}+prost-build-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+prost-types-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+prost-types-devel %{_description} This package contains library source intended for building other packages which use the "prost-types" feature of the "%{crate}" crate. %files -n %{name}+prost-types-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+push-gateway-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+push-gateway-devel %{_description} This package contains library source intended for building other packages which use the "push-gateway" feature of the "%{crate}" crate. %files -n %{name}+push-gateway-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+push-gateway-no-tls-provider-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+push-gateway-no-tls-provider-devel %{_description} This package contains library source intended for building other packages which use the "push-gateway-no-tls-provider" feature of the "%{crate}" crate. %files -n %{name}+push-gateway-no-tls-provider-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rustls-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rustls-devel %{_description} This package contains library source intended for building other packages which use the "rustls" feature of the "%{crate}" crate. %files -n %{name}+rustls-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 %package -n %{name}+uds-listener-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+uds-listener-devel %{_description} This package contains library source intended for building other packages which use the "uds-listener" feature of the "%{crate}" crate. %files -n %{name}+uds-listener-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Remove proto files which seem to not be accounted for in the license # https://github.com/metrics-rs/metrics/issues/677 rm -r proto/ %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog