# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate lzma-rs Name: rust-lzma-rs Version: 0.3.0 Release: %autorelease Summary: Codec for LZMA, LZMA2 and XZ written in pure Rust License: MIT URL: https://crates.io/crates/lzma-rs Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 BuildRequires: tomcli %global _description %{expand: A codec for LZMA, LZMA2 and XZ written in pure 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 %doc %{crate_instdir}/CHANGELOG.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}+enable_logging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+enable_logging-devel %{_description} This package contains library source intended for building other packages which use the "enable_logging" feature of the "%{crate}" crate. %files -n %{name}+enable_logging-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+env_logger-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+env_logger-devel %{_description} This package contains library source intended for building other packages which use the "env_logger" feature of the "%{crate}" crate. %files -n %{name}+env_logger-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}+raw_decoder-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+raw_decoder-devel %{_description} This package contains library source intended for building other packages which use the "raw_decoder" feature of the "%{crate}" crate. %files -n %{name}+raw_decoder-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+stream-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+stream-devel %{_description} This package contains library source intended for building other packages which use the "stream" feature of the "%{crate}" crate. %files -n %{name}+stream-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Used only in tests that are not included in the crate tomcli set Cargo.toml del dev-dependencies.rust-lzma %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog