Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=478372
--- Comment #21 from Jussi Lehtola jussi.lehtola@iki.fi 2009-08-02 08:40:36 EDT --- (In reply to comment #20)
and run the following commands to regenerate the octave package database:
Fixed.
drop the octave site stuff
Not done, as that breaks the oct file finding. This needs to work without user intervention. So you still need something to help octave find mathgl.oct, even with the pkg('rebuild').
A dirty test indicates: *pkg('rebuild') only searches the search paths of octave (this is in the manual as well), *The rebuild is not persistent at finding the oct file between sessions if path changes:
So either a symlink or the plugin proper must be in one of these, or we must modify this permanently
No, this is a dirty hack.
For a good model on how to do it properly, look at Octave Forge, the package containing additional tools for Octave:
http://cvs.fedoraproject.org/viewvc/rpms/octave-forge/F-11/octave-forge.spec...
The architecture dependent packages are installed in /usr/libexec/octave/packages/ and noarch packages in /usr/share/octave/packages.
**
Use %{!?octave_api:%global octave_api %(octave-config -p API_VERSION || echo 0)} to get the Octave api version, then you can Requires: octave(api) = %{octave_api} (plplot uses this version)