From f0fa0d37231631a329aceb891742bc4646690abf Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 13 Sep 2023 11:40:52 +0200 Subject: [PATCH] Initial import (annotate-snippets 0.6 compat package) --- .gitignore | 1 + README.md | 3 -- rust-annotate-snippets0.6.spec | 95 ++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 97 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-annotate-snippets0.6.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e97b587 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/annotate-snippets-0.6.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 4c1ca52..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-annotate-snippets0.6 - -The rust-annotate-snippets0.6 package diff --git a/rust-annotate-snippets0.6.spec b/rust-annotate-snippets0.6.spec new file mode 100644 index 0000000..cb71384 --- /dev/null +++ b/rust-annotate-snippets0.6.spec @@ -0,0 +1,95 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate annotate-snippets + +Name: rust-annotate-snippets0.6 +Version: 0.6.1 +Release: %autorelease +Summary: Library for building code annotations + +# Upstream license specification: Apache-2.0/MIT +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/annotate-snippets +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Library for building code annotations.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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}+ansi_term-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ansi_term-devel %{_description} + +This package contains library source intended for building other packages which +use the "ansi_term" feature of the "%{crate}" crate. + +%files -n %{name}+ansi_term-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+color-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+color-devel %{_description} + +This package contains library source intended for building other packages which +use the "color" feature of the "%{crate}" crate. + +%files -n %{name}+color-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..ec15420 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (annotate-snippets-0.6.1.crate) = 3354bc87d4ff32f73db98546a6e434f3ecfe6d290f08df5ebaf6afec15dfbe105e6b4e91133f442246a7c2e534730550010ef18ff075f1f7d6267799962e2b23