From 34a277046df013e4200e1bb88e716ef211974bd4 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 29 Jan 2021 23:42:16 +0800 Subject: [PATCH] extra: add %ghc_subpackages_list can be used by ghc etc for metapkg to depend on all subpackages --- macros.ghc-extra | 1 + 1 file changed, 1 insertion(+) diff --git a/macros.ghc-extra b/macros.ghc-extra index 345f93c..640a641 100644 --- a/macros.ghc-extra +++ b/macros.ghc-extra @@ -12,6 +12,7 @@ print(name)\ local pv = rpm.expand("%1")\ print(string.sub(pv, string.find(pv, "[%d.]+$")))\ }}\ +%global ghc_subpackages_list %{?ghc_subpackages_list} %{pkgname}-%{pkgver}\ %{!-x:%{?1:%global ghc_packages_list %{?ghc_packages_list} %{pkgname}-%{pkgver}}}\ %define ghc_prefix %{?ghc_name}%{!?ghc_name:ghc}\ %define basepkg %{ghc_prefix}-%{pkgname}\