summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2023-02-13 15:58:36 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2023-02-14 15:09:48 +0900
commit2d51981798dde544f7145257442c9c787267dd3d (patch)
treeb2be3631f906cd35f3940cefe07f73acea9b5141
parent2dee4a2ee788ca5659247f7baf68697afa56b0eb (diff)
downloadrust-serde_derive-2d51981798dde544f7145257442c9c787267dd3d.tar.gz
rust-serde_derive-2d51981798dde544f7145257442c9c787267dd3d.tar.bz2
rust-serde_derive-2d51981798dde544f7145257442c9c787267dd3d.zip
Bump to rust-serde_derive 1.0.152
-rw-r--r--packaging/rust-serde_derive.manifest5
-rw-r--r--packaging/rust-serde_derive.spec66
2 files changed, 71 insertions, 0 deletions
diff --git a/packaging/rust-serde_derive.manifest b/packaging/rust-serde_derive.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/rust-serde_derive.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/rust-serde_derive.spec b/packaging/rust-serde_derive.spec
new file mode 100644
index 0000000..9b709a6
--- /dev/null
+++ b/packaging/rust-serde_derive.spec
@@ -0,0 +1,66 @@
+# Generated by rust2rpm 23
+%global _rpm_strip_disable 1
+%global debug_package %{nil}
+
+%global crate serde_derive
+%global real_crate_name serde_derive
+
+Name: rust-serde_derive
+Version: 1.0.152
+Release: 1%{?dist}
+Summary: Macros 1.1 implementation of #[derive(Serialize, Deserialize)]
+
+License: MIT OR Apache-2.0
+URL: https://crates.io/crates/serde_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
+
+
+%description
+Macros 1.1 implementation of #[derive(Serialize, Deserialize)].
+
+%prep
+%setup -q
+cp %{SOURCE1} .
+
+# ==========================================================
+# build section
+# ==========================================================
+%build
+%{rustc_std_build} --crate-type=proc-macro \
+ --crate-name=%{real_crate_name} \
+ -lproc_macro2 \
+ -lquote \
+ -lsyn \
+ ./src/lib.rs
+
+# ==========================================================
+# install section
+# ==========================================================
+%install
+install -d -m 0755 %{buildroot}%{_rust_libdir}
+install -m 0644 lib%{real_crate_name}.so %{buildroot}/%{_rust_libdir}/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_libdir}/lib%{real_crate_name}.so