From 9c0080f95de959164d6d20593f76f6d4e44f4446 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 8 Aug 2023 13:32:59 +0200 Subject: [PATCH] Initial import (humansize 1 compat package) --- .gitignore | 1 + README.md | 3 -- rust-humansize1.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-humansize1.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..40a2862 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/humansize-1.1.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index c8b5ab8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-humansize1 - -The rust-humansize1 package diff --git a/rust-humansize1.spec b/rust-humansize1.spec new file mode 100644 index 0000000..71c2217 --- /dev/null +++ b/rust-humansize1.spec @@ -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 diff --git a/sources b/sources new file mode 100644 index 0000000..eadd79b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (humansize-1.1.1.crate) = 90b25500014d7ff541b6feb496ebb25ffbf0bbdfc3ea80ce3b3a1597d08c2cea9b967c674e261d3c8c3587d3481da8d899cc5e3fb05b22c55f90e178508ebeff