From 65e912b26a5716a6295fabda268cd2b6ea7c9ed1 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 7 Jun 2021 15:48:38 +0200 Subject: [PATCH] Initial import (#1967074). --- .gitignore | 1 + rust-ouroboros_macro.spec | 73 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 75 insertions(+) create mode 100644 .gitignore create mode 100644 rust-ouroboros_macro.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c904658 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ouroboros_macro-0.9.3.crate diff --git a/rust-ouroboros_macro.spec b/rust-ouroboros_macro.spec new file mode 100644 index 0000000..e890766 --- /dev/null +++ b/rust-ouroboros_macro.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate ouroboros_macro + +Name: rust-%{crate} +Version: 0.9.3 +Release: 1%{?dist} +Summary: Proc macro for ouroboros crate + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/ouroboros_macro +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Proc macro for ouroboros crate.} + +%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 +%{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 Jun 02 12:10:23 CEST 2021 Christian Heimes - 0.9.3-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..5d9846e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ouroboros_macro-0.9.3.crate) = 8ac05813313ca765560d584dc1fbc741f16389c7cc9731bc5d3f6e9d799c58283960e696ae026fb57df778853ddc3b6318bfc6f9ddfb39dbc6c1b13fca0dd075