From c98461d1d8a7b74bf4a8a8b3538b181f14cb7c7a Mon Sep 17 00:00:00 2001 From: blinxen Date: Mon, 5 Jun 2023 00:45:59 +0200 Subject: [PATCH] Initial package --- .gitignore | 1 + rust-btoi.spec | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 83 insertions(+) create mode 100644 .gitignore create mode 100644 rust-btoi.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..472430c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/btoi-0.4.3.crate diff --git a/rust-btoi.spec b/rust-btoi.spec new file mode 100644 index 0000000..30516c0 --- /dev/null +++ b/rust-btoi.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate btoi + +Name: rust-btoi +Version: 0.4.3 +Release: %autorelease +Summary: Parse integers directly from ASCII byte slices + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/btoi +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Parse integers directly from ASCII byte slices.} + +%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}+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_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..5e66c24 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (btoi-0.4.3.crate) = 35d54183a37c8adb11838724a061b38d286a92603a557ee8b4b80dd230649a0ceb165fcab4b6e41402284f2153e18fad5c246f83d99accb2fdaa8f32f854bd22