From bfb4a11d4b705863650b31cd018387f6b01fb333 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Wed, 13 May 2020 16:53:12 +0200 Subject: [PATCH] Initial import Signed-off-by: Igor Raits --- .gitignore | 1 + rust-serde-value.spec | 75 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 rust-serde-value.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e1f412c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/serde-value-0.6.0.crate diff --git a/rust-serde-value.spec b/rust-serde-value.spec new file mode 100644 index 0000000..b8892d1 --- /dev/null +++ b/rust-serde-value.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate serde-value + +Name: rust-%{crate} +Version: 0.6.0 +Release: 1%{?dist} +Summary: Serialization value trees + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/serde-value +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Serialization value trees.} + +%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 COPYING +%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 + +%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 +* Tue May 12 16:47:28 CEST 2020 Igor Raits - 0.6.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..db67ff3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (serde-value-0.6.0.crate) = c703b41b353e328e81f1043a6089e8eb826b79bc5f7d3a2f45a2696209481809f0d67536356bd8a40a28512652559f20622716b40e54998e6876c8b0366b5394