summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/libcarddav/libcarddav.spec
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-10-21 19:20:20 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-10-21 19:20:20 +0200
commit7834467b40a454432c3f8d84b6b43e299afe4933 (patch)
treea733272f2aa78cb2d65f000197d1d90800cc17dc /redhat/dependencies/libcarddav/libcarddav.spec
parent6d19f23f648d1aaee59350cfdd97f564c405239f (diff)
downloadtde-packaging-7834467b40a454432c3f8d84b6b43e299afe4933.tar.gz
tde-packaging-7834467b40a454432c3f8d84b6b43e299afe4933.zip
RHEL/Fedora/MGA/MDV/Suse: update dependencies for TDE 3.5.13.1
Diffstat (limited to 'redhat/dependencies/libcarddav/libcarddav.spec')
-rw-r--r--redhat/dependencies/libcarddav/libcarddav.spec21
1 files changed, 19 insertions, 2 deletions
diff --git a/redhat/dependencies/libcarddav/libcarddav.spec b/redhat/dependencies/libcarddav/libcarddav.spec
index 2c396ede1..68fdfcc8f 100644
--- a/redhat/dependencies/libcarddav/libcarddav.spec
+++ b/redhat/dependencies/libcarddav/libcarddav.spec
@@ -26,7 +26,7 @@ Source0: libcarddav_0.6.2-2debian2.tar.gz
# [libcarddav] Fix messy installation directories
Patch1: libcarddav-0.6.5-fix_installation.patch
-%if 0%{?fedora} || 0%{?rhel} >= 6
+%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version}
BuildRequires: libcurl-devel
%else
%if 0%{?mgaversion} || 0%{?mdkversion}
@@ -37,6 +37,14 @@ BuildRequires: trinity-libcurl-devel
%endif
%endif
+%if 0%{?rhel} == 4
+BuildRequires: evolution28-gtk2-devel
+%else
+BuildRequires: glib2-devel
+BuildRequires: gtk2-devel
+%endif
+BuildRequires: make
+
Obsoletes: libcarddav < %{version}-%{release}
Provides: libcarddav = %{version}-%{release}
@@ -56,6 +64,10 @@ Provides: libcarddav-devel = %{version}-%{release}
%description devel
%{summary}
+%if 0%{?suse_version}
+%debug_package
+%endif
+
%prep
%setup -q -n libcarddav-%{version}
@@ -64,6 +76,11 @@ Provides: libcarddav-devel = %{version}-%{release}
%build
# CFLAGS required if CURL is installed on /opt/trinity, e.g. RHEL 5
export CFLAGS="-I%{tde_includedir} -L%{tde_libdir} ${CFLAGS}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
+
+if [ -d /usr/evolution28 ]; then
+ export PKG_CONFIG_PATH="/usr/evolution28/%{_lib}/pkgconfig:${PKG_CONFIG_PATH}"
+fi
autoreconf --force --install --symlink
%configure \
@@ -76,7 +93,7 @@ autoreconf --force --install --symlink
%__rm -rf %{buildroot}
%__make install DESTDIR=%{buildroot} LIBTOOL=$(which libtool)
-%__rm -f %{buidroot}%{tde_libdir}/*.a
+%__rm -f %{buildroot}%{tde_libdir}/libcarddav.a
%clean
%__rm -rf %{buildroot}