diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2a6807b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/powerfmt-0.2.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 55a526d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-powerfmt - -The rust-powerfmt package diff --git a/rust-powerfmt.spec b/rust-powerfmt.spec new file mode 100644 index 0000000..694836f --- /dev/null +++ b/rust-powerfmt.spec @@ -0,0 +1,108 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate powerfmt + +Name: rust-powerfmt +Version: 0.2.0 +Release: %autorelease +Summary: Utilities for formatting values + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/powerfmt +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +`powerfmt` is a library that provides utilities for formatting values. +This crate makes it significantly easier to support filling to a +minimum width with alignment, avoid heap allocation, and avoid +repetitive calculations.} + +%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 + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+macros-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+macros-devel %{_description} + +This package contains library source intended for building other packages which +use the "macros" feature of the "%{crate}" crate. + +%files -n %{name}+macros-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -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/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..adb7491 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,2 @@ +[package] +summary = "Utilities for formatting values" diff --git a/sources b/sources new file mode 100644 index 0000000..80f6ff9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (powerfmt-0.2.0.crate) = 0623f92e4d6ab284b3f6dae58220d79d9185df4a738999d68040c50d72fe0380d70358cb622f079c629bab53bb03c6e085e165d5bddfbeea84245864fed90029