Name:           <%= name %>
Version:        <%= version %>
Release:        0.1%{?dist}
Summary:        Nylas is an Email OS
License:        Proprietary
URL:            https://nylas.com/
AutoReqProv:    no # Avoid libchromiumcontent.so missing dependency

%description
<%= description %>

%install
mkdir -p %{buildroot}/usr/local/share/Nylas
cp -r /tmp/nylas-build/Nylas/* %{buildroot}/usr/local/share/Nylas
mkdir -p %{buildroot}/usr/local/bin/
ln -sf /usr/local/share/nylas/resources/app/apm/node_modules/.bin/apm %{buildroot}/usr/local/bin/apm
cp atom.sh %{buildroot}/usr/local/bin/nylas
chmod 755 nylas
mkdir -p %{buildroot}/usr/local/share/applications/
mv nylas.desktop %{buildroot}/usr/local/share/applications/

%files
/usr/local/bin/nylas
/usr/local/bin/apm
/usr/local/share/nylas/
/usr/local/share/applications/nylas.desktop
