From d03d85aef9189beb6a1e2d9510d41e4e1e08a0d6 Mon Sep 17 00:00:00 2001 From: Galileo Sartor Date: Fri, 8 Nov 2019 12:11:52 +0100 Subject: [PATCH] Remove chromium json install in rpm spec Revert after the chromium files are introduced in the repo --- buildres/linux/jabref.spec | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/buildres/linux/jabref.spec b/buildres/linux/jabref.spec index 55b6e0e2202e..9b5a7100f1ae 100644 --- a/buildres/linux/jabref.spec +++ b/buildres/linux/jabref.spec @@ -52,15 +52,11 @@ cp -r %{_sourcedir}APPLICATION_DIRECTORY/* %{buildroot}APPLICATION_DIRECTORY %(echo APPLICATION_DIRECTORY | sed -e "s|\(^/[^/]\{1,\}\).*$|\1|") %post -install -D -m0755 /opt/jabref/lib/native-messaging-host/firefox/org.jabref.jabref.json /usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json -install -D -m0755 /opt/jabref/lib/native-messaging-host/chromium/org.jabref.jabref.json /etc/chromium/native-messaging-hosts/org.jabref.jabref.json -install -D -m0755 /opt/jabref/lib/native-messaging-host/chromium/org.jabref.jabref.json /etc/opt/chrome/native-messaging-hosts/org.jabref.jabref.json +install -D -m0755 /opt/jabref/lib/org.jabref.jabref.json /usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json DESKTOP_COMMANDS_INSTALL %preun -for NATIVE_MESSAGING_JSON in "/usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json"\ - "/etc/chromium/native-messaging-hosts/org.jabref.jabref.json"\ - "/etc/opt/chrome/native-messaging-hosts/org.jabref.jabref.json"; do +for NATIVE_MESSAGING_JSON in "/usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json"; do if [ -e $NATIVE_MESSAGING_JSON ] && grep --quiet '"path": "/opt' $NATIVE_MESSAGING_JSON; then echo $NATIVE_MESSAGING_JSON fi