|
|
|
@ -1,25 +1,23 @@
|
|
|
|
|
# Generated by rust2rpm 21
|
|
|
|
|
# Generated by rust2rpm 22
|
|
|
|
|
# * tests require files that are not included in published crates
|
|
|
|
|
%bcond_with check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate zstd
|
|
|
|
|
%global upstream_version 0.10.0+zstd.1.5.2
|
|
|
|
|
%global upstream_version 0.11.2+zstd.1.5.2
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.10.0
|
|
|
|
|
Name: rust-zstd
|
|
|
|
|
Version: 0.11.2
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Binding for the zstd compression library
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://crates.io/crates/zstd
|
|
|
|
|
Source: %{crates_source %{crate} %{upstream_version}}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * Remove zstd version from version field
|
|
|
|
|
# * Build zstd-sys with bindgen and pkg-config
|
|
|
|
|
# * Exclude development-only files
|
|
|
|
|
Patch0: zstd-fix-metadata.diff
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
# * remove zstd version from version field
|
|
|
|
|
# * exclude development-only files
|
|
|
|
|
Patch: zstd-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
@ -176,6 +174,18 @@ use the "wasm" feature of the "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+wasm-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+zdict_builder-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+zdict_builder-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "zdict_builder" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+zdict_builder-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+zstdmt-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|