# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate libudev-sys Name: rust-%{crate} Version: 0.1.4 Release: 1%{?dist} Summary: FFI bindings to libudev License: MIT URL: https://crates.io/crates/libudev-sys Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) # [build-dependencies] BuildRequires: (crate(pkg-config) >= 0.3.2 with crate(pkg-config) < 0.4.0) BuildRequires: pkgconfig(libudev) %description %{summary}. %package devel Summary: %{summary} Requires: pkgconfig(libudev) BuildArch: noarch %description devel FFI bindings to libudev. This package contains library source intended for building other packages which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %files devel %license LICENSE %doc README.md %{cargo_registry}/%{crate}-%{version}/ %changelog * Sun Jan 07 2018 Igor Gnatenko - 0.1.4-1 - Update to 0.1.4 * Fri Jan 05 2018 Igor Gnatenko - 0.1.3-1 - Initial package