|
|
|
# Generated by rust2rpm 10
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
%global crate rgb
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.8.14
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Struct RGB for sharing pixels between crates
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc README.md
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
%package -n %{name}+serde-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}+serde-devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
which use "serde" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+serde-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
# https://github.com/kornelski/rust-rgb/issues/28
|
|
|
|
%cargo_test -- -- --skip test_add_overflow
|
|
|
|
%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
|
|
|
|
|
|
|
|
* Tue Apr 30 18:49:07 EEST 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.8.13-1
|
|
|
|
- Initial package
|