Initial import; Fixes RHBZ#1981583

epel9
Rémi Lauzier 3 years ago
parent 0d48a68ef4
commit 9b95736206
No known key found for this signature in database
GPG Key ID: D4B9ECD143336C1D

1
.gitignore vendored

@ -0,0 +1 @@
/crc-catalog-2.0.1.crate

@ -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

@ -0,0 +1 @@
SHA512 (crc-catalog-2.0.1.crate) = e4a725615461ead03ad20de99c52d18c29d56ad236bf9f99e54a5b45890cb318c15ae2c1ecb05acc145507fc1e0c73c1be868a22d5d6a6e9ccbeff4e0f60f1e0
Loading…
Cancel
Save