Hello Community, dear open source team.
I'm facing a problem creating an rpm which installs different tarballs depending on the AIX OS release.
I tried to define a variable, where the value is dynamically build by "uname -r", then I want to use this value in %files for choosing the tarball for 7.2 or 7.3
%define RELEASE %(uname -r)
%files
/tmp/COOPtestfile_%{RELEASE}.tar
I also tried:
%global techLevel `uname -r`
%global techLevel %{expand:uname -r}
%global techLevel %{?shell:uname -r}
Nothing is working. In the first two example the variable will not be dissolved and for the last two, the variable is empty.
Do anyone have an idea how to solve this? Is it even possible to do it this way?
Many thanks in advance for your help and support.
best regards,
Joerg
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
------------------------------