Initial import (humansize 1 compat package)

epel9 imports/e9/rust-humansize1-1.1.1-1.el9
Fabio Valentini 1 year ago
parent 1dcd43154c
commit 9c0080f95d
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/humansize-1.1.1.crate

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

@ -0,0 +1,71 @@
# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate humansize
Name: rust-humansize1
Version: 1.1.1
Release: %autorelease
Summary: Configurable crate to easily represent file sizes in a human-readable format
# Upstream license specification: MIT/Apache-2.0
License: MIT OR Apache-2.0
URL: https://crates.io/crates/humansize
Source: %{crates_source}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
A configurable crate to easily represent file sizes in a human-readable
format.}
%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-APACHE
%license %{crate_instdir}/LICENSE-MIT
%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 (humansize-1.1.1.crate) = 90b25500014d7ff541b6feb496ebb25ffbf0bbdfc3ea80ce3b3a1597d08c2cea9b967c674e261d3c8c3587d3481da8d899cc5e3fb05b22c55f90e178508ebeff
Loading…
Cancel
Save