From 79374daf4b5ac0c8ff0c931edbd642bcd29410dd Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mon, 28 Apr 2014 13:02:07 +0200 Subject: [PATCH] simplify --- libreoffice.spec | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libreoffice.spec b/libreoffice.spec index cc2d6af..dc37086 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1442,14 +1442,10 @@ for app in base calc draw impress math writer; do chmod a+x %{buildroot}%{_bindir}/oo$app done -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 +sed -e s/LAUNCHER/unopkg/g -e s/BRAND/libreoffice/g %{SOURCE4} > %{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 +sed -e s/LAUNCHER/soffice/g -e s/BRAND/libreoffice/g %{SOURCE4} > %{buildroot}%{_bindir}/libreoffice chmod a+x %{buildroot}%{_bindir}/libreoffice pushd %{buildroot}%{_bindir}