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 #26 from D Haley mycae@yahoo.com 2009-08-14 23:33:52 EDT --- SPEC URL: http://dhd.selfip.com/427e/mathgl-1.9-4.spec SRPM URL: http://dhd.selfip.com/427e/mathgl-1.9-4.fc10.src.rpm
Koji Builds: F10:http://koji.fedoraproject.org/koji/taskinfo?taskID=1606818 F11:http://koji.fedoraproject.org/koji/taskinfo?taskID=1606824
RPMLint: $ cat files Wrote: /home/makerpm/rpmbuild/SRPMS/mathgl-1.9-4.fc10.src.rpm Wrote: /home/makerpm/rpmbuild/RPMS/i386/mathgl-1.9-4.fc10.i386.rpm Wrote: /home/makerpm/rpmbuild/RPMS/i386/mathgl-devel-1.9-4.fc10.i386.rpm Wrote: /home/makerpm/rpmbuild/RPMS/noarch/mathgl-doc-1.9-4.fc10.noarch.rpm Wrote: /home/makerpm/rpmbuild/RPMS/i386/mathgl-debuginfo-1.9-4.fc10.i386.rpm
$ rpmlint `cat files | sed 's/Wrote: //' | tr '\n' '\ '` mathgl.i386: W: shared-lib-calls-exit /usr/lib/libmgl-glut.so.5.0.0 exit@GLIBC_2.0 mathgl-devel.i386: W: no-documentation 5 packages and 0 specfiles checked; 0 errors, 2 warnings.
$ sudo rpm -i ../RPMS/i386/mathgl-1.9-4.fc10.i386.rpm [sudo] password for makerpm: rpmlint mathgl skipping line skipping line skipping line $ rpmlint mathgl mathgl.i386: W: unused-direct-shlib-dependency /usr/lib/libmgl-qt.so.5.0.0 /lib/libpthread.so.0 mathgl.i386: W: unused-direct-shlib-dependency /usr/lib/libmgl.so.5.0.0 /usr/lib/libgomp.so.1 mathgl.i386: W: unused-direct-shlib-dependency /usr/lib/libmgl.so.5.0.0 /usr/lib/libgslcblas.so.0 mathgl.i386: W: shared-lib-calls-exit /usr/lib/libmgl-glut.so.5.0.0 exit@GLIBC_2.0 1 packages and 0 specfiles checked; 0 errors, 4 warnings.
These unused-direct-shlibs are simply -config extras, which I believe can be ignored.
For a good model on how to do it properly, look at Octave Forge, the package containing additional tools for Octave:
Octave packaging is done. pkg.m is not fun to work with :(. Note that I must manually use the -1.9.0 versioning as this is what octave searches for (you can see it from an strace, or by tracing the undocumented pkg.m file).
If you have defined the macro correctly, it is expanded and you don't get such an error.
I am unclear why
%global octave_api %(octave-config -p API_VERSION || echo 0)
is invalid. In any case, I have switched it to use the conditional.