[Fedora-packaging] How to make a Provides based on package contents?

Orion Poplawski orion at cora.nwra.com
Wed Nov 22 21:50:05 UTC 2006


octave defines an API version in:

octave-2.9.9/src/version.h:
#define OCTAVE_API_VERSION "api-v22"

Modules compiled against one version will not load in another.  I'd like 
to get this put into the rpms like:

Provides: octave(api) = api-v22

This can be done automatically on the module side with something like:

Requires: octave(api) = %(octave-config -p API_VERSION)

But, how to extract this automatically from src/version.h in the octave 
package itself?

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com




More information about the Fedora-packaging mailing list