Anyone want to help build RPMs of Maatkit?
Dear LazyWeb, I want to use my Ubuntu laptop (on amd64 BTW) to build an RPM of Maatkit that will work on all RPM-based distros. Is it possible? Or are there enough differences between the RPM-based distros that I can’t do it? Mind you, the finished RPM ought to just have some man pages and Perl scripts, so I don’t think it will be platform- or distro-specific. But I am just not an expert on it.
The second question is, what do I need to put into my Makefile to do this? My ‘make all’ currently builds a .zip, a .tar.gz, and a .deb package — what needs to change to make that include .rpm?
Someone who is willing to help create .spec files, etc, etc will be immediately given commit rights to Maatkit’s SVN repository!

probably best if packages are compiled on target systems so dependencies are all satisfied properly etc. I just compiled an rpm fine on centos 5 using the spec file that is included.
David
12 Aug 08 at 10:55 pm
Are you aware of this repository? It contains maatkit RPM among other things. You may want to contact the guys behind it (ProvenScaling).
http://mirror.provenscaling.com/yum/extras/
http://mirror.provenscaling.com/yum/extras/i386/xaprb/
kmike
13 Aug 08 at 12:01 am
This is the spec file we have been using for a while now:
http://pastebin.com/m482fb4db
It’s meant for RedHat, but I don’t see why it wouldn’t work on other platforms.
Spil Games
13 Aug 08 at 5:11 am
Hi Baron,
I created maatkit RPMs for a number of distributions (openSUSE, Fedora, Mandriva). They can be obtained via the openSUSE Build service. Just search for “maatkit” on http://software.opensuse.org/search or head directly to my download area: http://download.opensuse.org/repositories/home:/LenzGr/
Users can directly subscribe to these repositories via yum.
Hope that help!
LenZ
13 Aug 08 at 8:07 am
I was not aware that Proven Scaling was building RPMs. That’s great, thanks Proven Scaling! OK, I’m just going to let others build RPMs and I’ll make a wiki page on Google Code that lists other sources of builds. Anyone else?
There is a spec file included, as the first poster mentioned — so if someone wants to build their own, what is the command to do that? I’d like to paste that onto the wiki too.
Wow, this really is the lazy web for me today :)
Xaprb
13 Aug 08 at 8:08 am
Unfortunately many spec files are aimed at certain distributions. The spec file pasted above might work on other distributions. You need to copy the spec file into the RPM SPECS directory, and a maatkit source tarball into the RPM SOURCES directory. Then you run “rpmbuild -ba –clean ” and it should perform the building and packaging. Unfortunately the resulting RPM is again distro-specific (particularly because of the Perl version)…
LenZ
13 Aug 08 at 8:18 am
Argh, the command line was mangled. The command is “rpmbuild -ba –clean maatkit.spec”
LenZ
13 Aug 08 at 8:20 am
LenZ, thanks a lot, I was just fishing through my memory and I remembered your repo but didn’t find the packages (was about to ask you about it) until I used the search function. I have linked to that from the Maatkit project now. Thanks for the build instructions too.
Xaprb
13 Aug 08 at 8:46 am
If you put the maatkit.spec file into the .tar.gz then rpmbuild should be able to find it if you run “rpmbuild -ta maatkit-123.tar.gz”.
- ask
Ask Bjørn Hansen
14 Aug 08 at 9:02 am
Now that I have Google Code and it has a decent wiki/doc system, I’m actually using it and all of these suggestions are getting added to the wiki. Thanks :-)
Xaprb
14 Aug 08 at 9:12 am
I think remi could help you…
http://blog.famillecollet.com/
Joe
24 Oct 08 at 10:52 am