# Generated by rust2rpm %bcond_with check %global debug_package %{nil} %global crate nix Name: rust-%{crate} Version: 0.13.0 Release: 2%{?dist} Summary: Rust friendly bindings to *nix APIs License: MIT URL: https://crates.io/crates/nix Source: %{crates_source} # Initial patched metadata # * No dragonfly/freebsd Patch0: nix-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0) BuildRequires: (crate(cfg-if/default) >= 0.1.0 with crate(cfg-if/default) < 0.2.0) BuildRequires: (crate(libc/default) >= 0.2.47 with crate(libc/default) < 0.3.0) BuildRequires: (crate(void/default) >= 1.0.2 with crate(void/default) < 2.0.0) %if %{with check} BuildRequires: (crate(bytes/default) >= 0.4.8 with crate(bytes/default) < 0.5.0) BuildRequires: (crate(lazy_static/default) >= 1.2.0 with crate(lazy_static/default) < 2.0.0) BuildRequires: (crate(rand/default) >= 0.5.0 with crate(rand/default) < 0.6.0) BuildRequires: (crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0) %endif %global _description \ Rust friendly bindings to *nix APIs. %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE %doc CHANGELOG.md CONTRIBUTING.md CONVENTIONS.md README.md %{cargo_registry}/%{crate}-%{version}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check # Testing parts are not distributed %cargo_test -- --doc %endif %changelog * Tue Feb 12 2019 Igor Gnatenko - 0.13.0-2 - Run tests in infrastructure * Sat Feb 02 2019 Fedora Release Engineering - 0.11.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Nov 02 2018 Igor Gnatenko - 0.11.0-4 - Exclude CI files in a different way * Mon Oct 29 2018 Josh Stone - 0.11.0-3 - Adapt to new packaging * Sat Jul 28 2018 Igor Gnatenko - 0.11.0-2 - Rebuild to trigger tests * Tue Jul 17 2018 Igor Gnatenko - 0.11.0-1 - Update to 0.11.0 * Sat Jul 14 2018 Fedora Release Engineering - 0.10.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 23 2018 Igor Gnatenko - 0.10.0-4 - Adopt to new macro * Fri May 11 2018 Igor Gnatenko - 0.10.0-3 - Bump tempfile to 3 * Thu Mar 08 2018 Igor Gnatenko - 0.10.0-2 - Re-apply statvfs patch * 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