From c02f6f69c2195b2d2edecbadc359dd2f022100ff Mon Sep 17 00:00:00 2001 From: Igor Raits Date: May 13 2020 14:53:31 +0000 Subject: Initial import Signed-off-by: Igor Raits --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d252e95 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/debug-helper-0.3.8.crate diff --git a/rust-debug-helper.spec b/rust-debug-helper.spec new file mode 100644 index 0000000..dfc2059 --- /dev/null +++ b/rust-debug-helper.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate debug-helper + +Name: rust-%{crate} +Version: 0.3.8 +Release: 1%{?dist} +Summary: Declarative macros to help you implement the `Debug` trait manually + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/debug-helper +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Declarative macros to help you implement the `Debug` trait manually.} + +%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 +%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 +* Wed May 13 10:52:42 CEST 2020 Igor Raits - 0.3.8-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..e9ca018 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (debug-helper-0.3.8.crate) = 5b47cba956ee2ce7f55af13aad1c5c90d7ef929fbd109a2f40e95f7067baee56043699cb6eb2bdb10c865b5eb153d5db7276b986a7cb997d0baece5cc9694353