|
|
|
@ -1,28 +1,32 @@
|
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
|
# * tests fail with OOM problems on 32-bit architectures:
|
|
|
|
|
# https://github.com/dropbox/rust-brotli/issues/42
|
|
|
|
|
%if 0%{?__isa_bits} == 32
|
|
|
|
|
%bcond_with check
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%endif
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
# prevent executables from being installed
|
|
|
|
|
%global cargo_install_bin 0
|
|
|
|
|
|
|
|
|
|
%global crate brotli
|
|
|
|
|
|
|
|
|
|
Name: rust-brotli
|
|
|
|
|
Version: 7.0.0
|
|
|
|
|
Version: 3.4.0
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Brotli compressor and decompressor with no_std support
|
|
|
|
|
|
|
|
|
|
License: BSD-3-Clause AND MIT
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: https://crates.io/crates/brotli
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
# * Exclude files that are only useful for upstream development:
|
|
|
|
|
# * fix license in crate metadata:
|
|
|
|
|
# https://github.com/dropbox/rust-brotli/issues/41
|
|
|
|
|
# * drop unwanted brotli and catbrotli binaries
|
|
|
|
|
# * exclude files that are only useful for upstream development:
|
|
|
|
|
# https://github.com/dropbox/rust-brotli/pull/43
|
|
|
|
|
Patch: brotli-fix-metadata.diff
|
|
|
|
|
# * Remove unwanted executable permission from src/enc/test.rs
|
|
|
|
|
Patch10: https://github.com/dropbox/rust-brotli/pull/219.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 26
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
A brotli compressor and decompressor that with an interface avoiding the
|
|
|
|
@ -44,8 +48,7 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license %{crate_instdir}/LICENSE.BSD-3-Clause
|
|
|
|
|
%license %{crate_instdir}/LICENSE.MIT
|
|
|
|
|
%license %{crate_instdir}/LICENSE
|
|
|
|
|
%doc %{crate_instdir}/README.md
|
|
|
|
|
%{crate_instdir}/
|
|
|
|
|
|
|
|
|
@ -73,16 +76,16 @@ use the "alloc-stdlib" feature of the "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+alloc-stdlib-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+billing-devel
|
|
|
|
|
%package -n %{name}+benchmark-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+billing-devel %{_description}
|
|
|
|
|
%description -n %{name}+benchmark-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "billing" feature of the "%{crate}" crate.
|
|
|
|
|
use the "benchmark" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+billing-devel
|
|
|
|
|
%files -n %{name}+benchmark-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+disable-timer-devel
|
|
|
|
@ -97,18 +100,6 @@ use the "disable-timer" feature of the "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+disable-timer-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+disallow_large_window_size-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+disallow_large_window_size-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "disallow_large_window_size" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+disallow_large_window_size-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+external-literal-probability-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -133,42 +124,6 @@ use the "ffi-api" feature of the "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+ffi-api-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+float64-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+float64-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "float64" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+float64-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+floating_point_context_mixing-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+floating_point_context_mixing-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "floating_point_context_mixing" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+floating_point_context_mixing-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+no-stdlib-ffi-binding-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+no-stdlib-ffi-binding-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "no-stdlib-ffi-binding" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+no-stdlib-ffi-binding-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+pass-through-ffi-panics-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -205,18 +160,6 @@ use the "sha2" feature of the "%{crate}" crate.
|
|
|
|
|
%files -n %{name}+sha2-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+simd-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+simd-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "simd" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+simd-devel
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+std-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -256,6 +199,9 @@ use the "vector_scratch_space" feature of the "%{crate}" crate.
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
# * remove executable bits from Rust source files:
|
|
|
|
|
# https://github.com/dropbox/rust-brotli/pull/40
|
|
|
|
|
find -type f -name '*.rs' -executable -exec chmod -x '{}' +
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
@ -268,26 +214,7 @@ use the "vector_scratch_space" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
%if 0%{?__isa_bits} != 32
|
|
|
|
|
%cargo_test
|
|
|
|
|
%else
|
|
|
|
|
# Few tests fail with OOM on 32bit
|
|
|
|
|
# https://github.com/dropbox/rust-brotli/issues/42
|
|
|
|
|
# A fix was included in 7.0.0, but it was not entirely successful:
|
|
|
|
|
# https://github.com/dropbox/rust-brotli/issues/42#issuecomment-2388527527
|
|
|
|
|
skip="${skip-} --skip enc::test::test_roundtrip_10x10y"
|
|
|
|
|
skip="${skip-} --skip enc::test::test_roundtrip_64x"
|
|
|
|
|
skip="${skip-} --skip enc::test::test_roundtrip_asyoulik"
|
|
|
|
|
skip="${skip-} --skip enc::test::test_roundtrip_asyoulik9_5"
|
|
|
|
|
skip="${skip-} --skip enc::test::test_roundtrip_backward65536"
|
|
|
|
|
skip="${skip-} --skip enc::test::test_roundtrip_compressed_repeated"
|
|
|
|
|
skip="${skip-} --skip enc::test::test_roundtrip_monkey"
|
|
|
|
|
skip="${skip-} --skip enc::test::test_roundtrip_quickfox"
|
|
|
|
|
skip="${skip-} --skip enc::test::test_roundtrip_quickfox_repeated"
|
|
|
|
|
skip="${skip-} --skip enc::test::test_roundtrip_ukkonooa"
|
|
|
|
|
skip="${skip-} --skip enc::test::test_roundtrip_x"
|
|
|
|
|
%cargo_test -- -- --exact ${skip-}
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|