Initial import (nix 0.20 compat package)

epel9
Fabio Valentini 4 years ago
parent 2294676d9d
commit ea5fcc97b9
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/nix-0.20.0.crate

@ -0,0 +1,10 @@
--- nix-0.20.0/Cargo.toml 1970-01-01T00:00:00+00:00
+++ nix-0.20.0/Cargo.toml 2021-07-29T16:16:03.834607+00:00
@@ -72,7 +72,3 @@
version = "3.0.5"
[target."cfg(any(target_os = \"android\", target_os = \"linux\"))".dev-dependencies.caps]
version = "0.5.1"
-[target."cfg(target_os = \"dragonfly\")".build-dependencies.cc]
-version = "1"
-[target."cfg(target_os = \"freebsd\")".dev-dependencies.sysctl]
-version = "0.1"

@ -0,0 +1,79 @@
# Generated by rust2rpm 18
# * skip unreliable tests in the compat package
%bcond_with check
%global debug_package %{nil}
%global crate nix
Name: rust-%{crate}0.20
Version: 0.20.0
Release: %autorelease
Summary: Rust friendly bindings to *nix APIs
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/nix
Source: %{crates_source}
# Initial patched metadata
# * drop DragonflyBSD/FreeBSD-specific dependencies
Patch0: nix-fix-metadata.diff
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
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 README.md CONVENTIONS.md CONTRIBUTING.md CHANGELOG.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%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_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
# skip a test that does not work in systemd-nspawn containers
%cargo_test -- -- --skip sys::test_socket::test_vsock
%endif
%changelog
%autochangelog

@ -0,0 +1 @@
SHA512 (nix-0.20.0.crate) = 4efb0a6147870aca6b5612428216f36cd826320b75f4f12fb0c75140d47561834695db7745908a23d08ac7114d69848cdafcf87830718da1f03aa6f2c664c5d5
Loading…
Cancel
Save