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

Copy from home:vuntz:branches:GNOME:Factory/evolution via accept of submit request 27688 revision 4.
Request was accepted with message:
accept

OBS-URL: https://build.opensuse.org/request/show/27688
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/evolution?expand=0&rev=57
This commit is contained in:
Vincent Untz 2009-12-27 17:12:11 +00:00 committed by Git OBS Bridge
parent aa73f9b3e6
commit 745bfa78bb
2 changed files with 27 additions and 17 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sun Dec 27 15:50:12 CET 2009 - vuntz@opensuse.org
- Rework packaging to make it easy to switch between using evoldap
and not using it, with a USE_EVOLDAP define.
- Do not use evoldap right now: the evoldap package doesn't seem to
be well-maintained.
- Call suse_update_desktop_file on evolution-alarm-notify.
- Add libgnomecanvas-devel Requires to devel package.
- Remove scrollkeeper BuildRequires.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 24 21:15:16 CET 2009 - vuntz@opensuse.org Thu Dec 24 21:15:16 CET 2009 - vuntz@opensuse.org

View File

@ -15,13 +15,12 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild %define USE_EVOLDAP 0
Name: evolution Name: evolution
BuildRequires: NetworkManager-devel BuildRequires: NetworkManager-devel
BuildRequires: bison BuildRequires: bison
%if %suse_version > 1100 %if %USE_EVOLDAP
BuildRequires: evoldap2-devel BuildRequires: evoldap2-devel
%else %else
BuildRequires: openldap2-devel BuildRequires: openldap2-devel
@ -52,7 +51,6 @@ BuildRequires: nss-shared-helper-devel
BuildRequires: pilot-link BuildRequires: pilot-link
BuildRequires: psmisc BuildRequires: psmisc
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: scrollkeeper
BuildRequires: shared-mime-info BuildRequires: shared-mime-info
BuildRequires: sqlite3-devel BuildRequires: sqlite3-devel
BuildRequires: translation-update-upstream BuildRequires: translation-update-upstream
@ -117,6 +115,7 @@ Requires: gconf2-devel
Requires: gnome-desktop-devel Requires: gnome-desktop-devel
Requires: gtk2-devel Requires: gtk2-devel
Requires: gtkhtml2-devel Requires: gtkhtml2-devel
Requires: libgnomecanvas-devel
Requires: libunique-devel Requires: libunique-devel
Requires: libxml2-devel Requires: libxml2-devel
Provides: evolution2-devel = %{version} Provides: evolution2-devel = %{version}
@ -179,7 +178,9 @@ Evolution or embed the existing ones in other applications.
translation-update-upstream translation-update-upstream
#gnome-patch-translation-prepare #gnome-patch-translation-prepare
# %patch7 # %patch7
%if %USE_EVOLDAP
%patch15 -p1 %patch15 -p1
%endif
%patch16 -p1 %patch16 -p1
%patch18 %patch18
%patch19 %patch19
@ -205,7 +206,7 @@ autoreconf -f -i
%{__sed} -i -e 's/@ENABLE_SK_TRUE@_s/_s/' help/Makefile.in %{__sed} -i -e 's/@ENABLE_SK_TRUE@_s/_s/' help/Makefile.in
%{configure} \ %{configure} \
--disable-scrollkeeper \ --disable-scrollkeeper \
%if %suse_version > 1100 %if %USE_EVOLDAP
--with-openldap=%{_libdir}/evoldap \ --with-openldap=%{_libdir}/evoldap \
%else %else
--with-openldap=yes \ --with-openldap=yes \
@ -233,24 +234,22 @@ popd
%if 0%{?suse_version} <= 1120 %if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/* %{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif %endif
# Remove the libtool archive files find %{buildroot} -name '*.la' -type f -delete -print
%{__rm} $RPM_BUILD_ROOT/%{_libdir}/evolution/*/*.la
%{__rm} $RPM_BUILD_ROOT/%{_libdir}/evolution/*/*/*.la
%suse_update_desktop_file -G "Mail and Calendar" -N "Evolution" -D "evolution" evolution Core-Office %suse_update_desktop_file -G "Mail and Calendar" -N "Evolution" -D "evolution" evolution Core-Office
%suse_update_desktop_file evolution-alarm-notify
%find_lang evolution-%evolution_base_version %find_lang evolution-%evolution_base_version
%find_lang evolution evolution-%evolution_base_version.lang %find_lang evolution evolution-%evolution_base_version.lang
%find_gconf_schemas %find_gconf_schemas
%{__cat} %{name}.schemas_list >%{name}.lst %{__rm} -r %{buildroot}%{_datadir}/mime-info
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mime-info %if %USE_EVOLDAP
%fdupes $RPM_BUILD_ROOT %{__mv} %{buildroot}%{_bindir}/evolution %{buildroot}%{_bindir}/evolution.bin
%if %suse_version > 1100 echo -e "#!/bin/bash\n\nLD_LIBRARY_PATH=%{_libdir}/evoldap/lib exec -a \"%{_bindir}/evolution\" %{_bindir}/evolution.bin \"\$@\"" > %{buildroot}%{_bindir}/evolution
%{__mv} $RPM_BUILD_ROOT/%{_bindir}/evolution $RPM_BUILD_ROOT/%{_bindir}/evolution.bin %{__chmod} +x %{buildroot}%{_bindir}/evolution
echo -e "#!/bin/bash\n\nLD_LIBRARY_PATH=%{_libdir}/evoldap/lib exec -a \"%{_bindir}/evolution\" %{_bindir}/evolution.bin \"\$@\"" > $RPM_BUILD_ROOT/%{_bindir}/evolution
%{__chmod} +x $RPM_BUILD_ROOT/%{_bindir}/evolution
%endif %endif
%fdupes %{buildroot}
%clean %clean
%{__rm} -rf $RPM_BUILD_ROOT %{__rm} -rf %{buildroot}
%pre -f %{name}.schemas_pre %pre -f %{name}.schemas_pre
@ -268,7 +267,7 @@ if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null usr/bin/update-mime-database usr/share/mime >/dev/null
fi fi
%files -f %{name}.lst %files -f %{name}.schemas_list
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LGPL2 COPYING.LGPL3 COPYING-DOCS COPYING.OPENLDAP ChangeLog MAINTAINERS NEWS NEWS-1.0 README %doc AUTHORS COPYING COPYING.LGPL2 COPYING.LGPL3 COPYING-DOCS COPYING.OPENLDAP ChangeLog MAINTAINERS NEWS NEWS-1.0 README
%{_bindir}/* %{_bindir}/*