Mailspring/build/resources/linux/redhat/nylas.spec.in
Ben Gotow 4593d0a9b1 fix(config): Move account tokens to system keychain
Summary:
This diff also adds an account version number to the config so that the AccountStore can tell whether it should reload accounts (depending on whether it was the instance making tthe changes.)

This diff also fixes a tiny issue where un-opened composers threw an exception if you changed accounts.

Test Plan: New tests

Reviewers: evan, drew, juan

Reviewed By: juan

Subscribers: juan

Differential Revision: https://phab.nylas.com/D2726
2016-03-14 15:14:08 -07:00

41 lines
1.4 KiB
RPMSpec

Name: <%= name %>
Version: <%= version %>
Release: 0.1%{?dist}
Summary: <%= description %>
License: GPLv3
URL: https://nylas.com/N1
AutoReqProv: no # Avoid libchromiumcontent.so missing dependency
requires: libgnome-keyring0, gir1.2-gnomekeyring-1.0
%description
<%= description %>
%install
mkdir -p %{buildroot}<%= linuxShareDir %>
cp -r <%= contentsDir %>/* %{buildroot}<%= linuxShareDir %>
mkdir -p %{buildroot}<%= linuxBinDir %>/
cp N1.sh %{buildroot}<%= linuxBinDir %>/<%= appFileName %>
chmod 755 %{buildroot}<%= linuxBinDir %>/<%= appFileName %>
mkdir -p %{buildroot}/usr/local/share/applications/
mv nylas.desktop %{buildroot}/usr/local/share/applications/
for s in 16 32 64 128 256 512; do
mkdir -p %{buildroot}/usr/local/share/icons/hicolor/${s}x${s}/apps
cp -p <%= buildDir %>/icons/${s}.png \
%{buildroot}/usr/local/share/icons/hicolor/${s}x${s}/apps/<%= iconName %>.png
done
%files
<%= linuxBinDir %>/<%= appFileName %>
<%= linuxShareDir %>/
/usr/local/share/applications/nylas.desktop
/usr/local/share/icons/hicolor/16x16/apps/<%= iconName %>.png
/usr/local/share/icons/hicolor/32x32/apps/<%= iconName %>.png
/usr/local/share/icons/hicolor/64x64/apps/<%= iconName %>.png
/usr/local/share/icons/hicolor/128x128/apps/<%= iconName %>.png
/usr/local/share/icons/hicolor/256x256/apps/<%= iconName %>.png
/usr/local/share/icons/hicolor/512x512/apps/<%= iconName %>.png