New version 3.8.1 (sync with Cooker)

This commit is contained in:
Andrey Bondrov 2012-07-19 20:34:36 +11:00
parent a0e3457fa7
commit 27f772ead4
5 changed files with 148 additions and 140 deletions

View file

@ -1,2 +1,2 @@
sources: sources:
"claws-mail-3.7.9.tar.bz2": a5d5d93d5d6d6cabdbabd391724d7564a304449a "claws-mail-3.8.1.tar.bz2": c519d07121bfb3095c7a3d47e53b6726bf397ed8

View file

@ -0,0 +1,16 @@
# Description: feature patch to mark as read mails moved to trash
# Author: Ricardo Mones <mones@debian.org>
diff -ur claws-mail-3.7.6.orig//src/summaryview.c claws-mail-3.7.6//src/summaryview.c
--- claws-mail-3.7.6.orig//src/summaryview.c 2010-02-19 09:10:55.000000000 +0100
+++ claws-mail-3.7.6//src/summaryview.c 2010-05-05 16:14:14.000000000 +0200
@@ -4449,6 +4449,10 @@
summary_msginfo_unset_flags(msginfo, MSG_DELETED, MSG_MOVE);
}
if (!prefs_common.immediate_exec) {
+ if (to_folder->stype == F_TRASH
+ && MSG_IS_UNREAD(msginfo->flags)) {
+ summary_mark_row_as_read(summaryview, row);
+ }
summary_set_row_marks(summaryview, row);
}

View file

@ -1,18 +0,0 @@
Index: src/main.c
===================================================================
RCS file: //claws/src/main.c,v
retrieving revision 1.115.2.237
retrieving revision 1.115.2.238
diff -u -r1.115.2.237 -r1.115.2.238
--- src/main.c 10 Apr 2011 17:19:04 -0000 1.115.2.237
+++ src/main.c 30 Apr 2011 19:27:15 -0000 1.115.2.238
@@ -331,7 +331,7 @@
gtk_widget_show(hack);
}
- xdisplay = gdk_display_get_default();
+ xdisplay = GDK_DISPLAY_XDISPLAY(gdk_display_get_default());
sn_display = sn_display_new(xdisplay,
sn_error_trap_push,
sn_error_trap_pop);

View file

@ -0,0 +1,25 @@
Gentoo bug : https://bugs.gentoo.org/show_bug.cgi?id=424882
Upstream bug : http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2689
Upstream commit: http://www.claws-mail.org/tracker/getpatchset.php?ver=3.8.1cvs12
Claws Mail segfaults showing GPG/S-MIME signature info.
Index: src/plugins/pgpcore/sgpgme.c
===================================================================
RCS file: //claws/src/plugins/pgpcore/Attic/sgpgme.c,v
retrieving revision 1.1.2.71
retrieving revision 1.1.2.72
diff -u -r1.1.2.71 -r1.1.2.72
--- src/plugins/pgpcore/sgpgme.c 8 Jul 2012 12:48:47 -0000 1.1.2.71
+++ src/plugins/pgpcore/sgpgme.c 10 Jul 2012 14:10:11 -0000 1.1.2.72
@@ -327,7 +327,7 @@
j++;
user = user->next;
}
- g_string_append_printf(siginfo,
+ g_string_append(siginfo,
_("Primary key fingerprint:"));
const char* primary_fpr = NULL;
if (key && key->subkeys && key->subkeys->fpr)

View file

@ -1,74 +1,73 @@
%define pre %nil %define _disable_ld_no_undefined 1
# There are perl scripts in docs/tools and we don't want to install perl
# modules required by these scripts
%define __noautoreq 'perl(.*)'
%define version_name %{name}-%{version} %define version_name %{name}-%{version}
%define iconname %{name}.png %define iconname %{name}.png
%define Group Networking/Mail %define Group Networking/Mail
Summary: The user-friendly, lightweight and fast GTK2 based email client Summary: The user-friendly, lightweight and fast GTK2 based email client
Name: claws-mail Name: claws-mail
Version: 3.7.9 Version: 3.8.1
Release: %mkrel 2 Release: 3
Epoch: 1 Epoch: 1
License: GPLv3+ License: GPLv3+
Group: %{Group} Group: %{Group}
URL: http://www.claws-mail.org URL: http://www.claws-mail.org
Source0: http://downloads.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2 Source0: http://downloads.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2
Patch0: claws-mail-3.7.9-bug2414.patch # from Debian
BuildRequires: gtk2-devel Patch0: claws-mail-3.7.6-trashed-read.patch
# from upstream
Patch1: claws-mail-3.8.1-fix-signature.patch
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(dbus-1) >= 0.60
BuildRequires: pkgconfig(dbus-glib-1) >= 0.60
BuildRequires: pkgconfig(enchant) >= 1.0.0
BuildRequires: pkgconfig(glib-2.0) >= 2.6
BuildRequires: pkgconfig(gmodule-2.0) >= 2.6
BuildRequires: pkgconfig(gnutls) >= 2.2
BuildRequires: pkgconfig(gobject-2.0) >= 2.6
BuildRequires: pkgconfig(gthread-2.0) >= 2.6
BuildRequires: pkgconfig(gtk+-2.0) >= 2.16
BuildRequires: pkgconfig(libgnome-2.0) >= 2.0
BuildRequires: pkgconfig(libstartup-notification-1.0) >= 0.5
BuildRequires: pkgconfig(NetworkManager) >= 0.6.2
BuildRequires: docbook-utils
BuildRequires: libsm-devel
BuildRequires: openldap-devel BuildRequires: openldap-devel
BuildRequires: enchant-devel
BuildRequires: libgdk_pixbuf2.0-devel >= 2.6.4
BuildRequires: pilot-link-devel BuildRequires: pilot-link-devel
BuildRequires: libltdl-devel
BuildRequires: multiarch-utils BuildRequires: multiarch-utils
BuildRequires: libetpan-devel >= 0.42 BuildRequires: libetpan-devel >= 0.42
BuildRequires: flex BuildRequires: flex
BuildRequires: bison BuildRequires: bison
BuildRequires: startup-notification-devel BuildRequires: valgrind-devel
BuildRequires: gnutls-devel
BuildRequires: valgrind
%if %mdkversion < 200700
BuildRequires: libgnomeprintui-devel
%endif
BuildRequires: spamassassin-spamd >= 3.0.0 BuildRequires: spamassassin-spamd >= 3.0.0
BuildRequires: libgcrypt-devel
BuildRequires: gpgme-devel > 0.4.5 BuildRequires: gpgme-devel > 0.4.5
BuildRequires: libsm-devel
%if %mdkversion > 200800
BuildRequires: imagemagick BuildRequires: imagemagick
%else
BuildRequires: imagemagick
%endif
%if %mdkversion > 200800
BuildRequires: compface-devel BuildRequires: compface-devel
Requires: compface Requires: compface
%endif
%if %mdkversion > 200700
BuildRequires: libdbus-glib-devel
%endif
%if %mdkversion > 2008100
Requires: rootcerts Requires: rootcerts
%endif
#%if %mdkversion >= 200900
#BuildRequires: libnm_util-devel
#BuildRequires: libnm_glib-devel
#%endif
Requires: common-licenses Requires: common-licenses
Requires: aspell-dictionary Requires: aspell-dictionary
Obsoletes: %{name}-tools Obsoletes: %{name}-tools < %{EVRD}
Provides: %{name}-tools Provides: %{name}-tools
Obsoletes: %{name}-spamassassin-plugin < %{EVRD}
# Fix upgrade from mdk 2006: # Fix upgrade from mdk 2006:
Obsoletes: sylpheed-claws2 Obsoletes: sylpheed-claws2
Obsoletes: sylpheed-claws Obsoletes: sylpheed-claws
#Clamav is dropped #Clamav is dropped
Obsoletes: claws-mail-clamav-plugin Obsoletes: claws-mail-clamav-plugin < %{EVRD}
#Pdf Viever is gone #Pdf Viever is gone
Obsoletes: claws-mail-pdf_viewer-plugin Obsoletes: claws-mail-pdf_viewer-plugin < %{EVRD}
## additinal feature which can be enabled at configure are jconv ## additinal feature which can be enabled at configure are jconv
## jconv ## jconv
## A general purpose Japanese code conversion tool. ## A general purpose Japanese code conversion tool.
## BuildRequires: jconv ## BuildRequires: jconv
## Requires: jconv ## Requires: jconv
Buildroot: %{_tmppath}/%{version_name}-%{release}-buildroot
%description %description
Claws-Mail is an e-mail client (and news reader) based on GTK+2, running Claws-Mail is an e-mail client (and news reader) based on GTK+2, running
@ -114,19 +113,7 @@ For a complete listing of Features: http://www.claws-mail.org/features.php
Summary: Development files for %{name} Summary: Development files for %{name}
Group: Development/Other Group: Development/Other
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: gtk2-devel
Requires: openldap-devel
Requires: enchant-devel
Requires: aspell-dictionary Requires: aspell-dictionary
Requires: libgdk_pixbuf2.0-devel >= 2.6.4
Requires: pilot-link-devel
Requires: libltdl-devel
Requires: libetpan-devel >= 0.42
%if %mdkversion < 200700
Requires: libgnomeprintui-devel
%endif
Requires: gpgme-devel > 0.4.5
Requires: gnutls-devel
Obsoletes: sylpheed-claws2-devel Obsoletes: sylpheed-claws2-devel
Obsoletes: sylpheed-claws-devel Obsoletes: sylpheed-claws-devel
@ -141,12 +128,11 @@ Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: bogofilter Requires: bogofilter
%description bogofilter-plugin %description bogofilter-plugin
Enables the scanning of incoming mail received from a Enables the scanning of incoming mail received from a POP, IMAP, or LOCAL
POP, IMAP, or LOCAL account using Bogofilter. It can account using Bogofilter. It can optionally delete mail identified as spam
optionally delete mail identified as spam or save it or save it to a designated folder. Bogofilter is a pure Bayesian filter,
to a designated folder. Bogofilter is a pure Bayesian therefore it has better speed performance than SpamAssassin but might catch
filter, therefore it has better speed performance less spam.
than SpamAssassin but might catch less spam.
%package smime-plugin %package smime-plugin
Summary: S/Mime plugin for %{name} Summary: S/Mime plugin for %{name}
@ -154,8 +140,7 @@ Group: %{Group}
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
%description smime-plugin %description smime-plugin
This plugin allows to use S/Mime signatures and encryptions This plugin allows to use S/Mime signatures and encryptions in Claws Mail.
in Claws Mail
%package dillo_viewer-plugin %package dillo_viewer-plugin
Summary: Dillo HTML viewer plugin for %{name} Summary: Dillo HTML viewer plugin for %{name}
@ -163,22 +148,21 @@ Group: %{Group}
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: dillo Requires: dillo
Provides: sylpheed-claws2-dillo_viewer-plugin Provides: sylpheed-claws2-dillo_viewer-plugin
Obsoletes: sylpheed-claws2-dillo_viewer-plugin Obsoletes: sylpheed-claws2-dillo_viewer-plugin < %{epoch}:%{version}-%{release}
%description dillo_viewer-plugin %description dillo_viewer-plugin
This plugin uses the Dillo browser to view text/html This plugin uses the Dillo browser to view text/html MIME parts inside %{name}.
MIME parts inside %{name}.
%package pgpcore-plugin %package pgpcore-plugin
Summary: PGP core plugin for %{name} Summary: PGP core plugin for %{name}
Group: %{Group} Group: %{Group}
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: sylpheed-claws2-pgpcore-plugin Provides: sylpheed-claws2-pgpcore-plugin
Obsoletes: sylpheed-claws2-pgpcore-plugin Obsoletes: sylpheed-claws2-pgpcore-plugin < %{epoch}:%{version}-%{release}
%description pgpcore-plugin %description pgpcore-plugin
Handles core PGP functions and is a dependency of both Handles core PGP functions and is a dependency of both the PGP/Inline and
the PGP/Inline and PGP/MIME plugins. PGP/MIME plugins.
%package pgpinline-plugin %package pgpinline-plugin
Summary: PGP/Inline plugin for %{name} Summary: PGP/Inline plugin for %{name}
@ -186,12 +170,11 @@ Group: %{Group}
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: %{name}-pgpcore-plugin = %{epoch}:%{version}-%{release} Requires: %{name}-pgpcore-plugin = %{epoch}:%{version}-%{release}
Provides: sylpheed-claws2-pgpinline-plugin Provides: sylpheed-claws2-pgpinline-plugin
Obsoletes: sylpheed-claws2-pgpinline-plugin Obsoletes: sylpheed-claws2-pgpinline-plugin < %{epoch}:%{version}-%{release}
%description pgpinline-plugin %description pgpinline-plugin
Handles PGP/Inline signed and/or encrypted mails. Handles PGP/Inline signed and/or encrypted mails. You can decrypt mails,
You can decrypt mails, verify signatures or sign verify signatures or sign and encrypt your own mails.
and encrypt your own mails.
%package pgpmime-plugin %package pgpmime-plugin
Summary: PGP/MIME plugin for %{name} Summary: PGP/MIME plugin for %{name}
@ -199,12 +182,11 @@ Group: %{Group}
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: %{name}-pgpcore-plugin = %{epoch}:%{version}-%{release} Requires: %{name}-pgpcore-plugin = %{epoch}:%{version}-%{release}
Provides: sylpheed-claws2-pgpmime-plugin Provides: sylpheed-claws2-pgpmime-plugin
Obsoletes: sylpheed-claws2-pgpmime-plugin Obsoletes: sylpheed-claws2-pgpmime-plugin < %{epoch}:%{version}-%{release}
%description pgpmime-plugin %description pgpmime-plugin
Handles PGP/MIME signed and/or encrypted mails. Handles PGP/MIME signed and/or encrypted mails. You can decrypt mails, verify
You can decrypt mails, verify signatures or sign signatures or sign and encrypt your own mails.
and encrypt your own mails.
%package spamassassin-plugin %package spamassassin-plugin
Summary: Spamassassin-plugin for %{name} Summary: Spamassassin-plugin for %{name}
@ -212,63 +194,52 @@ Group: %{Group}
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: spamassassin-spamd Requires: spamassassin-spamd
Provides: sylpheed-claws2-spamassassin-plugin Provides: sylpheed-claws2-spamassassin-plugin
Obsoletes: sylpheed-claws2-spamassassin-plugin Obsoletes: sylpheed-claws2-spamassassin-plugin < %{epoch}:%{version}-%{release}
%description spamassassin-plugin %description spamassassin-plugin
Enables the scanning of incoming mail received from a Enables the scanning of incoming mail received from a POP, IMAP, or LOCAL
POP, IMAP, or LOCAL account using SpamAssassin account using SpamAssassin. See README for configuration and set-up info.
See README for configuration and set-up info.
%package trayicon-plugin %package trayicon-plugin
Summary: Notafication icon for %{name} Summary: Notafication icon for %{name}
Group: %{Group} Group: %{Group}
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
Provides: sylpheed-claws2-trayicon-plugin Provides: sylpheed-claws2-trayicon-plugin
Obsoletes: sylpheed-claws2-trayicon-plugin Obsoletes: sylpheed-claws2-trayicon-plugin < %{epoch}:%{version}-%{release}
%description trayicon-plugin %description trayicon-plugin
Places an icon in the system tray that indicates Places an icon in the system tray that indicates whether you have any new mail.
whether you have any new mail. A tooltip also shows A tooltip also shows the current new, unread and total number of messages, and
the current new, unread and total number of messages, a contextual menu allows the most common operations. See README for additional
and a contextual menu allows the most common operations. info.
See README for additional info.
%prep %prep
%setup -q %setup -q
%patch0 -p0 %patch0 -p1
%patch1 -p0
%build %build
%define _disable_ld_no_undefined 1
%configure2_5x \ %configure2_5x \
--enable-enchant \ --enable-enchant \
--enable-jpilot \ --enable-jpilot \
--disable-openssl \
--enable-ldap \ --enable-ldap \
--enable-gpgme \
--enable-crash-dialog \ --enable-crash-dialog \
--enable-spamassassin-plugin \ --enable-spamassassin-plugin \
--enable-dillo-viewer-plugin \ --enable-dillo-viewer-plugin \
--enable-trayicon-plugin \ --enable-trayicon-plugin \
--enable-bogofilter \
--enable-ipv6 \ --enable-ipv6 \
%if %mdkversion > 200800
--enable-compface \ --enable-compface \
%endif
--enable-gnutls \ --enable-gnutls \
--disable-networkmanager-support \ --enable-networkmanager-support \
--disable-rpath \ --disable-rpath \
--disable-static --disable-static
%make %make LIBTOOL=%{_bindir}/libtool
%check %check
make check make check
%install %install
rm -rf %{buildroot}
%makeinstall_std %makeinstall_std
# multiarch # multiarch
@ -276,8 +247,6 @@ rm -rf %{buildroot}
##remove duplicate man# ##remove duplicate man#
rm -rf %{buildroot}%{_mandir} rm -rf %{buildroot}%{_mandir}
## remove unneeded file
#rm -rf tools/Makefile*
## remove unneeded devel files ## remove unneeded devel files
rm -f %{buildroot}%{_libdir}/%{name}/plugins/*.*a rm -f %{buildroot}%{_libdir}/%{name}/plugins/*.*a
@ -296,23 +265,7 @@ rm -f %{buildroot}%{_docdir}/claws-mail/tools/Makefile*
%find_lang %{name} %find_lang %{name}
%if %mdkversion < 200900
%post
%{update_menus}
%update_icon_cache hicolor
%endif
%if %mdkversion < 200900
%postun
%{clean_menus}
%clean_icon_cache hicolor
%endif
%clean
rm -rf %{buildroot}
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/%{name} %{_bindir}/%{name}
%{_bindir}/sylpheed-claws %{_bindir}/sylpheed-claws
%{_datadir}/applications/claws-mail.desktop %{_datadir}/applications/claws-mail.desktop
@ -322,52 +275,84 @@ rm -rf %{buildroot}
%{_docdir}/claws-mail %{_docdir}/claws-mail
%files devel %files devel
%defattr(-,root,root)
%{_includedir}/%{name} %{_includedir}/%{name}
%{_libdir}/pkgconfig/claws-mail.pc %{_libdir}/pkgconfig/claws-mail.pc
%{multiarch_includedir}/%{name}/config.h %{multiarch_includedir}/%{name}/config.h
%files bogofilter-plugin %files bogofilter-plugin
%defattr(-,root,root)
%{_libdir}/%{name}/plugins/bogofilter.so %{_libdir}/%{name}/plugins/bogofilter.so
%files smime-plugin %files smime-plugin
%defattr(-,root,root)
%{_libdir}/%{name}/plugins/smime.so %{_libdir}/%{name}/plugins/smime.so
%{_libdir}/%{name}/plugins/smime.deps %{_libdir}/%{name}/plugins/smime.deps
%files dillo_viewer-plugin %files dillo_viewer-plugin
%defattr(-,root,root)
%doc src/plugins/dillo_viewer/README %doc src/plugins/dillo_viewer/README
%{_libdir}/%{name}/plugins/dillo*.so %{_libdir}/%{name}/plugins/dillo*.so
%files pgpcore-plugin %files pgpcore-plugin
%defattr(-,root,root)
%{_libdir}/%{name}/plugins/pgpcore.so %{_libdir}/%{name}/plugins/pgpcore.so
%files pgpinline-plugin %files pgpinline-plugin
%defattr(-,root,root)
%{_libdir}/%{name}/plugins/pgpinline.so %{_libdir}/%{name}/plugins/pgpinline.so
%{_libdir}/%{name}/plugins/pgpinline.deps %{_libdir}/%{name}/plugins/pgpinline.deps
%files pgpmime-plugin %files pgpmime-plugin
%defattr(-,root,root)
%{_libdir}/%{name}/plugins/pgpmime.so %{_libdir}/%{name}/plugins/pgpmime.so
%{_libdir}/%{name}/plugins/pgpmime.deps %{_libdir}/%{name}/plugins/pgpmime.deps
%files spamassassin-plugin %files spamassassin-plugin
%defattr(-,root,root)
%doc src/plugins/spamassassin/README %doc src/plugins/spamassassin/README
%{_libdir}/%{name}/plugins/spamassassin*.so %{_libdir}/%{name}/plugins/spamassassin*.so
%files trayicon-plugin %files trayicon-plugin
%defattr(-,root,root)
%doc src/plugins/trayicon/README %doc src/plugins/trayicon/README
%{_libdir}/%{name}/plugins/trayicon.so %{_libdir}/%{name}/plugins/trayicon.so
%changelog %changelog
* Mon May 23 2011 Funda Wang <fwang@mandriva.org> 1:3.7.9-2mdv2011.0 * Thu Jul 19 2012 Andrey Bondrov <abondrov@mandriva.org> 1:3.8.1-3
+ Revision: 810153
- Forgot to increase release
- Add patch from upstream to fix segfault, add patch from Debian to mark trashed mail as read, re-format descriptions
* Wed Jul 18 2012 Andrey Bondrov <abondrov@mandriva.org> 1:3.8.1-2
+ Revision: 810130
- Add requires exceptions and fix unversioned obsoletes issue
* Wed Jul 11 2012 Tomasz Pawel Gajc <tpg@mandriva.org> 1:3.8.1-1
+ Revision: 808936
- convert buildrequires to pkg-config style
- drop old stuff like from 2008
- enable networkmanager support
- update to new version 3.8.1
- spec file clean
* Sun Dec 18 2011 Andrey Bondrov <abondrov@mandriva.org> 1:3.8.0-1
+ Revision: 743401
- New version 3.8.0, minor spec cleanups
* Tue Nov 08 2011 Andrey Bondrov <abondrov@mandriva.org> 1:3.7.10-3
+ Revision: 729070
- Add patch0 to fix new glib issues
* Fri Sep 23 2011 Tomasz Pawel Gajc <tpg@mandriva.org> 1:3.7.10-2
+ Revision: 701085
- export libtool binary so it finally compiles
- drop unrecognized configure options
- add buildrequires on libtool and glib2-devel
- spec file clean
- add versioned obsoletes
- update to new version 3.7.10
- drop patch 0, not needed anymore
+ Matthew Dawkins <mattydaw@mandriva.org>
- oops
- cleaned up spec
rebuild for libetpan
removed devel reqs for devel pkg, not needed
* Mon May 23 2011 Funda Wang <fwang@mandriva.org> 1:3.7.9-2
+ Revision: 677607 + Revision: 677607
- update multiarch usage - update multiarch usage
- add upstream patch to fix bug#2414 - add upstream patch to fix bug#2414
@ -522,7 +507,7 @@ rm -rf %{buildroot}
+ Revision: 164141 + Revision: 164141
- Upgrade to 3.3.0 - Upgrade to 3.3.0
+ Olivier Blin <oblin@mandriva.com> + Olivier Blin <blino@mandriva.org>
- restore BuildRoot - restore BuildRoot
* Sun Dec 30 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1:3.2.0-2mdv2008.1 * Sun Dec 30 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1:3.2.0-2mdv2008.1