2015-05-20 08:02:46 +08:00
|
|
|
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
|
2015-10-30 04:46:14 +08:00
|
|
|
mkdir -p %{buildroot}/usr/local/share/nylas
|
|
|
|
cp -r /tmp/nylas-build/Nylas/* %{buildroot}/usr/local/share/nylas
|
2015-11-28 03:41:53 +08:00
|
|
|
|
2015-05-20 08:02:46 +08:00
|
|
|
mkdir -p %{buildroot}/usr/local/bin/
|
|
|
|
ln -sf /usr/local/share/nylas/resources/app/apm/node_modules/.bin/apm %{buildroot}/usr/local/bin/apm
|
2015-11-28 03:41:53 +08:00
|
|
|
|
2015-10-03 02:36:19 +08:00
|
|
|
cp N1.sh %{buildroot}/usr/local/bin/nylas
|
2015-11-28 03:41:53 +08:00
|
|
|
chmod 755 %{buildroot}/usr/local/bin/nylas
|
|
|
|
|
2015-05-20 08:02:46 +08:00
|
|
|
mkdir -p %{buildroot}/usr/local/share/applications/
|
|
|
|
mv nylas.desktop %{buildroot}/usr/local/share/applications/
|
|
|
|
|
2015-11-28 03:41:53 +08:00
|
|
|
for s in 16 32 64 128 256 512; do
|
|
|
|
mkdir -p %{buildroot}/usr/local/share/icons/hicolor/${s}x${s}/apps
|
|
|
|
cp -p /tmp/nylas-build/icons/${s}.png \
|
|
|
|
%{buildroot}/usr/local/share/icons/hicolor/${s}x${s}/apps/nylas.png
|
|
|
|
done
|
|
|
|
|
2015-05-20 08:02:46 +08:00
|
|
|
%files
|
|
|
|
/usr/local/bin/nylas
|
|
|
|
/usr/local/bin/apm
|
|
|
|
/usr/local/share/nylas/
|
|
|
|
/usr/local/share/applications/nylas.desktop
|
2015-11-28 03:41:53 +08:00
|
|
|
/usr/local/share/icons/hicolor/16x16/apps/nylas.png
|
|
|
|
/usr/local/share/icons/hicolor/32x32/apps/nylas.png
|
|
|
|
/usr/local/share/icons/hicolor/64x64/apps/nylas.png
|
|
|
|
/usr/local/share/icons/hicolor/128x128/apps/nylas.png
|
|
|
|
/usr/local/share/icons/hicolor/256x256/apps/nylas.png
|
|
|
|
/usr/local/share/icons/hicolor/512x512/apps/nylas.png
|