From 07f49f27f929459ccb65571924ca6fd5965c3962 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 9 Nov 2017 08:37:32 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-serde_test.spec | 83 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 85 insertions(+) create mode 100644 .gitignore create mode 100644 rust-serde_test.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fbb0f63 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/serde_test-1.0.19.crate diff --git a/rust-serde_test.spec b/rust-serde_test.spec new file mode 100644 index 0000000..f9f4264 --- /dev/null +++ b/rust-serde_test.spec @@ -0,0 +1,83 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate serde_test + +Name: rust-%{crate} +Version: 1.0.19 +Release: 1%{?dist} +Summary: Token De/Serializer for testing De/Serialize implementations + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/serde_test +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(serde) >= 1.0.16 with crate(serde) < 2.0.0) +%if %{with check} +# [dev-dependencies] +BuildRequires: ((crate(serde) >= 1.0.16 with crate(serde) < 2.0.0) with crate(serde/rc)) +BuildRequires: (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Token De/Serializer for testing De/Serialize implementations. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Wed Nov 08 2017 Igor Gnatenko - 1.0.19-1 +- Update to 1.0.19 + +* Sat Jul 01 2017 Igor Gnatenko - 1.0.9-1 +- Update to 1.0.9 + +* Thu Jun 15 2017 Igor Gnatenko - 1.0.8-1 +- Update to 1.0.8 + +* Wed Jun 14 2017 Igor Gnatenko - 0.9.12-2 +- Port to use rust-packaging + +* Thu Mar 30 2017 Igor Gnatenko - 0.9.12-1 +- Update to 0.9.12 + +* Mon Mar 06 2017 Igor Gnatenko - 0.9.11-1 +- Update to 0.9.11 + +* Wed Mar 01 2017 Igor Gnatenko - 0.9.10-1 +- Update to 0.9.10 + +* Sat Feb 25 2017 Igor Gnatenko - 0.9.9-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..7626e23 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (serde_test-1.0.19.crate) = e4c7e170e79ff88057d97661c70efa1ac826a690fbd2fa9901a28559884a00461eaf1bf72a6bd21cd9cdb59dc8505deb2934704a48be79a1c499aa28cf2e0b55