# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate tame-index Name: rust-tame-index Version: 0.6.0 Release: %autorelease Summary: Access to local and remote cargo registry indices License: Apache-2.0 OR MIT URL: https://crates.io/crates/tame-index Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop dependencies on unavailable rustls features of reqwest # * remove unused benchmark-only tiny-bench dev-dependency Patch: tame-index-fix-metadata.diff # * include upstream patch to disable some tests on big-endian architectures: # https://github.com/EmbarkStudios/tame-index/issues/36 # https://github.com/EmbarkStudios/tame-index/pull/37 Patch: https://github.com/EmbarkStudios/tame-index/commit/5bd057d.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Provides access to local and remote cargo registry indices.} %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}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/CONTRIBUTING.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}+git-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+git-devel %{_description} This package contains library source intended for building other packages which use the "git" feature of the "%{crate}" crate. %files -n %{name}+git-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+local-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+local-devel %{_description} This package contains library source intended for building other packages which use the "local" feature of the "%{crate}" crate. %files -n %{name}+local-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+local-builder-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+local-builder-devel %{_description} This package contains library source intended for building other packages which use the "local-builder" feature of the "%{crate}" crate. %files -n %{name}+local-builder-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sparse-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sparse-devel %{_description} This package contains library source intended for building other packages which use the "sparse" feature of the "%{crate}" crate. %files -n %{name}+sparse-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 # * skip tests that require a cargo cache directory %cargo_test -- -- --skip parses_current_cargo_cache --skip serializes_current_cargo_cache %endif %changelog %autochangelog