You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-rmp-serde/rust-rmp-serde.spec

93 lines
2.3 KiB

# Generated by rust2rpm 10
%bcond_without check
%global debug_package %{nil}
%global crate rmp-serde
Name: rust-%{crate}
Version: 0.13.7
Release: 5%{?dist}
Summary: Serde bindings for RMP
# Upstream license specification: MIT
# https://github.com/3Hren/msgpack-rust/issues/192
License: MIT
URL: https://crates.io/crates/rmp-serde
Source: %{crates_source}
# Initial patched metadata
# * Update serde_bytes to 0.11, https://github.com/3Hren/msgpack-rust/pull/195
Patch0: rmp-serde-fix-metadata.diff
# Make it work with new serde_bytes
Patch0001: 0001-chore-Update-serde_bytes-to-0.11.patch
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Serde bindings for RMP.}
%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
%{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 %{crate}-%{version_no_tilde} -p1
%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 <releng@fedoraproject.org> - 0.13.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Jul 21 10:10:14 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.13.7-4
- Regenerate
* Sun May 12 08:53:53 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.13.7-3
- Update serde_bytes to 0.11
* Thu Apr 11 14:38:20 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.13.7-2
- Run tests in infrastructure
* Thu Mar 28 08:57:13 CET 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.13.7-1
- Initial package