diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..059529b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/seahash-3.0.7.crate diff --git a/README.md b/README.md deleted file mode 100644 index ed4cb16..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-seahash3 - -The rust-seahash3 package diff --git a/rust-seahash3.spec b/rust-seahash3.spec new file mode 100644 index 0000000..9c8397e --- /dev/null +++ b/rust-seahash3.spec @@ -0,0 +1,76 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate seahash + +Name: rust-%{crate}3 +Version: 3.0.7 +Release: 1%{?dist} +Summary: Blazingly fast, portable hash function with proven statistical guarantees + +# Upstream license specification: MIT +# https://github.com/redox-os/tfs/pull/76 +License: MIT +URL: https://crates.io/crates/seahash +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Blazingly fast, portable hash function with proven statistical guarantees.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/logo.png + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +* Sat May 01 2021 Fabio Valentini - 3.0.7-1 +- Initial compat package for seahash 3 diff --git a/sources b/sources new file mode 100644 index 0000000..d30e0b1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (seahash-3.0.7.crate) = 03e78c8669c2a20c223772f63df943b173598d8f4714a7bc399c97bd3ec091eda1b5f12dd11f821f45e5178927a4f7621911dc228f5ab5f52f28f9eed12d13c0