/[packages]/cauldron/libreoffice/pristine/SPECS/libreoffice.spec
ViewVC logotype

Diff of /cauldron/libreoffice/pristine/SPECS/libreoffice.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 618477 by tv, Sun Apr 27 17:19:30 2014 UTC revision 618482 by tv, Sun Apr 27 17:23:32 2014 UTC
# Line 1063  export PRODUCTVERSIONSHORT PRODUCTVERSIO Line 1063  export PRODUCTVERSIONSHORT PRODUCTVERSIO
1063    
1064  # installation  # installation
1065    
1066  mkdir -p $RPM_BUILD_ROOT/%{instdir}  mkdir -p %{buildroot}/%{instdir}
1067  if ! make instsetoo_native PKGFORMAT=installed EPM=not-used-but-must-be-set; then  if ! make instsetoo_native PKGFORMAT=installed EPM=not-used-but-must-be-set; then
1068      echo - ---dump log start---      echo - ---dump log start---
1069      cat $ WORKDIR/installation/LibreOffice/installed/logging/en-US/log_*_en-US.log      cat $ WORKDIR/installation/LibreOffice/installed/logging/en-US/log_*_en-US.log
# Line 1076  if ! make instsetoo_native PKGFORMAT=ins Line 1076  if ! make instsetoo_native PKGFORMAT=ins
1076      echo - ---dump log end -- languagepacks---      echo - ---dump log end -- languagepacks---
1077      exit 1      exit 1
1078  fi  fi
1079  mkdir -p $RPM_BUILD_ROOT/%{baseinstdir}  mkdir -p %{buildroot}/%{baseinstdir}
1080  mv $WORKDIR/installation/LibreOffice/installed/install/en-US/* $RPM_BUILD_ROOT/%{baseinstdir}  mv $WORKDIR/installation/LibreOffice/installed/install/en-US/* %{buildroot}/%{baseinstdir}
1081  %if %{with langpacks}  %if %{with langpacks}
1082  for langpack in $WORKDIR/installation/LibreOffice_languagepack/installed/install/*; do  for langpack in $WORKDIR/installation/LibreOffice_languagepack/installed/install/*; do
1083    [ `basename $langpack` = log ] && continue    [ `basename $langpack` = log ] && continue
1084    cp -rp $langpack/* $RPM_BUILD_ROOT/%{baseinstdir}    cp -rp $langpack/* %{buildroot}/%{baseinstdir}
1085    rm -rf $langpack    rm -rf $langpack
1086  done  done
1087  %endif  %endif
1088  mv $WORKDIR/installation/LibreOffice_SDK/installed/install/en-US/sdk $RPM_BUILD_ROOT/%{sdkinstdir}  mv $WORKDIR/installation/LibreOffice_SDK/installed/install/en-US/sdk %{buildroot}/%{sdkinstdir}
1089  chmod -R +w $RPM_BUILD_ROOT/%{baseinstdir}  chmod -R +w %{buildroot}/%{baseinstdir}
1090    
1091  # postprocessing and tweaks  # postprocessing and tweaks
1092    
# Line 1095  chmod -R +w $RPM_BUILD_ROOT/%{baseinstdi Line 1095  chmod -R +w $RPM_BUILD_ROOT/%{baseinstdi
1095  # have no inclination to crawl through mountains of perl code to figure out  # have no inclination to crawl through mountains of perl code to figure out
1096  # where it comes from, I am just going to replace it by a sensible  # where it comes from, I am just going to replace it by a sensible
1097  # value here.  # value here.
1098  sed -i -e '/UserInstallation/s@\$ORIGIN/..@$SYSUSERCONFIG@' $RPM_BUILD_ROOT/%{baseinstdir}/program/bootstraprc  sed -i -e '/UserInstallation/s@\$ORIGIN/..@$SYSUSERCONFIG@' %{buildroot}/%{baseinstdir}/program/bootstraprc
1099    
1100  #configure sdk  #configure sdk
1101  pushd $RPM_BUILD_ROOT/%{sdkinstdir}  pushd %{buildroot}/%{sdkinstdir}
1102    
1103      sed -e "s,@OO_SDK_NAME@,sdk," \      sed -e "s,@OO_SDK_NAME@,sdk," \
1104          -e "s,@OO_SDK_HOME@,%{sdkinstdir}," \          -e "s,@OO_SDK_HOME@,%{sdkinstdir}," \
# Line 1122  rm -f setsdkenv_unix.sh.in Line 1122  rm -f setsdkenv_unix.sh.in
1122  popd  popd
1123    
1124  #ensure a template dir for each lang  #ensure a template dir for each lang
1125  pushd $RPM_BUILD_ROOT/%{baseinstdir}/share/template  pushd %{buildroot}/%{baseinstdir}/share/template
1126  for I in %{langpack_langs}; do  for I in %{langpack_langs}; do
1127      mkdir -p $I      mkdir -p $I
1128  done  done
1129  popd  popd
1130    
1131  #Set some aliases to canonical autocorrect language files for locales with matching languages  #Set some aliases to canonical autocorrect language files for locales with matching languages
1132  pushd $RPM_BUILD_ROOT/%{baseinstdir}/share/autocorr  pushd %{buildroot}/%{baseinstdir}/share/autocorr
1133  %make_autocorr_aliases -l en-GB en-AG en-AU en-BS en-BW en-BZ en-CA en-DK en-GH en-HK en-IE en-IN en-JM en-NG en-NZ en-SG en-TT  %make_autocorr_aliases -l en-GB en-AG en-AU en-BS en-BW en-BZ en-CA en-DK en-GH en-HK en-IE en-IN en-JM en-NG en-NZ en-SG en-TT
1134  %make_autocorr_aliases -l en-US en-PH  %make_autocorr_aliases -l en-US en-PH
1135  #en-ZA exists and has a good autocorrect file with two or three extras that make sense for  #en-ZA exists and has a good autocorrect file with two or three extras that make sense for
# Line 1148  rm -f acor_[a-df-z]*.dat acor_e[su]*.dat Line 1148  rm -f acor_[a-df-z]*.dat acor_e[su]*.dat
1148  %endif  %endif
1149  popd  popd
1150  #rhbz#484055 make these shared across multiple applications  #rhbz#484055 make these shared across multiple applications
1151  mkdir -p $RPM_BUILD_ROOT/%{_datadir}  mkdir -p %{buildroot}/%{_datadir}
1152  mv -f $RPM_BUILD_ROOT/%{baseinstdir}/share/autocorr $RPM_BUILD_ROOT/%{_datadir}/autocorr  mv -f %{buildroot}/%{baseinstdir}/share/autocorr %{buildroot}/%{_datadir}/autocorr
1153  chmod 755 $RPM_BUILD_ROOT/%{_datadir}/autocorr  chmod 755 %{buildroot}/%{_datadir}/autocorr
1154    
1155  #remove it in case we didn't build with gcj  #remove it in case we didn't build with gcj
1156  rm -f $RPM_BUILD_ROOT/%{baseinstdir}/program/classes/sandbox.jar  rm -f %{buildroot}/%{baseinstdir}/program/classes/sandbox.jar
1157    
1158  #remove dummy .dat files  #remove dummy .dat files
1159  rm -f $RPM_BUILD_ROOT/%{baseinstdir}/program/root?.dat  rm -f %{buildroot}/%{baseinstdir}/program/root?.dat
1160    
1161  #set standard permissions for rpmlint  #set standard permissions for rpmlint
1162  find $RPM_BUILD_ROOT/%{baseinstdir} -exec chmod +w {} \;  find %{buildroot}/%{baseinstdir} -exec chmod +w {} \;
1163  find $RPM_BUILD_ROOT/%{baseinstdir} -type d -exec chmod 0755 {} \;  find %{buildroot}/%{baseinstdir} -type d -exec chmod 0755 {} \;
1164    
1165  # move python bits into site-packages  # move python bits into site-packages
1166  mkdir -p $RPM_BUILD_ROOT/%{python3_sitearch}  mkdir -p %{buildroot}/%{python3_sitearch}
1167  pushd $RPM_BUILD_ROOT/%{python3_sitearch}  pushd %{buildroot}/%{python3_sitearch}
1168  echo "import sys, os" > uno.py  echo "import sys, os" > uno.py
1169  echo "sys.path.append('%{baseinstdir}/program')" >> uno.py  echo "sys.path.append('%{baseinstdir}/program')" >> uno.py
1170  echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{baseinstdir}/program/fundamentalrc')" >> uno.py  echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{baseinstdir}/program/fundamentalrc')" >> uno.py
1171  cat $RPM_BUILD_ROOT/%{baseinstdir}/program/uno.py >> uno.py  cat %{buildroot}/%{baseinstdir}/program/uno.py >> uno.py
1172  rm -f $RPM_BUILD_ROOT/%{baseinstdir}/program/uno.py*  rm -f %{buildroot}/%{baseinstdir}/program/uno.py*
1173  mv -f $RPM_BUILD_ROOT/%{baseinstdir}/program/unohelper.py* .  mv -f %{buildroot}/%{baseinstdir}/program/unohelper.py* .
1174  popd  popd
1175    
1176  # rhbz#477435 package opensymbol separately  # rhbz#477435 package opensymbol separately
1177  pushd $RPM_BUILD_ROOT/%{baseinstdir}/share/fonts/truetype  pushd %{buildroot}/%{baseinstdir}/share/fonts/truetype
1178  install -d -m 0755 %{buildroot}%{_fontdir}  install -d -m 0755 %{buildroot}%{_fontdir}
1179  install -p -m 0644 *.ttf %{buildroot}%{_fontdir}  install -p -m 0644 *.ttf %{buildroot}%{_fontdir}
1180  popd  popd
1181  rm -rf $RPM_BUILD_ROOT/%{baseinstdir}/share/fonts  rm -rf %{buildroot}/%{baseinstdir}/share/fonts
1182    
1183  #ensure that no sneaky un-prelinkable, un-fpic or non executable shared libs  #ensure that no sneaky un-prelinkable, un-fpic or non executable shared libs
1184  #have snuck through  #have snuck through
1185  pic=0  pic=0
1186  executable=0  executable=0
1187  for foo in `find $RPM_BUILD_ROOT/%{instdir} -name "*" -exec file {} \;| grep ": ELF" | cut -d: -f 1` ; do  for foo in `find %{buildroot}/%{instdir} -name "*" -exec file {} \;| grep ": ELF" | cut -d: -f 1` ; do
1188      chmod +wx $foo      chmod +wx $foo
1189      ls -asl $foo      ls -asl $foo
1190      result=`readelf -d $foo | grep TEXTREL` || true      result=`readelf -d $foo | grep TEXTREL` || true
# Line 1202  if [ $pic == 1 ]; then false; fi Line 1202  if [ $pic == 1 ]; then false; fi
1202  if [ $executable == 1 ]; then false; fi  if [ $executable == 1 ]; then false; fi
1203    
1204  #make up some /usr/bin scripts  #make up some /usr/bin scripts
1205  mkdir -p $RPM_BUILD_ROOT/%{_bindir}  mkdir -p %{buildroot}/%{_bindir}
1206    
1207  echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/ooffice  echo \#\!/bin/sh > %{buildroot}/%{_bindir}/ooffice
1208  echo exec libreoffice \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/ooffice  echo exec libreoffice \"\$@\" >> %{buildroot}/%{_bindir}/ooffice
1209  chmod a+x $RPM_BUILD_ROOT/%{_bindir}/ooffice  chmod a+x %{buildroot}/%{_bindir}/ooffice
1210    
1211  echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/ooviewdoc  echo \#\!/bin/sh > %{buildroot}/%{_bindir}/ooviewdoc
1212  echo exec libreoffice --view \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/ooviewdoc  echo exec libreoffice --view \"\$@\" >> %{buildroot}/%{_bindir}/ooviewdoc
1213  chmod a+x $RPM_BUILD_ROOT/%{_bindir}/ooviewdoc  chmod a+x %{buildroot}/%{_bindir}/ooviewdoc
1214    
1215  echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/oowriter  echo \#\!/bin/sh > %{buildroot}/%{_bindir}/oowriter
1216  echo exec libreoffice --writer \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/oowriter  echo exec libreoffice --writer \"\$@\" >> %{buildroot}/%{_bindir}/oowriter
1217  chmod a+x $RPM_BUILD_ROOT/%{_bindir}/oowriter  chmod a+x %{buildroot}/%{_bindir}/oowriter
1218    
1219  echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/oocalc  echo \#\!/bin/sh > %{buildroot}/%{_bindir}/oocalc
1220  echo exec libreoffice --calc \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/oocalc  echo exec libreoffice --calc \"\$@\" >> %{buildroot}/%{_bindir}/oocalc
1221  chmod a+x $RPM_BUILD_ROOT/%{_bindir}/oocalc  chmod a+x %{buildroot}/%{_bindir}/oocalc
1222    
1223  echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/ooimpress  echo \#\!/bin/sh > %{buildroot}/%{_bindir}/ooimpress
1224  echo exec libreoffice --impress \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/ooimpress  echo exec libreoffice --impress \"\$@\" >> %{buildroot}/%{_bindir}/ooimpress
1225  chmod a+x $RPM_BUILD_ROOT/%{_bindir}/ooimpress  chmod a+x %{buildroot}/%{_bindir}/ooimpress
1226    
1227  echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/oodraw  echo \#\!/bin/sh > %{buildroot}/%{_bindir}/oodraw
1228  echo exec libreoffice --draw \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/oodraw  echo exec libreoffice --draw \"\$@\" >> %{buildroot}/%{_bindir}/oodraw
1229  chmod a+x $RPM_BUILD_ROOT/%{_bindir}/oodraw  chmod a+x %{buildroot}/%{_bindir}/oodraw
1230    
1231  echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/oomath  echo \#\!/bin/sh > %{buildroot}/%{_bindir}/oomath
1232  echo exec libreoffice --math \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/oomath  echo exec libreoffice --math \"\$@\" >> %{buildroot}/%{_bindir}/oomath
1233  chmod a+x $RPM_BUILD_ROOT/%{_bindir}/oomath  chmod a+x %{buildroot}/%{_bindir}/oomath
1234    
1235  echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/oobase  echo \#\!/bin/sh > %{buildroot}/%{_bindir}/oobase
1236  echo exec libreoffice --base \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/oobase  echo exec libreoffice --base \"\$@\" >> %{buildroot}/%{_bindir}/oobase
1237  chmod a+x $RPM_BUILD_ROOT/%{_bindir}/oobase  chmod a+x %{buildroot}/%{_bindir}/oobase
1238    
1239  cp -f %{SOURCE4} $RPM_BUILD_ROOT/%{_bindir}/unopkg  cp -f %{SOURCE4} %{buildroot}/%{_bindir}/unopkg
1240  sed -i -e "s/LAUNCHER/unopkg/g" $RPM_BUILD_ROOT/%{_bindir}/unopkg  sed -i -e "s/LAUNCHER/unopkg/g" %{buildroot}/%{_bindir}/unopkg
1241  sed -i -e "s/BRAND/libreoffice/g" $RPM_BUILD_ROOT/%{_bindir}/unopkg  sed -i -e "s/BRAND/libreoffice/g" %{buildroot}/%{_bindir}/unopkg
1242  chmod a+x $RPM_BUILD_ROOT/%{_bindir}/unopkg  chmod a+x %{buildroot}/%{_bindir}/unopkg
1243    
1244  cp -f %{SOURCE4} $RPM_BUILD_ROOT/%{_bindir}/libreoffice  cp -f %{SOURCE4} %{buildroot}/%{_bindir}/libreoffice
1245  sed -i -e "s/LAUNCHER/soffice/g" $RPM_BUILD_ROOT/%{_bindir}/libreoffice  sed -i -e "s/LAUNCHER/soffice/g" %{buildroot}/%{_bindir}/libreoffice
1246  sed -i -e "s/BRAND/libreoffice/g" $RPM_BUILD_ROOT/%{_bindir}/libreoffice  sed -i -e "s/BRAND/libreoffice/g" %{buildroot}/%{_bindir}/libreoffice
1247  chmod a+x $RPM_BUILD_ROOT/%{_bindir}/libreoffice  chmod a+x %{buildroot}/%{_bindir}/libreoffice
1248    
1249  pushd $RPM_BUILD_ROOT/%{_bindir}  pushd %{buildroot}/%{_bindir}
1250  # rhbz#499474 provide a /usr/bin/soffice for .recently-used.xbel  # rhbz#499474 provide a /usr/bin/soffice for .recently-used.xbel
1251  ln -s %{baseinstdir}/program/soffice soffice  ln -s %{baseinstdir}/program/soffice soffice
1252  # rhbz#499474 provide a /usr/bin/openoffice.org for backwards compat  # rhbz#499474 provide a /usr/bin/openoffice.org for backwards compat
1253  ln -s libreoffice openoffice.org  ln -s libreoffice openoffice.org
1254  popd  popd
1255    
1256  pushd $RPM_BUILD_ROOT/%{baseinstdir}/share/xdg/  pushd %{buildroot}/%{baseinstdir}/share/xdg/
1257  chmod u+w *.desktop  chmod u+w *.desktop
1258  rm -rf printeradmin.desktop  rm -rf printeradmin.desktop
1259  ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'`  ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'`
# Line 1271  done Line 1271  done
1271  # rhbz#156677 / rhbz#186515 do not show math and startcenter  # rhbz#156677 / rhbz#186515 do not show math and startcenter
1272  sed -i -e /NoDisplay/s/false/true/ math.desktop startcenter.desktop  sed -i -e /NoDisplay/s/false/true/ math.desktop startcenter.desktop
1273  # relocate the .desktop and icon files  # relocate the .desktop and icon files
1274  mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications  mkdir -p %{buildroot}/%{_datadir}/applications
1275  for app in base calc draw impress math startcenter writer xsltfilter; do  for app in base calc draw impress math startcenter writer xsltfilter; do
1276      sed -i -e 's/\${UNIXBASISROOTNAME}/%{name}/' $app.desktop      sed -i -e 's/\${UNIXBASISROOTNAME}/%{name}/' $app.desktop
1277      desktop-file-validate $app.desktop      desktop-file-validate $app.desktop
1278      cp -p $app.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/libreoffice-$app.desktop      cp -p $app.desktop %{buildroot}/%{_datadir}/applications/libreoffice-$app.desktop
1279  done  done
1280  popd  popd
1281    
# Line 1285  desktop-file-install --vendor="" \ Line 1285  desktop-file-install --vendor="" \
1285    --add-category="Office" \    --add-category="Office" \
1286    --add-category="X-MandrivaLinux-CrossDesktop" \    --add-category="X-MandrivaLinux-CrossDesktop" \
1287    --add-mime-type="application/vnd.ms-works;application/x-msworks-wp;zz-application/zz-winassoc-wps" \    --add-mime-type="application/vnd.ms-works;application/x-msworks-wp;zz-application/zz-winassoc-wps" \
1288    --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*writer*desktop    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*writer*desktop
1289    
1290  desktop-file-install --vendor="" \  desktop-file-install --vendor="" \
1291    --remove-category="Application" \    --remove-category="Application" \
1292    --add-category="Office" \    --add-category="Office" \
1293    --add-category="X-MandrivaLinux-CrossDesktop" \    --add-category="X-MandrivaLinux-CrossDesktop" \
1294    --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*calc*desktop    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*calc*desktop
1295    
1296  desktop-file-install --vendor="" \  desktop-file-install --vendor="" \
1297    --remove-category="Application" \    --remove-category="Application" \
1298    --add-category="Office" \    --add-category="Office" \
1299    --add-category="X-MandrivaLinux-CrossDesktop" \    --add-category="X-MandrivaLinux-CrossDesktop" \
1300    --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*draw*desktop    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*draw*desktop
1301    
1302  desktop-file-install --vendor="" \  desktop-file-install --vendor="" \
1303    --remove-category="Application" \    --remove-category="Application" \
1304    --add-category="Office" \    --add-category="Office" \
1305    --add-category="X-MandrivaLinux-CrossDesktop" \    --add-category="X-MandrivaLinux-CrossDesktop" \
1306    --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*impress*desktop    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*impress*desktop
1307    
1308  desktop-file-install --vendor="" \  desktop-file-install --vendor="" \
1309    --remove-category="Application" \    --remove-category="Application" \
1310    --add-category="Office" \    --add-category="Office" \
1311    --add-category="X-MandrivaLinux-CrossDesktop" \    --add-category="X-MandrivaLinux-CrossDesktop" \
1312    --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*math*desktop    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*math*desktop
1313    
1314  %if 0  %if 0
1315  desktop-file-install --vendor="" \  desktop-file-install --vendor="" \
1316    --remove-category="Application" \    --remove-category="Application" \
1317    --add-category="Office" \    --add-category="Office" \
1318    --add-category="X-MandrivaLinux-CrossDesktop" \    --add-category="X-MandrivaLinux-CrossDesktop" \
1319    --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*web*desktop    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*web*desktop
1320    
1321  desktop-file-install --vendor="" \  desktop-file-install --vendor="" \
1322    --remove-category="Application" \    --remove-category="Application" \
1323    --add-category="Office" \    --add-category="Office" \
1324    --add-category="X-MandrivaLinux-CrossDesktop" \    --add-category="X-MandrivaLinux-CrossDesktop" \
1325    --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*template*desktop    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*template*desktop
1326  %endif  %endif
1327    
1328  desktop-file-install --vendor="" \  desktop-file-install --vendor="" \
1329    --remove-category="X-MandrivaLinux-MoreApplications-Databases" \    --remove-category="X-MandrivaLinux-MoreApplications-Databases" \
1330    --add-category="X-MandrivaLinux-CrossDesktop" \    --add-category="X-MandrivaLinux-CrossDesktop" \
1331    --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/libreoffice-base.desktop    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/libreoffice-base.desktop
1332    
1333  %if 0  %if 0
1334  ## MS OOXML (#36465)  ## MS OOXML (#36465)
1335  desktop-file-install \  desktop-file-install \
1336    --add-mime-type="application/vnd.openxmlformats-officedocument.wordprocessingml.document" \    --add-mime-type="application/vnd.openxmlformats-officedocument.wordprocessingml.document" \
1337    --add-mime-type="application/vnd.ms-word.document.macroEnabled.12" \    --add-mime-type="application/vnd.ms-word.document.macroEnabled.12" \
1338    --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/writer*desktop    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/writer*desktop
1339    
1340  desktop-file-install \  desktop-file-install \
1341    --add-mime-type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" \    --add-mime-type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" \
1342    --add-mime-type="application/vnd.ms-excel.sheet.macroEnabled.12" \    --add-mime-type="application/vnd.ms-excel.sheet.macroEnabled.12" \
1343    --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/calc*desktop    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/calc*desktop
1344    
1345  desktop-file-install \  desktop-file-install \
1346    --add-mime-type="application/vnd.openxmlformats-officedocument.presentationml.presentation" \    --add-mime-type="application/vnd.openxmlformats-officedocument.presentationml.presentation" \
1347    --add-mime-type="application/vnd.ms-powerpoint.presentation.macroEnabled.12" \    --add-mime-type="application/vnd.ms-powerpoint.presentation.macroEnabled.12" \
1348    --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/impress*desktop    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/impress*desktop
1349  %endif  %endif
1350    
1351  for app in base calc draw impress math writer startcenter ; do  for app in base calc draw impress math writer startcenter ; do
1352          sed -i -e "s/Icon=$app/Icon=libreoffice-$app/g" $RPM_BUILD_ROOT%_datadir/applications/%name-${app}.desktop          sed -i -e "s/Icon=$app/Icon=libreoffice-$app/g" %{buildroot}%_datadir/applications/%name-${app}.desktop
1353  done  done
1354    
1355  pushd $WORKDIR/CustomTarget/sysui/share/output/usr/share  pushd $WORKDIR/CustomTarget/sysui/share/output/usr/share
# Line 1359  rm -rf icons/gnome applications applicat Line 1359  rm -rf icons/gnome applications applicat
1359  #relocate the rest of them  #relocate the rest of them
1360  # rhbz#901346 512x512 icons are not used by anything  # rhbz#901346 512x512 icons are not used by anything
1361  for icon in `find icons -path '*/512x512' -prune -o -type f -print`; do  for icon in `find icons -path '*/512x512' -prune -o -type f -print`; do
1362      mkdir -p $RPM_BUILD_ROOT/%{_datadir}/`dirname $icon`      mkdir -p %{buildroot}/%{_datadir}/`dirname $icon`
1363      cp -p $icon $RPM_BUILD_ROOT/%{_datadir}/`echo $icon | sed -e s@libreoffice$ICONVERSION-@libreoffice-@ | sed -e s@libreoffice$PRODUCTVERSION-@libreoffice-@`      cp -p $icon %{buildroot}/%{_datadir}/`echo $icon | sed -e s@libreoffice$ICONVERSION-@libreoffice-@ | sed -e s@libreoffice$PRODUCTVERSION-@libreoffice-@`
1364  done  done
1365    
1366  mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mime-info  mkdir -p %{buildroot}/%{_datadir}/mime-info
1367  cp -p mime-info/libreoffice$PRODUCTVERSION.keys $RPM_BUILD_ROOT/%{_datadir}/mime-info/libreoffice.keys  cp -p mime-info/libreoffice$PRODUCTVERSION.keys %{buildroot}/%{_datadir}/mime-info/libreoffice.keys
1368  cp -p mime-info/libreoffice$PRODUCTVERSION.mime $RPM_BUILD_ROOT/%{_datadir}/mime-info/libreoffice.mime  cp -p mime-info/libreoffice$PRODUCTVERSION.mime %{buildroot}/%{_datadir}/mime-info/libreoffice.mime
1369  #add our mime-types, e.g. for .oxt extensions  #add our mime-types, e.g. for .oxt extensions
1370  mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mime/packages  mkdir -p %{buildroot}/%{_datadir}/mime/packages
1371  cp -p mime/packages/libreoffice$PRODUCTVERSION.xml $RPM_BUILD_ROOT/%{_datadir}/mime/packages/libreoffice.xml  cp -p mime/packages/libreoffice$PRODUCTVERSION.xml %{buildroot}/%{_datadir}/mime/packages/libreoffice.xml
1372  popd  popd
1373    
1374  rm -rf $RPM_BUILD_ROOT/%{baseinstdir}/readmes  rm -rf %{buildroot}/%{baseinstdir}/readmes
1375  rm -rf $RPM_BUILD_ROOT/%{baseinstdir}/licenses  rm -rf %{buildroot}/%{baseinstdir}/licenses
1376    
1377  mkdir -p $RPM_BUILD_ROOT/%{baseinstdir}/share/psprint/driver  mkdir -p %{buildroot}/%{baseinstdir}/share/psprint/driver
1378  cp -p psprint_config/configuration/ppds/SGENPRT.PS $RPM_BUILD_ROOT/%{baseinstdir}/share/psprint/driver/SGENPRT.PS  cp -p psprint_config/configuration/ppds/SGENPRT.PS %{buildroot}/%{baseinstdir}/share/psprint/driver/SGENPRT.PS
1379    
1380  # rhbz#452385 to auto have postgres in classpath if subsequently installed  # rhbz#452385 to auto have postgres in classpath if subsequently installed
1381  sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/postgresql-jdbc.jar#" $RPM_BUILD_ROOT/%{baseinstdir}/program/fundamentalrc  sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/postgresql-jdbc.jar#" %{buildroot}/%{baseinstdir}/program/fundamentalrc
1382  # Br translation doesn't have any help  # Br translation doesn't have any help
1383  # Better use fr ones for now ( and check if this is still valid for next update )  # Better use fr ones for now ( and check if this is still valid for next update )
1384  pushd %buildroot%_libdir/libreoffice/help  pushd %buildroot%_libdir/libreoffice/help
# Line 1386  ln -s fr br Line 1386  ln -s fr br
1386  popd  popd
1387    
1388  # move glade catalog to system glade dir  # move glade catalog to system glade dir
1389  mkdir -p $RPM_BUILD_ROOT/%{_datadir}/glade3/catalogs  mkdir -p %{buildroot}/%{_datadir}/glade3/catalogs
1390  mv $RPM_BUILD_ROOT/%{baseinstdir}/share/glade/libreoffice-catalog.xml $RPM_BUILD_ROOT/%{_datadir}/glade3/catalogs  mv %{buildroot}/%{baseinstdir}/share/glade/libreoffice-catalog.xml %{buildroot}/%{_datadir}/glade3/catalogs
1391    
1392  # rhbz#1049543 install appdata  # rhbz#1049543 install appdata
1393  mkdir -p $RPM_BUILD_ROOT/%{_datadir}/appdata  mkdir -p %{buildroot}/%{_datadir}/appdata
1394  cp -p sysui/desktop/appstream-appdata/*.appdata.xml $RPM_BUILD_ROOT/%{_datadir}/appdata  cp -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}/%{_datadir}/appdata
1395    
1396  %if 0%{?_enable_debug_packages}  %if 0%{?_enable_debug_packages}
1397  export DESTDIR=$RPM_BUILD_ROOT  export DESTDIR=%{buildroot}
1398  make cmd cmd="install-gdb-printers -a %{_datadir}/gdb/auto-load%{baseinstdir} -c -i %{baseinstdir} -p %{_datadir}/libreoffice/gdb"  make cmd cmd="install-gdb-printers -a %{_datadir}/gdb/auto-load%{baseinstdir} -c -i %{baseinstdir} -p %{_datadir}/libreoffice/gdb"
1399  %endif  %endif
1400    
1401  cat> $RPM_BUILD_ROOT%_bindir/libreoffice-gtk3 <<EOF  cat> %{buildroot}%_bindir/libreoffice-gtk3 <<EOF
1402  #!/bin/sh  #!/bin/sh
1403  SAL_USE_VCLPLUGIN=gtk3 exec oowriter  SAL_USE_VCLPLUGIN=gtk3 exec oowriter
1404  EOF  EOF
1405  chmod +x $RPM_BUILD_ROOT%_bindir/libreoffice-gtk3  chmod +x %{buildroot}%_bindir/libreoffice-gtk3
1406    
1407  %check  %check
1408  exit 0  exit 0

Legend:
Removed from v.618477  
changed lines
  Added in v.618482

  ViewVC Help
Powered by ViewVC 1.1.30