# Generated by rust2rpm 24 %bcond_without check %global crate ntpd Name: rust-ntpd Version: 0.3.2 Release: %autorelease Summary: Full-featured implementation of the Network Time Protocol, including NTS support License: Apache-2.0 OR MIT URL: https://crates.io/crates/ntpd Source: %{crates_source} BuildRequires: rust-packaging >= 21 %global _description %{expand: A full-featured implementation of the Network Time Protocol, including NTS support.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %license COPYRIGHT %license LICENSE-APACHE %license LICENSE-MIT %doc README.md %{_bindir}/ntp-ctl %{_bindir}/ntp-daemon %{_bindir}/ntp-metrics-exporter %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