|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
# Generated by rust2rpm 20
|
|
|
|
|
# https://github.com/dropbox/rust-brotli/issues/42
|
|
|
|
|
# Generated by rust2rpm 22
|
|
|
|
|
# * 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
|
|
|
|
@ -9,26 +10,27 @@
|
|
|
|
|
|
|
|
|
|
%global crate brotli
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 3.3.3
|
|
|
|
|
Name: rust-brotli
|
|
|
|
|
Version: 3.3.4
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Brotli compressor and decompressor with no_std support
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: BSD-3-Clause/MIT
|
|
|
|
|
# * https://github.com/dropbox/rust-brotli/issues/41
|
|
|
|
|
License: BSD
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: https://crates.io/crates/brotli
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * Drop unwanted binaries
|
|
|
|
|
# * Exclude unneeded files, https://github.com/dropbox/rust-brotli/pull/43
|
|
|
|
|
# * Exclude simd feature (missing dependencies)
|
|
|
|
|
# * Bump sha2 dependency from 0.8 to 0.9
|
|
|
|
|
Patch0: brotli-fix-metadata.diff
|
|
|
|
|
# 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
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Brotli compressor and decompressor with an interface avoiding the rust
|
|
|
|
@ -49,9 +51,9 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
|
%license %{crate_instdir}/LICENSE
|
|
|
|
|
%doc %{crate_instdir}/README.md
|
|
|
|
|
%{crate_instdir}/
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -63,7 +65,7 @@ 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
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+alloc-stdlib-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -75,7 +77,7 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "alloc-stdlib" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+alloc-stdlib-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+benchmark-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -87,7 +89,7 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "benchmark" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+benchmark-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+disable-timer-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -99,7 +101,7 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "disable-timer" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+disable-timer-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+external-literal-probability-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -111,7 +113,7 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "external-literal-probability" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+external-literal-probability-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+ffi-api-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -123,7 +125,7 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "ffi-api" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+ffi-api-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+pass-through-ffi-panics-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -135,7 +137,7 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "pass-through-ffi-panics" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+pass-through-ffi-panics-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+seccomp-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -147,7 +149,7 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "seccomp" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+seccomp-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+sha2-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -159,7 +161,7 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "sha2" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+sha2-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+std-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -171,7 +173,7 @@ 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
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+validation-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -183,7 +185,7 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "validation" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+validation-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+vector_scratch_space-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -195,11 +197,12 @@ This package contains library source intended for building other packages which
|
|
|
|
|
use the "vector_scratch_space" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+vector_scratch_space-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
# https://github.com/dropbox/rust-brotli/pull/40
|
|
|
|
|
# * 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
|
|
|
|
|
|
|
|
|
|