[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Building from tar ball without a version string?
- From: Panu Matilainen <pmatilai laiskiainen org>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Building from tar ball without a version string?
- Date: Wed, 29 Mar 2006 18:49:45 +0300
On Wed, 2006-03-29 at 10:33 -0500, Zac Elston wrote:
> I'm having trouble with a simple function.
>
> I CAN "rpmbuild -tb $name-$version.tar.gz"
>
> I would like to "rpmbuild -tb $name.tar.gz" because this is how my CVS repo
> packages them up. Currently I have to pull the source, grep the version
> out of the specfile, rename the directory, tar it up with the version in the
> name, then I can build it. Not bad, but when your packing up a 30 meg
> complier this can take 10 minutes to download, unpack, rename, repack, then
> let rpmbuild unpack....It would be sweet if I could just say "grab the tar
> ball of a branch and work on that"
[...]
> /var/tmp/rpm-tmp.35145: line 28: cd: demo-8: No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.35145 (%prep)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.35145 (%prep)
>
> It fails because my tar.gz doesn't unpack to a $name-$version/ which is what
> I want.
> Any ideas on how to tell rpmbuild to NOT demand a $version?
In %prep section of the spec:
%setup -n %{name}
..instead of plain %setup which actually is equal to %setup -n
%{name}-%{version}.
- Panu -
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]