# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate tikv-jemallocator Name: rust-tikv-jemallocator Version: 0.6.0 Release: %autorelease Summary: Rust allocator backed by jemalloc # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/tikv-jemallocator Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A Rust allocator backed by jemalloc.} %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}+alloc_trait-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+alloc_trait-devel %{_description} This package contains library source intended for building other packages which use the "alloc_trait" feature of the "%{crate}" crate. %files -n %{name}+alloc_trait-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+background_threads-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+background_threads-devel %{_description} This package contains library source intended for building other packages which use the "background_threads" feature of the "%{crate}" crate. %files -n %{name}+background_threads-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+background_threads_runtime_support-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+background_threads_runtime_support-devel %{_description} This package contains library source intended for building other packages which use the "background_threads_runtime_support" feature of the "%{crate}" crate. %files -n %{name}+background_threads_runtime_support-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+debug-devel %{_description} This package contains library source intended for building other packages which use the "debug" feature of the "%{crate}" crate. %files -n %{name}+debug-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+profiling-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+profiling-devel %{_description} This package contains library source intended for building other packages which use the "profiling" feature of the "%{crate}" crate. %files -n %{name}+profiling-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+stats-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+stats-devel %{_description} This package contains library source intended for building other packages which use the "stats" feature of the "%{crate}" crate. %files -n %{name}+stats-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unprefixed_malloc_on_supported_platforms-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unprefixed_malloc_on_supported_platforms-devel %{_description} This package contains library source intended for building other packages which use the "unprefixed_malloc_on_supported_platforms" feature of the "%{crate}" crate. %files -n %{name}+unprefixed_malloc_on_supported_platforms-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 # Remove tests that would require packaging tikv-jemalloc-ctl rm tests/background_thread_defaults.rs rm tests/background_thread_enabled.rs rm tests/malloctl.rs %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog