From 269c206e51cd168f157891a682edf6c2ae638b36 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 12 Feb 2019 08:39:43 +0100 Subject: [PATCH] Initial import Signed-off-by: Igor Gnatenko --- rust-serde_stacker.spec | 75 ++++++++++++++++++++++++++++++++++++++ serde_stacker-0.1.0.crate | Bin 0 -> 10349 bytes tests/.fmf/version | 1 + tests/provision.fmf | 5 +++ tests/tests.yml | 13 +++++++ 5 files changed, 94 insertions(+) create mode 100644 rust-serde_stacker.spec create mode 100644 serde_stacker-0.1.0.crate create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/tests.yml diff --git a/rust-serde_stacker.spec b/rust-serde_stacker.spec new file mode 100644 index 0000000..57bd9e7 --- /dev/null +++ b/rust-serde_stacker.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm +# * serde_stacker(dev) → serde_json(dev) → serde_stacker +%bcond_with check +%global debug_package %{nil} + +%global crate serde_stacker + +Name: rust-%{crate} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Serde adapter that avoids stack overflow by dynamically growing the stack + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/serde_stacker +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) +BuildRequires: (crate(stacker/default) >= 0.1.0 with crate(stacker/default) < 0.2.0) +%if %{with check} +BuildRequires: (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0) +%endif + +%global _description \ +Serde adapter that avoids stack overflow by dynamically growing the stack. + +%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-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%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}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sun Feb 03 2019 Igor Gnatenko - 0.1.0-1 +- Initial package diff --git a/serde_stacker-0.1.0.crate b/serde_stacker-0.1.0.crate new file mode 100644 index 0000000000000000000000000000000000000000..fe0dc08a27985815fde713f4e3a30f9b7da1598f GIT binary patch literal 10349 zcmV-zD3aG7iwFn+00002|8r$>WMyA-bYWv_WpXVrE-@}JE@N_GbY%eTJ!^N{wvzq2 z{1vErww3QHvgK#iNxiGYN~4Wq=U7UzJvlipB|$Pb6shoGN4L#?-(qrkp$!uoXV-iiJDa@9mKO@9*zD z=>HvjT-zJP_J|*{061Y;_}@c|u}92vMwgL0rSCl++4KdN)pI$0ZPa%_SRPEo-%tOA z1Bm>wTlWKJbnE)Rf3TP6|G{1Z^?z@7f9FB}@8I)c0y7W#|Iza7F=xNBiXjmd>xu`V z<9qmqq@!ZladhbiAw2m|IR-~DU|rw!>?wOXi0I3IkH)s+*8BeWsPfTroj&(M0{yz( zWoPHC31eRJN81Q&z{7svOd>f%2M1^Nz@9`rV9})=G5gAQ1|cJam=EX-UH_W(rfe_; zl%2lqx>Gg^{AK@TokR;++e{LqQ~V2Xe*qi7NyZf-(odl~l-w@r!dCK3E7A$Z{T z<1zOlTj8X-!ix|>q|FS20&Wik=gwQr`hTd9&L(X3u_S&ztAJomoFwKe6|h z++*>?_3Z)bTtBcQ9W;g3O|NLK+s1#-)=?K=PD6_yGc z8#*q)8TtVm+g}`Lz(7qW(68sXPJ|t=L3LLU&g4xEUyKcMI3 zA52#wfDrj9hE-l4)g}6M$KS}bh1TsMoBA>8!_YMzH3zvW4MAkz5J-Nk{Fq7B|3l1u)LD@6!p|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0 HcmV?d00001 diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..503a97c --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..be2af3c --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-serde_stacker