# Generated by rust2rpm 10 %bcond_without check %global debug_package %{nil} %global crate rmp Name: rust-%{crate} Version: 0.8.7 Release: 4%{?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 Source: %{crates_source} # Initial patched metadata # - Bump num-traits to 0.2 https://github.com/3Hren/msgpack-rust/pull/193 # - Bump quickcheck to 0.8 https://github.com/3Hren/msgpack-rust/pull/194 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 %global _description %{expand: Pure Rust MessagePack serialization implementation.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %doc CHANGELOG.md README.md %{cargo_registry}/%{crate}-%{version}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -N -n %{crate}-%{version_no_tilde} %patch0 -p1 %patch1 -p2 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Fri Jul 26 2019 Fedora Release Engineering - 0.8.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Jul 21 10:08:59 CEST 2019 Igor Gnatenko - 0.8.7-3 - Regenerate * Thu Apr 11 14:36:33 CEST 2019 Igor Gnatenko - 0.8.7-2 - Run tests in infrastructure * Thu Mar 28 07:18:34 CET 2019 Robert-André Mauchin - 0.8.7-1 - Initial package