Mandriva 2007.0 package for GCstar

trying to make a package for gcstar,i586/gcstar

I recompiled from spec file by mandriva (bumping the version number and adding man pages).
when launching :
Can't locate 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/ 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 :

spec file and SRPM / RPM

The spec file is in Mandriva's svn at
A generic spec file is currently available for gcstar at
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki