|
|
|
@ -1,14 +1,15 @@
|
|
|
|
|
# Generated by rust2rpm
|
|
|
|
|
%bcond_with check
|
|
|
|
|
# Generated by rust2rpm 10
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate rmp
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.8.7
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Pure Rust MessagePack serialization implementation
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT
|
|
|
|
|
# https://github.com/3Hren/msgpack-rust/issues/192
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://crates.io/crates/rmp
|
|
|
|
@ -19,17 +20,16 @@ Source: %{crates_source}
|
|
|
|
|
Patch0: rmp-fix-metadata.diff
|
|
|
|
|
# Patch which fix some tests
|
|
|
|
|
Patch1: https://github.com/3Hren/msgpack-rust/commit/e96d118f7b915ff65e6c14dcccdecffb664f94ab.patch#/0001-fix-weaken-cursor-restrictions-in-tests.patch
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
BuildRequires: (crate(byteorder/default) >= 1.0.0 with crate(byteorder/default) < 2.0.0)
|
|
|
|
|
BuildRequires: (crate(num-traits/default) >= 0.2.0 with crate(num-traits/default) < 0.3.0)
|
|
|
|
|
%if %{with check}
|
|
|
|
|
BuildRequires: (crate(quickcheck/default) >= 0.8.0 with crate(quickcheck/default) < 0.9.0)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
|
Pure Rust MessagePack serialization implementation.
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Pure Rust MessagePack serialization implementation.}
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
@ -64,6 +64,9 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
|
%patch1 -p2
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
|
@ -76,6 +79,9 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Jul 21 10:08:59 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.7-3
|
|
|
|
|
- Regenerate
|
|
|
|
|
|
|
|
|
|
* Thu Apr 11 14:36:33 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.7-2
|
|
|
|
|
- Run tests in infrastructure
|
|
|
|
|
|
|
|
|
|