From 521c2778d263e4aedd5d807079e385815d1ca6a4 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 4 Jul 2023 00:03:05 +0200 Subject: [PATCH] Initial import (shellexpand 2.x compat package) --- .gitignore | 1 + rust-shellexpand2.spec | 70 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 rust-shellexpand2.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..daf488c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/shellexpand-2.1.2.crate diff --git a/rust-shellexpand2.spec b/rust-shellexpand2.spec new file mode 100644 index 0000000..1474892 --- /dev/null +++ b/rust-shellexpand2.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate shellexpand + +Name: rust-shellexpand2 +Version: 2.1.2 +Release: %autorelease +Summary: Shell-like expansions in strings + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/shellexpand +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Shell-like expansions in strings.} + +%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..1bdaf1c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (shellexpand-2.1.2.crate) = 80242e9f39140b3406c604ddc771f6df93b98f34a67f8f7a1c08f78b463bf46dfde365759a0e8082b1da2704b96c71cb9341c4b789a238195cbb2db1cdcc7581