|
|
b90cbb0 |
# Generated by rust2rpm
|
|
|
b90cbb0 |
%bcond_with check
|
|
|
b90cbb0 |
%global debug_package %{nil}
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%global crate serde-pickle
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
Name: rust-%{crate}
|
|
|
b90cbb0 |
Version: 0.5.0
|
|
|
1410f72 |
Release: 2%{?dist}
|
|
|
b90cbb0 |
Summary: Serde-based serialization library for Python's pickle format
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
# Upstream license specification: MIT/Apache-2.0
|
|
|
b90cbb0 |
License: MIT or ASL 2.0
|
|
|
b90cbb0 |
URL: https://crates.io/crates/serde-pickle
|
|
|
b90cbb0 |
Source: %{crates_source}
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
ExclusiveArch: %{rust_arches}
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
BuildRequires: rust-packaging
|
|
|
b90cbb0 |
BuildRequires: (crate(byteorder/default) >= 1.0.0 with crate(byteorder/default) < 2.0.0)
|
|
|
b90cbb0 |
BuildRequires: (crate(iter-read/default) >= 0.2.0 with crate(iter-read/default) < 0.3.0)
|
|
|
b90cbb0 |
BuildRequires: (crate(num-bigint/default) >= 0.2.2 with crate(num-bigint/default) < 0.3.0)
|
|
|
b90cbb0 |
BuildRequires: (crate(num-traits/default) >= 0.2.2 with crate(num-traits/default) < 0.3.0)
|
|
|
b90cbb0 |
BuildRequires: (crate(serde/default) >= 1.0.2 with crate(serde/default) < 2.0.0)
|
|
|
b90cbb0 |
%if %{with check}
|
|
|
b90cbb0 |
BuildRequires: (crate(quickcheck/default) >= 0.8.2 with crate(quickcheck/default) < 0.9.0)
|
|
|
b90cbb0 |
BuildRequires: (crate(rand/default) >= 0.6.5 with crate(rand/default) < 0.7.0)
|
|
|
b90cbb0 |
BuildRequires: (crate(serde_derive/default) >= 1.0.2 with crate(serde_derive/default) < 2.0.0)
|
|
|
b90cbb0 |
BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0)
|
|
|
b90cbb0 |
%endif
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%global _description \
|
|
|
b90cbb0 |
A serde-based serialization library for Python's pickle format.
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%description %{_description}
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%package devel
|
|
|
b90cbb0 |
Summary: %{summary}
|
|
|
b90cbb0 |
BuildArch: noarch
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%description devel %{_description}
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
This package contains library source intended for building other packages
|
|
|
b90cbb0 |
which use "%{crate}" crate.
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%files devel
|
|
|
b90cbb0 |
%license LICENSE-MIT LICENSE-APACHE
|
|
|
b90cbb0 |
%doc README.md
|
|
|
b90cbb0 |
%{cargo_registry}/%{crate}-%{version}/
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%package -n %{name}+default-devel
|
|
|
b90cbb0 |
Summary: %{summary}
|
|
|
b90cbb0 |
BuildArch: noarch
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%description -n %{name}+default-devel %{_description}
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
This package contains library source intended for building other packages
|
|
|
b90cbb0 |
which use "default" feature of "%{crate}" crate.
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%files -n %{name}+default-devel
|
|
|
b90cbb0 |
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%prep
|
|
|
b90cbb0 |
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
b90cbb0 |
%cargo_prep
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%build
|
|
|
b90cbb0 |
%cargo_build
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%install
|
|
|
b90cbb0 |
%cargo_install
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%if %{with check}
|
|
|
b90cbb0 |
%check
|
|
|
b90cbb0 |
%cargo_test
|
|
|
b90cbb0 |
%endif
|
|
|
b90cbb0 |
|
|
|
b90cbb0 |
%changelog
|
|
|
1410f72 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
|
|
|
1410f72 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
1410f72 |
|
|
|
b90cbb0 |
* Sun Apr 28 16:15:01 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.0-1
|
|
|
b90cbb0 |
- Initial package
|