From 40a7ad12d0971cb39eb9d201712f47c58a6aa5d1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 11 Oct 2020 10:41:42 +0200 Subject: [PATCH] initial import (#1880719) --- .gitignore | 4 ++ README.md | 3 -- rust-palette_derive.spec | 87 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-palette_derive.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bf69fa2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/palette_derive-0.5.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 873f1d1..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-palette_derive - -The rust-palette_derive package diff --git a/rust-palette_derive.spec b/rust-palette_derive.spec new file mode 100644 index 0000000..9f65d0f --- /dev/null +++ b/rust-palette_derive.spec @@ -0,0 +1,87 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate palette_derive + +Name: rust-%{crate} +Version: 0.5.0 +Release: 1%{?dist} +Summary: Automatically implement traits from the palette crate + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/palette_derive +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%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 "%{crate}" crate. + +%files devel +%license LICENSE-APACHE LICENSE-MIT +%doc 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 + +%package -n %{name}+strict-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+strict-devel %{_description} + +This package contains library source intended for building other packages +which use "strict" feature of "%{crate}" crate. + +%files -n %{name}+strict-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 +* Sat Sep 19 2020 Fabio Valentini - 0.5.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..83741f3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (palette_derive-0.5.0.crate) = b26a69d74720d0ff4cccb5c3f72fc5a6123c429040c49fa2983ef7c64e8e81a47cad239be4968944367178e3d9badbb072a484fe7313542617e377eb7af57dec