|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.11.0
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Rust friendly bindings to *nix APIs
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
@ -22,31 +22,48 @@ Patch0001: 0001-deps-update-tempfile-to-3.patch
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
# [dependencies]
|
|
|
|
|
BuildRequires: (crate(bitflags) >= 1.0.0 with crate(bitflags) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(cfg-if) >= 0.1.0 with crate(cfg-if) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(libc) >= 0.2.42 with crate(libc) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(void) >= 1.0.2 with crate(void) < 2.0.0)
|
|
|
|
|
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.42 with crate(libc/default) < 0.3.0)
|
|
|
|
|
BuildRequires: (crate(void/default) >= 1.0.2 with crate(void/default) < 2.0.0)
|
|
|
|
|
%if %{with check}
|
|
|
|
|
# [dev-dependencies]
|
|
|
|
|
BuildRequires: (crate(bytes) >= 0.4.8 with crate(bytes) < 0.5.0)
|
|
|
|
|
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(tempfile) >= 3.0.0 with crate(tempfile) < 4.0.0)
|
|
|
|
|
BuildRequires: (crate(bytes/default) >= 0.4.8 with crate(bytes/default) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(tempfile/default) >= 3.0.0 with crate(tempfile/default) < 4.0.0)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
%global _description \
|
|
|
|
|
Rust friendly bindings to *nix APIs.
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Rust friendly bindings to *nix APIs.
|
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use %{crate} from crates.io.
|
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
|
|
%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} -p1
|
|
|
|
@ -64,13 +81,10 @@ which use %{crate} from crates.io.
|
|
|
|
|
%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
|
|
|
|
|
* Mon Oct 29 2018 Josh Stone <jistone@redhat.com> - 0.11.0-3
|
|
|
|
|
- Adapt to new packaging
|
|
|
|
|
|
|
|
|
|
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.11.0-2
|
|
|
|
|
- Rebuild to trigger tests
|
|
|
|
|
|
|
|
|
|