The package rpms/rust-local-encoding.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-local-encoding.git/commit/?id=5....
Change: +ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit 58c82ad7328b3962a3b2144d40005f0b906e712e Author: Davide Cavalca dcavalca@fedoraproject.org Date: Sun Jul 10 14:29:32 2022 -0700
Initial import; Fixes: RHBZ#1981133
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fb867cc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/local-encoding-0.2.0.crate diff --git a/local-encoding-fix-metadata.diff b/local-encoding-fix-metadata.diff new file mode 100644 index 0000000..80d4a29 --- /dev/null +++ b/local-encoding-fix-metadata.diff @@ -0,0 +1,17 @@ +--- local-encoding-0.2.0/Cargo.toml 2016-08-09T10:29:42+00:00 ++++ local-encoding-0.2.0/Cargo.toml 2022-07-10T21:25:53.340805+00:00 +@@ -10,12 +10,8 @@ + + [dependencies] + +-[target.'cfg(windows)'.dependencies] +-winapi = "0.2.7" +-kernel32-sys = "0.2.2" +- + [dev-dependencies] +-skeptic = "0.4" ++skeptic = "0.13" + + [build-dependencies] +-skeptic = "0.4" ++skeptic = "0.13" diff --git a/rust-local-encoding.spec b/rust-local-encoding.spec new file mode 100644 index 0000000..511fba1 --- /dev/null +++ b/rust-local-encoding.spec @@ -0,0 +1,76 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate local-encoding + +Name: rust-%{crate} +Version: 0.2.0 +Release: %autorelease +Summary: Rust library for encoding/decoding a string with local charset + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/local-encoding +Source: %{crates_source} +# Initial patched metadata +# - Bump skeptic to 0.13: https://github.com/bozaro/local-encoding-rs/pull/4 +# - Drop Windows dependencies +Patch0: local-encoding-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Rust library for encoding/decoding a string with local charset. It is useful +for working with ANSI strings on Windows.} + +%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 + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..10b7ff0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (local-encoding-0.2.0.crate) = d27146411d059d71a83a88726238ac6ccac775c806f8c6621ec91bef70042045ebe398da76d1b6ff14a690383b92a7893274710cf5a4da2a98096c2efb6bd9b2