I am trying to build an RPM of the newly released version of Gambas (3.6.0), which I downloaded from SourceForge (http://sourceforge.net/projects/gambas/ ... .0.tar.bz2), on my Mageia 3 box. (I figured it was worth a try.)
What I have done is take gambas-llvm-3.3.patch and gambas3.desktop from http://svnweb.mageia.org/packages/cauld ... t/SOURCES/ and put them in ~/rpmbuild/SOURCES along with the Gambas 3.6.0 tarball. Then I grabbed gambas3.spec (Rev. 750063) from http://svnweb.mageia.org/packages/cauld ... ent/SPECS/ and put it into ~/rpmbuild/SPECS.
I modified gambas3.spec ever so slightly: "Version: 3.5.4" became "Version: 3.6.0"; "Release: %mkrel 5" became "Release: %mkrel 1"; and I uncommented lines 595 and 596 to enable inclusion of the JIT (Just-In-Time compiler) component.
From a console in the ~/rpmbuild/SPECS directory, I executed:
- Code: Select all
rpmbuild -ba gambas3.spec
It seems to build just fine. But when it gets to %install, it chokes on:
- Code: Select all
ln -sf %{_datadir}/fonts/TTF/dejavu/DejaVuSans.ttf %{buildroot}%{_datadir}/gambas3/gb.sdl/DejaVuSans.ttf
There is no gb.sdl directory in %{buildroot}%{_datadir}/gambas3/. All that is there is control, examples, icons, and info.
I understand that the gb.sdl component requires that font as per line 1028 of the spec file: "Requires: fonts-ttf-dejavu". But do I really need that symbolic link for a successful install? Or could I perhaps get it to work by placing the symlink in %{buildroot}%{_datadir}/gambas3/ ?
Or ... is it silly of me to even try making this whole idea work?
(Warning: I should probably admit that I know just about enough about building RPMs, to be dangerous.)