RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Converting *.spec to Makefiles

From: Anders F Björklund <afb@rpm5.org>
Date: Tue 09 Sep 2008 - 16:52:25 CEST
Message-Id: <CE0F3DBD-20FD-467A-A6C6-EB96D06C0838@rpm5.org>
Jeff Johnson wrote:

>> BSD Make isn't fully "compatible" either, but you can usually make  
>> a file
>> that works in both... (Same thing goes for GNU sh by the way, vs.  
>> BSD sh)
>>
> Sure there are dialects of make. There is a subset syntax that is  
> well supported
> by make(1), that is all that is being suggested using --queryformat  
> --specsrpm against
> *.spec to extract a make rule from a rpm tag without macros or  
> other goopiness.

Simply requiring GNU make and GNU bash seems to be a popular solution  
too :-)

But yes, the only thing so far is extracting the shell scripts to  
known format.

> Hmmm ...
>
> [jjohnso1@localhost dist]$ ls -al /bin/{true,false}
> -rwxr-xr-x 1 root root 29908 2008-08-04 08:47 /bin/false
> -rwxr-xr-x 1 root root 29908 2008-08-04 08:47 /bin/true
>
> Which application should I prefer if they are both the same size?

I'd go with the one that matches the wallpaper, or simply your  
preference. :-)

My mentioning of code sizes was only to imply that it wasn't a  
complex code...
Of course it wasn't fair, with one being a real program and the other  
a script.

As mentioned, anything picked would probably have to ported to C  
anyway right ?

--anders
Received on Tue Sep 9 16:52:27 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.