rpms/python-pycurl/devel python-pycurl.spec,1.13,1.14

Štěpán Kasal kasal at fedoraproject.org
Fri Apr 17 18:39:16 UTC 2009


Author: kasal

Update of /cvs/extras/rpms/python-pycurl/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2072

Modified Files:
	python-pycurl.spec 
Log Message:
make sure the spec evaluates everywhere


Index: python-pycurl.spec
===================================================================
RCS file: /cvs/extras/rpms/python-pycurl/devel/python-pycurl.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- python-pycurl.spec	17 Apr 2009 18:24:57 -0000	1.13
+++ python-pycurl.spec	17 Apr 2009 18:38:46 -0000	1.14
@@ -22,8 +22,9 @@
 # Yes, that should be handled by library versioning (which would then get
 # automatically reflected by rpm).
 # For now, we have to reflect that dependency.
-%define libcurl_version_sed '/^#define LIBCURL_VERSION "/!d;s/"[^"]*$//;s/.*"//;q'
-%define libcurl_version %(sed %{libcurl_version_sed} /usr/include/curl/curlver.h)
+%define libcurl_sed '/^#define LIBCURL_VERSION "/!d;s/"[^"]*$//;s/.*"//;q'
+%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}
 
 Provides:       pycurl = %{version}-%{release}




More information about the fedora-extras-commits mailing list