|
|
@ -34,13 +34,6 @@
|
|
|
|
# effect
|
|
|
|
# effect
|
|
|
|
%bcond_without langpacks
|
|
|
|
%bcond_without langpacks
|
|
|
|
|
|
|
|
|
|
|
|
# remove workdir at the end of %%build, to allow build on space-constrained machines
|
|
|
|
|
|
|
|
%ifarch s390 s390x
|
|
|
|
|
|
|
|
%bcond_without smallbuild
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_with smallbuild
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 'serverconfig' is tuned for non-interactive installs
|
|
|
|
# 'serverconfig' is tuned for non-interactive installs
|
|
|
|
# defaults off except on rhel for s390[x] and aarch64
|
|
|
|
# defaults off except on rhel for s390[x] and aarch64
|
|
|
|
%if 0%{?rhel}
|
|
|
|
%if 0%{?rhel}
|
|
|
@ -1028,16 +1021,9 @@ for i in $RPM_OPT_FLAGS; do
|
|
|
|
case "$i" in
|
|
|
|
case "$i" in
|
|
|
|
-pipe|-Wall|-Werror*|-fexceptions) continue;;
|
|
|
|
-pipe|-Wall|-Werror*|-fexceptions) continue;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
%ifarch s390x
|
|
|
|
|
|
|
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106355
|
|
|
|
|
|
|
|
case "$i" in
|
|
|
|
|
|
|
|
-O2|-Wp,-D_FORTIFY_SOURCE=2)
|
|
|
|
|
|
|
|
continue;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
ARCH_FLAGS="$ARCH_FLAGS $i"
|
|
|
|
ARCH_FLAGS="$ARCH_FLAGS $i"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
%ifarch s390 %{arm} aarch64
|
|
|
|
%ifarch s390 s390x %{arm} aarch64
|
|
|
|
# these builders typically do not have enough memory to link the big libs with -g2
|
|
|
|
# these builders typically do not have enough memory to link the big libs with -g2
|
|
|
|
ARCH_FLAGS="$ARCH_FLAGS -g1"
|
|
|
|
ARCH_FLAGS="$ARCH_FLAGS -g1"
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -1114,6 +1100,9 @@ touch autogen.lastrun
|
|
|
|
%{?archoptions} \
|
|
|
|
%{?archoptions} \
|
|
|
|
%{?flatpakoptions}
|
|
|
|
%{?flatpakoptions}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch s390x
|
|
|
|
|
|
|
|
make verbose=true GMAKE_OPTIONS=-rj1 build
|
|
|
|
|
|
|
|
%else
|
|
|
|
if ! make verbose=true build; then
|
|
|
|
if ! make verbose=true build; then
|
|
|
|
echo "build attempt 1 failed"
|
|
|
|
echo "build attempt 1 failed"
|
|
|
|
if ! make verbose=true build; then
|
|
|
|
if ! make verbose=true build; then
|
|
|
@ -1121,6 +1110,7 @@ if ! make verbose=true build; then
|
|
|
|
make verbose=true GMAKE_OPTIONS=-rj1 build
|
|
|
|
make verbose=true GMAKE_OPTIONS=-rj1 build
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
#generate the icons and mime type stuff
|
|
|
|
#generate the icons and mime type stuff
|
|
|
|
export DESTDIR=../output
|
|
|
|
export DESTDIR=../output
|
|
|
@ -1138,14 +1128,11 @@ mkdir $WORKDIR/os-integration
|
|
|
|
cp -pr $WORKDIR/CustomTarget/sysui/share/output/usr/share/* $WORKDIR/os-integration
|
|
|
|
cp -pr $WORKDIR/CustomTarget/sysui/share/output/usr/share/* $WORKDIR/os-integration
|
|
|
|
cp -pr $WORKDIR/CustomTarget/sysui/share/libreoffice/LOKDocView-%{girapiversion}.* $WORKDIR/os-integration
|
|
|
|
cp -pr $WORKDIR/CustomTarget/sysui/share/libreoffice/LOKDocView-%{girapiversion}.* $WORKDIR/os-integration
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with smallbuild}
|
|
|
|
%install
|
|
|
|
|
|
|
|
# remove workdir before install, to allow build on space-constrained machines
|
|
|
|
# remove the biggest offenders
|
|
|
|
# remove the biggest offenders
|
|
|
|
# NOTE: not removing complete LinkTarget, as some libs are needed for smoketest
|
|
|
|
rm -rf $WORKDIR/CxxObject $WORKDIR/GenCxxObject $WORKDIR/HelpTarget $WORKDIR/LinkTarget
|
|
|
|
rm -rf $WORKDIR/CxxObject $WORKDIR/GenCxxObject $WORKDIR/HelpTarget $WORKDIR/LinkTarget/CppunitTest
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
# TODO investigate use of make distro-pack-install
|
|
|
|
# TODO investigate use of make distro-pack-install
|
|
|
|
#figure out the icon version
|
|
|
|
#figure out the icon version
|
|
|
|
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR
|
|
|
|
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR
|
|
|
|