how to build compiled source into RPM - avoiding make instal


When I download source of some application and build it with my compile parameters, instead of “make install”, I would like to build rpm and install it that way.

I read that in this way, package manager will be aware of installed software, which is not in case of “make install”.

  1. is there a point in doing this?
  2. is there easy way?


Good news everyone!</prof. Farnsworth>
There is a simple way to do this. It’s a program called CheckInstall. And it’s even in the repo’s!

You may wish to investigate the openSUSE Build service
Welcome to the openSUSE Build

If the source has a spec file you can build from that. You may also
look at building from the src rpm if one is available, then you can use
that as a basis for your build.

It all depends on how much time you wish to spend :slight_smile:

Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel
up 1 day 9:34, 2 users, load average: 0.05, 0.03, 0.04
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

Thank you all.
No, I dont wish to waste time. I will try with checkinstall as suggested, if not, who cares… make install just works anyways.

Useless tool, it cannot even create simple kmobiletools
after running checkinstall i have:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "", line 1364, in main
  File "", line 1048, in unsermake_main
OSError: [Errno 2] No such file or directory: '/usr/lib/python2.5/site-packages/unsermake'

but unsermake is on my system in proper place…

I installed it but havent had a chance of using it.
what I mostly need it for, as I found that source compiled with the right compilation flags runs much much faster. So, if there is some app that I really need speed, I like to compile it.
So… looking just for a way that it be included in main package database.
I will see when I have a chance to use it.

If there is a spec file you can build it as an rpm, with your flags.

Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel
up 2 days 12:42, 1 user, load average: 0.00, 0.00, 0.02
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

Usually is not :frowning: