|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
# Generated by rust2rpm
|
|
|
|
|
# Generated by rust2rpm 13
|
|
|
|
|
# Tests are run in infrastructure
|
|
|
|
|
%bcond_with check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
@ -6,27 +6,25 @@
|
|
|
|
|
%global crate scroll_derive
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.9.5
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 0.10.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Macros 1.1 derive implementation for Pread and Pwrite traits from scroll crate
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MIT
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://crates.io/crates/scroll_derive
|
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
BuildRequires: (crate(proc-macro2/default) >= 0.4.0 with crate(proc-macro2/default) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(quote/default) >= 0.6.0 with crate(quote/default) < 0.7.0)
|
|
|
|
|
BuildRequires: (crate(syn/default) >= 0.15.0 with crate(syn/default) < 0.16.0)
|
|
|
|
|
%if %{with check}
|
|
|
|
|
BuildRequires: (crate(scroll/default) >= 0.9.0 with crate(scroll/default) < 0.10.0)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
|
A macros 1.1 derive implementation for Pread and Pwrite traits from the scroll\
|
|
|
|
|
crate.
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
A macros 1.1 derive implementation for Pread and Pwrite traits from the scroll
|
|
|
|
|
crate.}
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
@ -42,7 +40,7 @@ which use "%{crate}" crate.
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -54,12 +52,15 @@ 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
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
|
@ -72,6 +73,9 @@ which use "default" feature of "%{crate}" crate.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Feb 19 2020 Josh Stone <jistone@redhat.com> - 0.10.1-1
|
|
|
|
|
- Update to 0.10.1
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|