From 900bcff2357b3a84e49bd96f3e1c146739c7b4d2 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 24 Feb 2023 14:27:31 -0600 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-hash32.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 rust-hash32.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..618abbd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/hash32-0.2.1.crate diff --git a/rust-hash32.spec b/rust-hash32.spec new file mode 100644 index 0000000..1d07df8 --- /dev/null +++ b/rust-hash32.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate hash32 + +Name: rust-hash32 +Version: 0.2.1 +Release: %autorelease +Summary: 32-bit hashing machinery + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/hash32 +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +32-bit hashing machinery.} + +%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}/CHANGELOG.md +%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..e75bc8c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (hash32-0.2.1.crate) = e739445fb07403370fda110dc76b82046e5df0250a5e9898ccd0b33547972d26405527f3e3e9cddcd2caa775c8afcfbfc098cb995ab59c44aca642d6c539594f