Accepting request 87843 from home:vuntz:branches:GNOME:Factory

cleanup

OBS-URL: https://build.opensuse.org/request/show/87843
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/evolution-ews?expand=0&rev=2
This commit is contained in:
Vincent Untz 2011-10-14 12:51:15 +00:00 committed by Git OBS Bridge
parent fe8309fcad
commit b72edb40e5
2 changed files with 88 additions and 28 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Oct 14 12:44:28 UTC 2011 - vuntz@opensuse.org
- Cleanup for inclusion in Factory.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 14 07:59:40 UTC 2011 - jpunit@suse.com Fri Oct 14 07:59:40 UTC 2011 - jpunit@suse.com

View File

@ -18,40 +18,83 @@
Name: evolution-ews Name: evolution-ews
# This should be updated upon major version changes; it should match BASE_VERSION as defined in configure.in. # This should be updated upon major version changes; it should match BASE_VERSION as defined in configure.in.
%define evolution_base_version 3.2 %define evolution_base_version 3.2
Version: 3.2 # This is a git checkout for now
Version: 0.31.0
Release: 1 Release: 1
# FIXME: on update after 3.1.1, update license tag (see bgo#651254) if needed License: LGPLv2.1
License: LGPLv2.0 ; LGPLv3 Summary: Exchange Connector for Evolution, compatible with Exchange 2007 and later
Summary: Exchange Connector for MS exchange servers 2007 and later
Url: http://projects.gnome.org/evolution/ Url: http://projects.gnome.org/evolution/
Group: Productivity/Networking/Email/Clients Group: Productivity/Networking/Email/Clients
Source: %{name}.tar.bz2 Source: %{name}.tar.bz2
# PATCH-FIX-UPSTREAM base-version-changed.patch -- Build against evo 3.2
Patch0: base-version-changed.patch Patch0: base-version-changed.patch
# PATCH-FIX-OPENSUSE change-compiler-flag-dimstar.patch -- Temporary hack to fix build
Patch1: change-compiler-flag-dimstar.patch Patch1: change-compiler-flag-dimstar.patch
BuildRequires: intltool
BuildRequires: gnome-common
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gnome-common
BuildRequires: intltool
BuildRequires: translation-update-upstream BuildRequires: translation-update-upstream
BuildRequires: evolution-devel >= 3.2 BuildRequires: pkgconfig(camel-provider-1.2)
BuildRequires: pkgconfig(evolution-data-server-1.2) BuildRequires: pkgconfig(evolution-data-server-1.2)
BuildRequires: libsoup-devel BuildRequires: pkgconfig(evolution-plugin-3.0)
Requires: libsoup > 2.30 BuildRequires: pkgconfig(evolution-shell-3.0)
Requires: evolution-data-server >= 3.2 BuildRequires: pkgconfig(gconf-2.0) >= 2.0.0
Requires: evolution >= 3.2 BuildRequires: pkgconfig(glib-2.0) >= 2.16.1
BuildRequires: pkgconfig(gtk+-3.0) >= 2.90.4
BuildRequires: pkgconfig(libebackend-1.2)
BuildRequires: pkgconfig(libedata-book-1.2)
BuildRequires: pkgconfig(libedata-cal-1.2)
BuildRequires: pkgconfig(libedataserver-1.2)
BuildRequires: pkgconfig(libedataserverui-3.0)
BuildRequires: pkgconfig(libsoup-2.4) >= 2.30
Recommends: %{name}-lang Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
The EWS Exchange Connector for Evolution provides a Exchange backend
from evolution-data-server as well as plugins for Evolution to access
Exchange features.
The EWS Exchange Connector is using the Exchange Web Services interface
and is therefore compatible with Exchange 2007 and later.
Provides exchange connectivity for exchange server 2007 and later using Provides exchange connectivity for exchange server 2007 and later using
exchange web services protocol. exchange web services protocol.
%package -n libeews-1_2-0
Summary: Client library for Accessing Exchange Servers
Group: System/Libraries
%description -n libeews-1_2-0
This library is a client library for accessing Exchange servers through
the Exchange Web Services interface (compatible with Exchange 2007 and
later).
%package -n libewsutils0
Summary: Client library for Accessing Exchange Servers -- Utilities library
Group: System/Libraries
%description -n libewsutils0
This library provides utilities API for EWS Exchange Connector.
%package -n liblzx0
Summary: Client library for Accessing Exchange Servers - LZX library
Group: System/Libraries
%description -n liblzx0
This library is an implementation of the LZX compression algorithm.
%package devel %package devel
Summary: Include files and libraries for develop applications using EWS protocol Summary: Client library for Accessing Exchange Servers -- Development Files
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{name}=%{version}-%{release} Requires: libeews-1_2-0 = %{version}
Requires: libewsutils0 = %{version}
Requires: liblzx0 = %{version}
%description devel %description devel
Include files and libraries for develop applications using exchange This library is a client library for accessing Exchange servers through
webservices protocol to connect to exchange server 2007 or later the Exchange Web Services interface (compatible with Exchange 2007 and
later).
%lang_package %lang_package
%prep %prep
@ -61,40 +104,50 @@ translation-update-upstream
%patch1 -p1 %patch1 -p1
%build %build
NOCONFIGURE=1 ./autogen.sh \ NOCONFIGURE=1 ./autogen.sh
--disable-static
%{configure} \ %{configure} \
--disable-static --disable-static
%{__make} %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%make_install %make_install
find %{buildroot}%{_libdir} -name '*.la' -delete -print find %{buildroot}%{_libdir} -name '*.la' -delete -print
%find_lang evolution-ews %{?no_lang_C} %find_lang evolution-ews %{?no_lang_C}
%find_lang evolution-ews %{?no_lang_C} evolution-ews.lang
%fdupes %{buildroot} %fdupes %{buildroot}
%clean %post -n libeews-1_2-0 -p /sbin/ldconfig
%{?buildroot:%__rm -rf %{buildroot}}
%post -p /sbin/ldconfig %postun -n libeews-1_2-0 -p /sbin/ldconfig
%postun -p /sbin/ldconfig %post -n libewsutils0 -p /sbin/ldconfig
%postun -n libewsutils0 -p /sbin/ldconfig
%post -n liblzx0 -p /sbin/ldconfig
%postun -n liblzx0 -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING %doc COPYING README
%{_libdir}/evolution-data-server/addressbook-backends/libebookbackendews.so %{_libdir}/evolution-data-server/addressbook-backends/libebookbackendews.so
%{_libdir}/evolution-data-server/calendar-backends/libecalbackendews.so %{_libdir}/evolution-data-server/calendar-backends/libecalbackendews.so
%{_libdir}/evolution-data-server/camel-providers/libcamelews.so %{_libdir}/evolution-data-server/camel-providers/libcamelews.so
%{_libdir}/evolution-data-server/camel-providers/libcamelews.urls %{_libdir}/evolution-data-server/camel-providers/libcamelews.urls
%{_libdir}/evolution/%{evolution_base_version}/plugins/liborg-gnome-exchange-ews.so %{_libdir}/evolution/%{evolution_base_version}/plugins/liborg-gnome-exchange-ews.so
%{_libdir}/evolution/%{evolution_base_version}/plugins/org-gnome-exchange-ews.eplug %{_libdir}/evolution/%{evolution_base_version}/plugins/org-gnome-exchange-ews.eplug
%{_libdir}/libeews-1.2.so.*
%{_libdir}/libewsutils.so.*
%{_libdir}/liblzx.so.*
%files lang -f evolution-ews.lang %files -n libeews-1_2-0
%defattr(-, root, root)
%{_libdir}/libeews-1.2.so.*
%files -n libewsutils0
%defattr(-, root, root)
%{_libdir}/libewsutils.so.*
%files -n liblzx0
%defattr(-, root, root)
%{_libdir}/liblzx.so.*
%files devel %files devel
%defattr(-, root, root) %defattr(-, root, root)
@ -105,4 +158,6 @@ find %{buildroot}%{_libdir} -name '*.la' -delete -print
%dir %{_includedir}/evolution-data-server-%{evolution_base_version} %dir %{_includedir}/evolution-data-server-%{evolution_base_version}
%{_includedir}/evolution-data-server-%{evolution_base_version}/ews/ %{_includedir}/evolution-data-server-%{evolution_base_version}/ews/
%files lang -f evolution-ews.lang
%changelog %changelog