From 3e0e1d8f7f4afb792b398e79fa5f9682257ab89e Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sun, 7 Jun 2020 15:20:44 +0200 Subject: [PATCH] Initial import Signed-off-by: Igor Raits --- .gitignore | 1 + rust-shellexpand.spec | 75 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 rust-shellexpand.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..52b0c76 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/shellexpand-2.0.0.crate diff --git a/rust-shellexpand.spec b/rust-shellexpand.spec new file mode 100644 index 0000000..590b204 --- /dev/null +++ b/rust-shellexpand.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 15 +%bcond_without check +%global debug_package %{nil} + +%global crate shellexpand + +Name: rust-%{crate} +Version: 2.0.0 +Release: 1%{?dist} +Summary: Shell-like expansions in strings + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/shellexpand +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%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 "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc Readme.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +* Sun Jun 07 12:25:22 CEST 2020 Igor Raits - 2.0.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..0948644 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (shellexpand-2.0.0.crate) = 7b174829742d0166f31b996ec0ac6682bfb3133179466e1b3b00a1581de02273783eb82ac562a9a59021424e096439d1020d1f12146ed4078032b0abbaef85b1