Tar.bz2 for foreman 1.0

Hi,
I checkout
https://github.com/theforeman/foreman-rpms/tree/el6
And I tried to build rpm from this spec file.

I tried to download:
Source0:
http://github.com/ohadlevy/%{name}/tarball/%{name}-%{version}.tar.bz2
But this file does not exist.

$ LC_ALL=C wget
http://github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2
–2012-08-07 22:52:32–
http://github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2
Resolving github.com… 207.97.227.239
Connecting to github.com|207.97.227.239|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location:
https://github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2
[following]
–2012-08-07 22:52:33–
https://github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2
Connecting to github.com|207.97.227.239|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location:
https://nodeload.github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2
[following]
–2012-08-07 22:52:33–
https://nodeload.github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2
Resolving nodeload.github.com… 207.97.227.252
Connecting to nodeload.github.com|207.97.227.252|:443… connected.
HTTP request sent, awaiting response… 404 Not Found
2012-08-07 22:52:34 ERROR 404: Not Found.

Can you please point me to correct location of tar.bz2 file?

Thanks

Mirek

> Hi,
> I checkout
> https://github.com/theforeman/**foreman-rpms/tree/el6<https://github.com/theforeman/foreman-rpms/tree/el6>
> And I tried to build rpm from this spec file.
>
> I tried to download:
> Source0: http://github.com/ohadlevy/%{**name}/tarball/%{name}-%{**
> version}.tar.bz2
> But this file does not exist.
>
> $ LC_ALL=C wget ohadlevy (Ohad Levy) · GitHub**
> foreman/tarball/foreman-1.0.0.tar.bz2<http://github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2&gt;
> --2012-08-07 22:52:32-- ohadlevy (Ohad Levy) · GitHub

> foreman/tarball/foreman-1.0.0.tar.bz2<http://github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2&gt;
> Resolving github.com… 207.97.227.239
> Connecting to github.com|207.97.227.239|:80.
… connected.
> HTTP request sent, awaiting response… 301 Moved Permanently
> Location: https://github.com/ohadlevy/**foreman/tarball/foreman-1.0.0.**
> tar.bz2<https://github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2&gt;[following]
> --2012-08-07 22:52:33-- ohadlevy (Ohad Levy) · GitHub**
> foreman/tarball/foreman-1.0.0.tar.bz2<https://github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2&gt;
> Connecting to github.com|207.97.227.239|:443… connected.
> HTTP request sent, awaiting response… 302 Found
> Location: https://nodeload.github.com/**ohadlevy/foreman/tarball/

> foreman-1.0.0.tar.bz2<https://nodeload.github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2&gt;[following]
> --2012-08-07 22:52:33-- https://nodeload.github.com/

> ohadlevy/foreman/tarball/**foreman-1.0.0.tar.bz2<https://nodeload.github.com/ohadlevy/foreman/tarball/foreman-1.0.0.tar.bz2&gt;
> Resolving nodeload.github.com… 207.97.227.252
> Connecting to nodeload.github.com|207.97.**227.252|:443… connected.
> HTTP request sent, awaiting response… 404 Not Found
> 2012-08-07 22:52:34 ERROR 404: Not Found.
>
> Can you please point me to correct location of tar.bz2 file?
>

normally tars are availalvble under the files section in foreman website
[1], version 1.0 can be found here [2]

Ohad

[1] http://theforeman.org/projects/foreman/files
[2] http://theforeman.org/attachments/download/395/foreman-1.0.tar.bz2

··· On Tue, Aug 7, 2012 at 11:53 PM, Miroslav Suchy wrote:

Thanks

Mirek

I manually edited SOURCE0, because there is %{version} which is 1.0.0,
while tar is only 1.0.
With that downloaded tar.bz2 in ~/rpmbuild/SOURCE, I get little bit further.

[ …SNIP… ]

  • rm -rf /home/msuchy/rpmbuild/BUILDROOT/foreman-1.0.0-2.fc17.x86_64
  • install -d -m0755
    /home/msuchy/rpmbuild/BUILDROOT/foreman-1.0.0-2.fc17.x86_64/usr/share/foreman
  • install -d -m0755
    /home/msuchy/rpmbuild/BUILDROOT/foreman-1.0.0-2.fc17.x86_64/etc/foreman
  • install -d -m0755
    /home/msuchy/rpmbuild/BUILDROOT/foreman-1.0.0-2.fc17.x86_64/var/lib/foreman
  • install -d -m0755
    /home/msuchy/rpmbuild/BUILDROOT/foreman-1.0.0-2.fc17.x86_64/var/run/foreman
  • install -d -m0750
    /home/msuchy/rpmbuild/BUILDROOT/foreman-1.0.0-2.fc17.x86_64/var/log/foreman
  • install -Dp -m0644 /home/msuchy/rpmbuild/SOURCES/foreman.sysconfig
    /home/msuchy/rpmbuild/BUILDROOT/foreman-1.0.0-2.fc17.x86_64/etc/sysconfig/foreman
  • install -Dp -m0755 /home/msuchy/rpmbuild/SOURCES/foreman.init
    /home/msuchy/rpmbuild/BUILDROOT/foreman-1.0.0-2.fc17.x86_64/etc/rc.d/init.d/foreman
  • install -Dp -m0644 extras/spec/logrotate
    /home/msuchy/rpmbuild/BUILDROOT/foreman-1.0.0-2.fc17.x86_64/etc/logrotate.d/foreman
    install: cannot stat `extras/spec/logrotate': No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.F98HoR (%install)

It seems that file foreman-1.0.tar.bz2 is missing extras/spec directory
completely.

Mirek

··· On 8.8.2012 08:16, Ohad Levy wrote: > normally tars are availalvble under the files section in foreman website > [1], version 1.0 can be found here [2] > > Ohad > > [1] http://theforeman.org/projects/foreman/files > [2] http://theforeman.org/attachments/download/395/foreman-1.0.tar.bz2