summaryrefslogtreecommitdiffstats
path: root/doc/installation/packages.txt
blob: 280145a9ab4ee2c331bafb48ea810dce5d813cc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.. -*- mode: rst -*-

.. _installation-packages:

.. _CentOS: http://www.centos.org/
.. _EPEL: http://fedoraproject.org/wiki/EPEL

Building RPM packages from source
=================================

Building from Tarball
---------------------

* Create a directory structure for rpmbuild::
    rpmdev-setuptree

* Copy the tarball to ``~/rpmbuild/SOURCES/``
* Extract another copy of it somewhere else (eg: ``/tmp``) and retrieve
  the ``misc/bcfg2.spec`` file
* Run the following::

    rpmbuild -ba bcfg2.spec

* The resulting RPMs will be in ``~/rpmbuild/RPMS/`` and SRPMs
  in ``~/rpmbuild/SRPMS/``.