# Generated by rust2rpm 24 # does not include all files needed for test in crate %bcond_with check %global debug_package %{nil} %global crate ntp-proto Name: rust-ntp-proto Version: 0.3.2 Release: %autorelease Summary: Ntpd-rs packet parsing and algorithms License: Apache-2.0 OR MIT URL: https://crates.io/crates/ntp-proto Source: %{crates_source} BuildRequires: rust-packaging >= 21 %global _description %{expand: Ntpd-rs packet parsing and algorithms.} %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}/COPYRIGHT %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %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}+arbitrary-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+arbitrary-devel %{_description} This package contains library source intended for building other packages which use the "arbitrary" feature of the "%{crate}" crate. %files -n %{name}+arbitrary-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ext-test-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ext-test-devel %{_description} This package contains library source intended for building other packages which use the "ext-test" feature of the "%{crate}" crate. %files -n %{name}+ext-test-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fuzz-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fuzz-devel %{_description} This package contains library source intended for building other packages which use the "fuzz" feature of the "%{crate}" crate. %files -n %{name}+fuzz-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rfc-algorithm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rfc-algorithm-devel %{_description} This package contains library source intended for building other packages which use the "rfc-algorithm" feature of the "%{crate}" crate. %files -n %{name}+rfc-algorithm-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog