Initial package (rhbz#2241010)

epel9 imports/e9/rust-clru-0.6.1-1.el9
blinxen 1 year ago
parent b82b3ab763
commit 500be8b5cf

1
.gitignore vendored

@ -0,0 +1 @@
/clru-0.6.1.crate

@ -1,3 +0,0 @@
# rust-clru
The rust-clru package

@ -0,0 +1,69 @@
# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate clru
Name: rust-clru
Version: 0.6.1
Release: %autorelease
Summary: LRU cache implementation with constant time operations and weighted semantic
License: MIT
URL: https://crates.io/crates/clru
Source: %{crates_source}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
An LRU cache implementation with constant time operations and weighted
semantic.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/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 (clru-0.6.1.crate) = bb9303ea245e3df6321bbf3c4cf9f899648067f8d3950638387badc79ab37e7570ee73c90af96dfe4eefc004d116c5fc77cc8d89a2809defa2107cde530cd192
Loading…
Cancel
Save