## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate async_http_range_reader Name: rust-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/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/prefix-dev/async_http_range_reader/raw/v%{version}/test-data/andes-1.8.3-pyhd8ed1ab_0.conda # Manually created patch for downstream crate metadata changes # * Allow an old version of rstest until it can be updated Patch: 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 ## START: Generated by rpmautospec * Tue Nov 12 2024 Benjamin A. Beasley - 0.9.1-1 - Update to 0.9.1 * Tue Nov 12 2024 Benjamin A. Beasley - 0.9.0-2 - Update reqwest-middleware from 0.3.0 to 0.4.0 * Mon Nov 11 2024 Benjamin A. Beasley - 0.9.0-1 - Update to 0.9.0 * Fri Jul 19 2024 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu May 16 2024 Benjamin A. Beasley - 0.8.0-1 - Update to 0.8.0 * Thu May 16 2024 Benjamin A. Beasley - 0.7.1-1 - Initial package, as reviewed (close RHBZ#2277858) ## END: Generated by rpmautospec