From be8368a8b65e8e08fdc9fa9675f400aa48519ae4 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 2 Mar 2023 14:03:54 +0100 Subject: [PATCH] Initial import (indoc 1 compat package) --- .gitignore | 1 + README.md | 3 --- rust-indoc1.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-indoc1.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3db3f33 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/indoc-1.0.9.crate diff --git a/README.md b/README.md deleted file mode 100644 index ce12c4e..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-indoc1 - -The rust-indoc1 package diff --git a/rust-indoc1.spec b/rust-indoc1.spec new file mode 100644 index 0000000..a3d89d3 --- /dev/null +++ b/rust-indoc1.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate indoc + +Name: rust-indoc1 +Version: 1.0.9 +Release: %autorelease +Summary: Indented document literals + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/indoc +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Indented document literals.} + +%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}/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 + +%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..e7987ed --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (indoc-1.0.9.crate) = db8aef4a7bb606452dc8ed45aa29a255c7a135357a0bd586fb4429c5f56a1aa2ca9400d6fac39956aeb486a15d25cf5d1b9524967867f2c651d9d563e3e85be8