[PATCH] build: make the "rpm" rule work once again

Jim Meyering jim at meyering.net
Sat Dec 18 06:40:52 UTC 2010


Pete Zaitcev wrote:

> On Thu, 16 Dec 2010 17:35:01 +0100
> Jim Meyering <jim at meyering.net> wrote:
>
>> +	    v=$$(echo $(VERSION)|tr - .);			\
>> +	    base=$(PACKAGE)-$$v;				\
>> +	    tgz=$$base.tar.gz;					\
>> +	    tar xf $(distdir).tar.gz				\
>> +	      && rm -rf $$base $$tgz				\
>> +	      && mv $(distdir) $$base				\
>> +	      && tar -czf - $$base > $$tgz			\
>> +	      && rpmbuild -ta $$tgz; e=$$?			\
>> +	  *) rpmbuild -ta $(distdir).tar.gz ;;			\
>
> Oh, my. But there does not seem to be other way, ACK.

Actually, after posting that, I realized there is another way:
change the version-string-generating code (invoked from configure.ac)
to use "." instead of "-".  That means carrying a tiny diff relative
to gnulib's build-aux/git-version-gen script, but that is probably
better than the above.


More information about the iwhd-devel mailing list