Atom Package for Fedora 32-bit

Today I do some research about atom in Fedora 32-bit, as we know the atom editor
for linux is only available in 64-bit architecture, but the atom editor team provide step how to compile
the atom editor in github (yeah sounds good).

And Here is my way and what I’ve done when tried to create RPM for atom editor.

Install Development tools, Fedora Packager and compiler requirement for development

Run this command

$ sudo yum -y install @development-tools
$ sudo yum -y install fedora-packager
$ sudo yum -y install make gcc gcc-c++ glibc-devel libgnome-keyring-devel

don’t forget to add current user to group mock by running usermod command

$ sudo usermod -a -G mock yourusername

Install Node and Node Package Manager (NPM)

Simply run the

$ sudo yum -y install nodejs npm

UPDATE :
In my system I can’t run any npm package using sudo, so we need to create the
link, here is the command

$ sudo ln -s /usr/local/bin/node /usr/bin/node
$ sudo ln -s /usr/local/lib/node /usr/lib/node
$ sudo ln -s /usr/local/bin/npm /usr/bin/npm

Clone the atom repository on github

$ git clone git@github.com:atom/atom.git
$ cd atom

It will clone up to 100MB total file from github.

After done the clone remove the gyp cause it’ll conflict with node-gyp , don’t
worry you can instal it later ;).

Run the build

Now you can build the atom package by running script/rpmbuild command in atom
root directory, the process will create the directory /tmp/atom-build contain
folder called Atom,icons and rpm and also will create atom.desktop and
atom.spec file.

The installation done and RPM package has been creaed, it stored at
/tmp/atom-build/rpm folder, you can install the package now.

We have another step to install atom without creating the rpm package by runing this command from the root directory of atom

$ script/build
$ script/grunt install

If you don’t neet waste your time to compile the app you can download the atom
rpm for fedora 21 (32-bit)
here.

Happy coding :D