The package rpms/rust-gcsf.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-gcsf.git/commit/?id=924dd5e7....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 924dd5e71f6be3cc506fa66a0ac2ea18acd720ee
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Fri Jul 27 00:31:50 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..373b3a1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/gcsf-0.1.15.crate
diff --git a/0001-deps-hyper-rustls-hyper-native-tls.patch
b/0001-deps-hyper-rustls-hyper-native-tls.patch
new file mode 100644
index 0000000..be45c36
--- /dev/null
+++ b/0001-deps-hyper-rustls-hyper-native-tls.patch
@@ -0,0 +1,85 @@
+From c15c88f874bde9c74a9ff777758d1bb7757b7a19 Mon Sep 17 00:00:00 2001
+From: Igor Gnatenko <i.gnatenko.brain(a)gmail.com>
+Date: Thu, 26 Jul 2018 08:53:17 +0200
+Subject: [PATCH] =?UTF-8?q?deps:=20hyper-rustls=20=E2=86=92=20hyper-native?=
+ =?UTF-8?q?-tls?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Igor Gnatenko <i.gnatenko.brain(a)gmail.com>
+---
+ src/gcsf/drive_facade.rs | 10 +++-------
+ src/lib.rs | 2 +-
+ src/main.rs | 5 ++---
+ 3 files changed, 6 insertions(+), 11 deletions(-)
+
+diff --git a/src/gcsf/drive_facade.rs b/src/gcsf/drive_facade.rs
+index 1f761bf..fbed5ce 100644
+--- a/src/gcsf/drive_facade.rs
++++ b/src/gcsf/drive_facade.rs
+@@ -3,7 +3,7 @@ use drive3;
+ use failure::{err_msg, Error};
+ use hyper;
+ use hyper::client::Response;
+-use hyper_rustls;
++use hyper_native_tls::NativeTlsClient;
+ use lru_time_cache::LruCache;
+ use mime_sniffer::MimeTypeSniffer;
+ use oauth2;
+@@ -90,9 +90,7 @@ impl DriveFacade {
+ let auth = oauth2::Authenticator::new(
+ &secret,
+ oauth2::DefaultAuthenticatorDelegate,
+- hyper::Client::with_connector(hyper::net::HttpsConnector::new(
+- hyper_rustls::TlsClient::new(),
+- )),
++
hyper::Client::with_connector(hyper::net::HttpsConnector::new(NativeTlsClient::new()?)),
+
oauth2::DiskTokenStorage::new(&config.token_file().to_str().unwrap().to_string())
+ .unwrap(),
+ Some(if config.authorize_using_code() {
+@@ -109,9 +107,7 @@ impl DriveFacade {
+ fn create_drive(config: &Config) -> Result<GCDrive, Error> {
+ let auth = Self::create_drive_auth(config)?;
+ Ok(drive3::Drive::new(
+- hyper::Client::with_connector(hyper::net::HttpsConnector::new(
+- hyper_rustls::TlsClient::new(),
+- )),
++
hyper::Client::with_connector(hyper::net::HttpsConnector::new(NativeTlsClient::new()?)),
+ auth,
+ ))
+ }
+diff --git a/src/lib.rs b/src/lib.rs
+index a10ee87..6251b86 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -3,7 +3,7 @@ extern crate failure;
+ extern crate fuse;
+ extern crate google_drive3_fork as drive3;
+ extern crate hyper;
+-extern crate hyper_rustls;
++extern crate hyper_native_tls;
+ extern crate id_tree;
+ extern crate libc;
+ extern crate mime_sniffer;
+diff --git a/src/main.rs b/src/main.rs
+index cff967e..5bd518e 100644
+--- a/src/main.rs
++++ b/src/main.rs
+@@ -27,11 +27,10 @@ use std::time;
+
+ use gcsf::{Config, DriveFacade, NullFS, GCSF};
+
+-const DEBUG_LOG: &str =
+-
"hyper::client=error,rustls::client_hs=error,hyper::http=error,hyper::net=error,debug";
++const DEBUG_LOG: &str =
"hyper::client=error,hyper::http=error,hyper::net=error,debug";
+
+ const INFO_LOG: &str =
+-
"hyper::client=error,rustls::client_hs=error,hyper::http=error,hyper::net=error,fuse::session=error,info";
++
"hyper::client=error,hyper::http=error,hyper::net=error,fuse::session=error,info";
+
+ const DEFAULT_CONFIG: &str = "\
+ ### This is the configuration file that GCSF uses.
+--
+2.18.0
+
diff --git a/gcsf-0.1.15-fix-metadata.diff b/gcsf-0.1.15-fix-metadata.diff
new file mode 100644
index 0000000..6fc520a
--- /dev/null
+++ b/gcsf-0.1.15-fix-metadata.diff
@@ -0,0 +1,22 @@
+--- gcsf-0.1.15/Cargo.toml 1970-01-01T01:00:00+01:00
++++ gcsf-0.1.15/Cargo.toml 2018-07-26T09:10:55.393707+02:00
+@@ -26,7 +26,7 @@
+ features = ["yaml"]
+
+ [dependencies.config]
+-version = "0.8"
++version = "0.9"
+
+ [dependencies.ctrlc]
+ version = "3.1.0"
+@@ -43,8 +43,8 @@
+ [dependencies.hyper]
+ version = "0.10"
+
+-[dependencies.hyper-rustls]
+-version = "0.6"
++[dependencies.hyper-native-tls]
++version = "0.2"
+
+ [dependencies.id_tree]
+ version = "1.2.0"
diff --git a/rust-gcsf.spec b/rust-gcsf.spec
new file mode 100644
index 0000000..7a9e9f2
--- /dev/null
+++ b/rust-gcsf.spec
@@ -0,0 +1,99 @@
+# Generated by rust2rpm
+%bcond_without check
+
+%global crate gcsf
+
+Name: rust-%{crate}
+Version: 0.1.15
+Release: 1%{?dist}
+Summary: Filesystem based on Google Drive
+
+License: MIT
+URL:
https://crates.io/crates/gcsf
+Source0:
https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{...
+# Initial patched metadata
+# * Bump config to 0.9
+# * hyper-rustls hyper-native-tls
+#
https://github.com/harababurel/gcsf/pull/32
+Patch0: gcsf-0.1.15-fix-metadata.diff
+Patch0001: 0001-deps-hyper-rustls-hyper-native-tls.patch
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+# [dependencies]
+BuildRequires: (crate(chrono) >= 0.4.3 with crate(chrono) < 0.5.0)
+BuildRequires: ((crate(clap) >= 2.31.2 with crate(clap) < 3.0.0) with
crate(clap/yaml))
+BuildRequires: (crate(config) >= 0.9.0 with crate(config) < 0.10.0)
+BuildRequires: (crate(ctrlc) >= 3.1.0 with crate(ctrlc) < 4.0.0)
+BuildRequires: (crate(failure) >= 0.1.1 with crate(failure) < 0.2.0)
+BuildRequires: (crate(fuse) >= 0.3.1 with crate(fuse) < 0.4.0)
+BuildRequires: (crate(google-drive3-fork) >= 1.0.10 with crate(google-drive3-fork)
< 2.0.0)
+BuildRequires: (crate(hyper) >= 0.10.0 with crate(hyper) < 0.11.0)
+BuildRequires: (crate(hyper-native-tls) >= 0.2.0 with crate(hyper-native-tls) <
0.3.0)
+BuildRequires: (crate(id_tree) >= 1.2.0 with crate(id_tree) < 2.0.0)
+BuildRequires: (crate(itertools) >= 0.7.8 with crate(itertools) < 0.8.0)
+BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0)
+BuildRequires: (crate(libc) >= 0.2.40 with crate(libc) < 0.3.0)
+BuildRequires: (crate(log) >= 0.4.1 with crate(log) < 0.5.0)
+BuildRequires: (crate(lru_time_cache) >= 0.8.0 with crate(lru_time_cache) <
0.9.0)
+BuildRequires: (crate(maplit) >= 1.0.1 with crate(maplit) < 2.0.0)
+BuildRequires: (crate(mime-sniffer) >= 0.1.2 with crate(mime-sniffer) < 0.2.0)
+BuildRequires: (crate(pretty_env_logger) >= 0.2.2 with crate(pretty_env_logger) <
0.3.0)
+BuildRequires: (crate(rand) >= 0.4.2 with crate(rand) < 0.5.0)
+BuildRequires: (crate(serde) >= 1.0.39 with crate(serde) < 2.0.0)
+BuildRequires: (crate(serde_derive) >= 1.0.39 with crate(serde_derive) < 2.0.0)
+BuildRequires: (crate(serde_json) >= 1.0.15 with crate(serde_json) < 2.0.0)
+BuildRequires: (crate(time) >= 0.1.39 with crate(time) < 0.2.0)
+BuildRequires: (crate(xdg) >= 2.1.0 with crate(xdg) < 3.0.0)
+BuildRequires: (crate(yup-oauth2) >= 1.0.7 with crate(yup-oauth2) < 2.0.0)
+
+%description
+%{summary}.
+
+%package -n %{crate}
+Summary: %{summary}
+
+%description -n %{crate}
+%{summary}.
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel
+Filesystem based on Google Drive.
+
+This package contains library source intended for building other packages
+which use %{crate} from crates.io.
+
+%prep
+%autosetup -n %{crate}-%{version} -p1
+%cargo_prep
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%files -n %{crate}
+%license LICENSE
+%doc README.md sample_config.toml
+%{_bindir}/gcsf
+
+%files devel
+%license LICENSE
+%doc README.md
+%{cargo_registry}/%{crate}-%{version}/
+%exclude
%{cargo_registry}/%{crate}-%{version}/{ci,sample_config.toml,cargo-count.dot,class_diagram.png,client_secret.json,gcsf_class_diagram.mdj,rainbow-graph.png,run,run_release,timer}
+
+
+%changelog
+* Thu Jul 26 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 0.1.15-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..0b2d191
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (gcsf-0.1.15.crate) =
9cbbe6400965dccc9a888fcecfb15a20bd6992c66032d7c6d19c3f724bd08aa5dacb464da44ca78dec12d733de45017d3cf3970d60176549517a02988d4734ad