1 Commits

Author SHA256 Message Date
Giuliano Belinassi
80d5d5b8de Add macro that checks if a certain package is the most recent one.
Signed-off-by: Giuliano Belinassi <gbelinassi@suse.de>
2025-10-20 17:11:02 -03:00
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 25 22:21:54 UTC 2025 - Giuliano Belinassi <giuliano.belinassi@suse.com>
- Add macro that checks if a certain package is the most recent one.
-------------------------------------------------------------------
Wed Apr 2 20:27:16 UTC 2025 - Giuliano Belinassi <giuliano.belinassi@suse.com>

View File

@@ -26,3 +26,7 @@ end }
tar -cJf %{tar_lp_package_name} -C ipa-clones --owner root --group root --sort name %{tar_lp_basename} \
cp %{tar_lp_package_name} %{_topdir}/OTHER \
%endif
# Macro to make sure we always get the most recent version of a certain
# library.
%requires_ge_with_release() %{expand:%(t=$(echo '%*' | LC_ALL=C xargs -r rpm -q --qf 'Requires: %%{name} >= %%{epoch}:%%{version}-%%{release}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not"); test -n "$t" || echo "%%{error: %%%%{requires_ge_with_release %*} does not resolve}"; echo "$t")}