diff --git a/anda/terra/srpm-macros/anda-srpm-macros.spec b/anda/terra/srpm-macros/anda-srpm-macros.spec index a26d89a92f..a70153f249 100644 --- a/anda/terra/srpm-macros/anda-srpm-macros.spec +++ b/anda/terra/srpm-macros/anda-srpm-macros.spec @@ -1,5 +1,5 @@ Name: anda-srpm-macros -Version: 0.1.5 +Version: 0.1.6 Release: 1%{?dist} Summary: SRPM macros for extra Fedora packages @@ -9,6 +9,7 @@ Source0: macros.cargo_extra Source1: macros.caching Source2: macros.anda Source3: macros.go_extra +Source4: macros.nim_extra Recommends: rust-packaging Requires: git-core @@ -28,15 +29,20 @@ install -D -p -m 0644 -t %{buildroot}%{_rpmmacrodir} %{SOURCE0} install -D -p -m 0644 -t %{buildroot}%{_rpmmacrodir} %{SOURCE1} install -D -p -m 0644 -t %{buildroot}%{_rpmmacrodir} %{SOURCE2} install -D -p -m 0644 -t %{buildroot}%{_rpmmacrodir} %{SOURCE3} +install -D -p -m 0644 -t %{buildroot}%{_rpmmacrodir} %{SOURCE4} %files %{_rpmmacrodir}/macros.cargo_extra %{_rpmmacrodir}/macros.caching %{_rpmmacrodir}/macros.anda %{_rpmmacrodir}/macros.go_extra +%{_rpmmacrodir}/macros.nim_extra %changelog +* Wed Mar 13 2024 madonuko - 0.1.6-1 +- Add nim_c, nim_tflags and nim_lflags + * Thu Aug 3 2023 madonuko - 0.1.4-1 - Add go_build_online and go_prep_online diff --git a/anda/terra/srpm-macros/macros.nim_extra b/anda/terra/srpm-macros/macros.nim_extra new file mode 100644 index 0000000000..69a43becb7 --- /dev/null +++ b/anda/terra/srpm-macros/macros.nim_extra @@ -0,0 +1,5 @@ +%nim_tflags %(echo "%?build_cflags -fPIE" | sed "s/-O2/-Ofast/g" | sed "s/-Wall//g") + +%nim_lflags %?build_ldflags -pie + +%nim_c -d:release -t:"%nim_tflags" -l:"%nim_lflags"