|
|
|
@ -1,12 +1,12 @@
|
|
|
|
|
# Generated by rust2rpm 18
|
|
|
|
|
# Generated by rust2rpm 20
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate zstd-sys
|
|
|
|
|
%global upstream_version 1.6.1+zstd.1.5.0
|
|
|
|
|
%global upstream_version 1.6.2+zstd.1.5.1
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 1.6.1
|
|
|
|
|
Version: 1.6.2
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Low-level bindings for the zstd compression library
|
|
|
|
|
|
|
|
|
@ -17,14 +17,10 @@ Source: %{crates_source %{crate} %{upstream_version}}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * Remove zstd version from version field
|
|
|
|
|
# * Make pkg-config and bindgen default features
|
|
|
|
|
# * Bump bindgen to 0.59.0
|
|
|
|
|
# * Fix logic for included / excluded files
|
|
|
|
|
Patch0: zstd-sys-fix-metadata.diff
|
|
|
|
|
Patch1: Update-for-latest-bindgen.patch
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
|
|
|
|
@ -40,11 +36,11 @@ Requires: pkgconfig(libzstd)
|
|
|
|
|
|
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%license LICENSE.Apache-2.0 LICENSE.Mit
|
|
|
|
|
%doc Readme.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
|
|
|
|
|
@ -54,8 +50,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "default" feature of "%{crate}" crate.
|
|
|
|
|
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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
@ -66,8 +62,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+bindgen-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "bindgen" feature of "%{crate}" crate.
|
|
|
|
|
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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
@ -78,8 +74,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+debug-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "debug" feature of "%{crate}" crate.
|
|
|
|
|
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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
@ -90,8 +86,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+experimental-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "experimental" feature of "%{crate}" crate.
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "experimental" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+experimental-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
@ -102,20 +98,32 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+legacy-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "legacy" feature of "%{crate}" crate.
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "legacy" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+legacy-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+no_asm-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+no_asm-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "no_asm" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+no_asm-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+non-cargo-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+non-cargo-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "non-cargo" feature of "%{crate}" crate.
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "non-cargo" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+non-cargo-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
@ -126,8 +134,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+pkg-config-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "pkg-config" feature of "%{crate}" crate.
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "pkg-config" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+pkg-config-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
@ -138,8 +146,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+std-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "std" feature of "%{crate}" crate.
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "std" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+std-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
@ -150,8 +158,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+thin-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "thin" feature of "%{crate}" crate.
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "thin" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+thin-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
@ -162,8 +170,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+zstdmt-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "zstdmt" feature of "%{crate}" crate.
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "zstdmt" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+zstdmt-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
@ -171,7 +179,7 @@ which use "zstdmt" feature of "%{crate}" crate.
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{upstream_version} -p1
|
|
|
|
|
# Remove bundled zstd
|
|
|
|
|
rm -rfv zstd/ .cargo_vcs_info.json
|
|
|
|
|
rm -rfv zstd/
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
@ -183,7 +191,6 @@ echo 'pkgconfig(libzstd)'
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cargo_install -a
|
|
|
|
|
rm -rfv %{buildroot}%{cargo_registry}/%{crate}-%{version_no_tilde}/.cargo
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
@ -191,4 +198,4 @@ rm -rfv %{buildroot}%{cargo_registry}/%{crate}-%{version_no_tilde}/.cargo
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
%autochangelog
|
|
|
|
|
%autochangelog
|
|
|
|
|