From db7814fd4dbb7aab28a018c99ffdb2d2c804d382 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 28 Apr 2023 21:47:16 +0200 Subject: [PATCH] Initial import (#2186546) --- .gitignore | 1 + README.md | 3 --- rust-enumber.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-enumber.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..138d0e0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/enumber-0.3.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 48c9079..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-enumber - -The rust-enumber package diff --git a/rust-enumber.spec b/rust-enumber.spec new file mode 100644 index 0000000..782ea83 --- /dev/null +++ b/rust-enumber.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate enumber + +Name: rust-enumber +Version: 0.3.0 +Release: %autorelease +Summary: Provide useful impls on numerical enums + +License: BSD-3-Clause +URL: https://crates.io/crates/enumber +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Provide useful impls on numerical enums.} + +%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}/COPYING +%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..e0a5516 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (enumber-0.3.0.crate) = f7f8c9049e757fed1481f08c8493d898cc3d2f8303b482a988d69f4a126a4e532648cce44b453119b5ccf3e71dae7b698fa63bab00844849cf42c46fa968a2ad