[packages/atom] apm subpackage

glen glen at pld-linux.org
Sat Nov 28 22:55:49 CET 2015


commit 8393a48deb379f8badb1239455806c1566ec6e19
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Nov 28 20:31:06 2015 +0200

    apm subpackage

 atom.spec | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)
---
diff --git a/atom.spec b/atom.spec
index 1bd4515..4430fcc 100644
--- a/atom.spec
+++ b/atom.spec
@@ -4,7 +4,7 @@
 Summary:	A hackable text editor for the 21st century
 Name:		atom
 Version:	1.2.4
-Release:	0.3
+Release:	0.4
 License:	MIT
 Group:		Applications/Editors
 Source0:	https://github.com/atom/atom/releases/download/v%{version}/%{name}.x86_64.rpm
@@ -13,6 +13,7 @@ Source0:	https://github.com/atom/atom/releases/download/v%{version}/%{name}.x86_
 NoSource:	0
 URL:		https://atom.io/
 BuildRequires:	rpm-utils
+Suggests:	apm
 ExclusiveArch:	%{x8664}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,6 +29,17 @@ Whether you're tweaking the look of Atom's interface with CSS or
 adding major features with HTML and JavaScript, it's never been easier
 to take control of your editor.
 
+%package -n apm
+Summary:	Atom Package Manager
+Group:		Development/Tools
+URL:		https://github.com/atom/apm
+
+%description -n apm
+Discover and install Atom packages powered by atom.io
+
+You can configure apm via a ~/.atom/.apmrc file similarly to npm
+config.
+
 %prep
 %setup -qcT
 SOURCE=%{SOURCE0}
@@ -65,7 +77,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc LICENSE LICENSE.chromedrive
 %attr(755,root,root) %{_bindir}/atom
-%attr(755,root,root) %{_bindir}/apm
 %dir %{_appdir}
 %{_appdir}/version
 %{_appdir}/*.bin
@@ -81,15 +92,19 @@ rm -rf $RPM_BUILD_ROOT
 %{_appdir}/locales
 
 %dir %{_appdir}/resources
-     %{_appdir}/resources/LICENSE.md
+%{_appdir}/resources/LICENSE.md
 %dir %{_appdir}/resources/app
 
 %{_appdir}/resources/app.asar
 %{_appdir}/resources/atom.asar
 
+# needed?
+%{_appdir}/resources/app.asar.unpacked
+
+%files -n apm
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/apm
+
 # too many files to list, assume file permissions
 %defattr(-,root,root,-)
 %{_appdir}/resources/app/apm
-
-# needed?
-%{_appdir}/resources/app.asar.unpacked
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/atom.git/commitdiff/8393a48deb379f8badb1239455806c1566ec6e19



More information about the pld-cvs-commit mailing list