From: DongHun Kwak Date: Thu, 6 Apr 2023 07:16:58 +0000 (+0900) Subject: Bump to rust-qoi 0.4.1 X-Git-Tag: accepted/tizen/rust/20231016.021722^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=383e8d12651651decf35b78581a1e61c6481d820;p=platform%2Fupstream%2Frust-qoi.git Bump to rust-qoi 0.4.1 --- diff --git a/packaging/rust-qoi.manifest b/packaging/rust-qoi.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/rust-qoi.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/rust-qoi.spec b/packaging/rust-qoi.spec new file mode 100644 index 0000000..43e7df4 --- /dev/null +++ b/packaging/rust-qoi.spec @@ -0,0 +1,77 @@ +# Generated by rust2rpm 23 +%global _rpm_strip_disable 1 +%global debug_package %{nil} + +%global crate qoi +%global real_crate_name qoi +%global rustc_edition 2021 + +Name: rust-qoi +Version: 0.4.1 +Release: 1 +Summary: VERY fast encoder/decoder for QOI (Quite Okay Image) format + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/qoi +Source: %{crate}-%{version}.tar.gz +Source1: %{name}.manifest + +# ========================================================== +# BuildRequires +# specifies build-time dependencies for the package +# ========================================================== +BuildRequires: rust +BuildRequires: rust-bytemuck + +Requires: rust-bytemuck +# ========================================================== +# dev-dependencies +# ========================================================== +# BuildRequires: rust-anyhow +# BuildRequires: rust-cfg-if +# BuildRequires: rust-png +# BuildRequires: rust-rand +# BuildRequires: rust-walkdir + + +%description +VERY fast encoder/decoder for QOI (Quite Okay Image) format. + +%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"' \ + %rust_dylib_extern bytemuck \ + ./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