|
|
|
@ -1,32 +1,25 @@
|
|
|
|
|
# Generated by rust2rpm 16
|
|
|
|
|
# * rspec is not packaged
|
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
|
# * tests are not compatible with a stable version of rspec
|
|
|
|
|
%bcond_with check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate colored
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Name: rust-colored
|
|
|
|
|
Version: 2.0.0
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Most simple way to add colors in your terminal
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: MPL-2.0
|
|
|
|
|
License: MPLv2.0
|
|
|
|
|
License: MPL-2.0
|
|
|
|
|
URL: https://crates.io/crates/colored
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Initial patched metadata
|
|
|
|
|
# * No windows
|
|
|
|
|
Patch0: colored-fix-metadata.diff
|
|
|
|
|
# Automatically generated patch to strip foreign dependencies
|
|
|
|
|
Patch: colored-fix-metadata-auto.diff
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Most simple way to add colors in your terminal.}
|
|
|
|
|
The most simple way to add colors in your terminal.}
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
@ -36,13 +29,14 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md CHANGELOG.md
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
|
%license %{crate_instdir}/LICENSE
|
|
|
|
|
%doc %{crate_instdir}/CHANGELOG.md
|
|
|
|
|
%doc %{crate_instdir}/README.md
|
|
|
|
|
%{crate_instdir}/
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -50,11 +44,11 @@ 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.
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "default" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+no-color-devel
|
|
|
|
|
Summary: %{summary}
|
|
|
|
@ -62,14 +56,15 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+no-color-devel %{_description}
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
|
which use "no-color" feature of "%{crate}" crate.
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
use the "no-color" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+no-color-devel
|
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
# remove executable bit from source files
|
|
|
|
|
find -type f -executable -exec chmod -v -x '{}' +
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|