How to make a Provides based on package contents?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux