1 |
# download path contains version without the last (fourth) digit |
# download path contains version without the last (fourth) digit |
2 |
%define libo_version 4.2.3 |
%define libo_version 4.2.4 |
3 |
# Should contain .alphaX / .betaX, if this is pre-release (actually |
# Should contain .alphaX / .betaX, if this is pre-release (actually |
4 |
# pre-RC) version. The pre-release string is part of tarball file names, |
# pre-RC) version. The pre-release string is part of tarball file names, |
5 |
# so we need a way to define it easily at one place. |
# so we need a way to define it easily at one place. |
38 |
%define _enable_debug_packages 0 |
%define _enable_debug_packages 0 |
39 |
|
|
40 |
Name: libreoffice |
Name: libreoffice |
41 |
Version: %{libo_version}.3 |
Version: %{libo_version}.1 |
42 |
Release: %mkrel 2%{?libo_prerelease} |
Release: %mkrel 2%{?libo_prerelease} |
43 |
Summary: Free Software Productivity Suite |
Summary: Free Software Productivity Suite |
44 |
License: (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and Artistic and MPLv2.0 |
License: (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and Artistic and MPLv2.0 |
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 %{buildroot}/%{_bindir} |
mkdir -p %{buildroot}%{_bindir} |
1206 |
|
|
1207 |
echo \#\!/bin/sh > %{buildroot}/%{_bindir}/ooffice |
echo \#\!/bin/sh > %{buildroot}%{_bindir}/ooffice |
1208 |
echo exec libreoffice \"\$@\" >> %{buildroot}/%{_bindir}/ooffice |
echo exec libreoffice \"\$@\" >> %{buildroot}%{_bindir}/ooffice |
1209 |
chmod a+x %{buildroot}/%{_bindir}/ooffice |
chmod a+x %{buildroot}%{_bindir}/ooffice |
1210 |
|
|
1211 |
echo \#\!/bin/sh > %{buildroot}/%{_bindir}/ooviewdoc |
echo \#\!/bin/sh > %{buildroot}%{_bindir}/ooviewdoc |
1212 |
echo exec libreoffice --view \"\$@\" >> %{buildroot}/%{_bindir}/ooviewdoc |
echo exec libreoffice --view \"\$@\" >> %{buildroot}%{_bindir}/ooviewdoc |
1213 |
chmod a+x %{buildroot}/%{_bindir}/ooviewdoc |
chmod a+x %{buildroot}%{_bindir}/ooviewdoc |
1214 |
|
|
1215 |
echo \#\!/bin/sh > %{buildroot}/%{_bindir}/oowriter |
echo \#\!/bin/sh > %{buildroot}%{_bindir}/oowriter |
1216 |
echo exec libreoffice --writer \"\$@\" >> %{buildroot}/%{_bindir}/oowriter |
echo exec libreoffice --writer \"\$@\" >> %{buildroot}%{_bindir}/oowriter |
1217 |
chmod a+x %{buildroot}/%{_bindir}/oowriter |
chmod a+x %{buildroot}%{_bindir}/oowriter |
1218 |
|
|
1219 |
echo \#\!/bin/sh > %{buildroot}/%{_bindir}/oocalc |
echo \#\!/bin/sh > %{buildroot}%{_bindir}/oocalc |
1220 |
echo exec libreoffice --calc \"\$@\" >> %{buildroot}/%{_bindir}/oocalc |
echo exec libreoffice --calc \"\$@\" >> %{buildroot}%{_bindir}/oocalc |
1221 |
chmod a+x %{buildroot}/%{_bindir}/oocalc |
chmod a+x %{buildroot}%{_bindir}/oocalc |
1222 |
|
|
1223 |
echo \#\!/bin/sh > %{buildroot}/%{_bindir}/ooimpress |
echo \#\!/bin/sh > %{buildroot}%{_bindir}/ooimpress |
1224 |
echo exec libreoffice --impress \"\$@\" >> %{buildroot}/%{_bindir}/ooimpress |
echo exec libreoffice --impress \"\$@\" >> %{buildroot}%{_bindir}/ooimpress |
1225 |
chmod a+x %{buildroot}/%{_bindir}/ooimpress |
chmod a+x %{buildroot}%{_bindir}/ooimpress |
1226 |
|
|
1227 |
echo \#\!/bin/sh > %{buildroot}/%{_bindir}/oodraw |
echo \#\!/bin/sh > %{buildroot}%{_bindir}/oodraw |
1228 |
echo exec libreoffice --draw \"\$@\" >> %{buildroot}/%{_bindir}/oodraw |
echo exec libreoffice --draw \"\$@\" >> %{buildroot}%{_bindir}/oodraw |
1229 |
chmod a+x %{buildroot}/%{_bindir}/oodraw |
chmod a+x %{buildroot}%{_bindir}/oodraw |
1230 |
|
|
1231 |
echo \#\!/bin/sh > %{buildroot}/%{_bindir}/oomath |
echo \#\!/bin/sh > %{buildroot}%{_bindir}/oomath |
1232 |
echo exec libreoffice --math \"\$@\" >> %{buildroot}/%{_bindir}/oomath |
echo exec libreoffice --math \"\$@\" >> %{buildroot}%{_bindir}/oomath |
1233 |
chmod a+x %{buildroot}/%{_bindir}/oomath |
chmod a+x %{buildroot}%{_bindir}/oomath |
1234 |
|
|
1235 |
echo \#\!/bin/sh > %{buildroot}/%{_bindir}/oobase |
echo \#\!/bin/sh > %{buildroot}%{_bindir}/oobase |
1236 |
echo exec libreoffice --base \"\$@\" >> %{buildroot}/%{_bindir}/oobase |
echo exec libreoffice --base \"\$@\" >> %{buildroot}%{_bindir}/oobase |
1237 |
chmod a+x %{buildroot}/%{_bindir}/oobase |
chmod a+x %{buildroot}%{_bindir}/oobase |
1238 |
|
|
1239 |
cp -f %{SOURCE4} %{buildroot}/%{_bindir}/unopkg |
cp -f %{SOURCE4} %{buildroot}%{_bindir}/unopkg |
1240 |
sed -i -e "s/LAUNCHER/unopkg/g" %{buildroot}/%{_bindir}/unopkg |
sed -i -e "s/LAUNCHER/unopkg/g" %{buildroot}%{_bindir}/unopkg |
1241 |
sed -i -e "s/BRAND/libreoffice/g" %{buildroot}/%{_bindir}/unopkg |
sed -i -e "s/BRAND/libreoffice/g" %{buildroot}%{_bindir}/unopkg |
1242 |
chmod a+x %{buildroot}/%{_bindir}/unopkg |
chmod a+x %{buildroot}%{_bindir}/unopkg |
1243 |
|
|
1244 |
cp -f %{SOURCE4} %{buildroot}/%{_bindir}/libreoffice |
cp -f %{SOURCE4} %{buildroot}%{_bindir}/libreoffice |
1245 |
sed -i -e "s/LAUNCHER/soffice/g" %{buildroot}/%{_bindir}/libreoffice |
sed -i -e "s/LAUNCHER/soffice/g" %{buildroot}%{_bindir}/libreoffice |
1246 |
sed -i -e "s/BRAND/libreoffice/g" %{buildroot}/%{_bindir}/libreoffice |
sed -i -e "s/BRAND/libreoffice/g" %{buildroot}%{_bindir}/libreoffice |
1247 |
chmod a+x %{buildroot}/%{_bindir}/libreoffice |
chmod a+x %{buildroot}%{_bindir}/libreoffice |
1248 |
|
|
1249 |
pushd %{buildroot}/%{_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 |
1390 |
mv %{buildroot}/%{baseinstdir}/share/glade/libreoffice-catalog.xml %{buildroot}/%{_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 %{buildroot}/%{_datadir}/appdata |
mkdir -p %{buildroot}%{_datadir}/appdata |
1394 |
cp -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}/%{_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=%{buildroot} |
export DESTDIR=%{buildroot} |