# Generated by rust2rpm %bcond_without check %global debug_package %{nil} %global crate nix Name: rust-%{crate} Version: 0.10.0 Release: 1%{?dist} Summary: Rust friendly bindings to *nix APIs License: MIT URL: https://crates.io/crates/nix Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * No dragonfly Patch0: nix-0.10.0-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(bitflags) >= 1.0.0 with crate(bitflags) < 2.0.0) BuildRequires: (crate(bytes) >= 0.4.5 with crate(bytes) < 0.5.0) BuildRequires: (crate(cfg-if) >= 0.1.0 with crate(cfg-if) < 0.2.0) BuildRequires: (crate(libc) >= 0.2.36 with crate(libc) < 0.3.0) BuildRequires: (crate(void) >= 1.0.2 with crate(void) < 2.0.0) %if %{with check} # [dev-dependencies] BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0) BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) BuildRequires: (crate(tempdir) >= 0.3.0 with crate(tempdir) < 0.4.0) BuildRequires: (crate(tempfile) >= 2.0.0 with crate(tempfile) < 3.0.0) %endif %description %{summary}. %package devel Summary: %{summary} BuildArch: noarch %description devel Rust friendly bindings to *nix APIs. 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 # Testing parts are not distributed %cargo_test --doc %endif %files devel %license LICENSE %doc CHANGELOG.md CONTRIBUTING.md CONVENTIONS.md README.md %{cargo_registry}/%{crate}-%{version}/ %exclude %{cargo_registry}/%{crate}-%{version}/{Cross.toml,RELEASE_PROCEDURE.md,bors.toml,ci} %changelog * Thu Mar 08 2018 Igor Gnatenko - 0.10.0-1 - Update to 0.10.0 * Fri Feb 09 2018 Fedora Release Engineering - 0.9.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Igor Gnatenko - 0.9.0-4 - Rebuild for rust-packaging v5 * Mon Jan 08 2018 Igor Gnatenko - 0.9.0-3 - Implement statfs/statvfs on altarches * Mon Jan 01 2018 Igor Gnatenko - 0.9.0-2 - Bump rand to 0.4 * Sun Dec 03 2017 Igor Gnatenko - 0.9.0-1 - Initial package