From c85674b16b2a1ea281230f97eb3bce55e2fffbb9 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 24 Jan 2018 23:56:26 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + phf_generator-0.7.21-fix-metadata.diff | 10 +++++ rust-phf_generator.spec | 61 ++++++++++++++++++++++++++ sources | 1 + 4 files changed, 73 insertions(+) create mode 100644 .gitignore create mode 100644 phf_generator-0.7.21-fix-metadata.diff create mode 100644 rust-phf_generator.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a912a68 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/phf_generator-0.7.21.crate diff --git a/phf_generator-0.7.21-fix-metadata.diff b/phf_generator-0.7.21-fix-metadata.diff new file mode 100644 index 0000000..6461270 --- /dev/null +++ b/phf_generator-0.7.21-fix-metadata.diff @@ -0,0 +1,10 @@ +--- phf_generator-0.7.21/Cargo.toml 2017-01-19T09:16:46+01:00 ++++ phf_generator-0.7.21/Cargo.toml 2018-01-24T14:42:00.193880+01:00 +@@ -8,5 +8,5 @@ + documentation = "https://docs.rs/phf_generator/0.7.21/phf_generator" + + [dependencies] +-rand = "0.3" +-phf_shared = { version = "=0.7.21", path = "../phf_shared" } ++rand = "0.4" ++phf_shared = "=0.7.21" diff --git a/rust-phf_generator.spec b/rust-phf_generator.spec new file mode 100644 index 0000000..882a2f8 --- /dev/null +++ b/rust-phf_generator.spec @@ -0,0 +1,61 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate phf_generator + +Name: rust-%{crate} +Version: 0.7.21 +Release: 1%{?dist} +Summary: PHF generation logic + +# https://github.com/sfackler/rust-phf/pull/118 +License: MIT +URL: https://crates.io/crates/phf_generator +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Bump rand to 0.4, https://github.com/sfackler/rust-phf/pull/119 +# * No paths +Patch0: phf_generator-0.7.21-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: crate(phf_shared) = 0.7.21 +BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +PHF generation logic. + +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 +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Wed Jan 24 2018 Igor Gnatenko - 0.7.21-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..24ca0a9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (phf_generator-0.7.21.crate) = 853ce3bab9119225076c1347488f0aefb7cba398d5c0be572c8bc1ccad8875ec6f86a0eaa998773b6ad3788417fb2c6adf78a3b778f36dfa5236fb31ed304c3f