3 # - build from source (the process and deps look like hell)
5 Summary: Framework cross-platform desktop applications using JavaScript, HTML and CSS
11 #Source0: https://github.com/atom/electron/archive/v%{version}/%{name}-%{version}.tar.gz
12 ## Source0-md5: 0c20e4676d7aef091521c9264d58939a
13 Source1: https://github.com/atom/electron/releases/download/v%{version}/%{name}-v%{version}-linux-ia32.zip
14 # Source1-md5: 1272f2a7330341f86cd8be1cce14afc9
15 Source2: https://github.com/atom/electron/releases/download/v%{version}/%{name}-v%{version}-linux-x64.zip
16 # Source2-md5: 1c77028a12330b4883fe93eea82c0b63
17 URL: https://github.com/atom/electron
19 ExclusiveArch: %{ix86} %{x8664}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _noautoprovfiles %{_libdir}/%{name}
23 %define _noautoreq libnode.so libnotify.so
26 The Electron framework lets you write cross-platform desktop
27 applications using JavaScript, HTML and CSS. It is based on Node.js
28 and Chromium and is used in the Atom editor.
43 rm -rf $RPM_BUILD_ROOT
45 # make install repeatable
46 rm -f debug*.list 2>/dev/null || :
48 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}}
49 cp -a * $RPM_BUILD_ROOT%{_libdir}/%{name}
51 rm $RPM_BUILD_ROOT%{_libdir}/%{name}/LICENSE*
52 rm $RPM_BUILD_ROOT%{_libdir}/%{name}/libgcrypt*
54 ln -sf %{_libdir}/%{name}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
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