# Generated by rust2rpm 28 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate clock-bound %global crate_version 3.0.0-alpha.1 # compile and run tests only on supported architectures %global supported_arches x86_64 aarch64 Name: rust-clock-bound Version: 3.0.0~alpha.1 Release: %autorelease Summary: To provide error bounded timestamp intervals License: MIT OR Apache-2.0 URL: https://crates.io/crates/clock-bound Source: %{crates_source %{crate} %{crate_version}} Source: clock-bound-3.0.0-alpha.1-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: systemd-rpm-macros %global _description %{expand: A crate to provide error bounded timestamp intervals.} %description %{_description} %package -n clock-bound Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-3.0 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 OR LGPL-2.1-or-later # Unicode-3.0 # Unlicense OR MIT License: ((MIT OR Apache-2.0) AND Unicode-3.0) AND Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND Unicode-3.0 AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown %description -n clock-bound %{_description} %files -n clock-bound %license LICENSE.Apache-2.0 %license LICENSE.MIT %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %{_bindir}/clockbound %{_unitdir}/clockbound.service %prep %autosetup -n %{crate}-%{crate_version} -p1 -a1 %cargo_prep -v vendor %build %ifarch %{supported_arches} %cargo_build -f daemon %endif %{cargo_license_summary -f daemon} %{cargo_license -f daemon} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install -f daemon # install clockbound.service install -Dpm 0644 assets/clockbound.service -t %{buildroot}/%{_unitdir}/ %if %{with check} %ifarch %{supported_arches} %check %cargo_test -f daemon %endif %endif %changelog %autochangelog