# Generated by rust2rpm-9-1.fc31 %bcond_without check %global debug_package %{nil} %global crate libsystemd Name: rust-%{crate} Version: 0.1.0 Release: 1%{?dist} Summary: A pure-Rust client library to interact with systemd # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/libsystemd Source: %{crates_source} Patch0: libsystemd-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(error-chain) >= 0.12.1 with crate(error-chain) < 0.13.0) BuildRequires: (crate(hmac/default) >= 0.7.0 with crate(hmac/default) < 0.8.0) BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0) BuildRequires: (crate(nix/default) >= 0.13.0 with crate(nix/default) < 0.14.0) BuildRequires: (crate(serde/default) >= 1.0.91 with crate(serde/default) < 2.0.0) BuildRequires: (crate(serde_derive/default) >= 1.0.91 with crate(serde_derive/default) < 2.0.0) BuildRequires: (crate(sha2/default) >= 0.8.0 with crate(sha2/default) < 0.9.0) BuildRequires: (crate(try_or/default) >= 0.2.0 with crate(try_or/default) < 0.3.0) BuildRequires: (crate(uuid/default) >= 0.7.4 with crate(uuid/default) < 0.8.0) BuildRequires: (crate(uuid/serde) >= 0.7.4 with crate(uuid/serde) < 0.8.0) %if %{with check} BuildRequires: (crate(quickcheck/default) >= 0.8.0 with crate(quickcheck/default) < 0.9.0) %endif %global _description \ A pure-Rust client library to interact with systemd %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %doc README.md %{cargo_registry}/%{crate}-%{version}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Mon Jun 03 19:00:49 UTC 2019 Robert Fairley - 0.1.0-1 - Initial package