-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
997 additions
and
811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
Summary: APPLICATION_SUMMARY | ||
Name: APPLICATION_PACKAGE | ||
Version: APPLICATION_VERSION | ||
Release: APPLICATION_RELEASE | ||
License: APPLICATION_LICENSE_TYPE | ||
Vendor: APPLICATION_VENDOR | ||
Prefix: %{dirname:APPLICATION_DIRECTORY} | ||
Provides: APPLICATION_PACKAGE | ||
%if "xAPPLICATION_GROUP" != x | ||
Group: APPLICATION_GROUP | ||
%endif | ||
|
||
Autoprov: 0 | ||
Autoreq: 0 | ||
%if "xPACKAGE_DEFAULT_DEPENDENCIES" != x || "xPACKAGE_CUSTOM_DEPENDENCIES" != x | ||
Requires: PACKAGE_DEFAULT_DEPENDENCIES PACKAGE_CUSTOM_DEPENDENCIES | ||
%endif | ||
|
||
#avoid ARCH subfolder | ||
%define _rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm | ||
|
||
#comment line below to enable effective jar compression | ||
#it could easily get your package size from 40 to 15Mb but | ||
#build time will substantially increase and it may require unpack200/system java to install | ||
%define __jar_repack %{nil} | ||
|
||
%description | ||
APPLICATION_DESCRIPTION | ||
|
||
%prep | ||
|
||
%build | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
install -d -m 755 %{buildroot}APPLICATION_DIRECTORY | ||
cp -r %{_sourcedir}APPLICATION_DIRECTORY/* %{buildroot}APPLICATION_DIRECTORY | ||
%if "xAPPLICATION_LICENSE_FILE" != x | ||
%define license_install_file %{_defaultlicensedir}/%{name}-%{version}/%{basename:APPLICATION_LICENSE_FILE} | ||
install -d -m 755 %{buildroot}%{dirname:%{license_install_file}} | ||
install -m 644 APPLICATION_LICENSE_FILE %{buildroot}%{license_install_file} | ||
%endif | ||
|
||
%files | ||
%if "xAPPLICATION_LICENSE_FILE" != x | ||
%license %{license_install_file} | ||
%{dirname:%{license_install_file}} | ||
%endif | ||
# If installation directory for the application is /a/b/c, we want only root | ||
# component of the path (/a) in the spec file to make sure all subdirectories | ||
# are owned by the package. | ||
%(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 | ||
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 | ||
if [ -e $NATIVE_MESSAGING_JSON ] && grep --quiet '"path": "/opt' $NATIVE_MESSAGING_JSON; then | ||
rm $NATIVE_MESSAGING_JSON | ||
fi | ||
done | ||
UTILITY_SCRIPTS | ||
DESKTOP_COMMANDS_UNINSTALL | ||
|
||
%clean |
9 changes: 9 additions & 0 deletions
9
buildres/linux/native-messaging-host/chromium/org.jabref.jabref.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "org.jabref.jabref", | ||
"description": "JabRef", | ||
"path": "/opt/jabref/lib/jabrefHost.py", | ||
"type": "stdio", | ||
"allowed_origins": [ | ||
"chrome-extension://bifehkofibaamoeaopjglfkddgkijdlh/" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"path": "/opt/jabref/lib/jabrefHost.py", | ||
"type": "stdio", | ||
"allowed_extensions": [ | ||
"[email protected]" | ||
"[email protected]", | ||
"@jabfox" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"path": "JabRefHost.bat", | ||
"type": "stdio", | ||
"allowed_extensions": [ | ||
"[email protected]" | ||
"[email protected]", | ||
"@jabfox" | ||
] | ||
} |
Oops, something went wrong.