## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 27 %bcond check 1 %global debug_package %{nil} %global crate moka Name: rust-moka Version: 0.12.11 Release: %autorelease Summary: Fast and concurrent cache library inspired by Java Caffeine License: (MIT OR Apache-2.0) AND Apache-2.0 URL: https://crates.io/crates/moka Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: moka-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A fast and concurrent cache library inspired by Java Caffeine.} %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 %license %{crate_instdir}/NOTICE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/MIGRATION-GUIDE.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}+async-lock-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-lock-devel %{_description} This package contains library source intended for building other packages which use the "async-lock" feature of the "%{crate}" crate. %files -n %{name}+async-lock-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+event-listener-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+event-listener-devel %{_description} This package contains library source intended for building other packages which use the "event-listener" feature of the "%{crate}" crate. %files -n %{name}+event-listener-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+future-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+future-devel %{_description} This package contains library source intended for building other packages which use the "future" feature of the "%{crate}" crate. %files -n %{name}+future-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-util-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-util-devel %{_description} This package contains library source intended for building other packages which use the "futures-util" feature of the "%{crate}" crate. %files -n %{name}+futures-util-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-devel %{_description} This package contains library source intended for building other packages which use the "log" feature of the "%{crate}" crate. %files -n %{name}+log-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+logging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+logging-devel %{_description} This package contains library source intended for building other packages which use the "logging" feature of the "%{crate}" crate. %files -n %{name}+logging-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+once_cell-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+once_cell-devel %{_description} This package contains library source intended for building other packages which use the "once_cell" feature of the "%{crate}" crate. %files -n %{name}+once_cell-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+quanta-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+quanta-devel %{_description} This package contains library source intended for building other packages which use the "quanta" feature of the "%{crate}" crate. %files -n %{name}+quanta-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sync-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sync-devel %{_description} This package contains library source intended for building other packages which use the "sync" feature of the "%{crate}" crate. %files -n %{name}+sync-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f future,sync %build %cargo_build -f future,sync %install %cargo_install -f future,sync %if %{with check} %check # * In future::cache::tests::ensure_gc_runs_when_dropping_cache, the number of # references is sometimes different from what upstream expects. This is # similar to (but slightly different from) the flakiness that was observed # upstream in the other ensure_gc_runs_when_dropping_cache test; see # https://github.com/moka-rs/moka/pull/387. We reported this upstream as # “Flaky failures in ensure_gc_runs_when_dropping_cache,” # https://github.com/moka-rs/moka/issues/539. %cargo_test -f future,sync -- -- --exact --skip future::cache::tests::ensure_gc_runs_when_dropping_cache %endif %changelog ## START: Generated by rpmautospec * Sun Sep 28 2025 Benjamin A. Beasley - 0.12.11-4 - Fix upstream bug link * Sun Sep 28 2025 Benjamin A. Beasley - 0.12.11-3 - Report ensure_gc_runs_when_dropping_cache flakes upstream * Sun Sep 28 2025 Benjamin A. Beasley - 0.12.11-2 - Still skip ensure_gc_runs_when_dropping_cache * Wed Sep 24 2025 Benjamin A. Beasley - 0.12.11-1 - Update to version 0.12.11; Fixes RHBZ#2397637 * Thu Sep 18 2025 Benjamin A. Beasley - 0.12.10-2 - Update reqwest dev-dependency from 0.11 to 0.12 * Wed Sep 17 2025 Benjamin A. Beasley - 0.12.10-1 - Initial package (close RHBZ#2393703) ## END: Generated by rpmautospec