> On Tuesday 18 November 2003 12:39 pm, Buchan Milne wrote: >> Bret Baptist wrote: >> > This is the result from rpm --rebuild heartbeat-1.0.2-2mdk.src.rpm: >> error: Bad package specification: %package -n %mklibname heartbeat 0 >> >> Easy fix (I think) >> >> Add something like this to the top of the spec file: >> >> %{!?mklibname: %define mklibname >> %lib%{1}%{?2:%{2}}%{?3:_%{3}}%{-s:-static}%{-d:-devel}} >> (that's one line) >> >> This is what I use on samba, and it should still build on 8.0 even >> (not that I have tried this particular feature on it recently ...) >> >> If it's a couple of newer packages on 8.2, just add the macro to your >> ~/.rpmmacros (might need some tweaking). > > No such luck Buchan, get this message now. > > error: Bad package specification: %package -n %lib%{1} heartbeat 0 >
D'Oh, that one seems to be a new addition that wasn't in fact tested. I've just tested on 8.2 in a chroot with: %{!?lib: %global lib lib} %{!?mklibname: %global mklibname(ds) %lib%{1}%{?2:%{2}}%{?3:_%{3}}%{-s:-static}%{-d:-devel}} (that's two lines ... in case the last one wrapped to two) I only tested with: rpm -q --specfile samba.spec --with system with the two changed lines above (relative to the packages in cooker). Otherwise, I can give the heartbeat SRPM a rebuild now since I have the chroot available now ... Regards, Buchan