summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/libcarddav/libcarddav-14.0.0.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/dependencies/libcarddav/libcarddav-14.0.0.spec')
-rw-r--r--redhat/dependencies/libcarddav/libcarddav-14.0.0.spec9
1 files changed, 6 insertions, 3 deletions
diff --git a/redhat/dependencies/libcarddav/libcarddav-14.0.0.spec b/redhat/dependencies/libcarddav/libcarddav-14.0.0.spec
index 031b326c5..5b93bdfbe 100644
--- a/redhat/dependencies/libcarddav/libcarddav-14.0.0.spec
+++ b/redhat/dependencies/libcarddav/libcarddav-14.0.0.spec
@@ -57,15 +57,16 @@ BuildRequires: libtool
# CURL support
%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version}
-BuildRequires: libcurl-devel
+%define libcurl_devel libcurl-devel
%else
%if 0%{?mgaversion} || 0%{?mdkversion}
-BuildRequires: %{_lib}curl-devel
+%define libcurl_devel %{_lib}curl-devel
%else
# Specific CURL version for TDE on RHEL 5 (and older)
-BuildRequires: trinity-libcurl-devel
+#define libcurl_devel trinity-libcurl-devel
%endif
%endif
+%{?libcurl_devel:BuildRequires: %{libcurl_devel}}
# GTK2 support
%if 0%{?rhel} == 4
@@ -113,6 +114,8 @@ Build dependencies are minimal, requiring only libcurl.
Summary: A portable CardDAV client implementation (Development Files)
Group: Development/Libraries/C and C++
Requires: libcarddav = %{?epoch:%{epoch}:}%{version}-%{release}
+%{?libcurl_devel:Requires: %{libcurl_devel}}
+Requires: glib2-devel
Obsoletes: trinity-libcarddav-devel < %{version}-%{release}
Provides: trinity-libcarddav-devel = %{version}-%{release}