[packages/electron] add build notes, cosmetics

glen glen at pld-linux.org
Thu Dec 17 21:51:16 CET 2015


commit 75cd2dc976fb9bc60eb17e7f2c1de820a8860d59
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Dec 17 22:51:06 2015 +0200

    add build notes, cosmetics

 electron.spec | 22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/electron.spec b/electron.spec
index 515fc5b..f4c0844 100644
--- a/electron.spec
+++ b/electron.spec
@@ -1,6 +1,6 @@
-
 # TODO:
-#	- build from source (the process and deps look like hell)
+# - build from source (the process and deps look like hell)
+#   https://github.com/atom/electron/blob/v0.36.0/docs/development/build-instructions-linux.md
 
 Summary:	Framework cross-platform desktop applications using JavaScript, HTML and CSS
 Name:		electron
@@ -29,29 +29,25 @@ and Chromium and is used in the Atom editor.
 
 %prep
 %setup -qcT
-
 %ifarch %{ix86}
-unzip %{SOURCE1}
+%{__unzip} %{SOURCE1}
 %endif
 %ifarch %{x8664}
-unzip %{SOURCE2}
+%{__unzip} %{SOURCE2}
 %endif
 
-%build
-
 %install
 rm -rf $RPM_BUILD_ROOT
 
 # make install repeatable
-rm -f debug*.list 2>/dev/null || :
+rm -f debug*.list
 
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}}
-cp -a * $RPM_BUILD_ROOT%{_libdir}/%{name}
-
-rm $RPM_BUILD_ROOT%{_libdir}/%{name}/LICENSE*
-rm $RPM_BUILD_ROOT%{_libdir}/%{name}/libgcrypt*
+cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
+ln -s %{_libdir}/%{name}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
 
-ln -sf %{_libdir}/%{name}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/LICENSE*
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/libgcrypt*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/electron.git/commitdiff/75cd2dc976fb9bc60eb17e7f2c1de820a8860d59



More information about the pld-cvs-commit mailing list