From: Woohyun Jung Date: Fri, 17 Mar 2023 06:36:46 +0000 (+0900) Subject: Bump to rust-smawk 0.3.1 X-Git-Tag: accepted/tizen/rust/20231016.021939~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b27c5aac98114ecf58febf0b0acf9dd4c600f3c;p=platform%2Fupstream%2Frust-smawk.git Bump to rust-smawk 0.3.1 --- diff --git a/packaging/rust-smawk.manifest b/packaging/rust-smawk.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/rust-smawk.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/rust-smawk.spec b/packaging/rust-smawk.spec new file mode 100644 index 0000000..cfe757e --- /dev/null +++ b/packaging/rust-smawk.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 23 +%global _rpm_strip_disable 1 +%global debug_package %{nil} + +%global crate smawk +%global real_crate_name smawk +%global rustc_edition 2018 + +Name: rust-smawk +Version: 0.3.1 +Release: 1 +Summary: Functions for finding row-minima in a totally monotone matrix + +License: MIT +URL: https://crates.io/crates/smawk +Source: %{crate}-%{version}.tar.gz +Source1: %{name}.manifest + +# ========================================================== +# BuildRequires +# specifies build-time dependencies for the package +# ========================================================== +BuildRequires: rust +#BuildRequires: rust-ndarray #optional - for "ndarray" feature + +# ========================================================== +# dev-dependencies +# ========================================================== +# BuildRequires: rust-num-traits +# BuildRequires: rust-rand +# BuildRequires: rust-rand_chacha +# BuildRequires: rust-version-sync + + +%description +Functions for finding row-minima in a totally monotone matrix. + +%prep +%setup -q +cp %{SOURCE1} . + +# ========================================================== +# build section +# crate-type : dylib, proc-macro, cdylib, bin, etc. +# ========================================================== +%build +%{rustc_std_build} --crate-type=dylib \ + --crate-name=%{real_crate_name} \ + %{?rustc_edition:--edition=%{rustc_edition}} \ + ./src/lib.rs + +# ========================================================== +# install section +# ========================================================== +%install +install -d -m 0755 %{buildroot}%{_rust_dylibdir} +install -m 0644 lib%{real_crate_name}.so %{buildroot}/%{_rust_dylibdir}/lib%{real_crate_name}.so + +%clean + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +# ========================================================== +# files section +# ========================================================== +%files +%manifest %{name}.manifest +%license LICENSE +%{_rust_dylibdir}/lib%{real_crate_name}.so