diff --git a/.gitignore b/.gitignore index 5fe8baa..efcf376 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /image-0.21.0.crate /image-0.21.1.crate +/image-0.21.2.crate diff --git a/image-fix-metadata.diff b/image-fix-metadata.diff new file mode 100644 index 0000000..0edffa0 --- /dev/null +++ b/image-fix-metadata.diff @@ -0,0 +1,11 @@ +--- image-0.21.2/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ image-0.21.2/Cargo.toml 2019-06-09T15:10:02.127939+00:00 +@@ -63,7 +63,7 @@ + version = "0.2.0" + optional = true + [dev-dependencies.glob] +-version = "0.2.10" ++version = "0.3" + + [dev-dependencies.num-complex] + version = "0.2.0" diff --git a/rust-image.spec b/rust-image.spec index 1a6168d..2699ac5 100644 --- a/rust-image.spec +++ b/rust-image.spec @@ -1,21 +1,29 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 9 +%bcond_without check %global debug_package %{nil} %global crate image Name: rust-%{crate} -Version: 0.21.1 +Version: 0.21.2 Release: 1%{?dist} Summary: Imaging library written in Rust +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/image Source: %{crates_source} +# Initial patched metadata +# * Update glob to 0.3, https://github.com/image-rs/image/pull/972 +Patch0: image-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging +%if ! %{__cargo_skip_build} BuildRequires: (crate(byteorder/default) >= 1.2.1 with crate(byteorder/default) < 2.0.0) BuildRequires: (crate(gif/default) >= 0.10.0 with crate(gif/default) < 0.11.0) BuildRequires: (crate(jpeg-decoder) >= 0.1.0 with crate(jpeg-decoder) < 0.2.0) @@ -28,14 +36,15 @@ BuildRequires: (crate(png/default) >= 0.14.0 with crate(png/default) < 0.15.0) BuildRequires: (crate(scoped_threadpool/default) >= 0.1.0 with crate(scoped_threadpool/default) < 0.2.0) BuildRequires: (crate(tiff/default) >= 0.2.0 with crate(tiff/default) < 0.3.0) %if %{with check} -BuildRequires: (crate(glob/default) >= 0.2.10 with crate(glob/default) < 0.3.0) +BuildRequires: (crate(glob/default) >= 0.3.0 with crate(glob/default) < 0.4.0) BuildRequires: (crate(num-complex/default) >= 0.2.0 with crate(num-complex/default) < 0.3.0) BuildRequires: (crate(quickcheck/default) >= 0.6.2 with crate(quickcheck/default) < 0.7.0) %endif +%endif -%global _description \ -Imaging library written in Rust. Provides basic filters and decoders for the\ -most common image formats. +%global _description %{expand: +Imaging library written in Rust. Provides basic filters and decoders for the +most common image formats.} %description %{_description} @@ -65,6 +74,18 @@ which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%package -n %{name}+benchmarks-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+benchmarks-devel %{_description} + +This package contains library source intended for building other packages +which use "benchmarks" feature of "%{crate}" crate. + +%files -n %{name}+benchmarks-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + %package -n %{name}+bmp-devel Summary: %{summary} BuildArch: noarch @@ -273,6 +294,9 @@ which use "webp" feature of "%{crate}" crate. %endif %changelog +* Sun Jun 09 17:07:34 CEST 2019 Igor Gnatenko - 0.21.2-1 +- Update to 0.21.2 + * Mon Apr 15 2019 Josh Stone - 0.21.1-1 - Update to 0.21.1 diff --git a/sources b/sources index 733cfb1..71674da 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (image-0.21.1.crate) = 357aee0da308202f1a6b3ea3224b8dc742d7ca610a85daa44d60d6fc5031bd57d1d35a0611f9505067dd88bbfff30667fa8d33b3df3f553f70f74060dd182d40 +SHA512 (image-0.21.2.crate) = e45716fe305af10bb95ddd38db33a48cc379a7e5e1ef7b4a43fc5d2482310eaa50ffff7aed69394d51a423c698ba218a1ecbbd70f6ac7d1421f2089c046f11c5