mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Also, atom.spec now uses the description provided by grunt instead of hardcoding its own description.
28 lines
942 B
RPMSpec
28 lines
942 B
RPMSpec
Name: <%= name %>
|
|
Version: <%= version %>
|
|
Release: 0.1%{?dist}
|
|
Summary: <%= description %>
|
|
License: MIT
|
|
URL: https://atom.io/
|
|
AutoReqProv: no # Avoid libchromiumcontent.so missing dependency
|
|
Prefix: <%= installDir %>
|
|
|
|
%description
|
|
<%= description %>
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/<%= installDir %>/share/atom/
|
|
cp -r Atom/* %{buildroot}/<%= installDir %>/share/atom/
|
|
mkdir -p %{buildroot}/<%= installDir %>/bin/
|
|
ln -sf ../share/atom/resources/app/apm/node_modules/.bin/apm %{buildroot}/<%= installDir %>/bin/apm
|
|
cp atom.sh %{buildroot}/<%= installDir %>/bin/atom
|
|
chmod 755 %{buildroot}/<%= installDir %>/bin/atom
|
|
mkdir -p %{buildroot}/<%= installDir %>/share/applications/
|
|
cp atom.desktop %{buildroot}/<%= installDir %>/share/applications/
|
|
|
|
%files
|
|
<%= installDir %>/bin/atom
|
|
<%= installDir %>/bin/apm
|
|
<%= installDir %>/share/atom/
|
|
<%= installDir %>/share/applications/atom.desktop
|