From 9b95736206f1b3e13e77d725286563998344d1d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lauzier?= Date: Mon, 13 Dec 2021 14:31:05 -0500 Subject: [PATCH] Initial import; Fixes RHBZ#1981583 --- .gitignore | 1 + rust-crc-catalog.spec | 72 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 74 insertions(+) create mode 100644 .gitignore create mode 100644 rust-crc-catalog.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5483de8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/crc-catalog-2.0.1.crate diff --git a/rust-crc-catalog.spec b/rust-crc-catalog.spec new file mode 100644 index 0000000..2d186f0 --- /dev/null +++ b/rust-crc-catalog.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate crc-catalog + +Name: rust-%{crate} +Version: 2.0.1 +Release: %autorelease +Summary: Catalog of CRC algorithms expressed as simple structs + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/crc-catalog +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Catalog of CRC algorithms (generated from http://reveng.sourceforge.net/crc- +catalogue) expressed as simple Rust structs.} + +%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-APACHE LICENSE-MIT +%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 + +%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..a1732a8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (crc-catalog-2.0.1.crate) = e4a725615461ead03ad20de99c52d18c29d56ad236bf9f99e54a5b45890cb318c15ae2c1ecb05acc145507fc1e0c73c1be868a22d5d6a6e9ccbeff4e0f60f1e0