Program to produce spec files
Thomas Cameron
thomas.cameron at camerontech.com
Sun Jun 11 17:51:27 UTC 2006
Paul Smith wrote:
> Dear All
>
> I am trying to learn how to build a rpm from the tarball without
> checkinstall, and I am wondering whether there is already a program to
> produce a tentative spec file to be afterwards changed and corrected
> by the packager. Maybe a program like the one that I describe here
> would increase the productivity of packager. Is there such a program?
>
> Thanks in advance,
>
> Paul
>
Many times I just use the template at http://www.rpm.org/howto/thefight/
and go from there. It has worked for pretty much every RPM I've ever
had to build.
To find out what the list of files is, I usually do the standard dance of:
./configure --prefix=/usr
make
make install DESTDIR /var/tmp/foo
then I do
cd /var/tmp/foo
find . -type f | sed "s/^\.//" >> /path/to/specfile
Go back and move the files into the right section of the spec file you
are creating and then go to town.
Thomas
More information about the users
mailing list