e258f49
%define evo_version 2.30.2
e258f49
%define eds_version 2.30.2
6ca015b
%define libmapi_version 0.9
d5ba76c
%define intltool_version 0.35.5
d5ba76c
94066ba
%define evo_major 2.30
d5ba76c
%define eds_major 1.2
d5ba76c
d5ba76c
%define strict_build_settings 0
d5ba76c
d5ba76c
### Abstract ###
d5ba76c
d5ba76c
Name: evolution-mapi
Matthew Barnes 7e92ed5
Version: 0.30.3
ff306f9
Release: 1%{?dist}
d5ba76c
Group: Applications/Productivity
d5ba76c
Summary: Evolution extension for MS Exchange 2007 servers
d5ba76c
License: LGPLv2+
d5ba76c
URL: http://www.gnome.org/projects/evolution-mapi/
53c7e16
Source: http://ftp.gnome.org/pub/gnome/sources/evolution-mapi/0.30/evolution-mapi-%{version}.tar.bz2
53c7e16
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
d5ba76c
d5ba76c
### Dependencies ###
d5ba76c
d5ba76c
Requires: evolution >= %{evo_version}
d5ba76c
Requires: evolution-data-server >= %{eds_version}
d5ba76c
c71e372
### Patches ###
c71e372
8718d24
#Patch1: gnbug588453.patch
c71e372
d5ba76c
### Build Dependencies ###
d5ba76c
d5ba76c
BuildRequires: evolution-data-server-devel >= %{eds_version}
d5ba76c
BuildRequires: evolution-devel >= %{evo_version}
d5ba76c
BuildRequires: gettext
d5ba76c
BuildRequires: intltool >= %{intltool_version}
d5ba76c
BuildRequires: libtalloc-devel
d5ba76c
BuildRequires: openchange-devel >= %{libmapi_version}
d5ba76c
BuildRequires: samba4-devel
d5ba76c
d5ba76c
%description
d5ba76c
This package allows Evolution to interact with MS Exchange 2007 servers.
d5ba76c
d5ba76c
%package devel
d5ba76c
Summary: Development files for building against %{name}
d5ba76c
Group: Development/Libraries
53c7e16
Requires: %{name} = %{version}-%{release}
d5ba76c
Requires: evolution-data-server-devel >= %{eds_version}
d5ba76c
Requires: evolution-devel >= %{evo_version}
d5ba76c
Requires: openchange-devel >= %{libmapi_version}
d5ba76c
d5ba76c
%description devel
d5ba76c
Development files needed for building things which link against %{name}.
d5ba76c
d5ba76c
%prep
53c7e16
%setup -q -n evolution-mapi-%{version}
d5ba76c
8718d24
#%patch1 -p1 -b .gnbug588453
c71e372
d5ba76c
%build
d5ba76c
d5ba76c
# Add stricter build settings here as the source code gets cleaned up.
d5ba76c
# We want to make sure things like compiler warnings and avoiding deprecated
d5ba76c
# functions in the GNOME/GTK+ libraries stay fixed.
d5ba76c
#
d5ba76c
# Please file a bug report at bugzilla.gnome.org if these settings break
d5ba76c
# compilation, and encourage the upstream developers to use them.
d5ba76c
d5ba76c
%if %{strict_build_settings}
d5ba76c
CFLAGS="$CFLAGS \
d5ba76c
	-DG_DISABLE_DEPRECATED=1 \
d5ba76c
	-DPANGO_DISABLE_DEPRECATED=1 \
d5ba76c
	-DGDK_PIXBUF_DISABLE_DEPRECATED=1 \
d5ba76c
	-DGDK_DISABLE_DEPRECATED=1 \
d5ba76c
	-DGTK_DISABLE_DEPRECATED=1 \
d5ba76c
	-DEDS_DISABLE_DEPRECATED=1 \
d5ba76c
	-Wdeclaration-after-statement \
d5ba76c
	-Werror-implicit-function-declaration"
d5ba76c
%endif
d5ba76c
d5ba76c
%configure
d5ba76c
make %{?_smp_mflags}
d5ba76c
d5ba76c
%install
d5ba76c
rm -rf $RPM_BUILD_ROOT
d5ba76c
make install DESTDIR=$RPM_BUILD_ROOT
d5ba76c
d5ba76c
find $RPM_BUILD_ROOT/%{_libdir} -name '*.la' -exec rm {} \;
d5ba76c
d5ba76c
%find_lang %{name}
d5ba76c
d5ba76c
%clean
d5ba76c
rm -rf $RPM_BUILD_ROOT
d5ba76c
d5ba76c
# COPYING has the wrong license.  Do not include it until fixed.
d5ba76c
d5ba76c
%files -f %{name}.lang
d5ba76c
%defattr(-,root,root,-)
d5ba76c
%doc AUTHORS ChangeLog INSTALL README
d5ba76c
%{_libdir}/libexchangemapi-1.0.so.*
d5ba76c
%{_libdir}/evolution/%{evo_major}/plugins/*
d5ba76c
%{_libdir}/evolution-data-server-%{eds_major}/camel-providers/libcamelmapi.so
d5ba76c
%{_libdir}/evolution-data-server-%{eds_major}/camel-providers/libcamelmapi.urls
d5ba76c
%{_libdir}/evolution-data-server-%{eds_major}/extensions/libebookbackendmapi.so
1f1814b
%{_libdir}/evolution-data-server-%{eds_major}/extensions/libebookbackendmapigal.so
d5ba76c
%{_libdir}/evolution-data-server-%{eds_major}/extensions/libecalbackendmapi.so
d5ba76c
%{_datadir}/evolution-data-server-%{evo_major}/mapi
d5ba76c
d5ba76c
%files devel
d5ba76c
%defattr(-,root,root,-)
d5ba76c
%{_includedir}/evolution-data-server-%{evo_major}/mapi
d5ba76c
%{_libdir}/libexchangemapi-1.0.so
d5ba76c
%{_libdir}/pkgconfig/libexchangemapi-1.0.pc
d5ba76c
d5ba76c
%changelog
Matthew Barnes 7e92ed5
* Wed Aug 11 2010 Matthew Barnes <mbarnes@redhat.com> - 0.30.3-1
Matthew Barnes 7e92ed5
- Update to 0.30.3
Matthew Barnes 7e92ed5
53c7e16
* Mon Jun 28 2010 Matthew Barnes <mbarnes@redhat.com> - 0.30.2.1-1
53c7e16
- Rebuild with version tag fixed.
53c7e16
e258f49
* Mon Jun 01 2010 Milan Crha <mcrha@redhat.com> - 0.30.2-1
e258f49
- Update to 0.30.2.1
e258f49
32c8866
* Mon Apr 26 2010 Milan Crha <mcrha@redhat.com> - 0.30.1-1
32c8866
- Update to 0.30.1
32c8866
3561173
* Tue Mar 30 2010 Milan Crha <mcrha@redhat.com> - 0.30.0-1
3561173
- Update to 0.30.0
3561173
f6bc242
* Mon Mar 02 2010 Matthew Barnes <mbarnes@redhat.com> - 0.29.92-1
f6bc242
- Update to 0.29.92
f6bc242
6b87db1
* Mon Feb 22 2010 Milan Crha <mcrha@redhat.com> - 0.29.91-1
6b87db1
- Update to 0.29.91
6b87db1
18c8906
* Mon Feb 08 2010 Milan Crha <mcrha@redhat.com> - 0.29.90-1
18c8906
- Update to 0.29.90
18c8906
27bb8eb
* Mon Jan 25 2010 Milan Crha <mcrha@redhat.com> - 0.29.6-1
27bb8eb
- Update to 0.29.6
27bb8eb
ff306f9
* Tue Jan 12 2010 Milan Crha <mcrha@redhat.com> - 0.29.5-1
ff306f9
- Update to 0.29.5
ff306f9
6ca015b
* Sat Jan 09 2010 Matthew Barnes <mbarnes@redhat.com> - 0.29.4-2
6ca015b
- Rebuild against OpenChange 0.9.
6ca015b
20d0486
* Mon Dec 21 2009 Milan Crha <mcrha@redhat.com> - 0.29.4-1
20d0486
- Update to 0.29.4
20d0486
8718d24
* Mon Nov 30 2009 Milan Crha <mcrha@redhat.com> - 0.29.3-1
8718d24
- Update to 0.29.3
8718d24
- Remove patch for Gnome bug #588453 (fixed upstream).
8718d24
- Remove patch for Gnome bug #595260 (fixed upstream).
8718d24
- Remove patch for Gnome bug #595355 (fixed upstream).
8718d24
- Remove patch for Gnome bug #595480 (fixed upstream).
8718d24
c71e372
* Tue Sep 22 2009 Milan Crha <mcrha@redhat.com> - 0.28.0-1
c71e372
- Update to 0.28.0
c71e372
- Add patch for Gnome bug #588453 (slow retrieval of message IDs).
c71e372
- Add patch for Gnome bug #595260 (crash in mapi_sync_deleted).
c71e372
- Add patch for Gnome bug #595355 (crash and incorrect header parsing).
c71e372
- Add patch for Gnome bug #595480 (crash on fetching GAL).
c71e372
87e74fd
* Mon Sep 07 2009 Milan Crha <mcrha@redhat.com> - 0.27.92-1
87e74fd
- Update to 0.27.92
87e74fd
c24ed3e
* Mon Aug 24 2009 Milan Crha <mcrha@redhat.com> - 0.27.91-1
c24ed3e
- Update to 0.27.91
c24ed3e
7b4af33
* Mon Aug 10 2009 Milan Crha <mcrha@redhat.com> - 0.27.90-1
7b4af33
- Update to 0.27.90
7b4af33
1f1814b
* Tue Jul 28 2009 Milan Crha <mcrha@redhat.com> - 0.27.5-2
1f1814b
- Add new libebookbackendmapigal.so to a list of installed files.
1f1814b
- Bump requirement of evolution and evolution-data-server to 2.27.5.
1f1814b
972876d
* Mon Jul 27 2009 Milan Crha <mcrha@redhat.com> - 0.27.5-1
972876d
- Update to 0.27.5
972876d
cf4fd3e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.27.4-2
cf4fd3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cf4fd3e
f811fb0
* Mon Jul 13 2009 Matthew Barnes <mbarnes@redhat.com> - 0.27.4-1
f811fb0
- Update to 0.27.4
f811fb0
cc564c8
* Thu Jul 02 2009 Matthew Barnes <mbarnes@redhat.com> - 0.27.3-4
cc564c8
- Remove redundant library flag from pkg-config file.
cc564c8
460419c
* Mon Jun 29 2009 Matthew Barnes <mbarnes@redhat.com> - 0.27.3-3
460419c
- Rebuild against mutated openchange (see RH bug #503783).
460419c
460419c
* Fri Jun 26 2009 Matthew Barnes <mbarnes@redhat.com> - 0.27.3-2
6c9e7b5
- Remove ldconfig calls since all the libraries we install are
6c9e7b5
  dlopen'ed modules (RH bug #586991).
6c9e7b5
5815516
* Mon Jun 15 2009 Matthew Barnes <mbarnes@redhat.com> - 0.27.3-1
5815516
- Update to 0.27.3
5815516
1d02daf
* Fri May 29 2009 Matthew Barnes <mbarnes@redhat.com> - 0.27.2-1
1d02daf
- Update to 0.27.2
1d02daf
2040bee
* Mon May 04 2009 Matthew Barnes <mbarnes@redhat.com> - 0.27.1-1
2040bee
- Update to 0.27.1
2040bee
- Bump eds_major to 2.28.
2040bee
- Bump evo and eds req's to 2.27.1.
2040bee
8a2b512
* Mon Apr 13 2009 Matthew Barnes <mbarnes@redhat.com> - 0.26.1-1
8a2b512
- Update to 0.26.1
8a2b512
9adf24d
* Thu Mar 19 2009 Matthew Barnes <mbarnes@redhat.com> - 0.26.0.1-1
9adf24d
- Update to 0.26.0.1
9adf24d
98e122c
* Mon Mar 16 2009 Matthew Barnes <mbarnes@redhat.com> - 0.26.0-1
98e122c
- Update to 0.26.0
98e122c
33cd58c
* Mon Mar 02 2009 Matthew Barnes <mbarnes@redhat.com> - 0.25.92-1
33cd58c
- Update to 0.25.92
33cd58c
d5ba76c
* Thu Feb 26 2009 Matthew Barnes <mbarnes@redhat.com> - 0.25.91-3
d5ba76c
- Formal package review cleanups.
d5ba76c
d5ba76c
* Thu Feb 19 2009 Matthew Barnes <mbarnes@redhat.com> - 0.25.91-2
d5ba76c
- Add some missing build requirements.
d5ba76c
d5ba76c
* Mon Feb 16 2009 Matthew Barnes <mbarnes@redhat.com> - 0.25.91-1
d5ba76c
- Update to 0.25.91
d5ba76c
d5ba76c
* Thu Feb 05 2009 Matthew Barnes <mbarnes@redhat.com> - 0.25.90-1
d5ba76c
- Update to 0.25.90
d5ba76c
d5ba76c
* Mon Jan 19 2009 Matthew Barnes <mbarnes@redhat.com> - 0.25.5-1
d5ba76c
- Update to 0.25.5
d5ba76c
d5ba76c
* Tue Jan 06 2009 Matthew Barnes <mbarnes@redhat.com> - 0.25.4-1
d5ba76c
- Update to 0.25.4
d5ba76c
- Handle translations.
d5ba76c
d5ba76c
* Mon Dec 15 2008 Matthew Barnes <mbarnes@redhat.com> - 0.25.3-1
d5ba76c
- Update to 0.25.3
d5ba76c
d5ba76c
* Fri Dec 12 2008 Matthew Barnes <mbarnes@redhat.com> - 0.1-1
d5ba76c
- Initial packaging of evolution-mapi.