From 782925c53469c67a4107b4892553da47ad23d49c Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Tue, 6 Jul 2021 10:25:25 -0700 Subject: [PATCH] import #1975908 --- .gitignore | 1 + rust-getset.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 rust-getset.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..490caaa --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/getset-0.1.1.crate diff --git a/rust-getset.spec b/rust-getset.spec new file mode 100644 index 0000000..d232dd2 --- /dev/null +++ b/rust-getset.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate getset + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: A procedural macro for generating the most basic getters and setters on fields. + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/getset +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +A procedural macro for generating the most basic getters and setters on fields.} + +%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 examples 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 Jun 24 2021 Davide Cavalca - 0.1.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..de2a86b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (getset-0.1.1.crate) = 6bf2a3e9438121e6ed089bfc0ad9bd352fa6e07269371c8df4119d1a8b385e3188348df342bb8860395d6887e4a824ce4ca43ef597d933154d7f1d90d91d1982