From 4c7fddbe5c134f3e87ea8b1c2e6e7f1ddda2b235 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 17 Feb 2023 14:54:58 -0600 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-ansitok.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 82 insertions(+) create mode 100644 .gitignore create mode 100644 rust-ansitok.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f3868ed --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ansitok-0.2.0.crate diff --git a/rust-ansitok.spec b/rust-ansitok.spec new file mode 100644 index 0000000..f7b9c99 --- /dev/null +++ b/rust-ansitok.spec @@ -0,0 +1,80 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate ansitok + +Name: rust-ansitok +Version: 0.2.0 +Release: %autorelease +Summary: Library for parsing ANSI Escape Codes + +License: MIT +URL: https://crates.io/crates/ansitok +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Library for parsing ANSI Escape Codes.} + +%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}/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}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-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 diff --git a/sources b/sources new file mode 100644 index 0000000..6c3a0ed --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ansitok-0.2.0.crate) = 7619a51777ee642d3f96f8e47cce96f677085d57600875893779a12affd92915d6db9dd767814f6fab81713200d371d0579ba16cd004d3d5238ed067e5e77c19