# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate astral_async_http_range_reader Name: rust-astral_async_http_range_reader Version: 0.9.1 Release: %autorelease Summary: Library for streaming reading of files over HTTP using range requests License: MIT URL: https://crates.io/crates/astral_async_http_range_reader Source: %{crates_source} # * A real conda package used as a data file for testing. Tests rely on the # exact size and contents of this particular file. Nothing from this package # is bundled in the binary RPMs. # * We have audited this to determine that it appears to be a normal conda # package and that there are no apparent license or policy obstacles to # distributing its contents in a source RPM. # * A conda package is a zip file. This one contains: # info-andes-1.8.3-pyhd8ed1ab_0.tar.zst metadata.json # pkg-andes-1.8.3-pyhd8ed1ab_0.tar.zst # * The contents of info-andes-1.8.3-pyhd8ed1ab_0.tar.zst correspond to the # conda recipe (build scripts) and are licensed BSD-3-Clause. They indicate # that the andes package itself is licensed GPL-3.0-or-later. # * The archive pkg-andes-1.8.3-pyhd8ed1ab_0.tar.zst contains Python source # files, dist-info metadata, and sample data files in a variety of formats: # .dyr and .raw (ASCII-based Siemens PSS/E data format), .pkl (a Python pickle # created with dill), .m (ASCII-based MATPOWER format), .xlsx, and .json. # Nothing appears inconsistent with the nominal license GPL-3.0-or-later; # however, site-packages/andes/utils/lazyimport.py carries a (SPDX) MIT # license. Source10: https://github.com/astral-sh/async_http_range_reader/raw/deca957f19041364b13c6a8dd477fe204f11fe8d/test-data/andes-1.8.3-pyhd8ed1ab_0.conda # Manually created patch for downstream crate metadata changes # * chore: A couple of dev-dependency tweaks: # https://github.com/astral-sh/async_http_range_reader/pull/2 (Update rstest # dev-dependency to 0.26; Switch async_zip dev-dependency to astral_async_zip) Patch: astral_async_http_range_reader-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A library for streaming reading of files over HTTP using range requests.} %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 %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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check install -t test-data -D -m 0644 -p '%{SOURCE10}' %cargo_test %endif %changelog %autochangelog