Overview

Request 1189265 accepted

No description set

Marcus Rueckert's avatar

you could do adapt our requires_file macro to give you a recommends:

%define requires_file() %( readlink -f '%*' | LC_ALL=C xargs -r rpm -q --qf 'Requires: %%{name} >= %%{epoch}:%%{version}\\n' -f | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")

we dont need the version in Recommends:

%define recommends_file() %( readlink -f '%*' | LC_ALL=C xargs -r rpm -q --qf 'Recommends: %%{name}\\n' -f | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")

usage:

%recommends_file %{_libdir}/libqrencode.so

Dominique Leuenberger's avatar
author reviewer source maintainer

Could - but:

  • Would require an additional BuildRequires
  • Would potentially recommend a .so.N that is not even handled by the code
./src/google-authenticator.c:  void *qrencode = dlopen("libqrencode.so.2", RTLD_NOW | RTLD_LOCAL);
./src/google-authenticator.c:  if (!qrencode) {
./src/google-authenticator.c:    qrencode = dlopen("libqrencode.so.3", RTLD_NOW | RTLD_LOCAL);
./src/google-authenticator.c:  if (!qrencode) {
./src/google-authenticator.c:    qrencode = dlopen("libqrencode.so.4", RTLD_NOW | RTLD_LOCAL);

so the current recommends is in fact exactly what the code supports and is thus the most correct form

Request History
Dominique Leuenberger's avatar

dimstar created request


Ana Guerrero's avatar

anag+factory added as a reviewer

Being evaluated by staging project "openSUSE:Factory:Staging:adi:55"


Ana Guerrero's avatar

anag+factory accepted review

Picked "openSUSE:Factory:Staging:adi:55"


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Marcus Rueckert's avatar

darix accepted review

ok


Saul Goodman's avatar

licensedigger accepted review

ok


Dominique Leuenberger's avatar

dimstar_suse accepted review

Staging Project openSUSE:Factory:Staging:adi:55 got accepted.


Dominique Leuenberger's avatar

dimstar_suse approved review

Staging Project openSUSE:Factory:Staging:adi:55 got accepted.


Dominique Leuenberger's avatar

dimstar_suse accepted request

Staging Project openSUSE:Factory:Staging:adi:55 got accepted.

openSUSE Build Service is sponsored by