You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-ansi_colours/rust-ansi_colours.spec

66 lines
1.5 KiB

# Generated by rust2rpm
%bcond_without check
%global debug_package %{nil}
%global crate ansi_colours
Name: rust-%{crate}
Version: 1.0.1
Release: 1%{?dist}
Summary: true-colour ↔ ANSI terminal palette converter
License: LGPLv3+
URL: https://crates.io/crates/ansi_colours
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
# Initial patched metadata
# * Bump lab to 0.6, https://github.com/mina86/ansi_colours/pull/1
Patch0: ansi_colours-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [build-dependencies]
BuildRequires: (crate(cc) >= 1.0.0 with crate(cc) < 2.0.0)
%if %{with check}
# [dev-dependencies]
BuildRequires: (crate(delta_e) >= 0.2.0 with crate(delta_e) < 0.3.0)
BuildRequires: (crate(lab) >= 0.6.0 with crate(lab) < 0.7.0)
%endif
%description
%{summary}.
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel
true-colour ↔ ANSI terminal palette converter.
This package contains library source intended for building other packages
which use %{crate} from crates.io.
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Thu Oct 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-1
- Initial package