#
# Conditional build:
-%bcond_without clamav # build without clamav plugin
%bcond_without compface # build without compface support
-%bcond_without gnomeprint # build without gnomeprint support
%bcond_without gpg # build without GPG support
%bcond_without ipv6 # build without IPv6 support
%bcond_without jpilot # build without JPilot support
%bcond_without ldap # build without LDAP support
-%bcond_without ssl # build without SSL support
+%bcond_without tls # build without gnuTLS support
#
Summary: A bleeding edge branch of Sylpheed, a GTK2 based, lightweight, and fast e-mail client
Summary(pl.UTF-8): Rozwojowa wersja Sylpheed z dużą ilością zmian oraz ulepszeń
Name: claws-mail
-Version: 2.10.0
+Version: 3.7.9
Release: 1
-License: GPL v2
-Group: X11/Applications/Networking
-Source0: http://dl.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2
-# Source0-md5: ed409002b5e6b60b682ae3ee7f87a86d
+License: GPL v3
+Group: X11/Applications/Mail
+Source0: http://downloads.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2
+# Source0-md5: 2f9d2dcabf84e312cfeb56efa799b5b3
Source1: %{name}.desktop
-Patch0: %{name}-pc_cflags_sequence.patch
-URL: http://www.claws-mail.net/
-BuildRequires: aspell >= 2:0.50
-BuildRequires: aspell-devel >= 2:0.50
+URL: http://www.claws-mail.org/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: bzip2-devel
-%{?with_clamav:BuildRequires: clamav-devel}
%{?with_compface:BuildRequires: compface-devel}
BuildRequires: gettext-devel
BuildRequires: gmp-devel
+%{?with_tls:BuildRequires: gnutls-devel >= 2.6.0}
%{?with_gpg:BuildRequires: gpgme-devel >= 1:0.4.5}
-BuildRequires: gtk+2-devel >= 2:2.6.0
-BuildRequires: libetpan-devel >= 0.49
-%{?with_gnomeprint:BuildRequires: libgnomeprintui-devel}
+BuildRequires: gtk+2-devel >= 2:2.12.8
+BuildRequires: libetpan-devel >= 0.57
+BuildRequires: liblockfile-devel
BuildRequires: libltdl-devel
BuildRequires: libtool
%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
-%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
%{?with_jpilot:BuildRequires: pilot-link-devel}
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.311
BuildRequires: startup-notification-devel >= 0.5
-Requires(post,postun): gtk+2
+Requires(post,postun): gtk-update-icon-cache
Requires(post,postun): hicolor-icon-theme
+Requires: gtk+2 >= 2:2.12.8
Provides: sylpheed-claws
+Obsoletes: claws-mail-plugin-clamav
Obsoletes: claws-mail-plugin-etpan-privacy
Obsoletes: claws-mail-plugin-maildir
+Obsoletes: claws-mail-plugin-pdf_viewer
Obsoletes: sylpheed-claws
+Obsoletes: sylpheed-claws-plugin-clamav
Obsoletes: sylpheed-gtk2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%package devel
Summary: Headers from Claws-Mail
Summary(pl.UTF-8): Pliki nagłówkowe programu Claws-Mail
-Group: X11/Applications/Networking
+Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: gnutls-devel >= 2.6.0
Requires: gpgme-devel >= 1:0.4.5
-Requires: libetpan-devel >= 0.49
-Requires: openssl-devel >= 0.9.7d
+Requires: libetpan-devel >= 0.54
Provides: sylpheed-claws-devel
Obsoletes: sylpheed-claws-devel
%package plugins
Summary: Special plugins for Claws-Mail (metapackage)
Summary(pl.UTF-8): Dodatkowe wtyczki dla Claws-Mail (metapakiet)
-Group: X11/Applications/Networking
+Group: X11/Applications/Mail
Requires: %{name} = %{version}-%{release}
Requires: %{name}-plugin-bogofilter = %{version}-%{release}
-%{?with_clamav:Requires: %{name}-plugin-clamav = %{version}-%{release}}
Requires: %{name}-plugin-dillo = %{version}-%{release}
%if %{with gpg}
Requires: %{name}-plugin-pgpinline = %{version}-%{release}
Requires: %{name}-plugin-pgpmime = %{version}-%{release}
%endif
+Requires: %{name}-plugin-smime = %{version}-%{release}
Requires: %{name}-plugin-spamassassin = %{version}-%{release}
Requires: %{name}-plugin-trayicon = %{version}-%{release}
Provides: sylpheed-claws-plugins = %{version}
%package plugin-bogofilter
Summary: Bogofilter plugin for Claws-Mail
Summary(pl.UTF-8): Wtyczka bogofilter dla Claws-Mail
-Group: X11/Applications/Networking
+Group: X11/Applications/Mail
Requires: %{name} = %{version}-%{release}
Requires: bogofilter
Provides: sylpheed-claws-plugin-bogofilter
usuwać listy oznaczone jako spam lub zapisywać je w dedykowanym
folderze.
-%package plugin-clamav
-Summary: clamav plugin for Claws-Mail
-Summary(pl.UTF-8): Wtyczka clamav dla Claws-Mail
-Group: X11/Applications/Networking
-Requires: %{name} = %{version}-%{release}
-Provides: sylpheed-claws-plugin-clamav
-Obsoletes: sylpheed-claws-plugin-clamav
-Conflicts: sylpheed-claws-plugins <= 2.3.0-1
-
-%description plugin-clamav
-This plugin enables the scanning of message attachments in mail
-received from a POP, IMAP, or LOCAL account using Clam AntiVirus. It
-can optionally delete the mail or save it to a designated folder.
-
-%description plugin-clamav -l pl.UTF-8
-Ta wtyczka pozwala na lokalne skanowanie załączników z poczty
-otrzymanej przez POP, IMAP lub znajdującej się w lokalnych skrzynkach.
-Opcjonalnie może usuwać lub zapisywać zainfekowane listy w
-przeznaczonym do tego folderze.
-
%package plugin-dillo
Summary: dillo plugin for Claws-Mail
Summary(pl.UTF-8): Wtyczka dillo dla Claws-Mail
-Group: X11/Applications/Networking
+Group: X11/Applications/Mail
Requires: %{name} = %{version}-%{release}
Requires: dillo
Provides: sylpheed-claws-plugin-dillo
%package plugin-pgpcore
Summary: PGP/Core plugin for Claws-Mail
Summary(pl.UTF-8): Wtyczka PGP/Core dla Claws-Mail
-Group: X11/Applications/Networking
+Group: X11/Applications/Mail
Requires: %{name} = %{version}-%{release}
Provides: sylpheed-claws-plugin-pgpcore
Obsoletes: sylpheed-claws-plugin-pgpcore
%package plugin-pgpinline
Summary: PGP/Inline plugin for Claws-Mail
Summary(pl.UTF-8): Wtyczka PGP/Inline dla Claws-Mail
-Group: X11/Applications/Networking
+Group: X11/Applications/Mail
Requires: %{name}-plugin-pgpcore = %{version}-%{release}
Provides: sylpheed-claws-plugin-pgpinline
Obsoletes: sylpheed-claws-plugin-pgpinline
%package plugin-pgpmime
Summary: PGP/MIME plugin for Claws-Mail
Summary(pl.UTF-8): Wtyczka PGP/MIME dla Claws-Mail
-Group: X11/Applications/Networking
+Group: X11/Applications/Mail
Requires: %{name}-plugin-pgpcore = %{version}-%{release}
Provides: sylpheed-claws-plugin-pgpmime
Obsoletes: sylpheed-claws-plugin-pgpmime
rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać
własne listy.
+%package plugin-smime
+Summary: S/MIME plugin for Claws-Mail
+Summary(pl.UTF-8): Wtyczka S/MIME dla Claws-Mail
+Group: X11/Applications/Mail
+Requires: %{name} = %{version}-%{release}
+Requires: %{name}-plugin-pgpcore = %{version}-%{release}
+Provides: sylpheed-claws-plugin-smime
+Obsoletes: sylpheed-claws-plugin-smime
+
+%description plugin-smime
+This plugin handles S/MIME signed and/or encrypted mails. You can
+decrypt mails, verify signatures or sign and encrypt your own mails.
+
+%description plugin-smime -l pl.UTF-8
+Wtyczka obsługująca listy podpisane lub szyfrowane S/MIME. Potrafi
+rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać
+własne listy.
+
%package plugin-spamassassin
Summary: spamassassin plugin for Claws-Mail
Summary(pl.UTF-8): Wtyczka spamassassin dla Claws-Mail
-Group: X11/Applications/Networking
+Group: X11/Applications/Mail
Requires: %{name} = %{version}-%{release}
Provides: sylpheed-claws-plugin-spamassassin
Obsoletes: sylpheed-claws-plugin-spamassassin
%package plugin-trayicon
Summary: trayicon plugin for Claws-Mail
Summary(pl.UTF-8): Wtyczka trayicon dla Claws-Mail
-Group: X11/Applications/Networking
+Group: X11/Applications/Mail
Requires: %{name} = %{version}-%{release}
Provides: sylpheed-claws-plugin-trayicon
Obsoletes: sylpheed-claws-plugin-trayicon
%prep
%setup -q
-%patch0 -p1
rm -f po/stamp-po
+# pt_PT -> pt hack
+mv -f po/{pt_PT,pt}.po
+%{__sed} -i -e 's,pt_PT,pt,g' src/codeconv.c
+%{__sed} -i -e 's,pt_PT,pt,g' configure
+%{__sed} -i -e 's,pt_PT,pt,g' configure.ac
+
%build
%{__libtoolize}
%{__gettextize}
%{__autoheader}
%{__automake}
%configure \
- --%{?with_clamav:en}%{!?with_clamav:dis}able-clamav-plugin \
--%{?with_compface:en}%{!?with_compface:dis}able-compface \
- --%{?with_gnomeprint:en}%{!?with_gnomeprint:dis}able-gnomeprint \
--%{?with_gpg:en}%{!?with_gpg:dis}able-pgpcore-plugin \
--%{?with_gpg:en}%{!?with_gpg:dis}able-pgpmime-plugin \
--%{?with_gpg:en}%{!?with_gpg:dis}able-pgpinline-plugin \
--%{?with_ipv6:en}%{!?with_ipv6:dis}able-ipv6 \
--%{?with_jpilot:en}%{!?with_jpilot:dis}able-jpilot \
--%{?with_ldap:en}%{!?with_ldap:dis}able-ldap \
- --%{?with_ssl:en}%{!?with_ssl:dis}able-openssl \
- --enable-aspell \
- --enable-bogofilter \
+ --%{?with_tls:en}%{!?with_tls:dis}able-gnutls \
+ --enable-bogofilter-plugin \
--enable-dillo-viewer-plugin \
- --enable-gdk-pixbuf \
--enable-libetpan \
--enable-pthread \
--enable-spamassassin-plugin \
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.{deps,la}
rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/RELEASE_NOTES
-rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/manual/{en,es,fr,pl}/*.{pdf,ps,html}
+rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/manual/{de,en,es,fr,pl}/*.{pdf,ps,html,txt}
%find_lang %{name}
%{_desktopdir}/%{name}.desktop
%{_pixmapsdir}/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
+%{_iconsdir}/hicolor/64x64/apps/%{name}.png
+%{_iconsdir}/hicolor/128x128/apps/%{name}.png
%files devel
%defattr(644,root,root,755)
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/plugins/bogofilter.so
-%if %{with clamav}
-%files plugin-clamav
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/%{name}/plugins/clamav_plugin.so
-%endif
-
%files plugin-dillo
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/plugins/dillo_viewer.so
%attr(755,root,root) %{_libdir}/%{name}/plugins/pgpmime.so
%endif
+%files plugin-smime
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/plugins/smime.so
+
%files plugin-spamassassin
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/plugins/spamassassin.so