From 3cf7fcfe2805df4c2802eb8bba78e426ecb26ed8 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 7 Nov 2017 18:44:13 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-lazy_static.spec | 76 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 rust-lazy_static.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..376af42 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lazy_static-0.2.9.crate diff --git a/rust-lazy_static.spec b/rust-lazy_static.spec new file mode 100644 index 0000000..18f79df --- /dev/null +++ b/rust-lazy_static.spec @@ -0,0 +1,76 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate lazy_static + +Name: rust-%{crate} +Version: 0.2.9 +Release: 1%{?dist} +Summary: Macro for declaring lazily evaluated statics in Rust + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/lazy_static +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(spin) >= 0.4.0 with crate(spin) < 0.5.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +A macro for declaring lazily evaluated statics in Rust. + +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}/ +%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml + +%changelog +* Mon Nov 06 2017 Igor Gnatenko - 0.2.9-1 +- Update to 0.2.9 + +* Wed Jun 14 2017 Igor Gnatenko - 0.2.8-1 +- Update to 0.2.8 + +* Wed Jun 14 2017 Igor Gnatenko - 0.2.5-2 +- Port to use rust-packaging + +* Thu Mar 30 2017 Igor Gnatenko - 0.2.5-1 +- Update to 0.2.5 + +* Sun Mar 05 2017 Igor Gnatenko - 0.2.4-1 +- Update to 0.2.4 + +* Fri Feb 24 2017 Igor Gnatenko - 0.2.2-2 +- Use rich dependencies + +* Sat Feb 18 2017 Igor Gnatenko - 0.2.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..8325ae6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lazy_static-0.2.9.crate) = 10a75fc071f58fd9cf4d87619ff32e94b2d53da0f414e48319c4f15c1120c018ece698a396f538f60504c85f2faa5da3e48fd17c0fcfb8f575352c70f79c9ba2