Bump to rust-byteorder 1.4.3
authorWoohyun Jung <wh0705.jung@samsung.com>
Mon, 13 Mar 2023 09:03:25 +0000 (18:03 +0900)
committerWoohyun Jung <wh0705.jung@samsung.com>
Mon, 13 Mar 2023 09:03:25 +0000 (18:03 +0900)
packaging/rust-byteorder.manifest [new file with mode: 0644]
packaging/rust-byteorder.spec [new file with mode: 0644]

diff --git a/packaging/rust-byteorder.manifest b/packaging/rust-byteorder.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/rust-byteorder.spec b/packaging/rust-byteorder.spec
new file mode 100644 (file)
index 0000000..9225fe6
--- /dev/null
@@ -0,0 +1,69 @@
+# Generated by rust2rpm 23
+%global _rpm_strip_disable 1
+%global debug_package %{nil}
+
+%global crate byteorder
+%global real_crate_name byteorder
+%global rustc_edition 2018
+
+Name:           rust-byteorder
+Version:        1.4.3
+Release:        1
+Summary:        Library for reading/writing numbers in big-endian and little-endian
+
+License:        Unlicense OR MIT
+URL:            https://crates.io/crates/byteorder
+Source:         %{crate}-%{version}.tar.gz
+Source1:        %{name}.manifest
+
+# ==========================================================
+# BuildRequires
+# specifies build-time dependencies for the package
+# ==========================================================
+BuildRequires:  rust
+
+# ==========================================================
+# dev-dependencies
+# ==========================================================
+# BuildRequires:  rust-quickcheck 
+# BuildRequires:  rust-rand 
+
+
+%description
+Library for reading/writing numbers in big-endian and little-endian.
+
+%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}} \
+        ./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 UNLICENSE
+%license LICENSE-MIT
+%{_rust_dylibdir}/lib%{real_crate_name}.so