From b64d8a0f946038e386729f7ef9016ab5e73d9765 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 9 Nov 2017 18:44:16 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + quickcheck-0.4.1-fix-metadata.diff | 10 +++++ rust-quickcheck.spec | 66 ++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 quickcheck-0.4.1-fix-metadata.diff create mode 100644 rust-quickcheck.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b797270 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/quickcheck-0.4.1.crate diff --git a/quickcheck-0.4.1-fix-metadata.diff b/quickcheck-0.4.1-fix-metadata.diff new file mode 100644 index 0000000..188871f --- /dev/null +++ b/quickcheck-0.4.1-fix-metadata.diff @@ -0,0 +1,10 @@ +--- quickcheck-0.4.1/Cargo.toml 2016-12-07T22:55:54+01:00 ++++ quickcheck-0.4.1/Cargo.toml 2017-11-09T16:38:10.805192+01:00 +@@ -19,6 +19,6 @@ + name = "quickcheck" + + [dependencies] +-env_logger = { version = "0.3", optional = true } ++env_logger = { version = "0.4", optional = true } + log = { version = "0.3", optional = true } + rand = "0.3" diff --git a/rust-quickcheck.spec b/rust-quickcheck.spec new file mode 100644 index 0000000..dc670c1 --- /dev/null +++ b/rust-quickcheck.spec @@ -0,0 +1,66 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate quickcheck + +Name: rust-%{crate} +Version: 0.4.1 +Release: 1%{?dist} +Summary: Automatic property based testing with shrinking + +License: Unlicense or MIT +URL: https://crates.io/crates/quickcheck +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# Bump env_logger to 0.4, https://github.com/BurntSushi/quickcheck/pull/160 +Patch0: quickcheck-0.4.1-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(env_logger) >= 0.4.0 with crate(env_logger) < 0.5.0) +BuildRequires: (crate(log) >= 0.3.0 with crate(log) < 0.4.0) +BuildRequires: (crate(rand) >= 0.3.0 with crate(rand) < 0.4.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Automatic property based testing with shrinking. + +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 UNLICENSE LICENSE-MIT COPYING +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/{Makefile,ctags.rust,session.vim} + +%changelog +* Wed Jun 14 2017 Igor Gnatenko - 0.4.1-2 +- Port to use rust-packaging + +* Sat Feb 25 2017 Igor Gnatenko - 0.4.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..716a5bd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (quickcheck-0.4.1.crate) = 175d8f6f34d4bde3d1292575e1cb8557025f584dfda7a0c9b39cf4f6f2c52dad7dee4807bbc8796d39046f6ff5085a93ba715f0a3f3c915e49dc3ecadd5ca170