From b40b2b64d2b7041528e37acf18f9de84a0c41a1d Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 12 Sep 2018 07:07:40 +0200 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-simplelog.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+) create mode 100644 .gitignore create mode 100644 rust-simplelog.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..472db58 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/simplelog-0.5.2.crate diff --git a/rust-simplelog.spec b/rust-simplelog.spec new file mode 100644 index 0000000..e6eca56 --- /dev/null +++ b/rust-simplelog.spec @@ -0,0 +1,60 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate simplelog + +Name: rust-%{crate} +Version: 0.5.2 +Release: 1%{?dist} +Summary: Simple and easy-to-use logging facility for Rust's log crate + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/simplelog +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(chrono) >= 0.4.0 with crate(chrono) < 0.5.0) +BuildRequires: ((crate(log) >= 0.4.1 with crate(log) < 0.5.0) with crate(log/std)) +BuildRequires: (crate(term) >= 0.5.1 with crate(term) < 0.6.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +A simple and easy-to-use logging facility for Rust's log crate. + +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.APACHE2 +%doc README.md CHANGELOG.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Tue Sep 11 2018 Igor Gnatenko - 0.5.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..03a0103 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (simplelog-0.5.2.crate) = f8fea61d3d1d1c03c0f36541736d876319eef1a956cff300f3a2db87ca4cecb90ac21699b2c1ce0ea8c8ee55745b75c76a9872637c2acbc12bfabbba076f3b7c