From 686b822200bd4d92f85328304ca617e4a9bebc51 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sat, 29 Feb 2020 16:54:38 +0100 Subject: [PATCH] Initial import Signed-off-by: Igor Raits --- .gitignore | 1 + rust-kv-log-macro.spec | 76 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 rust-kv-log-macro.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3b5fa53 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/kv-log-macro-1.0.4.crate diff --git a/rust-kv-log-macro.spec b/rust-kv-log-macro.spec new file mode 100644 index 0000000..269cf9a --- /dev/null +++ b/rust-kv-log-macro.spec @@ -0,0 +1,76 @@ +# Generated by rust2rpm 13 +# * femme is not packaged +%bcond_with check +%global debug_package %{nil} + +%global crate kv-log-macro + +Name: rust-%{crate} +Version: 1.0.4 +Release: 1%{?dist} +Summary: Log macro for log's kv-unstable backend + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/kv-log-macro +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Log macro for log's kv-unstable backend.} + +%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 CHANGELOG.md +%{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 + +%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 +* Sat Feb 29 16:53:47 CET 2020 Igor Raits - 1.0.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..509789a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (kv-log-macro-1.0.4.crate) = ab3342b599490e586f5b610ec92058299196a33ed592dd206235566ca6738adaeeb27a19cb2216521c1230be7419e3481881a9ed172cabb77f88a792d9a8c501