From ff8ec2ebfd76537e9c7d0965911cc6e8d3d8022f Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Tue, 6 Jul 2021 09:51:26 -0700 Subject: [PATCH] import #1975874 --- .gitignore | 1 + rust-rustbus_derive.spec | 73 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 75 insertions(+) create mode 100644 .gitignore create mode 100644 rust-rustbus_derive.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d46188 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rustbus_derive-0.2.0.crate diff --git a/rust-rustbus_derive.spec b/rust-rustbus_derive.spec new file mode 100644 index 0000000..baf05c8 --- /dev/null +++ b/rust-rustbus_derive.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate rustbus_derive + +Name: rust-%{crate} +Version: 0.2.0 +Release: 1%{?dist} +Summary: Derive proc-macros for the rustbus crate + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/rustbus_derive +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Derive proc-macros for the rustbus 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 +* Thu Jun 24 2021 Davide Cavalca - 0.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..2fb5f3b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rustbus_derive-0.2.0.crate) = 405d862bcf36eaacfd29cbc8f8b0113af3e766f47c5fa201909ee3770000541bd231c5d2d88de8553ffff0fe6f71488b908b52f663cdcfac198e3f73bb5346c8