Mandriva 2007.0 package for GCstar

trying to make a package for gcstar http://sophie.zarb.org/rpm/cooker,i586/gcstar

I recompiled from spec file by mandriva (bumping the version number and adding man pages).
when launching :
Can't locate GCOptions.pm in @INC (@INC contains: /usr/bin/../lib64/gcstar /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.7/x86_64-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl .) at /usr/bin/gcstar line 71.
BEGIN failed--compilation aborted at /usr/bin/gcstar line 71.


indeed files .pm have been put in /usr/lib64 whereas it looks in /usr/bin/../lib/ ...

when replacing the line with use lib File::Spec->canonpath("/usr/share/libgcstar/");

*** unhandled exception in callback:
***   Can't use an undefined value as a HASH reference at /usr/share/libgcstar/GCMainWindow.pm line 1904.
***  ignoring at /usr/bin/gcstar line 267.


changes proposed

$ENV{GCS_BIN_DIR} = $RealBin;
#($ENV{GCS_LIB_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/lib\/gcstar/;
$ENV{GCS_LIB_DIR} = "/usr/share/libgcstar";
($ENV{GCS_SHARE_DIR} = $ENV{GCS_BIN_DIR}) =~ s/bin\/?$/share\/gcstar/;
#use lib File::Spec->canonpath("$RealBin/../lib64/gcstar");
use lib File::Spec->canonpath("/usr/share/libgcstar/");


check debian changes proposal as well : http://ftp.debian.org/debian/pool/main/g/gcstar/gcstar_1.0.0-1.diff.gz

spec file and SRPM / RPM

see http://download.tuxfamily.org/cooker/mdvrpm/2007.0/
The spec file is in Mandriva's svn at http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/gcstar/
A generic spec file is currently available for gcstar at http://cvs.gna.org/cvsweb/gcstar/packages/?cvsroot=gcstar
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki