summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2023-04-07 11:13:17 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2023-04-07 11:13:17 +0900
commita41e9682eb595c90bf063330b474e9c06c950a26 (patch)
treed700d1d724f3eff8b089a5cdf94e7ed49d543022
parent28e1baacc2f4528665d47e8b556a26f164b6cdda (diff)
downloadrust-avif-serialize-a41e9682eb595c90bf063330b474e9c06c950a26.tar.gz
rust-avif-serialize-a41e9682eb595c90bf063330b474e9c06c950a26.tar.bz2
rust-avif-serialize-a41e9682eb595c90bf063330b474e9c06c950a26.zip
Bump to rust-avif-serialize 0.8.1
-rw-r--r--packaging/rust-avif-serialize.manifest5
-rw-r--r--packaging/rust-avif-serialize.spec71
2 files changed, 76 insertions, 0 deletions
diff --git a/packaging/rust-avif-serialize.manifest b/packaging/rust-avif-serialize.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/rust-avif-serialize.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/rust-avif-serialize.spec b/packaging/rust-avif-serialize.spec
new file mode 100644
index 0000000..7603d89
--- /dev/null
+++ b/packaging/rust-avif-serialize.spec
@@ -0,0 +1,71 @@
+# Generated by rust2rpm 23
+%global _rpm_strip_disable 1
+%global debug_package %{nil}
+
+%global crate avif-serialize
+%global real_crate_name avif_serialize
+%global rustc_edition 2021
+
+Name: rust-avif-serialize
+Version: 0.8.1
+Release: 1
+Summary: Minimal writer for AVIF header structure (MPEG/HEIF/MIAF/ISO-BMFF)
+
+License: BSD-3-Clause
+URL: https://crates.io/crates/avif-serialize
+Source: %{crate}-%{version}.tar.gz
+Source1: %{name}.manifest
+
+# ==========================================================
+# BuildRequires
+# specifies build-time dependencies for the package
+# ==========================================================
+BuildRequires: rust
+BuildRequires: rust-arrayvec
+
+Requires: rust-arrayvec
+
+# ==========================================================
+# dev-dependencies
+# ==========================================================
+# BuildRequires: rust-avif-parse
+
+
+%description
+Minimal writer for AVIF header structure (MPEG/HEIF/MIAF/ISO-BMFF).
+
+%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 arrayvec \
+ ./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