summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2023-04-26 15:29:30 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2023-04-26 15:29:30 +0900
commitd32ab3565bc1074433f76cbeb75b199e86e418e5 (patch)
treebdf56d0003c2757cbca0e353e83647eb02605ff0
parent17a5b5d427ccda706b7ccf57af1cd5c04ced079b (diff)
downloadrust-serde_bytes-d32ab3565bc1074433f76cbeb75b199e86e418e5.tar.gz
rust-serde_bytes-d32ab3565bc1074433f76cbeb75b199e86e418e5.tar.bz2
rust-serde_bytes-d32ab3565bc1074433f76cbeb75b199e86e418e5.zip
Bump to rust-serde_bytes 0.11.9
-rw-r--r--packaging/rust-serde_bytes.manifest5
-rw-r--r--packaging/rust-serde_bytes.spec73
2 files changed, 78 insertions, 0 deletions
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 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
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<u8>` 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<u8>` 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