diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-04-14 16:06:25 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-04-14 16:06:25 +0900 |
commit | d060cd771c3d64db052ae9bf6549249112157277 (patch) | |
tree | 4ba1ce169f999f839597c5e56bd4691c9e9e0819 | |
parent | bcec7ba2a9769f10561b5c133adcdc188a02d970 (diff) | |
download | rust-easy-parallel-d060cd771c3d64db052ae9bf6549249112157277.tar.gz rust-easy-parallel-d060cd771c3d64db052ae9bf6549249112157277.tar.bz2 rust-easy-parallel-d060cd771c3d64db052ae9bf6549249112157277.zip |
Bump to rust-easy-parallel 3.3.0
-rw-r--r-- | packaging/rust-easy-parallel.manifest | 5 | ||||
-rw-r--r-- | packaging/rust-easy-parallel.spec | 64 |
2 files changed, 69 insertions, 0 deletions
diff --git a/packaging/rust-easy-parallel.manifest b/packaging/rust-easy-parallel.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/rust-easy-parallel.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/rust-easy-parallel.spec b/packaging/rust-easy-parallel.spec new file mode 100644 index 0000000..197cd7e --- /dev/null +++ b/packaging/rust-easy-parallel.spec @@ -0,0 +1,64 @@ +# Generated by rust2rpm 23 +%global _rpm_strip_disable 1 +%global debug_package %{nil} + +%global crate easy-parallel +%global real_crate_name easy_parallel +%global rustc_edition 2018 + +Name: rust-easy-parallel +Version: 3.3.0 +Release: 1 +Summary: Run closures in parallel + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/easy-parallel +Source: %{crate}-%{version}.tar.gz +Source1: %{name}.manifest + +# ========================================================== +# BuildRequires +# specifies build-time dependencies for the package +# ========================================================== +BuildRequires: rust + + + +%description +Run closures in parallel. + +%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-APACHE +%license LICENSE-MIT +%{_rust_dylibdir}/lib%{real_crate_name}.so |