7 |
%define vendoroption --with-vendor="Mageia" |
%define vendoroption --with-vendor="Mageia" |
8 |
# rhbz#465664 jar-repacking breaks help by reordering META-INF/MANIFEST.MF |
# rhbz#465664 jar-repacking breaks help by reordering META-INF/MANIFEST.MF |
9 |
%define __jar_repack %{nil} |
%define __jar_repack %{nil} |
|
# don't worry about whitespace for now |
|
|
%define _default_patch_flags -s -l |
|
10 |
%define Werror_cflags %nil |
%define Werror_cflags %nil |
11 |
# make it easier to download sources from pre-release site |
# make it easier to download sources from pre-release site |
12 |
%define source_url http://dev-builds.libreoffice.org/pre-releases/src |
%define source_url http://dev-builds.libreoffice.org/pre-releases/src |
19 |
|
|
20 |
%define system_boost 1 |
%define system_boost 1 |
21 |
|
|
|
%if %{with langpacks} |
|
22 |
# generated by %%langpack definitions |
# generated by %%langpack definitions |
23 |
%global langpack_langs %{nil} |
%global langpack_langs %{nil} |
|
%else |
|
|
%global langpack_langs en-US |
|
|
%endif |
|
24 |
|
|
25 |
%global build_gtk3 1 |
%global build_gtk3 1 |
26 |
|
|
208 |
Patch40: 0001-crash-in-selecting-text-in-comments-midway-in-para.patch |
Patch40: 0001-crash-in-selecting-text-in-comments-midway-in-para.patch |
209 |
Patch41: 0001-Resolves-fdo-60040-crash-after-undoing-master-page-a.patch |
Patch41: 0001-Resolves-fdo-60040-crash-after-undoing-master-page-a.patch |
210 |
Patch42: 0001-Related-rhbz-1032774-slide-restarter-should-disable-.patch |
Patch42: 0001-Related-rhbz-1032774-slide-restarter-should-disable-.patch |
211 |
|
Patch43: 0001-add-X-TryExec-entries-to-desktop-files.patch |
212 |
|
|
213 |
#Mageia Patch |
#Mageia Patch |
214 |
# fix build with icu-5.3: |
# fix build with icu-5.3: |
816 |
%{-i:%{_datadir}/autocorr/acor_%{-i*}-*.dat} \ |
%{-i:%{_datadir}/autocorr/acor_%{-i*}-*.dat} \ |
817 |
%{nil} |
%{nil} |
818 |
|
|
819 |
|
%langpack -l en -n English -F -H -Y -M -A -E -L en-US -O |
820 |
|
|
821 |
%if %{with langpacks} |
%if %{with langpacks} |
822 |
%langpack -l af -n Afrikaans -F -H -Y -A -o af_ZA -V -w af_ZA |
%langpack -l af -n Afrikaans -F -H -Y -A -o af_ZA -V -w af_ZA |
823 |
%langpack -l ar -n Arabic -F -H -s ctl -O -W |
%langpack -l ar -n Arabic -F -H -s ctl -O -W |
832 |
%langpack -l de -n German -F -H -Y -M -A -T -X -O -W |
%langpack -l de -n German -F -H -Y -M -A -T -X -O -W |
833 |
%langpack -l dz -n Dzongkha -F -s ctl -T -O |
%langpack -l dz -n Dzongkha -F -s ctl -T -O |
834 |
%langpack -l el -n Greek -F -H -Y -M -T -o el_GR -V -w el_GR |
%langpack -l el -n Greek -F -H -Y -M -T -o el_GR -V -w el_GR |
|
%langpack -l en -n English -F -H -Y -M -A -E -L en-US -O |
|
835 |
%langpack -l es -n Spanish -F -H -Y -M -A -T -X -O -W |
%langpack -l es -n Spanish -F -H -Y -M -A -T -X -O -W |
836 |
%langpack -l et -n Estonian -F -H -Y -T -o et_EE -V -w et_EE |
%langpack -l et -n Estonian -F -H -Y -T -o et_EE -V -w et_EE |
837 |
%langpack -l eu -n Basque -F -H -Y -T -o eu_ES -V -w eu_ES |
%langpack -l eu -n Basque -F -H -Y -T -o eu_ES -V -w eu_ES |
1213 |
#make up some /usr/bin scripts |
#make up some /usr/bin scripts |
1214 |
mkdir -p %{buildroot}%{_bindir} |
mkdir -p %{buildroot}%{_bindir} |
1215 |
|
|
|
echo \#\!/bin/sh > %{buildroot}%{_bindir}/ooffice |
|
|
echo exec libreoffice \"\$@\" >> %{buildroot}%{_bindir}/ooffice |
|
|
chmod a+x %{buildroot}%{_bindir}/ooffice |
|
|
|
|
|
echo \#\!/bin/sh > %{buildroot}%{_bindir}/ooviewdoc |
|
|
echo exec libreoffice --view \"\$@\" >> %{buildroot}%{_bindir}/ooviewdoc |
|
|
chmod a+x %{buildroot}%{_bindir}/ooviewdoc |
|
|
|
|
|
echo \#\!/bin/sh > %{buildroot}%{_bindir}/oowriter |
|
|
echo exec libreoffice --writer \"\$@\" >> %{buildroot}%{_bindir}/oowriter |
|
|
chmod a+x %{buildroot}%{_bindir}/oowriter |
|
|
|
|
|
echo \#\!/bin/sh > %{buildroot}%{_bindir}/oocalc |
|
|
echo exec libreoffice --calc \"\$@\" >> %{buildroot}%{_bindir}/oocalc |
|
|
chmod a+x %{buildroot}%{_bindir}/oocalc |
|
|
|
|
|
echo \#\!/bin/sh > %{buildroot}%{_bindir}/ooimpress |
|
|
echo exec libreoffice --impress \"\$@\" >> %{buildroot}%{_bindir}/ooimpress |
|
|
chmod a+x %{buildroot}%{_bindir}/ooimpress |
|
|
|
|
|
echo \#\!/bin/sh > %{buildroot}%{_bindir}/oodraw |
|
|
echo exec libreoffice --draw \"\$@\" >> %{buildroot}%{_bindir}/oodraw |
|
|
chmod a+x %{buildroot}%{_bindir}/oodraw |
|
|
|
|
|
echo \#\!/bin/sh > %{buildroot}%{_bindir}/oomath |
|
|
echo exec libreoffice --math \"\$@\" >> %{buildroot}%{_bindir}/oomath |
|
|
chmod a+x %{buildroot}%{_bindir}/oomath |
|
|
|
|
|
echo \#\!/bin/sh > %{buildroot}%{_bindir}/oobase |
|
|
echo exec libreoffice --base \"\$@\" >> %{buildroot}%{_bindir}/oobase |
|
|
chmod a+x %{buildroot}%{_bindir}/oobase |
|
|
|
|
|
cp -f %{SOURCE4} %{buildroot}%{_bindir}/unopkg |
|
|
sed -i -e "s/LAUNCHER/unopkg/g" %{buildroot}%{_bindir}/unopkg |
|
|
sed -i -e "s/BRAND/libreoffice/g" %{buildroot}%{_bindir}/unopkg |
|
|
chmod a+x %{buildroot}%{_bindir}/unopkg |
|
|
|
|
|
cp -f %{SOURCE4} %{buildroot}%{_bindir}/libreoffice |
|
|
sed -i -e "s/LAUNCHER/soffice/g" %{buildroot}%{_bindir}/libreoffice |
|
|
sed -i -e "s/BRAND/libreoffice/g" %{buildroot}%{_bindir}/libreoffice |
|
|
chmod a+x %{buildroot}%{_bindir}/libreoffice |
|
|
|
|
1216 |
pushd %{buildroot}%{_bindir} |
pushd %{buildroot}%{_bindir} |
1217 |
|
echo \#\!/bin/sh > ooffice |
1218 |
|
echo exec libreoffice \"\$@\" >> ooffice |
1219 |
|
chmod a+x ooffice |
1220 |
|
|
1221 |
|
echo \#\!/bin/sh > ooviewdoc |
1222 |
|
echo exec libreoffice --view \"\$@\" >> ooviewdoc |
1223 |
|
chmod a+x ooviewdoc |
1224 |
|
|
1225 |
|
for app in base calc draw impress math writer; do |
1226 |
|
echo \#\!/bin/sh > oo$app |
1227 |
|
echo exec libreoffice --$app \"\$@\" >> oo$app |
1228 |
|
chmod a+x oo$app |
1229 |
|
done |
1230 |
|
|
1231 |
|
sed -e s/LAUNCHER/unopkg/g -e s/BRAND/libreoffice/g %{SOURCE4} > unopkg |
1232 |
|
chmod a+x unopkg |
1233 |
|
|
1234 |
|
sed -e s/LAUNCHER/soffice/g -e s/BRAND/libreoffice/g %{SOURCE4} > libreoffice |
1235 |
|
chmod a+x libreoffice |
1236 |
|
|
1237 |
# rhbz#499474 provide a /usr/bin/soffice for .recently-used.xbel |
# rhbz#499474 provide a /usr/bin/soffice for .recently-used.xbel |
1238 |
ln -s %{baseinstdir}/program/soffice soffice |
ln -s %{baseinstdir}/program/soffice soffice |
1239 |
# rhbz#499474 provide a /usr/bin/openoffice.org for backwards compat |
# rhbz#499474 provide a /usr/bin/openoffice.org for backwards compat |
1242 |
|
|
1243 |
pushd %{buildroot}%{baseinstdir}/share/xdg/ |
pushd %{buildroot}%{baseinstdir}/share/xdg/ |
1244 |
chmod u+w *.desktop |
chmod u+w *.desktop |
|
rm -rf printeradmin.desktop |
|
1245 |
ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'` |
ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'` |
1246 |
for file in *.desktop; do |
for file in *.desktop; do |
1247 |
# rhbz#156677 remove the version from Name= |
# rhbz#156677 remove the version from Name= |
1251 |
-e "s/$PRODUCTVERSIONSHORT//g" \ |
-e "s/$PRODUCTVERSIONSHORT//g" \ |
1252 |
$file |
$file |
1253 |
done |
done |
|
for app in base calc draw impress math writer; do |
|
|
echo "X-TryExec=oo$app" >> $app.desktop |
|
|
done |
|
1254 |
# rhbz#156677 / rhbz#186515 do not show math and startcenter |
# rhbz#156677 / rhbz#186515 do not show math and startcenter |
1255 |
sed -i -e /NoDisplay/s/false/true/ math.desktop startcenter.desktop |
sed -i -e /NoDisplay/s/false/true/ math.desktop startcenter.desktop |
1256 |
# relocate the .desktop and icon files |
# relocate the .desktop and icon files |