From 09ecc075e5b2090fce2fe76eb5f5755818f0cced Mon Sep 17 00:00:00 2001 From: happy_orange Date: Mon, 27 Mar 2023 19:07:44 +0800 Subject: [PATCH] add some srpm macros --- macros.fpc-srpm | 1 + macros.ghc-srpm | 9 +++++++++ macros.gnat-srpm | 2 ++ system-rpm-config.spec | 8 +++++++- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 macros.fpc-srpm create mode 100644 macros.ghc-srpm create mode 100644 macros.gnat-srpm diff --git a/macros.fpc-srpm b/macros.fpc-srpm new file mode 100644 index 0000000..b87092b --- /dev/null +++ b/macros.fpc-srpm @@ -0,0 +1 @@ +%fpc_arches x86_64 aarch64 diff --git a/macros.ghc-srpm b/macros.ghc-srpm new file mode 100644 index 0000000..319e622 --- /dev/null +++ b/macros.ghc-srpm @@ -0,0 +1,9 @@ +# ghc_arches is not used in current packages but still here for back compat +# former archs: alpha ppc sparcv9 armv5tel +%ghc_arches x86_64 aarch64 + +# deprecated - kept for ghc.spec back compatibility +%ghc_devel_prof prof + +# enable profiling libraries in prof subpkgs +%with_ghc_prof 1 diff --git a/macros.gnat-srpm b/macros.gnat-srpm new file mode 100644 index 0000000..bba90c1 --- /dev/null +++ b/macros.gnat-srpm @@ -0,0 +1,2 @@ +%GPRbuild_arches aarch64 x86_64 +%GNAT_arches %{GPRbuild_arches} diff --git a/system-rpm-config.spec b/system-rpm-config.spec index ff8fa16..1637eb2 100644 --- a/system-rpm-config.spec +++ b/system-rpm-config.spec @@ -1,4 +1,4 @@ -%define anolis_release 30 +%define anolis_release 31 Summary: Anolis OS specific rpm configuration files Name: system-rpm-config @@ -31,6 +31,9 @@ Source60: anolis-annobin-cc1 Source100: macros.anolis-misc-srpm Source101: macros.nodejs-srpm Source102: macros.java-srpm +Source103: macros.fpc-srpm +Source104: macros.ghc-srpm +Source105: macros.gnat-srpm # Other misc macros Source150: macros.build-constraints @@ -208,6 +211,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/anolis/srpm forge.lua %license MulanPSL %changelog +* Mon Mar 27 2023 happy_orange - 1:23-31 +- add some src macros + * Tue Mar 21 2023 Chunmei Xu - 1:23-30 - add requires of ocaml-srpm-macros -- Gitee