summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoohyun Jung <wh0705.jung@samsung.com>2023-03-13 18:03:25 +0900
committerWoohyun Jung <wh0705.jung@samsung.com>2023-03-13 18:03:25 +0900
commite517b230e33ea0447e227bec9905e4db41e8c874 (patch)
tree8b57f5984ca12ab2d76a57fa5b3e051e7b804bd1
parent33e93bd82ca68d244bcb90c150b8cdeec801edc0 (diff)
downloadrust-byteorder-e517b230e33ea0447e227bec9905e4db41e8c874.tar.gz
rust-byteorder-e517b230e33ea0447e227bec9905e4db41e8c874.tar.bz2
rust-byteorder-e517b230e33ea0447e227bec9905e4db41e8c874.zip
Bump to rust-byteorder 1.4.3
-rw-r--r--packaging/rust-byteorder.manifest5
-rw-r--r--packaging/rust-byteorder.spec69
2 files changed, 74 insertions, 0 deletions
diff --git a/packaging/rust-byteorder.manifest b/packaging/rust-byteorder.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/rust-byteorder.manifest
@@ -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
index 0000000..9225fe6
--- /dev/null
+++ b/packaging/rust-byteorder.spec
@@ -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