From 58ab6cf2750e16b9751a3e98fd8628341c506a82 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Oct 21 2018 10:16:02 +0000 Subject: initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e7372c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rustfix-0.4.2.crate diff --git a/rust-rustfix.spec b/rust-rustfix.spec new file mode 100644 index 0000000..fda0ec9 --- /dev/null +++ b/rust-rustfix.spec @@ -0,0 +1,76 @@ +# Generated by rust2rpm +# * Tests are run in infrastructure +%bcond_with check +%global debug_package %{nil} + +%global crate rustfix + +Name: rust-%{crate} +Version: 0.4.2 +Release: 1%{?dist} +Summary: Automatically apply the suggestions made by rustc + +# Upstream license specification: Apache-2.0/MIT +License: ASL 2.0 or MIT +URL: https://crates.io/crates/rustfix +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Use released version of env_logger +Patch0: rustfix-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(failure) >= 0.1.1 with crate(failure) < 0.2.0) +BuildRequires: (crate(log) >= 0.4.1 with crate(log) < 0.5.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) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(difference) >= 2.0.0 with crate(difference) < 3.0.0) +BuildRequires: (crate(duct) >= 0.9.0 with crate(duct) < 0.10.0) +BuildRequires: (crate(env_logger) >= 0.5.0 with crate(env_logger) < 0.6.0) +BuildRequires: (crate(log) >= 0.4.1 with crate(log) < 0.5.0) +BuildRequires: (crate(proptest) >= 0.7.0 with crate(proptest) < 0.8.0) +BuildRequires: (crate(tempdir) >= 0.3.5 with crate(tempdir) < 0.4.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Automatically apply the suggestions made by rustc. + +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 devel +%license LICENSE-MIT LICENSE-APACHE +%doc Readme.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/bors.toml + +%changelog +* Sun Oct 21 2018 Igor Gnatenko - 0.4.2-1 +- Initial package diff --git a/rustfix-fix-metadata.diff b/rustfix-fix-metadata.diff new file mode 100644 index 0000000..fa99914 --- /dev/null +++ b/rustfix-fix-metadata.diff @@ -0,0 +1,11 @@ +--- rustfix-0.4.2/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ rustfix-0.4.2/Cargo.toml 2018-10-21T09:49:46.001179+02:00 +@@ -41,7 +41,7 @@ + version = "0.9" + + [dev-dependencies.env_logger] +-version = "0.5.0-rc.1" ++version = "0.5" + + [dev-dependencies.log] + version = "0.4.1" diff --git a/sources b/sources new file mode 100644 index 0000000..e6dd07d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rustfix-0.4.2.crate) = a789715e3a9d5336e840fbae8127bff36c70a10d5fc28ad31bb75d6994e5687cd9586a00d200c13f592c6e78d0643b0bdc90774e2d7836a21c253e653f592b43