diff --git a/rust-png.spec b/rust-png.spec index 93bc6d0..15f956d 100644 --- a/rust-png.spec +++ b/rust-png.spec @@ -1,4 +1,5 @@ -# Generated by rust2rpm +# Generated by rust2rpm 10 +# * glium is not packaged %bcond_with check %global debug_package %{nil} @@ -6,7 +7,7 @@ Name: rust-%{crate} Version: 0.14.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: PNG decoding and encoding library in pure Rust # Upstream license specification: MIT/Apache-2.0 @@ -15,22 +16,14 @@ URL: https://crates.io/crates/png Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -BuildRequires: (crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0) -BuildRequires: (crate(deflate/default) >= 0.7.12 with crate(deflate/default) < 0.8.0) -BuildRequires: (crate(inflate/default) >= 0.4.2 with crate(inflate/default) < 0.5.0) -BuildRequires: (crate(num-iter/default) >= 0.1.32 with crate(num-iter/default) < 0.2.0) -%if %{with check} -BuildRequires: (crate(getopts/default) >= 0.2.14 with crate(getopts/default) < 0.3.0) -BuildRequires: (crate(glium/glutin) >= 0.22.0 with crate(glium/glutin) < 0.23.0) -BuildRequires: (crate(glob/default) >= 0.2.11 with crate(glob/default) < 0.3.0) -BuildRequires: (crate(rand/default) >= 0.5.5 with crate(rand/default) < 0.6.0) -BuildRequires: (crate(term/default) >= 0.4.0 with crate(term/default) < 0.5.0) -%endif -%global _description \ -PNG decoding and encoding library in pure Rust. +%global _description %{expand: +PNG decoding and encoding library in pure Rust.} %description %{_description} @@ -100,6 +93,9 @@ which use "unstable" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -112,6 +108,9 @@ which use "unstable" feature of "%{crate}" crate. %endif %changelog +* Sun Jun 23 10:36:38 CEST 2019 Igor Gnatenko - 0.14.1-2 +- Regenerate + * Tue Apr 30 09:41:23 CEST 2019 Igor Gnatenko - 0.14.1-1 - Update to 0.14.1