# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate hwaddr Name: rust-%{crate} Version: 0.1.4 Release: 1%{?dist} Summary: MAC address handling. License: WTFPL URL: https://crates.io/crates/hwaddr Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Patch0: 0001-build-drop-unneeded-deps.patch Patch1: 0002-crate-bump-regex-dependency.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: git # [dependencies] BuildRequires: (crate(phf) >= 0.7.0 with crate(phf) < 0.8.0) # [build-dependencies] BuildRequires: (crate(phf_codegen) >= 0.7.0 with crate(phf_codegen) < 0.8.0) BuildRequires: (crate(regex) >= 1.0.0 with crate(regex) < 2.0.0) BuildRequires: (crate(url) >= 1.4.0 with crate(url) < 2.0.0) %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel MAC address handling. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -S git_am %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %{cargo_registry}/%{crate}-%{version}/ %changelog * Mon Jul 16 2018 Michal Sekletar - 0.1.4-1 - Initial package