From 500be8b5cfbe484c3a5cc39be47100956e555f6a Mon Sep 17 00:00:00 2001 From: blinxen Date: Thu, 28 Sep 2023 00:03:09 +0200 Subject: [PATCH] Initial package (rhbz#2241010) --- .gitignore | 1 + README.md | 3 --- rust-clru.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-clru.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d71a9e8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/clru-0.6.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index aaec328..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-clru - -The rust-clru package diff --git a/rust-clru.spec b/rust-clru.spec new file mode 100644 index 0000000..5bf05f1 --- /dev/null +++ b/rust-clru.spec @@ -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 diff --git a/sources b/sources new file mode 100644 index 0000000..d0a1e3f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (clru-0.6.1.crate) = bb9303ea245e3df6321bbf3c4cf9f899648067f8d3950638387badc79ab37e7570ee73c90af96dfe4eefc004d116c5fc77cc8d89a2809defa2107cde530cd192