# Generated by rust2rpm # * Do not want to package dead argparse, https://github.com/tailhook/libmount/issues/8 %bcond_with check %global debug_package %{nil} %global crate libmount Name: rust-%{crate} Version: 0.1.10 Release: 1%{?dist} Summary: Type-safe wrapper around mount system call License: MIT or ASL 2.0 URL: https://crates.io/crates/libmount 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.28 with crate(libc) < 0.3.0) BuildRequires: (crate(nix) >= 0.10.0 with crate(nix) < 0.11.0) BuildRequires: (crate(quick-error) >= 1.2.0 with crate(quick-error) < 2.0.0) %if %{with check} # [dev-dependencies] BuildRequires: (crate(argparse) >= 0.2.1 with crate(argparse) < 0.3.0) BuildRequires: (crate(env_logger) >= 0.5.10 with crate(env_logger) < 0.6.0) BuildRequires: (crate(log) >= 0.4.1 with crate(log) < 0.5.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel The type-safe wrapper around mount system call. 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-MIT LICENSE-APACHE %doc README.md %{cargo_registry}/%{crate}-%{version}/ %exclude %{cargo_registry}/%{crate}-%{version}/{bulk.yaml,vagga.yaml} %changelog * Wed Jul 11 2018 Igor Gnatenko - 0.1.10-1 - Initial package