From f8fac9ba4601cd1cdbc2719f633d04953af4f51a Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Tue, 29 Mar 2022 10:49:01 -0700 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-indenter.spec | 85 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 87 insertions(+) create mode 100644 .gitignore create mode 100644 rust-indenter.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57b739f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/indenter-0.3.3.crate diff --git a/rust-indenter.spec b/rust-indenter.spec new file mode 100644 index 0000000..610fbe4 --- /dev/null +++ b/rust-indenter.spec @@ -0,0 +1,85 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate indenter + +Name: rust-%{crate} +Version: 0.3.3 +Release: 1%{?dist} +Summary: Formatter wrapper that indents the text, designed for error display impls + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/indenter +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Formatter wrapper that indents the text, designed for error display impls.} + +%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 +# FIXME: no license files detected +%doc %{crate_instdir}/CHANGELOG.md +%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 +* Sat Mar 26 2022 Michel Alexandre Salim - 0.3.3-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..f0c7190 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (indenter-0.3.3.crate) = 6585964939ee84739cdd19576faef467703415777e159ab2ff8b0f2a371fb2cd6c7a83dff4df954e9bea35844a43b72d93131dd4d23d328e9f365950ad831a71