1 # Generated by rust2rpm 23
2 %global _rpm_strip_disable 1
3 %global debug_package %{nil}
6 %global real_crate_name seahash
7 %global rustc_edition 2015
12 Summary: Blazingly fast, portable hash function with proven statistical guarantees
15 URL: https://crates.io/crates/seahash
16 Source: %{crate}-%{version}.tar.gz
17 Source1: %{name}.manifest
20 # ==========================================================
22 # specifies build-time dependencies for the package
23 # ==========================================================
26 # ==========================================================
28 # ==========================================================
29 # BuildRequires: rust-criterion
30 # BuildRequires: rust-quickcheck
34 Blazingly fast, portable hash function with proven statistical guarantees.
41 # ==========================================================
43 # crate-type : dylib, proc-macro, cdylib, bin, etc.
44 # ==========================================================
46 %{rustc_std_build} --crate-type=dylib \
47 --crate-name=%{real_crate_name} \
48 %{?rustc_edition:--edition=%{rustc_edition}} \
49 --cfg='feature="use_std"' \
52 # ==========================================================
54 # ==========================================================
56 install -d -m 0755 %{buildroot}%{_rust_dylibdir}
57 install -m 0644 lib%{real_crate_name}.so %{buildroot}/%{_rust_dylibdir}/lib%{real_crate_name}.so
61 %{rustc_std_build} --test --crate-type=dylib \
62 --crate-name=%{real_crate_name} \
63 %{?rustc_edition:--edition=%{rustc_edition}} \
64 --cfg='feature="use_std"' \
72 %post -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
76 # ==========================================================
78 # ==========================================================
80 %manifest %{name}.manifest
82 %{_rust_dylibdir}/lib%{real_crate_name}.so