From 8bb59686309539acdf419a1eded84af0a750c76a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 8 Dec 2023 17:54:40 +0100 Subject: [PATCH] Initial import (palette_derive 0.6 compat package) --- .gitignore | 1 + README.md | 3 -- rust-palette_derive0.6.spec | 69 +++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-palette_derive0.6.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe49eec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/palette_derive-0.6.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 5992447..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-palette_derive0.6 - -The rust-palette_derive0.6 package diff --git a/rust-palette_derive0.6.spec b/rust-palette_derive0.6.spec new file mode 100644 index 0000000..4d0555a --- /dev/null +++ b/rust-palette_derive0.6.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate palette_derive + +Name: rust-palette_derive0.6 +Version: 0.6.0 +Release: %autorelease +Summary: Automatically implement traits from the palette crate + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/palette_derive +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Automatically implement traits from the palette crate.} + +%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 %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -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..2e83f59 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (palette_derive-0.6.0.crate) = 3d29a4c62d88d46322a9ef176de4b6ee80805d19c811899664cd0c1f6589eb8923d01962d57bdef54e20680fa7e57d5c5bcb071ba952f0b902e822fe8944d161