# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate libloading Name: rust-%{crate} Version: 0.4.3 Release: 1%{?dist} Summary: Safer binding to platform’s dynamic library loading utilities License: ISC URL: https://crates.io/crates/libloading Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * No windows Patch0: libloading-0.4.3-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0) BuildRequires: glibc-devel %description %{summary}. %package devel Summary: %{summary} Requires: glibc-devel BuildArch: noarch %description devel A safer binding to platform’s dynamic library loading utilities. 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.mkd %{cargo_registry}/%{crate}-%{version}/ %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog * Wed Jan 03 2018 Igor Gnatenko - 0.4.3-1 - Update to 0.4.3 * Mon Dec 04 2017 Igor Gnatenko - 0.4.2-1 - Initial package