Re: Building from tar ball without a version string?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 -


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux