]> git.pld-linux.org Git - packages/atom.git/commitdiff
new, version 1.2.4
authorElan Ruusamäe <glen@delfi.ee>
Sat, 28 Nov 2015 17:08:00 +0000 (19:08 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 28 Nov 2015 17:08:00 +0000 (19:08 +0200)
needs work to make it build

atom.spec [new file with mode: 0644]

diff --git a/atom.spec b/atom.spec
new file mode 100644 (file)
index 0000000..d41d70c
--- /dev/null
+++ b/atom.spec
@@ -0,0 +1,53 @@
+# BUILDING:
+# https://github.com/atom/atom/blob/master/docs/build-instructions/linux.md
+
+Summary:       A hackable text editor for the 21st century
+Name:          atom
+Version:       1.2.4
+Release:       0.1
+License:       MIT
+Group:         Applications/Editors
+Source0:       https://github.com/atom/atom/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: c39979527badc8a17d0af47d36994990
+URL:           https://atom.io/
+BuildRequires: libgnome-keyring-devel
+BuildRequires: libstdc++-devel
+BuildRequires: nodejs-devel
+BuildRequires: nodejs-gyp
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Atom is a desktop application based on web technologies. Like other
+desktop apps, it has its own icon in the dock, native menus and
+dialogs, and full access to the file system.
+
+Open the dev tools, however, and Atom's web-based core shines through.
+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.
+
+%prep
+%setup -q
+
+%build
+# Set the build directory as per grunt.option('build-dir') in Gruntfile.coffee.
+# This prevents Atom from being built somewhere in /tmp.
+script/build \
+       --build-dir=$PWD/build-rpm
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# The install task honours the INSTALL_PREFIX environment variable, so specify
+# it for easier packaging.
+export INSTALL_PREFIX=$RPM_BUILD_ROOT%{_prefix}
+
+# -d switch enables debugging output, -v enables verbose output
+script/grunt -dv --build-dir=$PWD/build-rpm install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/atom
+%attr(755,root,root) %{_bindir}/apm
This page took 0.167908 seconds and 4 git commands to generate.