From a8b45fb220395b88e3e18d9430723e814a0e2bfd Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sun, 16 Feb 2020 07:38:35 +0100 Subject: [PATCH] Initial import Signed-off-by: Igor Raits --- .gitignore | 1 + rust-serde-big-array.spec | 88 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 90 insertions(+) create mode 100644 .gitignore create mode 100644 rust-serde-big-array.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..303ff6e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/serde-big-array-0.2.0.crate diff --git a/rust-serde-big-array.spec b/rust-serde-big-array.spec new file mode 100644 index 0000000..91c8acb --- /dev/null +++ b/rust-serde-big-array.spec @@ -0,0 +1,88 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate serde-big-array + +Name: rust-%{crate} +Version: 0.2.0 +Release: 1%{?dist} +Summary: Big array helper for serde + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/serde-big-array +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Big array helper for serde.} + +%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 +%doc README.md +%license LICENSE-APACHE +%license LICENSE-MIT +%{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}+const-generics-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+const-generics-devel %{_description} + +This package contains library source intended for building other packages +which use "const-generics" feature of "%{crate}" crate. + +%files -n %{name}+const-generics-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 +* Wed Feb 12 14:50:59 EST 2020 Randy Barlow - 0.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..17df859 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (serde-big-array-0.2.0.crate) = 76d2427e94373a0d23025fbd1cf0f24fbc58f604f00556ca0dee7f8e9b890af3a666fa8fff4afc45c8bc00073f0172e4fb0b6df8249f08b7f090c5c003d4dea9