make sure the spec evaluates everywhere
This commit is contained in:
parent
f8241f4c7a
commit
441d890186
@ -22,8 +22,9 @@ BuildRequires: openssl-devel
|
|||||||
# Yes, that should be handled by library versioning (which would then get
|
# Yes, that should be handled by library versioning (which would then get
|
||||||
# automatically reflected by rpm).
|
# automatically reflected by rpm).
|
||||||
# For now, we have to reflect that dependency.
|
# For now, we have to reflect that dependency.
|
||||||
%define libcurl_version_sed '/^#define LIBCURL_VERSION "/!d;s/"[^"]*$//;s/.*"//;q'
|
%define libcurl_sed '/^#define LIBCURL_VERSION "/!d;s/"[^"]*$//;s/.*"//;q'
|
||||||
%define libcurl_version %(sed %{libcurl_version_sed} /usr/include/curl/curlver.h)
|
%define curlver_h /usr/include/curl/curlver.h
|
||||||
|
%define libcurl_ver %(sed %{libcurl_sed} %{curlver_h} 2>/dev/null || echo 0)
|
||||||
Requires: libcurl >= %{libcurl_version}
|
Requires: libcurl >= %{libcurl_version}
|
||||||
|
|
||||||
Provides: pycurl = %{version}-%{release}
|
Provides: pycurl = %{version}-%{release}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user