commit
e8f06c789e
Binary file not shown.
@ -0,0 +1,53 @@
|
||||
--- brotli-3.3.4/Cargo.toml 1970-01-01T00:00:01+00:00
|
||||
+++ brotli-3.3.4/Cargo.toml 2022-08-10T20:41:04.497620+00:00
|
||||
@@ -19,36 +19,27 @@
|
||||
documentation = "https://docs.rs/brotli/"
|
||||
readme = "README.md"
|
||||
keywords = ["brotli", "decompression", "lz77", "huffman", "nostd"]
|
||||
-license = "BSD-3-Clause/MIT"
|
||||
+license = "BSD-3-Clause"
|
||||
repository = "https://github.com/dropbox/rust-brotli"
|
||||
+exclude = ["/ci/", "/research/", "/.travis.yml", "/appveyor.yml", "uncorrode.py"]
|
||||
+
|
||||
[profile.release]
|
||||
lto = true
|
||||
incremental = false
|
||||
|
||||
-[[bin]]
|
||||
-name = "brotli"
|
||||
-doc = false
|
||||
-
|
||||
-[[bin]]
|
||||
-name = "catbrotli"
|
||||
-doc = false
|
||||
[dependencies.alloc-no-stdlib]
|
||||
version = "2.0"
|
||||
|
||||
[dependencies.alloc-stdlib]
|
||||
-version = "~0.2"
|
||||
+version = "0.2"
|
||||
optional = true
|
||||
|
||||
[dependencies.brotli-decompressor]
|
||||
-version = "~2.3"
|
||||
+version = "2.3"
|
||||
default-features = false
|
||||
|
||||
-[dependencies.packed_simd_2]
|
||||
-version = "0.3"
|
||||
-optional = true
|
||||
-
|
||||
[dependencies.sha2]
|
||||
-version = "~0.8"
|
||||
+version = "0.9"
|
||||
optional = true
|
||||
|
||||
[features]
|
||||
@@ -59,7 +50,6 @@
|
||||
ffi-api = []
|
||||
pass-through-ffi-panics = []
|
||||
seccomp = ["brotli-decompressor/seccomp"]
|
||||
-simd = ["packed_simd_2/into_bits"]
|
||||
std = ["alloc-stdlib", "brotli-decompressor/std"]
|
||||
validation = ["sha2"]
|
||||
vector_scratch_space = []
|
@ -0,0 +1,268 @@
|
||||
## START: Set by rpmautospec
|
||||
## (rpmautospec version 0.3.0)
|
||||
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||
release_number = 1;
|
||||
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||
print(release_number + base_release_number - 1);
|
||||
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||
## END: Set by rpmautospec
|
||||
|
||||
# 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
|
||||
%bcond_without check
|
||||
%endif
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global crate brotli
|
||||
|
||||
Name: rust-brotli
|
||||
Version: 3.3.4
|
||||
Release: %autorelease
|
||||
Summary: Brotli compressor and decompressor with no_std support
|
||||
|
||||
License: BSD-3-Clause
|
||||
URL: https://crates.io/crates/brotli
|
||||
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
|
||||
|
||||
%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.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages which
|
||||
use the "%{crate}" crate.
|
||||
|
||||
%files devel
|
||||
%license %{crate_instdir}/LICENSE
|
||||
%doc %{crate_instdir}/README.md
|
||||
%{crate_instdir}/
|
||||
|
||||
%package -n %{name}+default-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+default-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n %{name}+alloc-stdlib-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+alloc-stdlib-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n %{name}+benchmark-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+benchmark-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n %{name}+disable-timer-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+disable-timer-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n %{name}+external-literal-probability-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+external-literal-probability-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n %{name}+ffi-api-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+ffi-api-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n %{name}+pass-through-ffi-panics-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+pass-through-ffi-panics-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n %{name}+seccomp-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+seccomp-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n %{name}+sha2-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+sha2-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n %{name}+std-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+std-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n %{name}+validation-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+validation-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%package -n %{name}+vector_scratch_space-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+vector_scratch_space-devel %{_description}
|
||||
|
||||
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 %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
# * 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
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Jan 15 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 3.3.4-1
|
||||
- Rebuilt for MSVSphere 9.3
|
||||
|
||||
* Wed Aug 10 2022 Fabio Valentini <decathorpe@gmail.com> 3.3.4-1
|
||||
- Update to version 3.3.4; Fixes RHBZ#2070425
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> 3.3.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Jan 26 2022 Fabio Valentini <decathorpe@gmail.com> 3.3.3-1
|
||||
- Update to version 3.3.3; Fixes RHBZ#2041012
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> 3.3.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Sun Aug 01 2021 Fabio Valentini <decathorpe@gmail.com> 3.3.2-1
|
||||
- Update to version 3.3.2; Fixes RHBZ#1988749
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Nov 24 2020 Fabio Valentini <decathorpe@gmail.com> - 3.3.0-4
|
||||
- Fix FTI issues for some features.
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sat Dec 14 17:51:22 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.3.0-1
|
||||
- Initial package
|
||||
|
Loading…
Reference in new issue