From fd5e25b73750dcc4d5cb29d46a1ec165ba7fea3a Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 6 Nov 2017 17:51:56 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-quick-error.spec | 59 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 .gitignore create mode 100644 rust-quick-error.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed17ba9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/quick-error-1.2.1.crate diff --git a/rust-quick-error.spec b/rust-quick-error.spec new file mode 100644 index 0000000..574756d --- /dev/null +++ b/rust-quick-error.spec @@ -0,0 +1,59 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate quick-error + +Name: rust-%{crate} +Version: 1.2.1 +Release: 1%{?dist} +Summary: Macro which makes error types pleasant to write + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/quick-error +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +A macro which makes error types pleasant to write. + +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.rst +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/{bulk.yaml,vagga.yaml} + +%changelog +* Sun Nov 05 2017 Igor Gnatenko - 1.2.1-1 +- Update to 1.2.1 + +* Thu Jul 06 2017 Igor Gnatenko - 1.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..ee2ad92 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (quick-error-1.2.1.crate) = 86242dc5a5b68d4d4df50db54b629256d8d33f9637c457c669d874685dd5218f96d0a2dbb16b5c77cca67480e2bc485b3aca6fdd100f615b4bd00004910d2ce3