1f410bd
# Generated by rust2rpm 24
cae2628
%bcond_without check
6f65628
%global debug_package %{nil}
6f65628
6f65628
%global crate rmp
6f65628
1f410bd
Name:           rust-rmp
1f410bd
Version:        0.8.12
fde52fc
Release:        %autorelease
6f65628
Summary:        Pure Rust MessagePack serialization implementation
6f65628
6f65628
License:        MIT
6f65628
URL:            https://crates.io/crates/rmp
6f65628
Source:         %{crates_source}
cae2628
b56ba78
BuildRequires:  rust-packaging >= 21
6f65628
cae2628
%global _description %{expand:
cae2628
Pure Rust MessagePack serialization implementation.}
6f65628
6f65628
%description %{_description}
6f65628
6f65628
%package        devel
6f65628
Summary:        %{summary}
6f65628
BuildArch:      noarch
6f65628
6f65628
%description    devel %{_description}
6f65628
b56ba78
This package contains library source intended for building other packages which
b56ba78
use the "%{crate}" crate.
6f65628
6f65628
%files          devel
b56ba78
%license %{crate_instdir}/LICENSE
b56ba78
%doc %{crate_instdir}/CHANGELOG.md
b56ba78
%doc %{crate_instdir}/README.md
b56ba78
%{crate_instdir}/
6f65628
6f65628
%package     -n %{name}+default-devel
6f65628
Summary:        %{summary}
6f65628
BuildArch:      noarch
6f65628
6f65628
%description -n %{name}+default-devel %{_description}
6f65628
b56ba78
This package contains library source intended for building other packages which
b56ba78
use the "default" feature of the "%{crate}" crate.
6f65628
6f65628
%files       -n %{name}+default-devel
b56ba78
%ghost %{crate_instdir}/Cargo.toml
b56ba78
b56ba78
%package     -n %{name}+std-devel
b56ba78
Summary:        %{summary}
b56ba78
BuildArch:      noarch
b56ba78
b56ba78
%description -n %{name}+std-devel %{_description}
b56ba78
b56ba78
This package contains library source intended for building other packages which
b56ba78
use the "std" feature of the "%{crate}" crate.
b56ba78
b56ba78
%files       -n %{name}+std-devel
b56ba78
%ghost %{crate_instdir}/Cargo.toml
6f65628
6f65628
%prep
40560e9
%autosetup -n %{crate}-%{version_no_tilde} -p1
6f65628
%cargo_prep
6f65628
cae2628
%generate_buildrequires
cae2628
%cargo_generate_buildrequires
cae2628
6f65628
%build
6f65628
%cargo_build
6f65628
6f65628
%install
6f65628
%cargo_install
6f65628
6f65628
%if %{with check}
6f65628
%check
6f65628
%cargo_test
6f65628
%endif
6f65628
6f65628
%changelog
fde52fc
%autochangelog