From: DongHun Kwak Date: Tue, 4 Apr 2023 01:51:48 +0000 (+0900) Subject: Bump to rust-zstd-safe 6.0.4 X-Git-Tag: accepted/tizen/rust/20231016.022303~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c7b1daffcbed3b6aad6280f21ae70cf6bd45b8f;p=platform%2Fupstream%2Frust-zstd-safe.git Bump to rust-zstd-safe 6.0.4 --- diff --git a/packaging/rust-zstd-safe.manifest b/packaging/rust-zstd-safe.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/rust-zstd-safe.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/rust-zstd-safe.spec b/packaging/rust-zstd-safe.spec new file mode 100644 index 0000000..c1d3ed7 --- /dev/null +++ b/packaging/rust-zstd-safe.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 23 +%global _rpm_strip_disable 1 +%global debug_package %{nil} + +%global crate zstd-safe +%global real_crate_name zstd_safe +%global rustc_edition 2018 + +Name: rust-zstd-safe +Version: 6.0.4 +Release: 1 +Summary: Safe low-level bindings for the zstd compression library + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/zstd-safe +Source: %{crate}-%{version}.tar.gz +Source1: %{name}.manifest + +# ========================================================== +# BuildRequires +# specifies build-time dependencies for the package +# ========================================================== +BuildRequires: rust +BuildRequires: rust-libc +BuildRequires: rust-zstd-sys + + + +%description +Safe low-level bindings for the zstd compression library. + +%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}} \ + --cfg='feature="arrays"' \ + %rust_dylib_extern libc \ + %rust_dylib_extern zstd_sys \ + ./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-2.0 +%license LICENSE.Mit +%{_rust_dylibdir}/lib%{real_crate_name}.so