From 38f39fa99728035a909d542b299cedf167246fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lauzier?= Date: Fri, 18 Jun 2021 17:04:53 -0400 Subject: [PATCH] Initial import --- .gitignore | 1 + rust-matrixcompare-core.spec | 74 ++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 76 insertions(+) create mode 100644 .gitignore create mode 100644 rust-matrixcompare-core.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..04f9025 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/matrixcompare-core-0.1.0.crate diff --git a/rust-matrixcompare-core.spec b/rust-matrixcompare-core.spec new file mode 100644 index 0000000..cdf6b75 --- /dev/null +++ b/rust-matrixcompare-core.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate matrixcompare-core + +Name: rust-%{crate} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Core traits for matrixcompare + +# Upstream license specification: MIT +# https://github.com/Andlon/matrixcompare/issues/7 +License: MIT +URL: https://crates.io/crates/matrixcompare-core +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Core traits for matrixcompare.} + +%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 +* Sun Jun 13 23:30:16 EDT 2021 RĂ©mi Lauzier - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..105c399 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (matrixcompare-core-0.1.0.crate) = d9e50370b03677dc445b079f57b55186d918f6e9e396599345a169e3849ae2c6e7d58352b5911f741e02d1047834b004a870806f63556ccd3bcf6ce757d33a05