From e7e66639750ecd73954a36f9e936f1c7f7550eea Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Fri, 28 Feb 2020 19:50:56 +0100 Subject: [PATCH] Initial package Signed-off-by: Igor Raits --- .gitignore | 1 + rust-quickcheck_macros.spec | 74 +++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 76 insertions(+) create mode 100644 .gitignore create mode 100644 rust-quickcheck_macros.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..610e6be --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/quickcheck_macros-0.9.1.crate diff --git a/rust-quickcheck_macros.spec b/rust-quickcheck_macros.spec new file mode 100644 index 0000000..89b13c8 --- /dev/null +++ b/rust-quickcheck_macros.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate quickcheck_macros + +Name: rust-%{crate} +Version: 0.9.1 +Release: 1%{?dist} +Summary: Macro attribute for quickcheck + +# Upstream license specification: Unlicense/MIT +# https://github.com/BurntSushi/quickcheck/issues/258 +License: Unlicense or MIT +URL: https://crates.io/crates/quickcheck_macros +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Macro attribute for quickcheck.} + +%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 +%{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 +* Fri Feb 28 19:39:11 CET 2020 Igor Raits - 0.9.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..c1f1635 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (quickcheck_macros-0.9.1.crate) = 1b014d1b6c8f8e97dbf00eef7b1bcb78605db609f0878ee9337644cb47d9cad9fd35f6db8475ad840cd172de65b3f448616f407b9b2fa1a7e775992dd3c762d9