diff --git a/.gitignore b/.gitignore index 0b7d75d..014c860 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /rgb-0.8.13.crate +/rgb-0.8.14.crate diff --git a/rust-rgb.spec b/rust-rgb.spec index 98d46d9..9cccc36 100644 --- a/rust-rgb.spec +++ b/rust-rgb.spec @@ -1,31 +1,32 @@ -# Generated by rust2rpm -%bcond_with check +# Generated by rust2rpm 10 +%bcond_without check %global debug_package %{nil} %global crate rgb Name: rust-%{crate} -Version: 0.8.13 -Release: 2%{?dist} +Version: 0.8.14 +Release: 1%{?dist} Summary: Struct RGB for sharing pixels between crates -# https://github.com/kornelski/rust-rgb/pull/22 +# Upstream license specification: MIT +# * https://github.com/kornelski/rust-rgb/pull/27 License: MIT URL: https://crates.io/crates/rgb Source: %{crates_source} ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif BuildRequires: rust-packaging -%if %{with check} -BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0) -%endif -%global _description \ -Operating on pixels as weakly-typed vectors of u8 is error-prone and\ -inconvenient. It's better to use vectors of pixel structs. However, Rust is so\ -strongly typed that your RGB pixel struct is not compatible with my RGB pixel\ -struct. So let's all use mine. +%global _description %{expand: +`struct RGB/RGBA/etc.` for sharing pixels between crates + convenience methods +for color manipulation. Allows no-copy high-level interoperability. Also adds +common convenience methods and implements standard Rust traits to make +`RGB`/`RGBA` pixels and slices first-class Rust objects.} %description %{_description} @@ -70,6 +71,9 @@ which use "serde" feature of "%{crate}" crate. %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep +%generate_buildrequires +%cargo_generate_buildrequires + %build %cargo_build @@ -82,6 +86,9 @@ which use "serde" feature of "%{crate}" crate. %endif %changelog +* Sun Sep 01 20:02:49 CEST 2019 Igor Gnatenko - 0.8.14-1 +- Update to 0.8.14 + * Fri Jul 26 2019 Fedora Release Engineering - 0.8.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index e087ba6..06f2209 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rgb-0.8.13.crate) = 4fcc60786299b471ae2ff998cf723c3c6d37782c4269b8374611aa804159dcd9c79ce62f4d6dd342cb00f40e67ccf4631b81b8719aeaa2cef4b4a1b7a78c880e +SHA512 (rgb-0.8.14.crate) = f3589349e10b6ad58c4574e0f6c5f0efbfcf0d413fcace37e906c28ad789a3b51999620521eb1c8fc358a43ea7507174a45f983110b6f8b9c188fb8e142af491