diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-03-21 13:18:50 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2023-03-21 13:18:50 +0900 |
commit | b435c1b6af398949d28ec7b712f1b1eaa705ba12 (patch) | |
tree | 0e96da403f039f7db77fa643c2a1a6fcef41a78a | |
parent | dd76b3f3be4f4e6f85393482714c90df67feaa92 (diff) | |
download | rust-bytemuck_derive-tizen.tar.gz rust-bytemuck_derive-tizen.tar.bz2 rust-bytemuck_derive-tizen.zip |
Bump to rust-bytemuck_derive 1.4.0accepted/tizen/rust/20231016.020923tizenaccepted/tizen_rust
-rw-r--r-- | packaging/rust-bytemuck_derive.manifest | 5 | ||||
-rw-r--r-- | packaging/rust-bytemuck_derive.spec | 75 |
2 files changed, 80 insertions, 0 deletions
diff --git a/packaging/rust-bytemuck_derive.manifest b/packaging/rust-bytemuck_derive.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/rust-bytemuck_derive.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/rust-bytemuck_derive.spec b/packaging/rust-bytemuck_derive.spec new file mode 100644 index 0000000..6f357cb --- /dev/null +++ b/packaging/rust-bytemuck_derive.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 23 +%global _rpm_strip_disable 1 +%global debug_package %{nil} + +%global crate bytemuck_derive +%global real_crate_name bytemuck_derive +%global rustc_edition 2018 + +Name: rust-bytemuck_derive +Version: 1.4.0 +Release: 1 +Summary: Derive proc-macros for `bytemuck` + +License: Zlib OR Apache-2.0 OR MIT +URL: https://crates.io/crates/bytemuck_derive +Source: %{crate}-%{version}.tar.gz +Source1: %{name}.manifest + +# ========================================================== +# BuildRequires +# specifies build-time dependencies for the package +# ========================================================== +BuildRequires: rust +BuildRequires: rust-proc-macro2 +BuildRequires: rust-quote +BuildRequires: rust-syn + +Requires: rust-proc-macro2 +Requires: rust-quote +Requires: rust-syn + + +%description +Derive proc-macros for `bytemuck`. + +%prep +%setup -q +cp %{SOURCE1} . + +# ========================================================== +# build section +# crate-type : dylib, proc-macro, cdylib, bin, etc. +# ========================================================== +%build +%{rustc_std_build} --crate-type=proc-macro \ + --crate-name=%{real_crate_name} \ + %{?rustc_edition:--edition=%{rustc_edition}} \ + %rust_dylib_extern proc_macro2 \ + %rust_dylib_extern quote \ + %rust_dylib_extern syn \ + ./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 +%license LICENSE-MIT +%license LICENSE-ZLIB +%{_rust_dylibdir}/lib%{real_crate_name}.so |