diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5bb2e7c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/simd_helpers-0.1.0.crate diff --git a/rust-simd_helpers.spec b/rust-simd_helpers.spec new file mode 100644 index 0000000..22abf7a --- /dev/null +++ b/rust-simd_helpers.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 10 +%bcond_without check +%global debug_package %{nil} + +%global crate simd_helpers + +Name: rust-%{crate} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Helpers to write more compact simd code + +# Upstream license specification: MIT +# https://github.com/lu-zero/simd_helpers/pull/1 +License: MIT +URL: https://crates.io/crates/simd_helpers +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Helpers to write more compact simd code.} + +%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}/ + +%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}/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 +* Fri Dec 06 23:12:26 CET 2019 Robert-André Mauchin - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..3d244cf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (simd_helpers-0.1.0.crate) = 20577ab7615f955ee3a88c617630fc6c88703d455629d5b3838a551baebbeae8c64a2587871ec5a4fb6bc203945cace50593a238e4765b5fa2313bac30237ca7