From 59ddef4cf90c573d9aed83571c2c5f7a02ef82e5 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 18 Nov 2021 18:26:12 +0100 Subject: [PATCH] Initial import (time-macros 0.1 compat package) --- .gitignore | 4 +++ README.md | 3 -- rust-time-macros0.1.spec | 73 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 78 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-time-macros0.1.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a06d14 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/time-macros-0.1.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 237ebbb..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-time-macros0.1 - -The rust-time-macros0.1 package diff --git a/rust-time-macros0.1.spec b/rust-time-macros0.1.spec new file mode 100644 index 0000000..380209f --- /dev/null +++ b/rust-time-macros0.1.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 18 +%bcond_without check +%global debug_package %{nil} + +%global crate time-macros + +Name: rust-%{crate}0.1 +Version: 0.1.1 +Release: %autorelease +Summary: Procedural macros for the time crate + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/time-macros +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Procedural macros for the time crate.} + +%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 +%{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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..f5eb6b1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (time-macros-0.1.1.crate) = c6792be54dab0847d621684b4afe2e9803f2004bc3d4f01d84802af7f557799cf4d2b5ff6fe58e0b4018d92ab3868feb9b5df5691b2c8ee188e6e7b39deb8c8c