I'm writing a simple provides generator. The documentation is a bit
light on detail:
https://rpm-software-management.github.io/rpm/manual/dependency_generator...
How do I get the version-release of the package currently being built?
At the moment I can only print simple provides like:
Provides: foo
but I want to include the version of the package being built, eg:
Provides: foo = 1.2-3.fc36
In theory it seems like the environment variables $RPM_PACKAGE_VERSION
and $RPM_PACKAGE_RELEASE should be set in the dependency generator,
but I just confirmed they are not set.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v