mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-13 21:24:58 +08:00
9900c2867c
* fixed bug timezone cannot detect in fedora * update spec build fedora package * rpm package for fedora 22 * change code follow coffee-script style * remove fedora binary file
41 lines
1.4 KiB
RPMSpec
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-keyring
|
|
|
|
%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
|