From 567dd7236ade19a620a735fba34485a840989fdb Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 30 Aug 2023 19:50:43 +0200 Subject: [PATCH] Initial import (#2228213) --- .gitignore | 1 + README.md | 3 -- rust-gix-hashtable.spec | 70 +++++++++++++++++++++++++++++++++++++++++ rust2rpm.conf | 2 ++ sources | 1 + 5 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-gix-hashtable.spec create mode 100644 rust2rpm.conf create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..75fda86 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-hashtable-0.2.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index bd72f51..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-hashtable - -The rust-gix-hashtable package diff --git a/rust-gix-hashtable.spec b/rust-gix-hashtable.spec new file mode 100644 index 0000000..e3babce --- /dev/null +++ b/rust-gix-hashtable.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-hashtable + +Name: rust-gix-hashtable +Version: 0.2.4 +Release: %autorelease +Summary: Hashtable based data structures optimized to utilize ObjectId keys + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-hashtable +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A crate that provides hashtable based data structures optimized to +utilize ObjectId keys.} + +%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 +%{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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..4dbb66d --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Hashtable based data structures optimized to utilize ObjectId keys diff --git a/sources b/sources new file mode 100644 index 0000000..48602b6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-hashtable-0.2.4.crate) = eb1fab06329343ce88b707a37c806578aa03059d47a950c98b59c6fe2652de51a923ca554f4a33d02521a4362b5a12f6cfe9cd4c7781dc283374134b3b046c30