Initial Fedora package

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9
Michel Alexandre Salim 2 years ago
parent 96d594e64d
commit 1dd38fb7c0
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

1
.gitignore vendored

@ -0,0 +1 @@
/lru-0.9.0.crate

@ -0,0 +1,81 @@
# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate lru
Name: rust-lru
Version: 0.9.0
Release: %autorelease
Summary: LRU cache implementation
License: MIT
URL: https://crates.io/crates/lru
Source: %{crates_source}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
LRU cache implementation.}
%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}/CHANGELOG.md
%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
%package -n %{name}+hashbrown-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+hashbrown-devel %{_description}
This package contains library source intended for building other packages which
use the "hashbrown" feature of the "%{crate}" crate.
%files -n %{name}+hashbrown-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,3 @@
[DEFAULT]
unwanted-features =
nightly

@ -0,0 +1 @@
SHA512 (lru-0.9.0.crate) = ed9292dfbc8b0d5ab4a2c798056b729c7e70afb57c39b3f56c82935c1faa5a345a08ec5399048c747ec7db548615a3661463d4deb687af80066e0444af3dc18d
Loading…
Cancel
Save