From fb7d89bea076674c6122cb3b5b96c170f5b674d6 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: May 28 2020 17:57:54 +0000 Subject: Initial import Signed-off-by: Igor Raits --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8a0f961 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/scopetime-0.1.1.crate diff --git a/rust-scopetime.spec b/rust-scopetime.spec new file mode 100644 index 0000000..86c9019 --- /dev/null +++ b/rust-scopetime.spec @@ -0,0 +1,87 @@ +# Generated by rust2rpm 15 +%bcond_without check +%global debug_package %{nil} + +%global crate scopetime + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Log runtime of arbitrary scope + +# Upstream license specification: MIT +# https://github.com/extrawurst/gitui/pull/94 +License: MIT +URL: https://crates.io/crates/scopetime +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Log runtime of arbitrary scope.} + +%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 +%doc README.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 + +%package -n %{name}+enabled-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+enabled-devel %{_description} + +This package contains library source intended for building other packages +which use "enabled" feature of "%{crate}" crate. + +%files -n %{name}+enabled-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 +* Thu May 28 15:47:42 CEST 2020 Igor Raits - 0.1.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..0679615 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (scopetime-0.1.1.crate) = 7c39a1d92c42c72a78d035dcd6d65575f38b8192fb07cb221359f48edac51fbd7bff19639219b25e32cad8b82960e7545063abd45408a9e13002ff1f9ab77e39