Initial import (itertools 0.10 compat package)

epel9 imports/e9/rust-itertools0.10-0.10.5-1.el9
Fabio Valentini 2 years ago
parent 29b2755c3b
commit 120697ba84
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/itertools-0.10.5.crate

@ -1,3 +0,0 @@
# rust-itertools0.10
The rust-itertools0.10 package

@ -0,0 +1,11 @@
--- itertools-0.10.5/Cargo.toml 1970-01-01T00:00:00+00:00
+++ itertools-0.10.5/Cargo.toml 2023-07-07T15:48:01.421322+00:00
@@ -66,8 +66,6 @@
[dependencies.either]
version = "1.0"
default-features = false
-[dev-dependencies.criterion]
-version = "=0"
[dev-dependencies.paste]
version = "1.0.0"

@ -0,0 +1,98 @@
# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate itertools
Name: rust-itertools0.10
Version: 0.10.5
Release: %autorelease
Summary: Extra iterator adaptors, iterator methods, free functions, and macros
# Upstream license specification: MIT/Apache-2.0
License: MIT OR Apache-2.0
URL: https://crates.io/crates/itertools
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
Patch: itertools-fix-metadata.diff
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Extra iterator adaptors, iterator methods, free functions, and macros.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+use_alloc-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+use_alloc-devel %{_description}
This package contains library source intended for building other packages which
use the "use_alloc" feature of the "%{crate}" crate.
%files -n %{name}+use_alloc-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+use_std-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+use_std-devel %{_description}
This package contains library source intended for building other packages which
use the "use_std" feature of the "%{crate}" crate.
%files -n %{name}+use_std-devel
%ghost %{crate_instdir}/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
%cargo_test
%endif
%changelog
%autochangelog

@ -0,0 +1 @@
SHA512 (itertools-0.10.5.crate) = d03c3cfba9841776913bbb6daad0c8945830c155f32ae4b48872e0f937c75a443f0ac9a0355f43b359ff75232f38b15f4f6d446b4be30b00b4209cf66ef770c3
Loading…
Cancel
Save