From: DongHun Kwak Date: Wed, 8 Mar 2023 00:17:19 +0000 (+0900) Subject: Bump to rust-bytes 1.4.0 X-Git-Tag: accepted/tizen/rust/20231016.020927~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=160592bea4687e091c55504bf0655b3256d90181;p=platform%2Fupstream%2Frust-bytes.git Bump to rust-bytes 1.4.0 --- diff --git a/packaging/rust-bytes.manifest b/packaging/rust-bytes.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/rust-bytes.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/rust-bytes.spec b/packaging/rust-bytes.spec new file mode 100644 index 0000000..11f5908 --- /dev/null +++ b/packaging/rust-bytes.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 23 +%global _rpm_strip_disable 1 +%global debug_package %{nil} + +%global crate bytes +%global real_crate_name bytes +%global rustc_edition 2018 + +Name: rust-bytes +Version: 1.4.0 +Release: 1 +Summary: Types and traits for working with bytes + +License: MIT +URL: https://crates.io/crates/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-serde_test + + +%description +Types and traits for working with bytes. + +%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="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 +%{_rust_dylibdir}/lib%{real_crate_name}.so