From 1a6e9576913cdac5777e3863809d040600304908 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 15 Jan 2020 14:48:13 -0800 Subject: [PATCH] Update to 0.3.1 --- .gitignore | 1 + resize-fix-metadata.diff | 8 -------- rust-resize.spec | 30 +++++++++++++++++------------- sources | 2 +- 4 files changed, 19 insertions(+), 22 deletions(-) delete mode 100644 resize-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 783e324..34868c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /resize-0.3.0.crate +/resize-0.3.1.crate diff --git a/resize-fix-metadata.diff b/resize-fix-metadata.diff deleted file mode 100644 index 523533b..0000000 --- a/resize-fix-metadata.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- resize-0.3.0/Cargo.toml 2017-04-04T19:15:03+02:00 -+++ resize-0.3.0/Cargo.toml 2019-03-09T01:18:00.908991+01:00 -@@ -11,4 +11,4 @@ - documentation = "http://docs.piston.rs/resize/resize/" - - [dev-dependencies] --png = "0.6" -+png = "0.14" diff --git a/rust-resize.spec b/rust-resize.spec index 2b61949..25d2ea1 100644 --- a/rust-resize.spec +++ b/rust-resize.spec @@ -1,30 +1,28 @@ -# Generated by rust2rpm +# Generated by rust2rpm 13 %bcond_with check %global debug_package %{nil} %global crate resize Name: rust-%{crate} -Version: 0.3.0 -Release: 3%{?dist} +Version: 0.3.1 +Release: 1%{?dist} Summary: Simple resampling library in pure Rust +# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/resize Source: %{crates_source} -# Initial patched metadata -# - Bump png to 0.14 https://github.com/PistonDevelopers/resize/pull/24 -Patch0: resize-fix-metadata.diff ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -%if %{with check} -BuildRequires: (crate(png/default) >= 0.14.0 with crate(png/default) < 0.15.0) -%endif -%global _description \ -Simple resampling library in pure Rust. +%global _description %{expand: +Simple resampling library in pure Rust.} %description %{_description} @@ -40,7 +38,7 @@ which use "%{crate}" crate. %files devel %doc README.md %license LICENSE -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -52,12 +50,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_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -70,6 +71,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Wed Jan 15 2020 Josh Stone - 0.3.1-1 +- Update to 0.3.1 + * Fri Jul 26 2019 Fedora Release Engineering - 0.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 3df8d4e..11697c6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (resize-0.3.0.crate) = f9e622f54dc8b3db61e3be7a7fe33fc6d974cdacadb12f128ab0cbd8a15008c1cec793335e2e81f781e4ac755c6a66c4fa2c265ff3efd01d3150697db190a780 +SHA512 (resize-0.3.1.crate) = 8d1d9b75cdf122e7b4b761e331a1c5f9db435701a6aafb9777ff073f9f263dde19d94c592f6de29b5c49bbe13e637d6a4f8597bb81a7181f6ca8f9951eea1f1f