initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 7 years ago
parent eb12d67f23
commit b64d8a0f94

1
.gitignore vendored

@ -0,0 +1 @@
/quickcheck-0.4.1.crate

@ -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"

@ -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 <ignatenkobrain@fedoraproject.org> - 0.4.1-2
- Port to use rust-packaging
* Sat Feb 25 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.1-1
- Initial package

@ -0,0 +1 @@
SHA512 (quickcheck-0.4.1.crate) = 175d8f6f34d4bde3d1292575e1cb8557025f584dfda7a0c9b39cf4f6f2c52dad7dee4807bbc8796d39046f6ff5085a93ba715f0a3f3c915e49dc3ecadd5ca170
Loading…
Cancel
Save