From c72d0a955c1e4ecf505c2867e600feb4c87bdb27 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 11 Mar 2018 09:14:20 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + http-0.1.5-fix-metadata.diff | 11 ++++++ rust-http.spec | 70 ++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 83 insertions(+) create mode 100644 .gitignore create mode 100644 http-0.1.5-fix-metadata.diff create mode 100644 rust-http.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3488a46 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/http-0.1.5.crate diff --git a/http-0.1.5-fix-metadata.diff b/http-0.1.5-fix-metadata.diff new file mode 100644 index 0000000..f97de07 --- /dev/null +++ b/http-0.1.5-fix-metadata.diff @@ -0,0 +1,11 @@ +--- http-0.1.5/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ http-0.1.5/Cargo.toml 2018-03-09T08:47:36.859960+01:00 +@@ -36,7 +36,7 @@ + [dependencies.fnv] + version = "1.0.5" + [dev-dependencies.ordermap] +-version = "0.3" ++version = "0.4" + + [dev-dependencies.quickcheck] + version = "0.6" diff --git a/rust-http.spec b/rust-http.spec new file mode 100644 index 0000000..018ee33 --- /dev/null +++ b/rust-http.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate http + +Name: rust-%{crate} +Version: 0.1.5 +Release: 1%{?dist} +Summary: Set of types for representing HTTP requests and responses + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/http +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Bump ordermap to 0.4, https://github.com/hyperium/http/pull/185 +Patch0: http-0.1.5-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(bytes) >= 0.4.0 with crate(bytes) < 0.5.0) +BuildRequires: (crate(fnv) >= 1.0.5 with crate(fnv) < 2.0.0) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(ordermap) >= 0.4.0 with crate(ordermap) < 0.5.0) +BuildRequires: (crate(quickcheck) >= 0.6.0 with crate(quickcheck) < 0.7.0) +BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) +BuildRequires: (crate(seahash) >= 3.0.5 with crate(seahash) < 4.0.0) +BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) +BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +A set of types for representing HTTP requests and responses. + +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 CHANGELOG.md README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Fri Mar 09 2018 Igor Gnatenko - 0.1.5-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..2c2a445 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (http-0.1.5.crate) = 2b36e6dd1693a02f837f4560f943a35cb5e068d46080f68bdf309bf12cc231b0f4df8cfbdcdea3af5d923c34ca58f3cf04f89cae5283ef26498649201e6f22d5