Hey all, I just realized that I may have replied to an old message and caused what I sent to get buried in the past of a threaded client. :) So here it is again... sorry for the repost if you had already seen it. I've been seeing discussion of spec file work, so I thought I'd jump and down a little before I have more merging work to do.
I've been hacking on the spec file for a little while and figured I should maybe start sharing. I wind up building RPMs at client sites almost every week. (I know - I could just set up a repository - but where's the fun in that) I had a problem building on 32-bit installs, since the /usr/lib64 location is hardcoded in to several places. So I replaced most of the locations with location macros. The spec file I've been using is expecting redhat-rpm-config to be installed... which obviously won't be on SuSE, but I'm not sure what, if any equivilent package SuSE has. So I'd love feedback on that. (I tried to instal SuSE in a VMWare, but apparently doing an internet-basd single CD install isn't so easy with SuSE... so I'll do it later) There is still a bug I'm trying to track down where I don't think some of the files are being installed by make install into the build root, but are actually going into the normal tree. But I haven't found it yet. You only notice it the second time you try to build on a box. I also did some more magic with the snmp subagent and the mgmt client. They both now support a --with option to rpmbuild. So you can do rpmbuild --with snmp -ba heartbeat.spec. I defaulted snmp to on and mgmt to off, just because that's what works for me in most places. I did my best to make the prereqs and reqs change with that choice, although I haven't tested that 100% in a jail or anything. Some of the magic is still a little ugly. I think there are too many macros up there... not for functionality, but just stylistically, it looks really ugly. I'll try to clean that up some. But it works and has the intended behavior. I agree that the glib-devel and glib2-devel thing is odd - but I haven't tested that yet, either. It's on the list. I'd love feedback... this all works for me, but if there is a reason we don't want to do this, I'd love to understand it. AND - I just realized that I diffed in the wrong direction. :( I'll fix that in just a bit - I'm on the wrong machine ATM. Thanks, Monty
heartbeat.spec.patch
Description: Binary data
_______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
