The package rpms/rust-atomicwrites.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-atomicwrites.git/commit/?id=....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 2b8f928429bd3b121e9bdc7c1b9fa7dbb05bb47c
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Mon Apr 22 16:46:48 2019 +0200
Initial import (#1699498)
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fc33e95
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/atomicwrites-0.2.2.crate
diff --git a/atomicwrites-fix-metadata.diff b/atomicwrites-fix-metadata.diff
new file mode 100644
index 0000000..22a8d1e
--- /dev/null
+++ b/atomicwrites-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- atomicwrites-0.2.2/Cargo.toml 1970-01-01T01:00:00+01:00
++++ atomicwrites-0.2.2/Cargo.toml 2019-04-13T01:35:51.968518+02:00
+@@ -24,7 +24,4 @@
+ [dependencies.tempdir]
+ version = "0.3"
+ [target."cfg(unix)".dependencies.nix]
+-version = "0.11.0"
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3"
+-features = ["winbase"]
++version = "0.13.0"
diff --git a/rust-atomicwrites.spec b/rust-atomicwrites.spec
new file mode 100644
index 0000000..e8dbf76
--- /dev/null
+++ b/rust-atomicwrites.spec
@@ -0,0 +1,79 @@
+# Generated by rust2rpm
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate atomicwrites
+
+Name: rust-%{crate}
+Version: 0.2.2
+Release: 1%{?dist}
+Summary: Atomic file-writes
+
+License: MIT
+URL:
https://crates.io/crates/atomicwrites
+Source: %{crates_source}
+# Initial patched metadata
+# - Remove Windows-only dependencies
+# - Bump nix to 0.13.0
https://github.com/untitaker/rust-atomicwrites/pull/29
+Patch0: atomicwrites-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+BuildRequires: (crate(nix/default) >= 0.13.0 with crate(nix/default) < 0.14.0)
+BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) <
0.4.0)
+
+%global _description \
+Atomic file-writes.\
+\
+The basic idea is to write to temporary files, and move them when done writing.\
+This avoids the problem of two programs writing to the same file. For\
+AllowOverwrite, rename is used. For DisallowOverwrite, link + unlink is used\
+instead to raise errors when the target path already exists.
+
+%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
+%doc README.md
+%license LICENSE
+%{cargo_registry}/%{crate}-%{version}/
+
+%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}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Sat Apr 13 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 0.2.2-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..06c8e51
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (atomicwrites-0.2.2.crate) =
35e316216dd18442ec3ae712761d4ff8df4a29441591c8166b7428d53b8ebb659eb85a2717cb91d3d98abd2b8ac061e3f02bce06aeefafe81a976027c01e6362