diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-05-08 15:21:04 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-05-08 15:21:04 +0900 |
commit | f99ebe4630957b0686641110a27d02177ef56d64 (patch) | |
tree | aecf8a2823a73f7fe664d4ce0149ec1351b82e3a | |
parent | 6cb3e87ba08da2306500bbded665a21ef44d97aa (diff) | |
download | rust-bit-set-f99ebe4630957b0686641110a27d02177ef56d64.tar.gz rust-bit-set-f99ebe4630957b0686641110a27d02177ef56d64.tar.bz2 rust-bit-set-f99ebe4630957b0686641110a27d02177ef56d64.zip |
Bump to rust-bit-set 0.5.3
-rw-r--r-- | packaging/rust-bit-set.manifest | 5 | ||||
-rw-r--r-- | packaging/rust-bit-set.spec | 71 |
2 files changed, 76 insertions, 0 deletions
diff --git a/packaging/rust-bit-set.manifest b/packaging/rust-bit-set.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/rust-bit-set.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/rust-bit-set.spec b/packaging/rust-bit-set.spec new file mode 100644 index 0000000..c952c3c --- /dev/null +++ b/packaging/rust-bit-set.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 23 +%global _rpm_strip_disable 1 +%global debug_package %{nil} + +%global crate bit-set +%global real_crate_name bit_set +%global rustc_edition 2015 + +Name: rust-bit-set +Version: 0.5.3 +Release: 1 +Summary: Set of bits + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/bit-set +Source: %{crate}-%{version}.tar.gz +Source1: %{name}.manifest + +# ========================================================== +# BuildRequires +# specifies build-time dependencies for the package +# ========================================================== +BuildRequires: rust +BuildRequires: rust-bit-vec + +# ========================================================== +# dev-dependencies +# ========================================================== +# BuildRequires: rust-rand + + +%description +Set of bits. + +%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"' \ + ./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 |