# Building RPM of ansible 1.0 -- issues encountered

**URL:** <https://forum.ansible.com/t/building-rpm-of-ansible-1-0-issues-encountered/12346>\
**Category:** Ansible Project\
**Created:** [February 12, 2013, 10:08pm UTC](https://forum.ansible.com/t/building-rpm-of-ansible-1-0-issues-encountered/12346 "2013-02-12T22:08:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![VK1](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@VK1](https://forum.ansible.com/u/VK1)\
**Post date:** [February 12, 2013, 10:08pm UTC](https://forum.ansible.com/t/building-rpm-of-ansible-1-0-issues-encountered/12346/1 "2013-02-12T22:08:23Z")

</div>

Hi,

This is in RHEL6:

I'm trying to build ansible with 'rpmbuild -tb \<tarball\>' by re-creating ansible-1.0.tar.gz

Issues:

1. Minor - rpmbuild and the spec file assume ansible-1.0.tar.gz containing a directory called ansible-1.0. I built this myself by unzip'ing and re-creating the tarball.

2. Bigger issue:

Lots of refs to man3 and other docs in the spec file that break rpmbuild because those files don't exist when I tried to build:

My diff -u commenting out those lines

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 12, 2013, 10:18pm UTC](https://forum.ansible.com/t/building-rpm-of-ansible-1-0-issues-encountered/12346/2 "2013-02-12T22:18:02Z")

</div>

Builds fine in EPEL and I regularly do "make rpm" in CentOS 6.

If you are trying to build clean go through the Makefile.

---

<div class="post-metadata">

**Author:** ![VK1](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@VK1](https://forum.ansible.com/u/VK1)\
**Post date:** [February 13, 2013, 5:30am UTC](https://forum.ansible.com/t/building-rpm-of-ansible-1-0-issues-encountered/12346/3 "2013-02-13T05:30:01Z")

</div>

I tried "make rpm" and it works (in RHEL6). However, I think it should be possible to just download a tarball of the source and run "rpmbuild -tb ..." against it.

> From poking at this, it seems "make rpm" does more than just rpmbuild

against the spec file contained inside the tarball would achieve.

In particular, the man3 docs, that seem to be generated here:

---

<div class="post-metadata">

**Author:** ![Nigel\_Metheringham](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@Nigel\_Metheringham](https://forum.ansible.com/u/Nigel_Metheringham)\
**Post date:** [February 13, 2013, 10:42am UTC](https://forum.ansible.com/t/building-rpm-of-ansible-1-0-issues-encountered/12346/4 "2013-02-13T10:42:04Z")

</div>

This is down to the github not giving you a way to distribute distribution tarballs from there - so you end up downloading their tar snapshot of the release tag instead, which isn't the same thing.

Michael's distribution tarballs were produced by the sdist Makefile action - which had pre-built the docs before packaging. Github's tar snapshots do not include this.

So we can make the spec file work by adding a make docs stage (but this increases the build requirements).

Fixing the tar directory name is a different issue.

&nbsp;&nbsp;Nigel.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 13, 2013, 1:14pm UTC](https://forum.ansible.com/t/building-rpm-of-ansible-1-0-issues-encountered/12346/5 "2013-02-13T13:14:58Z")

</div>

Yeah, we build either from the release tarballs (ansible.cc/releases)  
or a git checkout.

The github auto-generated tarballs are messed up, but we can't do  
anything about github.

---

<div class="post-metadata">

**Author:** ![VK1](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@VK1](https://forum.ansible.com/u/VK1)\
**Post date:** [February 13, 2013, 4:47pm UTC](https://forum.ansible.com/t/building-rpm-of-ansible-1-0-issues-encountered/12346/6 "2013-02-13T16:47:52Z")

</div>

OK. Thanks for the explanation.

Can the documentation on ansible.cc be updated to make this clearer? Apologies if I missed it.

At the moment, "Downloads and Documentation" just leads to documentation on the use of ansible, and downloading/installation instructions are buried further down than clicking on such a link might lead one to believe. And they're git-centric.

There's a separate GITHUB link at the top level, but that serves a more experienced audience, IMHO.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 13, 2013, 4:52pm UTC](https://forum.ansible.com/t/building-rpm-of-ansible-1-0-issues-encountered/12346/7 "2013-02-13T16:52:24Z")

</div>

Yeah, we can explain the 'buidling your own RPMs' part a little more.

--Michael
