Accepting request 89323 from GNOME:Apps

Fix build (forwarded request 89309 from vuntz)

OBS-URL: https://build.opensuse.org/request/show/89323
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnumeric?expand=0&rev=60
This commit is contained in:
Stephan Kulow 2011-10-26 13:25:23 +00:00 committed by Git OBS Bridge
commit 9047c9a399
2 changed files with 16 additions and 18 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Oct 25 18:24:25 UTC 2011 - vuntz@opensuse.org
- Use a more generic hack in %setup to remove incomplete
translations created by translation-update-upstream. Should fix
build breakages created when translation-update-upstream is
updated and adds new translations.
-------------------------------------------------------------------
Mon Oct 3 07:38:26 UTC 2011 - vuntz@opensuse.org

View File

@ -95,24 +95,14 @@ Gnumeric is part of the GNOME project.
%setup -q
translation-update-upstream
translation-update-upstream po-functions gnumeric-functions
# translation-update-upstream provides incomplete upstream translations
# from the upstream git. Remove them until upstream provides a fix. See
# po/LINGUAS for more.
if test -f po-functions/id.po ; then
echo "\"id\" locale removal in gnumeric.spec is obsolete. Please remove it."
else
sed -i '/^id$/d' po/LINGUAS
fi
if test -f po-functions/pa.po ; then
echo "\"pa\" locale removal in gnumeric.spec is obsolete. Please remove it."
else
sed -i '/^pa$/d' po/LINGUAS
fi
if test -f po-functions/zh_HK.po ; then
echo "\"zh_HK\" locale removal in gnumeric.spec is obsolete. Please remove it."
else
sed -i '/^zh_HK$/d' po/LINGUAS
fi
# remove incomplete translations caused by translation-update-upstream (global LINGUAS file, two domains)
for LNG in po/*.po ; do
LNG=`basename ${LNG%%.po}`
if ! test -f po-functions/$LNG.po ; then
echo "Removing incomplete $LNG from LINGUAS."
sed -i "/^$LNG\$/d" po/LINGUAS
fi
done
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"