From 0a29006b737401a5bfc37097430c45b38d186878 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Mon, 13 Feb 2023 15:57:29 +0900 Subject: [PATCH] Add config --- packaging/rust-proc-macro2.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packaging/rust-proc-macro2.spec b/packaging/rust-proc-macro2.spec index 8d6447e..3b678c1 100644 --- a/packaging/rust-proc-macro2.spec +++ b/packaging/rust-proc-macro2.spec @@ -39,7 +39,13 @@ cp %{SOURCE1} . %build %{rustc_dylib_build} \ --crate-name=%{real_crate_name} \ - -L%{_libdir} -lunicode_ident \ + -lunicode_ident \ + --cfg='feature="default"' \ + --cfg='feature="proc-macro"' \ + --cfg='feature="span-locations"' \ + --cfg=span_locations \ + --cfg=use_proc_macro \ + --cfg=wrap_proc_macro \ ./src/lib.rs # ========================================================== -- 2.34.1