# Generated by rust2rpm 25 # * tests can only be run in-tree %bcond_with check %global debug_package %{nil} # drop unnecessary debuginfo generation to fix OOM problems on 32-bit arches %global rustflags_debuginfo 0 %global crate cargo Name: rust-cargo Version: 0.75.1 Release: %autorelease Summary: Package manager for Rust License: MIT OR Apache-2.0 URL: https://crates.io/crates/cargo Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: cargo-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * drop macOS- and Windows-specific dependencies # * drop features for statically linking cURL, libgit2, and OpenSSL # * drop cargo binary (shipped with rust) # * update gix dependency to version 0.61 # * update gix-features dependency to version 0.38 Patch: cargo-fix-metadata.diff # * backported patch for dropping macOS- and Windows-specific credentials # providers: https://github.com/rust-lang/cargo/pull/12949 Patch: 0001-Backport-Filter-cargo-credential-dependencies-by-OS.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Package manager for Rust.} %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}/ %exclude %{crate_instdir}/{ci/,clippy.toml,deny.toml,publish.py,triagebot.toml} %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}+openssl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+openssl-devel %{_description} This package contains library source intended for building other packages which use the "openssl" feature of the "%{crate}" crate. %files -n %{name}+openssl-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 %cargo_test %endif %changelog %autochangelog