|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
# Generated by rust2rpm 22
|
|
|
|
|
# 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
|
|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
%global crate brotli
|
|
|
|
|
|
|
|
|
|
Name: rust-brotli
|
|
|
|
|
Version: 3.3.4
|
|
|
|
|
Version: 3.4.0
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Brotli compressor and decompressor with no_std support
|
|
|
|
|
|
|
|
|
@ -21,23 +21,20 @@ Source: %{crates_source}
|
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
|
# * fix license in crate metadata:
|
|
|
|
|
# https://github.com/dropbox/rust-brotli/issues/41
|
|
|
|
|
# * bump sha2 dependency from 0.8 to 0.9
|
|
|
|
|
# * drop unwanted brotli and catbrotli binaries
|
|
|
|
|
# * drop simd feature (missing packed_simd2 dependency)
|
|
|
|
|
# * exclude files that are only useful for upstream development:
|
|
|
|
|
# https://github.com/dropbox/rust-brotli/pull/43
|
|
|
|
|
Patch: brotli-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Brotli compressor and decompressor with an interface avoiding the rust
|
|
|
|
|
stdlib. This makes it suitable for embedded devices and kernels. It is designed
|
|
|
|
|
with a pluggable allocator so that the standard lib's allocator may be
|
|
|
|
|
employed. The default build also includes a stdlib allocator and stream
|
|
|
|
|
interface. Disable this with --features=no-stdlib. All included code is safe.}
|
|
|
|
|
A brotli compressor and decompressor that with an interface avoiding the
|
|
|
|
|
rust stdlib. This makes it suitable for embedded devices and kernels. It
|
|
|
|
|
is designed with a pluggable allocator so that the standard lib's
|
|
|
|
|
allocator may be employed. The default build also includes a stdlib
|
|
|
|
|
allocator and stream interface. Disable this with --features=no-stdlib.
|
|
|
|
|
All included code is safe.}
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
@ -200,11 +197,11 @@ use the "vector_scratch_space" feature of the "%{crate}" crate.
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%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 '{}' +
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|