diff --git a/.gitignore b/.gitignore index 520dfba..935854a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /scroll-0.8.1.crate /scroll-0.9.0.crate /scroll-0.9.2.crate +/scroll-0.10.1.crate diff --git a/rust-scroll.spec b/rust-scroll.spec index c41346f..ed37d8c 100644 --- a/rust-scroll.spec +++ b/rust-scroll.spec @@ -1,31 +1,29 @@ -# Generated by rust2rpm +# Generated by rust2rpm 13 %bcond_without check %global debug_package %{nil} %global crate scroll Name: rust-%{crate} -Version: 0.9.2 -Release: 5%{?dist} +Version: 0.10.1 +Release: 1%{?dist} Summary: Powerful, extensible, generic, endian-aware Read/Write traits for byte buffers +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/scroll -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(rustc_version/default) >= 0.2.0 with crate(rustc_version/default) < 0.3.0) -BuildRequires: (crate(scroll_derive/default) >= 0.9.0 with crate(scroll_derive/default) < 0.10.0) -%if %{with check} -BuildRequires: (crate(byteorder/default) >= 1.0.0 with crate(byteorder/default) < 2.0.0) -BuildRequires: (crate(rayon/default) >= 1.0.0 with crate(rayon/default) < 2.0.0) -%endif -%global _description \ -A suite of powerful, extensible, generic, endian-aware Read/Write traits for\ -byte buffers. +%global _description %{expand: +A suite of powerful, extensible, generic, endian-aware Read/Write traits for +byte buffers.} %description %{_description} @@ -41,7 +39,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} @@ -53,7 +51,7 @@ 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 %package -n %{name}+derive-devel Summary: %{summary} @@ -65,7 +63,7 @@ This package contains library source intended for building other packages which use "derive" feature of "%{crate}" crate. %files -n %{name}+derive-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+scroll_derive-devel Summary: %{summary} @@ -77,7 +75,7 @@ This package contains library source intended for building other packages which use "scroll_derive" feature of "%{crate}" crate. %files -n %{name}+scroll_derive-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -89,12 +87,15 @@ This package contains library source intended for building other packages which use "std" feature of "%{crate}" crate. %files -n %{name}+std-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 -a @@ -107,6 +108,9 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Wed Feb 19 2020 Josh Stone - 0.10.1-1 +- Update to 0.10.1 + * Thu Jan 30 2020 Fedora Release Engineering - 0.9.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index 92d1a80..b20b983 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (scroll-0.9.2.crate) = 6fd5d72267b1b2840a524f2177f92d240b05b35bc345f2018569c692af8c1deda35fae25230d4652132b3003d740abb4d395aa26cabf958c9544cc5118e335fe +SHA512 (scroll-0.10.1.crate) = 9bd5e592575689a1fef154f305192f7d7225b67cb81d4904d97b5de6e1dd693db57fda97070fcb63e963d0a139a10490a27fd4c64b29100c820d198ed611976e