Compare commits

1 Commits
main ... 1.1

2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 25 22:40:55 UTC 2025 - Giuliano Belinassi <giuliano.belinassi@suse.com>
- Add macro that checks if a certain package is the most recent one.
-------------------------------------------------------------------
Mon Jul 22 15:55:53 UTC 2024 - Giuliano Belinassi <giuliano.belinassi@suse.com>

View File

@@ -23,3 +23,7 @@
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")}