diff options
author | François Andriot <albator78@libertysurf.fr> | 2013-07-21 23:09:50 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2013-07-21 23:09:50 +0200 |
commit | fd444009b666a7067a24177ee8e5e7101973ab23 (patch) | |
tree | 7b0c4bbcb84a72e26a7748c4fda1c68a7fb4c6db /redhat/dependencies/libcaldav/libcaldav-3.5.13.2.spec | |
parent | d2a5ae6eee8f77ba301f22a990fd68944c94d4ad (diff) | |
download | tde-packaging-fd444009b666a7067a24177ee8e5e7101973ab23.tar.gz tde-packaging-fd444009b666a7067a24177ee8e5e7101973ab23.zip |
RPM Packaging: update libcaldav and libcarddav
Diffstat (limited to 'redhat/dependencies/libcaldav/libcaldav-3.5.13.2.spec')
-rw-r--r-- | redhat/dependencies/libcaldav/libcaldav-3.5.13.2.spec | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/redhat/dependencies/libcaldav/libcaldav-3.5.13.2.spec b/redhat/dependencies/libcaldav/libcaldav-3.5.13.2.spec new file mode 100644 index 000000000..f792bb98d --- /dev/null +++ b/redhat/dependencies/libcaldav/libcaldav-3.5.13.2.spec @@ -0,0 +1,139 @@ +# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". +%if "%{?tde_prefix}" != "/usr" +%define _variant .opt +%endif + +%define tde_datadir %{tde_prefix}/share +%define tde_docdir %{tde_datadir}/doc +%define tde_includedir %{tde_prefix}/include +%define tde_libdir %{tde_prefix}/%{_lib} + +Name: trinity-libcaldav +Version: 0.6.5 +Release: 3%{?dist}%{?_variant} + +Vendor: Trinity Project +URL: http://www.trinitydesktop.org/ +Packager: Francois Andriot <francois.andriot@free.fr> + +License: GPL +Group: System Environment/Libraries +Summary: A client library that adds support for the CalDAV protocol (rfc4791). + +Prefix: %{tde_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Source0: libcaldav_0.6.5-2debian2.tar.gz + +# [libcaldav] Fix messy installation directories +Patch1: libcaldav-0.6.2-fix_installation.patch + +BuildRequires: libtool +%if 0%{?rhel} == 4 +BuildRequires: evolution28-gtk2-devel +%else +BuildRequires: glib2-devel +BuildRequires: gtk2-devel +%endif +BuildRequires: make + +Obsoletes: libcaldav < %{version}-%{release} +Provides: libcaldav = %{version}-%{release} + +%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version} +BuildRequires: libcurl-devel +%else +%if 0%{?mgaversion} || 0%{?mdkversion} +BuildRequires: %{_lib}curl-devel +%else +# Specific CURL version for TDE on RHEL 5 (and older) +BuildRequires: trinity-libcurl-devel +%endif +%endif + +%description +libcaldev is a client library that adds support for the CalDAV protocol (rfc4791). +The object is to have a library which fully implements the protocol so that it is +easy to integrate CalDAV support into any PIM application. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Obsoletes: libcaldav-devel < %{version}-%{release} +Provides: libcaldav-devel = %{version}-%{release} + +%description devel +%{summary} + +%if 0%{?suse_version} || 0%{?pclinuxos} +%debug_package +%endif + + +%prep +%setup -q -n libcaldav-%{version} +%patch1 -p1 -b .dir + +%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 \ + --docdir=%{tde_docdir}/libcaldav \ + --includedir=%{tde_includedir} \ + --libdir=%{tde_libdir} \ + +%__make %{?_smp_mflags} + +%install +%__rm -rf %{buildroot} +%__make install DESTDIR=%{buildroot} + +%__rm -f %{buildroot}%{tde_libdir}/*.a + +%clean +%__rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%{tde_libdir}/*.so.* +%{tde_docdir}/libcaldav/ + +%files devel +%defattr(-,root,root,-) +%{tde_includedir}/caldav.h +%{tde_libdir}/*.la +%{tde_libdir}/*.so +%{tde_libdir}/pkgconfig/libcaldav.pc + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%post devel +/sbin/ldconfig + +%postun devel +/sbin/ldconfig + + +%Changelog +* Sun Jul 28 2012 Francois Andriot <francois.andriot@free.fr> - 0.6.5-3 +- Renames to 'trinity-libcaldav' +- Build on MGA2 + +* Thu Nov 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.6.5-2debian2.2 +- Add missing BuildRequires + +* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.6.5-2debian2.1 +- Initial release for RHEL 6, RHEL 5, and Fedora 15 |