Blame rust-matrixmultiply.spec

effec25
# Generated by rust2rpm 24
3973755
%bcond_without check
a337d67
%global debug_package %{nil}
a337d67
a337d67
%global crate matrixmultiply
a337d67
effec25
Name:           rust-matrixmultiply
0bcede1
Version:        0.3.8
69ca665
Release:        %autorelease
66d3768
Summary:        General matrix multiplication for f32 and f64 matrices
a337d67
a337d67
# Upstream license specification: MIT/Apache-2.0
effec25
License:        MIT OR Apache-2.0
a337d67
URL:            https://crates.io/crates/matrixmultiply
66d3768
Source:         %{crates_source}
232e441
# Manually created patch for downstream crate metadata changes
232e441
# * exclude extraneous unused source files
232e441
Patch:          matrixmultiply-fix-metadata.diff
a337d67
9541dcc
BuildRequires:  rust-packaging >= 21
a337d67
3973755
%global _description %{expand:
effec25
General matrix multiplication for f32 and f64 matrices. Operates on
effec25
matrices with general layout (they can use arbitrary row and column
effec25
stride). Detects and uses AVX or SSE2 on x86 platforms transparently for
effec25
higher performance. Uses a microkernel strategy, so that the
effec25
implementation is easy to parallelize and optimize. Supports
effec25
multithreading.}
94b253e
94b253e
%description %{_description}
a337d67
a337d67
%package        devel
a337d67
Summary:        %{summary}
a337d67
BuildArch:      noarch
a337d67
94b253e
%description    devel %{_description}
a337d67
9541dcc
This package contains library source intended for building other packages which
9541dcc
use the "%{crate}" crate.
94b253e
94b253e
%files          devel
9541dcc
%license %{crate_instdir}/LICENSE-APACHE
9541dcc
%license %{crate_instdir}/LICENSE-MIT
9541dcc
%doc %{crate_instdir}/README.rst
9541dcc
%{crate_instdir}/
94b253e
94b253e
%package     -n %{name}+default-devel
94b253e
Summary:        %{summary}
94b253e
BuildArch:      noarch
94b253e
94b253e
%description -n %{name}+default-devel %{_description}
94b253e
9541dcc
This package contains library source intended for building other packages which
9541dcc
use the "default" feature of the "%{crate}" crate.
94b253e
94b253e
%files       -n %{name}+default-devel
9541dcc
%ghost %{crate_instdir}/Cargo.toml
9541dcc
9541dcc
%package     -n %{name}+cgemm-devel
9541dcc
Summary:        %{summary}
9541dcc
BuildArch:      noarch
9541dcc
9541dcc
%description -n %{name}+cgemm-devel %{_description}
9541dcc
9541dcc
This package contains library source intended for building other packages which
9541dcc
use the "cgemm" feature of the "%{crate}" crate.
9541dcc
9541dcc
%files       -n %{name}+cgemm-devel
9541dcc
%ghost %{crate_instdir}/Cargo.toml
9541dcc
9541dcc
%package     -n %{name}+constconf-devel
9541dcc
Summary:        %{summary}
9541dcc
BuildArch:      noarch
9541dcc
9541dcc
%description -n %{name}+constconf-devel %{_description}
9541dcc
9541dcc
This package contains library source intended for building other packages which
9541dcc
use the "constconf" feature of the "%{crate}" crate.
9541dcc
9541dcc
%files       -n %{name}+constconf-devel
9541dcc
%ghost %{crate_instdir}/Cargo.toml
f72aa1d
ba37b0c
%package     -n %{name}+num_cpus-devel
ba37b0c
Summary:        %{summary}
ba37b0c
BuildArch:      noarch
ba37b0c
ba37b0c
%description -n %{name}+num_cpus-devel %{_description}
ba37b0c
9541dcc
This package contains library source intended for building other packages which
9541dcc
use the "num_cpus" feature of the "%{crate}" crate.
ba37b0c
ba37b0c
%files       -n %{name}+num_cpus-devel
9541dcc
%ghost %{crate_instdir}/Cargo.toml
ba37b0c
ba37b0c
%package     -n %{name}+once_cell-devel
ba37b0c
Summary:        %{summary}
ba37b0c
BuildArch:      noarch
ba37b0c
ba37b0c
%description -n %{name}+once_cell-devel %{_description}
ba37b0c
9541dcc
This package contains library source intended for building other packages which
9541dcc
use the "once_cell" feature of the "%{crate}" crate.
ba37b0c
ba37b0c
%files       -n %{name}+once_cell-devel
9541dcc
%ghost %{crate_instdir}/Cargo.toml
ba37b0c
f72aa1d
%package     -n %{name}+std-devel
f72aa1d
Summary:        %{summary}
f72aa1d
BuildArch:      noarch
f72aa1d
f72aa1d
%description -n %{name}+std-devel %{_description}
f72aa1d
9541dcc
This package contains library source intended for building other packages which
9541dcc
use the "std" feature of the "%{crate}" crate.
f72aa1d
f72aa1d
%files       -n %{name}+std-devel
9541dcc
%ghost %{crate_instdir}/Cargo.toml
a337d67
ba37b0c
%package     -n %{name}+thread-tree-devel
ba37b0c
Summary:        %{summary}
ba37b0c
BuildArch:      noarch
ba37b0c
ba37b0c
%description -n %{name}+thread-tree-devel %{_description}
ba37b0c
9541dcc
This package contains library source intended for building other packages which
9541dcc
use the "thread-tree" feature of the "%{crate}" crate.
ba37b0c
ba37b0c
%files       -n %{name}+thread-tree-devel
9541dcc
%ghost %{crate_instdir}/Cargo.toml
ba37b0c
ba37b0c
%package     -n %{name}+threading-devel
ba37b0c
Summary:        %{summary}
ba37b0c
BuildArch:      noarch
ba37b0c
ba37b0c
%description -n %{name}+threading-devel %{_description}
ba37b0c
9541dcc
This package contains library source intended for building other packages which
9541dcc
use the "threading" feature of the "%{crate}" crate.
ba37b0c
ba37b0c
%files       -n %{name}+threading-devel
9541dcc
%ghost %{crate_instdir}/Cargo.toml
ba37b0c
a337d67
%prep
66d3768
%autosetup -n %{crate}-%{version_no_tilde} -p1
a337d67
%cargo_prep
a337d67
3973755
%generate_buildrequires
3973755
%cargo_generate_buildrequires
3973755
a337d67
%build
a337d67
%cargo_build
a337d67
a337d67
%install
a337d67
%cargo_install
a337d67
a337d67
%if %{with check}
a337d67
%check
a337d67
%cargo_test
a337d67
%endif
a337d67
a337d67
%changelog
69ca665
%autochangelog