# Generated by rust2rpm 28 %bcond check 0 %global debug_package %{nil} %global crate liblzma Name: rust-liblzma Version: 0.4.8 Release: %autorelease Summary: Rust bindings to liblzma providing Read/Write streams as well as low-level in-memory encoding/decoding License: MIT OR Apache-2.0 URL: https://crates.io/crates/liblzma Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: liblzma-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Rust bindings to liblzma providing Read/Write streams as well as low- level in-memory encoding/decoding. forked from xz2.} %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}/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}+bindgen-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bindgen-devel %{_description} This package contains library source intended for building other packages which use the "bindgen" feature of the "%{crate}" crate. %files -n %{name}+bindgen-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fat-lto-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fat-lto-devel %{_description} This package contains library source intended for building other packages which use the "fat-lto" feature of the "%{crate}" crate. %files -n %{name}+fat-lto-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+num_cpus-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+num_cpus-devel %{_description} This package contains library source intended for building other packages which use the "num_cpus" feature of the "%{crate}" crate. %files -n %{name}+num_cpus-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+parallel-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+parallel-devel %{_description} This package contains library source intended for building other packages which use the "parallel" feature of the "%{crate}" crate. %files -n %{name}+parallel-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+static-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+static-devel %{_description} This package contains library source intended for building other packages which use the "static" feature of the "%{crate}" crate. %files -n %{name}+static-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+thin-lto-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+thin-lto-devel %{_description} This package contains library source intended for building other packages which use the "thin-lto" feature of the "%{crate}" crate. %files -n %{name}+thin-lto-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+uncheck_liblzma_version-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+uncheck_liblzma_version-devel %{_description} This package contains library source intended for building other packages which use the "uncheck_liblzma_version" feature of the "%{crate}" crate. %files -n %{name}+uncheck_liblzma_version-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+wasm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+wasm-devel %{_description} This package contains library source intended for building other packages which use the "wasm" feature of the "%{crate}" crate. %files -n %{name}+wasm-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