commit f8d2b6770c83e0c894c1461541daef1524687225 Author: Jan Palus <at...@pld-linux.org> Date: Sun Jan 19 15:43:26 2025 +0100
add __gettextize option to customize po dir location; 2.036 macros.pld | 8 ++++---- rpm-pld-macros.spec | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) --- diff --git a/rpm-pld-macros.spec b/rpm-pld-macros.spec index 5b85e4d..60e44a4 100644 --- a/rpm-pld-macros.spec +++ b/rpm-pld-macros.spec @@ -1,4 +1,4 @@ -%define rpm_macros_rev 2.035 +%define rpm_macros_rev 2.036 %define find_lang_rev 1.42 # split into individual X_prov_ver if there is a reason to desync %define prov_ver 4.15 diff --git a/macros.pld b/macros.pld index 5adb101..f0449b0 100644 --- a/macros.pld +++ b/macros.pld @@ -260,10 +260,10 @@ pakietu oraz przy odpluskwianiu samego pakietu.\ %__ninja /usr/bin/ninja %__ninja_common_opts -v %{?_smp_mflags} -%__gettextize { \ - gettextize --copy --force --no-changelog; \ - if [ ! -f po/Makevars ]; then \ - cp -f po/Makevars{.template,}; \ +%__gettextize(d:) { \ + gettextize --copy --force --no-changelog %{?-d:--po-dir='%{-d*}'}; \ + if [ ! -f %{!?-d:po}%{?-d:'%{-d*}'}/Makevars ]; then \ + cp -f %{!?-d:po}%{?-d:'%{-d*}'}/Makevars{.template,}; \ fi; \ } ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/f8d2b6770c83e0c894c1461541daef1524687225 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit