# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate ipnetwork Name: rust-%{crate} Version: 0.13.1 Release: 1%{?dist} Summary: Library to work with IP CIDRs in Rust, heavily WIP # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: https://crates.io/crates/ipnetwork Source: %{crates_source} # Initial patched metadata # * No clippy Patch0: ipnetwork-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(serde/default) >= 0.8.0 with crate(serde/default) < 2.0.0) BuildRequires: (crate(serde_derive/default) >= 0.8.0 with crate(serde_derive/default) < 2.0.0) %if %{with check} BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0) %endif %global _description \ A library to work with IP CIDRs in Rust, heavily WIP. %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 %license LICENSE.md %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 Jan 28 2019 Igor Gnatenko - 0.13.1-1 - Initial package