The package rpms/rust-syslog.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-syslog.git/commit/?id=05dd77....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 05dd77ee3a67ad5b4ee49a97343c4aea7c79de09
Author: ed neville <ed-fedora(a)s5h.net>
Date: Fri May 28 19:55:18 2021 +0000
Initial import (#1901116)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1399478
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/syslog-5.0.0.crate
diff --git a/rust-syslog.spec b/rust-syslog.spec
new file mode 100644
index 0000000..0cdaf4d
--- /dev/null
+++ b/rust-syslog.spec
@@ -0,0 +1,103 @@
+# Generated by rust2rpm 16
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate syslog
+
+Name: rust-%{crate}
+Version: 5.0.0
+Release: 1%{?dist}
+Summary: Send log messages to syslog
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/syslog
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+# Patch a test failure as syslog daemon doesn't listen during build
+#
https://github.com/Geal/rust-syslog/pull/54
+Patch0: syslog-fix-test.diff
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Send log messages to syslog.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%license LICENSE
+%doc README.md
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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 "default" feature of "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+backtrace-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+backtrace-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "backtrace" feature of "%{crate}" crate.
+
+%files -n %{name}+backtrace-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+nightly-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+nightly-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "nightly" feature of "%{crate}" crate.
+
+%files -n %{name}+nightly-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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
+* Sat Nov 21 13:43:39 UTC 2020 ed neville <ed(a)s5h.net> - 5.0.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..8e655f5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (syslog-5.0.0.crate) =
f9af518b1f61ad1c3c82ade5ae1450b649fac4f3f992ae877ad07e63cd86ffe4cc97252e0323907985618aa3da95a049420c52c18b6fd8eb4473a3b52fd4737c
diff --git a/syslog-fix-test.diff b/syslog-fix-test.diff
new file mode 100644
index 0000000..9781289
--- /dev/null
+++ b/syslog-fix-test.diff
@@ -0,0 +1,16 @@
+diff -Naurp syslog-5.0.0.orig/src/lib.rs syslog-5.0.0/src/lib.rs
+--- syslog-5.0.0.orig/src/lib.rs 2019-11-01 16:21:46.000000000 +0000
++++ syslog-5.0.0/src/lib.rs 2020-11-24 12:54:58.285636176 +0000
+@@ -49,7 +49,11 @@
+ //! pid: 0,
+ //! };
+ //!
+-//! let logger = syslog::unix(formatter).expect("could not connect to
syslog");
++//! let logger = match syslog::unix(formatter) {
++//! Err(e) => { println!("impossible to connect to syslog: {:?}",
e); return; },
++//! Ok(logger) => logger,
++//! };
++//!
+ //! log::set_boxed_logger(Box::new(BasicLogger::new(logger)))
+ //! .map(|()| log::set_max_level(LevelFilter::Info));
+ //!