From 43967bf023147e878d8a3820dfd163088453b8d5 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Thu, 10 Nov 2022 17:14:42 -0700 Subject: [PATCH] Initial import --- .gitignore | 1 + rust-rustfft.spec | 107 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 109 insertions(+) create mode 100644 .gitignore create mode 100644 rust-rustfft.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..da04346 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rustfft-6.1.0.crate diff --git a/rust-rustfft.spec b/rust-rustfft.spec new file mode 100644 index 0000000..1eb2c24 --- /dev/null +++ b/rust-rustfft.spec @@ -0,0 +1,107 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate rustfft + +Name: rust-rustfft +Version: 6.1.0 +Release: %autorelease +Summary: High-performance FFT library written in pure Rust + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/rustfft +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +High-performance FFT library written in pure Rust.} + +%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 +%doc %{crate_instdir}/UpgradeGuide4to5.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}+avx-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+avx-devel %{_description} + +This package contains library source intended for building other packages which +use the "avx" feature of the "%{crate}" crate. + +%files -n %{name}+avx-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+neon-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+neon-devel %{_description} + +This package contains library source intended for building other packages which +use the "neon" feature of the "%{crate}" crate. + +%files -n %{name}+neon-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+sse-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+sse-devel %{_description} + +This package contains library source intended for building other packages which +use the "sse" feature of the "%{crate}" crate. + +%files -n %{name}+sse-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..820bfae --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rustfft-6.1.0.crate) = 7ca5a3c388ce17f0c05b1454d7f2ffeeaa626272fa7af202e75c2cf5a0b89f46d25447c3d04b5700c447050ac8e12f2bd575b5cc53c38ff5294326317c8bc2c6