Initial Fedora package

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9 imports/e9/rust-nu-ansi-term0.46-0.46.0-1.el9
Michel Alexandre Salim 2 years ago
parent 1cd190d356
commit 3197d26bfd
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

1
.gitignore vendored

@ -0,0 +1 @@
/nu-ansi-term-0.46.0.crate

@ -0,0 +1,15 @@
--- nu-ansi-term-0.46.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ nu-ansi-term-0.46.0/Cargo.toml 2023-05-19T15:17:14.728862+00:00
@@ -46,12 +46,3 @@
[features]
derive_serde_style = ["serde"]
-[target."cfg(target_os=\"windows\")".dependencies.winapi]
-version = "0.3.4"
-features = [
- "consoleapi",
- "errhandlingapi",
- "fileapi",
- "handleapi",
- "processenv",
-]

@ -0,0 +1,94 @@
# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate nu-ansi-term
Name: rust-nu-ansi-term0.46
Version: 0.46.0
Release: %autorelease
Summary: Library for ANSI terminal colors and styles (bold, underline)
License: MIT
URL: https://crates.io/crates/nu-ansi-term
Source: %{crates_source}
# Automatically generated patch to strip foreign dependencies
Patch: nu-ansi-term-fix-metadata-auto.diff
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Library for ANSI terminal colors and styles (bold, underline).}
%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 %{crate_instdir}/LICENCE
%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}+derive_serde_style-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+derive_serde_style-devel %{_description}
This package contains library source intended for building other packages which
use the "derive_serde_style" feature of the "%{crate}" crate.
%files -n %{name}+derive_serde_style-devel
%ghost %{crate_instdir}/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 the "serde" feature of the "%{crate}" crate.
%files -n %{name}+serde-devel
%ghost %{crate_instdir}/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
%cargo_test
%endif
%changelog
%autochangelog

@ -0,0 +1 @@
SHA512 (nu-ansi-term-0.46.0.crate) = b4f37786dc85e0596e2b7b261a5a9fe0265bf1651c39efb358dd649b926b12c3093f307b98bf0c4df3899f0a7cb1854f2596bd5c3e22fbbef42f912ab2eb5043
Loading…
Cancel
Save