|
|
|
@ -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 <ignatenkobrain@fedoraproject.org> - 0.8.14-1
|
|
|
|
|
- Update to 0.8.14
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.13-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|