|
|
|
@ -1,38 +1,33 @@
|
|
|
|
|
# Generated by rust2rpm
|
|
|
|
|
# * nix-test is nightly
|
|
|
|
|
%bcond_with check
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate nix
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.9.0
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
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 paths
|
|
|
|
|
# * Bump lazy_static to 1, https://github.com/nix-rust/nix/commit/dcd190a93cda47c525c6c51cc0159699333310fd
|
|
|
|
|
# * Bump rand to 0.4, https://github.com/nix-rust/nix/pull/822
|
|
|
|
|
Patch0: nix-0.9.0-fix-metadata.diff
|
|
|
|
|
# https://github.com/nix-rust/nix/pull/832
|
|
|
|
|
Patch1: 0001-make-statfs-statvfs-to-be-available-wherever-they-ar.patch
|
|
|
|
|
# * No dragonfly
|
|
|
|
|
Patch0: nix-0.10.0-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
# [dependencies]
|
|
|
|
|
BuildRequires: (crate(bitflags) >= 0.9.0 with crate(bitflags) < 0.10.0)
|
|
|
|
|
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.25 with crate(libc) < 0.3.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(nix-test) >= 0.0.1 with crate(nix-test) < 0.0.2)
|
|
|
|
|
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)
|
|
|
|
@ -63,16 +58,20 @@ which use %{crate} from crates.io.
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
%cargo_test
|
|
|
|
|
# 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}
|
|
|
|
|
%exclude %{cargo_registry}/%{crate}-%{version}/{Cross.toml,RELEASE_PROCEDURE.md,bors.toml,ci}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Mar 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.10.0-1
|
|
|
|
|
- Update to 0.10.0
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|