%bcond_without tls # build without gnuTLS support
%bcond_with valgrind # Valgrind support for debugging
-Summary: A bleeding edge branch of Sylpheed, a GTK2 based, lightweight, and fast e-mail client
+Summary: A bleeding edge branch of Sylpheed, a GTK3 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: 3.17.8
+Version: 4.1.0
Release: 2
License: GPL v3+
Group: X11/Applications/Mail
#Source0Download: https://www.claws-mail.org/releases.php
Source0: https://www.claws-mail.org/releases/%{name}-%{version}.tar.xz
-# Source0-md5: 9a29794503e17921b14a5265425181db
+# Source0-md5: be5e391e1d3f7be6032d1e9d0dbf63e3
Source1: %{name}.desktop
Patch0: %{name}-link.patch
+Patch1: perl-5.36.patch
URL: https://www.claws-mail.org/
+BuildRequires: NetworkManager-devel
BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: bison
-BuildRequires: cairo-devel
+BuildRequires: cairo-devel >= 1.12.0
%{?with_compface:BuildRequires: compface-devel}
BuildRequires: curl-devel
BuildRequires: dbus-devel >= 0.60
BuildRequires: docbook-utils
# or enchant2-devel >= 2.0.0, but currently 1.4 is preferred
BuildRequires: enchant-devel >= 1.4.0
-BuildRequires: expat-devel
+BuildRequires: expat-devel >= 1.95
BuildRequires: flex
BuildRequires: fontconfig-devel
BuildRequires: gdk-pixbuf2-devel >= 2.26
BuildRequires: glib2-devel >= 1:2.36
%{?with_tls:BuildRequires: gnutls-devel >= 3.0}
%{?with_gpg:BuildRequires: gpgme-devel >= 1:1.1.1}
-BuildRequires: gtk+2-devel >= 2:2.24.0
-BuildRequires: gtk-webkit-devel >= 1.10.0
+BuildRequires: gtk+3-devel >= 3.20
+BuildRequires: gtk-webkit4-devel >= 2.18.0
BuildRequires: gumbo-parser-devel >= 0.10
BuildRequires: libarchive-devel
-BuildRequires: libcanberra-gtk-devel >= 0.6
+BuildRequires: libcanberra-gtk3-devel >= 0.6
BuildRequires: libetpan-devel >= 1.9.4
BuildRequires: libgdata-devel >= 0.17.2
BuildRequires: libical-devel >= 2.0.0
BuildRequires: libstdc++-devel
BuildRequires: libtool >= 2:2
#TODO: libunity-devel
-BuildRequires: NetworkManager-devel
BuildRequires: libytnef-devel
BuildRequires: nettle-devel
%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
%{?with_jpilot:BuildRequires: pilot-link-devel}
BuildRequires: pkgconfig
BuildRequires: poppler-glib-devel >= 0.12.0
-BuildRequires: python-devel >= 1:2.5
-BuildRequires: python-pygtk-devel >= 2:2.10.3
+BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-pygobject3-devel >= 3.0
BuildRequires: rpmbuild(macros) >= 1.311
BuildRequires: sed >= 4.0
BuildRequires: startup-notification-devel >= 0.5
BuildRequires: zlib-devel
Requires(post,postun): gtk-update-icon-cache
Requires(post,postun): hicolor-icon-theme
+Requires: cairo >= 1.12.0
Requires: dbus-glib >= 0.60
Requires: enchant >= 1.4.0
Requires: gdk-pixbuf2 >= 2.26
Requires: glib2 >= 1:2.36
%{?with_tls:Requires: gnutls >= 3.0}
-Requires: gtk+2 >= 2:2.24.0
+Requires: gtk+3 >= 3.20
Requires: libetpan >= 1.9.4
Requires: librsvg >= 1:2.40.5
%{?with_ldap:Requires: openldap-libs >= 2.3.0}
Summary(pl.UTF-8): Wtyczka fancy dla Claws-Mail
Group: X11/Applications/Mail
Requires: %{name} = %{version}-%{release}
-Requires: gtk-webkit >= 1.10.0
+Requires: gtk-webkit4 >= 2.18.0
Requires: libsoup-gnome >= 2.26
%description plugin-fancy
Summary(pl.UTF-8): Wtyczka python dla Claws-Mail
Group: X11/Applications/Mail
Requires: %{name} = %{version}-%{release}
+Requires: python3-pygobject3 >= 3.0
%description plugin-python
This plugin provides Python integration features.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%{__rm} po/stamp-po
cp -p %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.{deps,la}
-%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/el_GR
%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/RELEASE_NOTES
%{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/manual/{en,es,fr}/*.{pdf,ps,html,txt}
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/{el_GR,el}
%{__mv} $RPM_BUILD_ROOT%{_localedir}/{id_ID,id}
-%{__mv} $RPM_BUILD_ROOT%{_localedir}/{pt_PT,pt}
%find_lang %{name}
%attr(755,root,root) %{_libdir}/%{name}/plugins/clamd.so
%attr(755,root,root) %{_libdir}/%{name}/plugins/dillo.so
%attr(755,root,root) %{_libdir}/%{name}/plugins/fetchinfo.so
+%attr(755,root,root) %{_libdir}/%{name}/plugins/keyword_warner.so
%attr(755,root,root) %{_libdir}/%{name}/plugins/mailmbox.so
%attr(755,root,root) %{_libdir}/%{name}/plugins/managesieve.so
%attr(755,root,root) %{_libdir}/%{name}/plugins/newmail.so
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/plugins/archive.so
-# R: curl gtk-webkit libsoup libsoup-gnome
+# R: curl gtk-webkit4 libsoup libsoup-gnome
%files plugin-fancy
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/plugins/fancy.so
%attr(755,root,root) %{_libdir}/%{name}/plugins/pgpmime.so
%endif
-# R: python-libs
+# R: python3-libs
%files plugin-python
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/plugins/python.so