expand some const macros to avoid annoying rpmbuild warnings

f41
David Tardon 10 years ago
parent a225d07b8c
commit 05abd19287

@ -922,7 +922,6 @@ This package provides gdb pretty printers for package %{name}.
# %%langpack -l cs -n Czech -H -A -m cs-CZ # %%langpack -l cs -n Czech -H -A -m cs-CZ
# b de g jk q tu z BCD G IJK N PQR U Z0123456789 # b de g jk q tu z BCD G IJK N PQR U Z0123456789
%define langpack(Aa:c:EFf:Hh:i:L:l:Mm:n:p:Oo:r:S:s:TVv:Ww:Xx:Yy:) \ %define langpack(Aa:c:EFf:Hh:i:L:l:Mm:n:p:Oo:r:S:s:TVv:Ww:Xx:Yy:) \
%define project LibreOffice \
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \ %define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
%define _langpack_lang %{-L:%{-L*}}%{!-L:%{lang}} \ %define _langpack_lang %{-L:%{-L*}}%{!-L:%{lang}} \
%define pkgname langpack-%{lang} \ %define pkgname langpack-%{lang} \
@ -931,7 +930,7 @@ This package provides gdb pretty printers for package %{name}.
%global langpack_langs %{langpack_langs} %{_langpack_lang} %{-i:%{-i*}} \ %global langpack_langs %{langpack_langs} %{_langpack_lang} %{-i:%{-i*}} \
\ \
%package %{pkgname} \ %package %{pkgname} \
Summary: %{langname} language pack for %{project} \ Summary: %{langname} language pack for LibreOffice \
Group: Applications/Productivity \ Group: Applications/Productivity \
Requires: %{name}-core = %{epoch}:%{version}-%{release} \ Requires: %{name}-core = %{epoch}:%{version}-%{release} \
%{-a:Requires: autocorr-%{-a*}}%{!-a:%{-A:Requires: autocorr-%{lang}}} \ %{-a:Requires: autocorr-%{-a*}}%{!-a:%{-A:Requires: autocorr-%{lang}}} \
@ -940,25 +939,18 @@ Requires: %{name}-core = %{epoch}:%{version}-%{release} \
%{-m:Requires: mythes-%{-m*}}%{!-m:%{-M:Requires: mythes-%{lang}}} \ %{-m:Requires: mythes-%{-m*}}%{!-m:%{-M:Requires: mythes-%{lang}}} \
%{-y:Requires: hyphen-%{-y*}}%{!-y:%{-Y:Requires: hyphen-%{lang}}} \ %{-y:Requires: hyphen-%{-y*}}%{!-y:%{-Y:Requires: hyphen-%{lang}}} \
%{-r:Requires: %{-r*}} \ %{-r:Requires: %{-r*}} \
%define obs openoffice.org-langpack \ %{-o:Obsoletes: openoffice.org-langpack-%{-o*} < 1:3.3.1}%{!-o:%{-O:Obsoletes: openoffice.org-langpack-%{lang} < 1:3.3.1}} \
%define obsv 1:3.3.1 \ %{-w:Obsoletes: openoffice.org2-langpack-%{-x*} < 1:3.0.0}%{!-x:%{-W:Obsoletes: openoffice.org2-langpack-%{lang} < 1:3.0.0}} \
%define aobs openoffice.org2-langpack \ %{-v:Obsoletes: openoffice.org-langpack-%{-v*} < 1:2.0.3}%{!-v:%{-V:Obsoletes: openoffice.org-langpack-%{lang} < %1:2.0.3}} \
%define aobsv 1:3.0.0 \
%define vaobs openoffice.org-langpack \
%define vaobsv 1:2.0.3 \
%{-o:Obsoletes: %{obs}-%{-o*} < %{obsv}}%{!-o:%{-O:Obsoletes: %{obs}-%{lang} < %{obsv}}} \
%{-w:Obsoletes: %{aobs}-%{-x*} < %{aobsv}}%{!-x:%{-W:Obsoletes: %{aobs}-%{lang} < %{aobsv}}} \
%{-v:Obsoletes: %{vaobs}-%{-v*} < %{vaobsv}}%{!-v:%{-V:Obsoletes: %{vaobs}-%{lang} < %{vaobsv}}} \
%{-p:Provides: %{name}-langpack-%{-p*}} \ %{-p:Provides: %{name}-langpack-%{-p*}} \
\ \
%description %{pkgname} \ %description %{pkgname} \
Provides additional %{langname} translations and resources for %{project}. \ Provides additional %{langname} translations and resources for LibreOffice. \
\ \
%files %{pkgname} \ %files %{pkgname} \
%{!-E: \ %{!-E: \
%define autotextdir %{baseinstdir}/share/autotext \
%{expand:%%_langpack_common %{_langpack_lang}} \ %{expand:%%_langpack_common %{_langpack_lang}} \
%{-x:%{autotextdir}/%{-x*}}%{!-x:%{-X:%{autotextdir}/%{_langpack_lang}}} \ %{-x:%{baseinstdir}/share/autotext/%{-x*}}%{!-x:%{-X:%{baseinstdir}/share/autotext/%{_langpack_lang}}} \
%{-c:%{baseinstdir}/share/registry/%{-c*}.xcd} \ %{-c:%{baseinstdir}/share/registry/%{-c*}.xcd} \
%{-s:%{baseinstdir}/share/registry/%{-s*}_%{_langpack_lang}.xcd} \ %{-s:%{baseinstdir}/share/registry/%{-s*}_%{_langpack_lang}.xcd} \
%{-T: \ %{-T: \

Loading…
Cancel
Save