]>
Commit | Line | Data |
---|---|---|
4e4e360b | 1 | # TODO: |
75cd2dc9 ER |
2 | # - build from source (the process and deps look like hell) |
3 | # https://github.com/atom/electron/blob/v0.36.0/docs/development/build-instructions-linux.md | |
7b6f5131 ER |
4 | # NOTES: |
5 | # - space considerations: ~25GiB for build | |
6 | # | |
4e4e360b JK |
7 | |
8 | Summary: Framework cross-platform desktop applications using JavaScript, HTML and CSS | |
9 | Name: electron | |
10 | Version: 0.36.0 | |
11 | Release: 0.1 | |
12 | License: MIT, BSD | |
13 | Group: Applications | |
4e4e360b | 14 | URL: https://github.com/atom/electron |
7b6f5131 | 15 | BuildRequires: git-core |
a5bd9f6f | 16 | BuildRequires: ncurses |
7b6f5131 | 17 | BuildRequires: npm |
4e4e360b JK |
18 | ExclusiveArch: %{ix86} %{x8664} |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %define _noautoprovfiles %{_libdir}/%{name} | |
22 | %define _noautoreq libnode.so libnotify.so | |
23 | ||
24 | %description | |
25 | The Electron framework lets you write cross-platform desktop | |
26 | applications using JavaScript, HTML and CSS. It is based on Node.js | |
27 | and Chromium and is used in the Atom editor. | |
28 | ||
29 | %prep | |
30 | %setup -qcT | |
7b6f5131 | 31 | git clone https://github.com/atom/electron.git -b v%{version} --depth 1 . |
36090fbf | 32 | |
a5bd9f6f ER |
33 | ./script/bootstrap.py -v |
34 | ||
35 | install -d lib | |
36 | ln -s %{_libdir}/libncurses.so.5 lib/libtinfo.so.5 | |
37 | ||
82b8ebc7 ER |
38 | %build |
39 | export LD_LIBRARY_PATH=`pwd`/lib | |
40 | ||
41 | ./script/build.py -c R | |
42 | ||
4e4e360b JK |
43 | %install |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | # make install repeatable | |
75cd2dc9 | 47 | rm -f debug*.list |
4e4e360b JK |
48 | |
49 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}} | |
75cd2dc9 ER |
50 | cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name} |
51 | ln -s %{_libdir}/%{name}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name} | |
4e4e360b | 52 | |
75cd2dc9 ER |
53 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/LICENSE* |
54 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/libgcrypt* | |
4e4e360b JK |
55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc LICENSE* | |
62 | %attr(755,root,root) %{_bindir}/%{name} | |
63 | %dir %{_libdir}/%{name} | |
64 | %{_libdir}/%{name}/locales | |
65 | %{_libdir}/%{name}/resources | |
66 | %attr(755,root,root) %{_libdir}/%{name}/electron | |
67 | %attr(755,root,root) %{_libdir}/%{name}/libnode.so | |
68 | %attr(755,root,root) %{_libdir}/%{name}/libnotify.so.4 | |
69 | %{_libdir}/%{name}/content_shell.pak | |
70 | %{_libdir}/%{name}/icudtl.dat | |
71 | %{_libdir}/%{name}/natives_blob.bin | |
72 | %{_libdir}/%{name}/snapshot_blob.bin | |
73 | %{_libdir}/%{name}/version |