The package rpms/rust-brotli-decompressor.git has added or updated architecture specific
content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-brotli-decompressor.git/comm....
Change:
-ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit b410b85b8b2884cd447ddf18927654993ad60985
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Sun Jan 29 23:33:58 2023 +0100
Update to version 2.3.4; Fixes RHBZ#2161121
diff --git a/.gitignore b/.gitignore
index 76efb6a..8b200b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/brotli-decompressor-2.3.0.crate
/brotli-decompressor-2.3.1.crate
/brotli-decompressor-2.3.2.crate
+/brotli-decompressor-2.3.4.crate
diff --git a/brotli-decompressor-fix-metadata.diff
b/brotli-decompressor-fix-metadata.diff
new file mode 100644
index 0000000..008c808
--- /dev/null
+++ b/brotli-decompressor-fix-metadata.diff
@@ -0,0 +1,28 @@
+--- brotli-decompressor-2.3.4/Cargo.toml 1970-01-01T00:00:01+00:00
++++ brotli-decompressor-2.3.4/Cargo.toml 2023-01-29T22:28:10.941702+00:00
+@@ -29,22 +29,18 @@
+ "huffman",
+ "nostd",
+ ]
+-license = "BSD-3-Clause/MIT"
++license = "BSD-3-Clause AND MIT"
+ repository = "https://github.com/dropbox/rust-brotli-decompressor"
+
+ [profile.release]
+ lto = true
+ incremental = false
+
+-[[bin]]
+-name = "brotli-decompressor"
+-doc = false
+-
+ [dependencies.alloc-no-stdlib]
+-version = "~2.0"
++version = "2.0"
+
+ [dependencies.alloc-stdlib]
+-version = "~0.2"
++version = "0.2"
+ optional = true
+
+ [features]
diff --git a/rust-brotli-decompressor.spec b/rust-brotli-decompressor.spec
index 53d4e07..6346ce0 100644
--- a/rust-brotli-decompressor.spec
+++ b/rust-brotli-decompressor.spec
@@ -1,41 +1,30 @@
-# Generated by rust2rpm 18
+# Generated by rust2rpm 23
# * published crates to not contain files necessary for running tests
%bcond_with check
%global debug_package %{nil}
-# do not build useless binary
-%global __cargo_is_bin() false
-
%global crate brotli-decompressor
-Name: rust-%{crate}
-Version: 2.3.2
+Name: rust-brotli-decompressor
+Version: 2.3.4
Release: %autorelease
-Summary: Brotli decompressor with an interface avoiding the rust stdlib
+Summary: Brotli decompressor with no_std support
# Upstream license specification: BSD-3-Clause/MIT
# *
https://github.com/dropbox/rust-brotli-decompressor/issues/9
-License: BSD
+License: BSD-3-Clause AND MIT
URL:
https://crates.io/crates/brotli-decompressor
Source: %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * relax "patch-only" dependency specifiers to "SemVer-compatible"
+# * fix SPDX license identifier in crate metadata (AND instead of OR)
+# * do not build useless binary
+Patch: brotli-decompressor-fix-metadata.diff
-ExclusiveArch: %{rust_arches}
-%if %{__cargo_skip_build}
-BuildArch: noarch
-%endif
-
-BuildRequires: rust-packaging
+BuildRequires: rust-packaging >= 21
%global _description %{expand:
-Brotli 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. Alternatively, --features=unsafe turns off array bounds
-checks and memory initialization but provides a safe interface for the caller.
-Without adding the --features=unsafe argument, all included code is safe. For
-compression in addition to this library, download
-https://github.com/dropbox/rust-brotli.}
+Brotli decompressor with no_std support.}
%description %{_description}
@@ -45,13 +34,13 @@ BuildArch: noarch
%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
-%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}
@@ -59,11 +48,11 @@ 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
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+alloc-stdlib-devel
Summary: %{summary}
@@ -71,11 +60,11 @@ BuildArch: noarch
%description -n %{name}+alloc-stdlib-devel %{_description}
-This package contains library source intended for building other packages
-which use "alloc-stdlib" feature of "%{crate}" crate.
+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}
@@ -83,11 +72,11 @@ BuildArch: noarch
%description -n %{name}+benchmark-devel %{_description}
-This package contains library source intended for building other packages
-which use "benchmark" feature of "%{crate}" crate.
+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}
@@ -95,11 +84,11 @@ BuildArch: noarch
%description -n %{name}+disable-timer-devel %{_description}
-This package contains library source intended for building other packages
-which use "disable-timer" feature of "%{crate}" crate.
+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}+pass-through-ffi-panics-devel
Summary: %{summary}
@@ -107,11 +96,11 @@ BuildArch: noarch
%description -n %{name}+pass-through-ffi-panics-devel %{_description}
-This package contains library source intended for building other packages
-which use "pass-through-ffi-panics" feature of "%{crate}" crate.
+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}
@@ -119,11 +108,11 @@ BuildArch: noarch
%description -n %{name}+seccomp-devel %{_description}
-This package contains library source intended for building other packages
-which use "seccomp" feature of "%{crate}" crate.
+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}+std-devel
Summary: %{summary}
@@ -131,11 +120,11 @@ 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
+%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+unsafe-devel
Summary: %{summary}
@@ -143,15 +132,17 @@ BuildArch: noarch
%description -n %{name}+unsafe-devel %{_description}
-This package contains library source intended for building other packages
-which use "unsafe" feature of "%{crate}" crate.
+This package contains library source intended for building other packages which
+use the "unsafe" feature of the "%{crate}" crate.
%files -n %{name}+unsafe-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
+# * remove stray executable bit from Rust sources
+chmod -x src/bin/tests.rs
%generate_buildrequires
%cargo_generate_buildrequires
diff --git a/sources b/sources
index 3647523..00c8639 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (brotli-decompressor-2.3.2.crate) =
4d2329ff2645e299323a9b8af619bdf956b8fdbc6bf34b613969eed388c199f6b0e12b5cce9c8388146afe0fbfdd82b460f927005d9ae0a0e8a436a79d5f004d
+SHA512 (brotli-decompressor-2.3.4.crate) =
2698f1d9fc33ae37efc4587a448255320c864d1bba498ead93c5e28167ef696bcb5ddec9d4292b5fde93c3acddb7e99b453d6507780d0034e325bd20e5222c62
commit 43427cdba8a1dde509785637dbb21253bc48b2da
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Fri Jan 20 21:49:37 2023 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
commit 958aae8f2813d4f618a226b2570e547f29402174
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Sat Jul 23 03:02:17 2022 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>