From b340999e9f099acf42934784c35449fd635f9e67 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 12 Apr 2021 18:54:18 +0200 Subject: [PATCH] initial import (#1948134) --- .gitignore | 4 +++ README.md | 3 -- rust-dyn-clone.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-dyn-clone.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1e5effd --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/dyn-clone-1.0.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index 4b932ef..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-dyn-clone - -The rust-dyn-clone package diff --git a/rust-dyn-clone.spec b/rust-dyn-clone.spec new file mode 100644 index 0000000..32d4b0a --- /dev/null +++ b/rust-dyn-clone.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate dyn-clone + +Name: rust-%{crate} +Version: 1.0.4 +Release: 1%{?dist} +Summary: Clone trait that is object-safe + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/dyn-clone +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Clone trait that is object-safe.} + +%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-APACHE LICENSE-MIT +%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 +* Thu Apr 08 2021 Fabio Valentini - 1.0.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..61d2549 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dyn-clone-1.0.4.crate) = 5d2f65ab4cadb16c877e9adf762f95826e07aaaab77ef64d52c888a8c7b362559fb108f3a5eb887a771dce89fd8d05d9d07fb50328474620e0cf303349c56f6a