summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoohyun Jung <wh0705.jung@samsung.com>2023-03-14 19:20:09 +0900
committerWoohyun Jung <wh0705.jung@samsung.com>2023-03-14 19:20:09 +0900
commita90ee5e2583ea6791d17c894b60894340eea1788 (patch)
treedf224af93ae9be39115d2cb943b510d3ff25fcfb
parent6fa20a0d535bce61f979c2e218a13361e12a7249 (diff)
downloadrust-crc32fast-a90ee5e2583ea6791d17c894b60894340eea1788.tar.gz
rust-crc32fast-a90ee5e2583ea6791d17c894b60894340eea1788.tar.bz2
rust-crc32fast-a90ee5e2583ea6791d17c894b60894340eea1788.zip
Bump to rust-crc32fast 1.3.2
-rw-r--r--packaging/rust-crc32fast.manifest5
-rw-r--r--packaging/rust-crc32fast.spec73
2 files changed, 78 insertions, 0 deletions
diff --git a/packaging/rust-crc32fast.manifest b/packaging/rust-crc32fast.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/rust-crc32fast.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/rust-crc32fast.spec b/packaging/rust-crc32fast.spec
new file mode 100644
index 0000000..94ef6a2
--- /dev/null
+++ b/packaging/rust-crc32fast.spec
@@ -0,0 +1,73 @@
+# Generated by rust2rpm 23
+%global _rpm_strip_disable 1
+%global debug_package %{nil}
+
+%global crate crc32fast
+%global real_crate_name crc32fast
+%global rustc_edition 2015
+
+Name: rust-crc32fast
+Version: 1.3.2
+Release: 1
+Summary: Fast, SIMD-accelerated CRC32 (IEEE) checksum computation
+
+License: MIT OR Apache-2.0
+URL: https://crates.io/crates/crc32fast
+Source: %{crate}-%{version}.tar.gz
+Source1: %{name}.manifest
+
+# ==========================================================
+# BuildRequires
+# specifies build-time dependencies for the package
+# ==========================================================
+BuildRequires: rust
+BuildRequires: rust-cfg-if
+
+# ==========================================================
+# dev-dependencies
+# ==========================================================
+# BuildRequires: rust-bencher
+# BuildRequires: rust-quickcheck
+# BuildRequires: rust-rand
+
+
+%description
+Fast, SIMD-accelerated CRC32 (IEEE) checksum computation.
+
+%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"' \
+ --extern cfg_if=%{_rust_dylibdir}/libcfg_if.so \
+ ./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