The package rpms/rust-google-drive3-fork.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-google-drive3-fork.git/commi....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit a050110112e5d5863c19262296d1566cb186a264
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Fri Jul 27 00:29:58 2018 +0200
initial import
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f9d0cd7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/google-drive3-fork-1.0.10.crate
diff --git a/google-drive3-fork-1.0.10-fix-metadata.diff
b/google-drive3-fork-1.0.10-fix-metadata.diff
new file mode 100644
index 0000000..ba25251
--- /dev/null
+++ b/google-drive3-fork-1.0.10-fix-metadata.diff
@@ -0,0 +1,17 @@
+--- google-drive3-fork-1.0.10/Cargo.toml 1970-01-01T01:00:00+01:00
++++ google-drive3-fork-1.0.10/Cargo.toml 2018-07-26T09:12:07.629109+02:00
+@@ -36,11 +36,11 @@
+ version = "^ 1.0"
+
+ [dependencies.url]
+-version = "= 0.5"
++version = "^ 1.0"
+
+ [dependencies.yup-oauth2]
+ version = "^ 1.0"
+-[dev-dependencies.hyper-rustls]
+-version = "^0.6"
++[dev-dependencies.hyper-native-tls]
++version = "^ 0.2"
+
+ [features]
diff --git a/rust-google-drive3-fork.spec b/rust-google-drive3-fork.spec
new file mode 100644
index 0000000..1502dac
--- /dev/null
+++ b/rust-google-drive3-fork.spec
@@ -0,0 +1,78 @@
+# Generated by rust2rpm
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate google-drive3-fork
+
+Name: rust-%{crate}
+Version: 1.0.10
+Release: 1%{?dist}
+Summary: Fork of Sebastian Thiel's complete library to interact with drive
(protocol v3)
+
+License: MIT
+URL:
https://crates.io/crates/google-drive3-fork
+Source0:
https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{...
+# Initial patched metadata
+# * Bump url to 1
+# * hyper-rustls hyper-native-tls
+Patch0: google-drive3-fork-1.0.10-fix-metadata.diff
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+# [dependencies]
+BuildRequires: (crate(hyper) >= 0.10.0 with crate(hyper) < 0.11.0)
+BuildRequires: (crate(mime) >= 0.2.0 with crate(mime) < 0.3.0)
+BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0)
+BuildRequires: (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0)
+BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0)
+BuildRequires: (crate(url) >= 1.0.0 with crate(url) < 2.0.0)
+BuildRequires: (crate(yup-oauth2) >= 1.0.0 with crate(yup-oauth2) < 2.0.0)
+%if %{with check}
+# [dev-dependencies]
+BuildRequires: (crate(hyper-native-tls) >= 0.2.0 with crate(hyper-native-tls) <
0.3.0)
+%endif
+
+%description
+%{summary}.
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel
+A fork of Sebastian Thiel's complete library to interact with drive (protocol
+v3).
+
+This package contains library source intended for building other packages
+which use %{crate} from crates.io.
+
+%prep
+%autosetup -n %{crate}-%{version} -p1
+%cargo_prep
+# Fix everything hard
+find -type f -exec sed -r -i \
+ -e
"s/&url::form_urlencoded::serialize\(([^)]+)\)/url::form_urlencoded::Serializer::new(String::new()).extend_pairs(\1).finish().as_str()/"
\
+ -e "s/(extern crate
hyper)_rustls/\1_native_tls/;s/hyper_rustls::TlsClient::new\(\)/hyper_native_tls::NativeTlsClient::new().unwrap()/"
\
+ -e "s/(extern crate google_drive3)( as drive3)/\1_fork\2/" \
+ "{}" \+
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%files devel
+%license LICENSE.md
+%doc README.md
+%{cargo_registry}/%{crate}-%{version}/
+
+%changelog
+* Thu Jul 26 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 1.0.10-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..a9e5fbc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (google-drive3-fork-1.0.10.crate) =
e98e22786d88e377bc4a7333ec6fedfbc131a29a680ccd8c00871705062231061ad3ef20e3ef69fa6a3d7d71f864fedb84d858252bf83078bd26c178a16faac9