Initial Fedora package

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9
Michel Alexandre Salim 3 years ago
parent 8c7913e8e2
commit bad99b0bd1

2
.gitignore vendored

@ -0,0 +1,2 @@
/owo-colors-3.3.0.crate
/owo-colors-LICENSE

@ -0,0 +1,98 @@
# Generated by rust2rpm 21
%bcond_without check
%global debug_package %{nil}
%global crate owo-colors
Name: rust-%{crate}
Version: 3.3.0
Release: %autorelease
Summary: Zero-allocation terminal colors that'll make people go owo
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/owo-colors
Source: %{crates_source}
# https://github.com/jam1garner/owo-colors/issues/52
Source1: https://raw.githubusercontent.com/michel-slm/owo-colors/add-license/LICENSE#/%{crate}-LICENSE
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Zero-allocation terminal colors that'll make people go owo.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license LICENSE
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+supports-color-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+supports-color-devel %{_description}
This package contains library source intended for building other packages which
use the "supports-color" feature of the "%{crate}" crate.
%files -n %{name}+supports-color-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+supports-colors-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+supports-colors-devel %{_description}
This package contains library source intended for building other packages which
use the "supports-colors" feature of the "%{crate}" crate.
%files -n %{name}+supports-colors-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
cp -p %{SOURCE1} LICENSE
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog

@ -0,0 +1,2 @@
SHA512 (owo-colors-3.3.0.crate) = 177b23fe7c665da52b489f274d013b3d52cf126af6cf185cd842658ac3dbf1bcbe9a9b341870e3f7ad978270fb78cb302f7e7a28e83be84105e76b6d357234fe
SHA512 (owo-colors-LICENSE) = 7eaf3cd0cde8d8d58c7eab5c11207d3b790f9322353fb04aa74d50b350670ce79cb33d41541fd745134abbc52378fce3ce763de5fa7f8a11ef81480c2213779b
Loading…
Cancel
Save