diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e93af2b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/smawk-0.3.0.crate diff --git a/rust-smawk.spec b/rust-smawk.spec new file mode 100644 index 0000000..7c33b98 --- /dev/null +++ b/rust-smawk.spec @@ -0,0 +1,87 @@ +# Generated by rust2rpm 16 +%bcond_without check +%global debug_package %{nil} + +%global crate smawk + +Name: rust-%{crate} +Version: 0.3.0 +Release: 1%{?dist} +Summary: Functions for finding row-minima in a totally monotone matrix + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/smawk +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Functions for finding row-minima in a totally monotone matrix.} + +%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 +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 + +%package -n %{name}+ndarray-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ndarray-devel %{_description} + +This package contains library source intended for building other packages +which use "ndarray" feature of "%{crate}" crate. + +%files -n %{name}+ndarray-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 +* Sun Dec 27 14:56:50 CET 2020 Igor Raits - 0.3.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..bd19a05 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (smawk-0.3.0.crate) = 374f6e5c99f275d37d8ce8e49021ffcc71842a6e2678cd428652e57f6d7cd0041d9f52c6bf5ba238d3c1325a9a218309aaeaf1e86694210c7c9e678bb91d9473