From 2f53c4574de2c2825e6c090bce1280a8db1c179d Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 20 Dec 2021 18:38:30 +0100 Subject: [PATCH] Initial import (darling 0.12 compat package) --- .gitignore | 4 ++ README.md | 3 -- rust-darling0.12.spec | 96 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 101 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-darling0.12.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e24e126 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/darling-0.12.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index b14df30..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-darling0.12 - -The rust-darling0.12 package diff --git a/rust-darling0.12.spec b/rust-darling0.12.spec new file mode 100644 index 0000000..323493d --- /dev/null +++ b/rust-darling0.12.spec @@ -0,0 +1,96 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate darling + +Name: rust-%{crate}0.12 +Version: 0.12.4 +Release: %autorelease +Summary: Proc-macro library for reading attributes into structs + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/darling +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Proc-macro library for reading attributes into structs when implementing custom +derives.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license LICENSE +%doc CHANGELOG.md 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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+diagnostics-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+diagnostics-devel %{_description} + +This package contains library source intended for building other packages which +use the "diagnostics" feature of the "%{crate}" crate. + +%files -n %{name}+diagnostics-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+suggestions-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+suggestions-devel %{_description} + +This package contains library source intended for building other packages which +use the "suggestions" feature of the "%{crate}" crate. + +%files -n %{name}+suggestions-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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..32b5f95 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (darling-0.12.4.crate) = 12358298bbbe4c18a6b8b1ff838c210806980973f7fa2307af97f0b33df2e3f1bb43dc2b990b5e8bbdd4f8ec97e1785ece556ada8ad6d6957f9dfb37316ab7a6