# Generated by rust2rpm 28 %bcond check 0 %global debug_package %{nil} %global crate liblzma-sys Name: rust-liblzma-sys Version: 0.4.9 Release: %autorelease Summary: Raw bindings to liblzma which contains an implementation of LZMA and xz stream encoding/decoding License: MIT OR Apache-2.0 URL: https://crates.io/crates/liblzma-sys Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Raw bindings to liblzma which contains an implementation of LZMA and xz stream encoding/decoding. High level Rust bindings are available in the `liblzma` crate.} %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}/xz/COPYING %license %{crate_instdir}/xz/COPYING.0BSD %license %{crate_instdir}/xz/COPYING.GPLv2 %license %{crate_instdir}/xz/COPYING.GPLv3 %license %{crate_instdir}/xz/COPYING.LGPLv2.1 %license %{crate_instdir}/xz/build-aux/license-check.sh %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}+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