From d32ab3565bc1074433f76cbeb75b199e86e418e5 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Wed, 26 Apr 2023 15:29:30 +0900 Subject: Bump to rust-serde_bytes 0.11.9 --- packaging/rust-serde_bytes.manifest | 5 +++ packaging/rust-serde_bytes.spec | 73 +++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 packaging/rust-serde_bytes.manifest create mode 100644 packaging/rust-serde_bytes.spec diff --git a/packaging/rust-serde_bytes.manifest b/packaging/rust-serde_bytes.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/rust-serde_bytes.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/rust-serde_bytes.spec b/packaging/rust-serde_bytes.spec new file mode 100644 index 0000000..4993321 --- /dev/null +++ b/packaging/rust-serde_bytes.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 23 +%global _rpm_strip_disable 1 +%global debug_package %{nil} + +%global crate serde_bytes +%global real_crate_name serde_bytes +%global rustc_edition 2018 + +Name: rust-serde_bytes +Version: 0.11.9 +Release: 1 +Summary: Optimized handling of `&[u8]` and `Vec` for Serde + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/serde_bytes +Source: %{crate}-%{version}.tar.gz +Source1: %{name}.manifest + +# ========================================================== +# BuildRequires +# specifies build-time dependencies for the package +# ========================================================== +BuildRequires: rust +BuildRequires: rust-serde + +# ========================================================== +# dev-dependencies +# ========================================================== +# BuildRequires: rust-bincode +# BuildRequires: rust-serde_derive +# BuildRequires: rust-serde_test + + +%description +Optimized handling of `&[u8]` and `Vec` for Serde. + +%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}} \ + %rust_dylib_extern serde \ + --cfg='feature="std"' \ + ./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 -- cgit v1.2.3