Blame rust-lab.spec

9645d32
# Generated by rust2rpm
9645d32
%bcond_without check
9645d32
%global debug_package %{nil}
9645d32
9645d32
%global crate lab
9645d32
9645d32
Name:           rust-%{crate}
9645d32
Version:        0.6.0
bcd66ac
Release:        3%{?dist}
9645d32
Summary:        Tools for converting RGB colors to the CIE-L*a*b* color space
9645d32
9645d32
License:        MIT
9645d32
URL:            https://crates.io/crates/lab
9645d32
Source0:        https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
9645d32
9645d32
ExclusiveArch:  %{rust_arches}
9645d32
9645d32
BuildRequires:  rust-packaging
9645d32
%if %{with check}
b5d582a
BuildRequires:  (crate(rand/default) >= 0.5.0 with crate(rand/default) < 0.6.0)
9645d32
%endif
9645d32
b5d582a
%global _description \
b5d582a
Tools for converting RGB colors to the CIE-L*a*b* color space, and compating\
b5d582a
differences in color.
b5d582a
b5d582a
%description %{_description}
9645d32
9645d32
%package        devel
9645d32
Summary:        %{summary}
9645d32
BuildArch:      noarch
9645d32
b5d582a
%description    devel %{_description}
9645d32
9645d32
This package contains library source intended for building other packages
b5d582a
which use "%{crate}" crate.
b5d582a
b5d582a
%files          devel
b5d582a
%license LICENSE
b5d582a
%doc README.md CHANGELOG.md
b5d582a
%{cargo_registry}/%{crate}-%{version}/
b5d582a
b5d582a
%package     -n %{name}+default-devel
b5d582a
Summary:        %{summary}
b5d582a
BuildArch:      noarch
b5d582a
b5d582a
%description -n %{name}+default-devel %{_description}
b5d582a
b5d582a
This package contains library source intended for building other packages
b5d582a
which use "default" feature of "%{crate}" crate.
b5d582a
b5d582a
%files       -n %{name}+default-devel
b5d582a
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
9645d32
9645d32
%prep
9645d32
%autosetup -n %{crate}-%{version} -p1
9645d32
%cargo_prep
9645d32
9645d32
%build
9645d32
%cargo_build
9645d32
9645d32
%install
9645d32
%cargo_install
9645d32
9645d32
%if %{with check}
9645d32
%check
9645d32
%cargo_test
9645d32
%endif
9645d32
9645d32
%changelog
bcd66ac
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
bcd66ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bcd66ac
b5d582a
* Sat Nov 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.0-2
b5d582a
- Adapt to new packaging
b5d582a
9645d32
* Mon Oct 01 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.0-1
9645d32
- Initial package