#
# Conditional build:
-# _without_jconv - without jconv support
-# _without_gpg - without gpg support
+%bcond_without jconv # build without jconv support
+%bcond_without gpg # build without gpg support
+%bcond_without ssl # build without ssl support
+%bcond_without ipv6 # build without ipv6 support
+%bcond_without ldap # build without ldap support
+%bcond_without faces # build without compfaces support
+%bcond_without dillo # build without dillo plugin (html browser)
+%bcond_without clamav # build without clamav plugin
+%bcond_with mathml # build with mathml plugin
+%bcond_without trayicon # buildwithout trayicon plugin
+%bcond_without spamassassin # build without spamassassin plugin
#
+
+%define _sname sylpheed
+%define _iconver 20040206
Summary: A bleeding edge branch of Sylpheed, a GTK+ based, lightweight, and fast e-mail client
Summary(pl): Rozwojowa wersja Sylpheed z du¿± ilo¶ci± zmian oraz ulepszeñ
-Name: sylpheed-claws
-Version: 0.8.11
+Name: %{_sname}-claws
+Version: 0.9.9
Release: 1
-License: GPL
+License: GPL v2
Group: X11/Applications/Networking
-Source0: http://dl.sourceforge.net/sylpheed-claws/sylpheed-%{version}claws.tar.bz2
-Source1: http://dl.sourceforge.net/sylpheed-claws/sylpheed-0.8.7claws-iconset.tar.gz
-Source2: %{name}.desktop
-Patch0: %{name}-po.patch
+Source0: http://dl.sourceforge.net/%{name}/%{_sname}-%{version}claws.tar.bz2
+# Source0-md5: 9068192f009fb8240be6e9222ff27999
+Source1: %{name}.desktop
+Source2: http://dl.sourceforge.net/%{name}/%{_sname}-iconset-%{_iconver}.tar.gz
+# Source2-md5: 478128ccf00914990f73383692b5cd30
+URL: http://sylpheed-claws.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: faces-devel
+%{?with_clamav:BuildRequires: clamav-devel}
+%{?with_faces:BuildRequires: faces-devel}
BuildRequires: gdk-pixbuf-devel >= 0.8
BuildRequires: gettext-devel
-%{!?_without_gpg:uildRequires: gpgme-devel}
+BuildRequires: gmp-devel
+BuildRequires: bzip2-devel
+%{?with_gpg:BuildRequires: gpgme-devel < 0.4}
BuildRequires: gtk+-devel >= 1.2.6
BuildRequires: imlib-devel
BuildRequires: libltdl-devel
BuildRequires: libtool
-BuildRequires: openldap-devel
-BuildRequires: openssl-devel >= 0.9.7
+%{?with_ldap:BuildRequires: openldap-devel}
+%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7c}
BuildRequires: aspell-devel >= 0.50
-%{!?_without_jconv:BuildRequires: libjconv-devel}
-Requires: faces
+%{?with_jconv:BuildRequires: libjconv-devel}
+%{?with_faces:Requires: faces}
Obsoletes: sylpheed
-URL: http://sylpheed-claws.sourceforge.net/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
ale z nowymi/poprawionymi funkcjami. Niektóre dodatki s± naprawdê
¶wietne i u¿yteczne.
+%package plugins
+Summary: Special plugins for Sylpheed-Claws
+Summary(pl): Dodatkowe pluginy dla Sylpheed-Claws
+Group: X11/Applications/Networking
+Requires: %{name} = %{version}
+%{?with_dillo:Requires: dillo}
+
+%description plugins
+This is collection of some usefull plugins for Sylpheed-claws.
+
+%description plugins -l pl
+Jest to zbiór kilku dodatkowych pluginów powiêkszaj±cych mo¿liwo¶ci Sylpheeda.
+
+%package devel
+Summary: Headers from Sylpheed-Claws
+Summary(pl): Pliki nag³ówkowe programu Sylpheed-Claws
+Group: X11/Applications/Networking
+Requires: %{name} = %{version}
+
+%description devel
+Sylpheed-Claws development package.
+
+%description devel -l pl
+Pliki nag³ówkowe programu Sylpheed-Claws.
+
+%package themes
+Summary: Themes for Sylpheed-Claws
+Summary(pl): Motywy dla programu Sylpheed-Claws
+Group: X11/Applications/Networking
+Requires: %{name} = %{version}
+
+%description themes
+Sylpheed-Claws themes package.
+
+%description themes -l pl
+Motywy dla programu Sylpheed-Claws.
+
%prep
-%setup -q -n sylpheed-%{version}claws -a1
-#%patch0 -p1
-mv sylpheed*claws-iconset themes
+%setup -q -n %{_sname}-%{version}claws -a1 -a2
+mv %{_sname}-iconset-* themes
mv -f themes/README README.themes
%build
%{__autoheader}
%{__automake}
%configure \
- %{!?_without_jconv:--enable-jconv} \
- %{!?_without_gpg:--enable-gpgme} \
- --enable-ldap \
- --enable-openssl \
- --enable-ipv6 \
+ %{?with_jconv:--enable-jconv} %{?without_jconv:--disable-jconv} \
+ %{?with_gpg:--enable-gpgme} %{?without_gpg:--disable-gpgme} \
+ %{?with_ldap:--enable-ldap} \
+ %{?with_ssl:--enable-openssl} \
+ %{?with_ipv6:--enable-ipv6 } \
+ %{?without_faces:--disable-compfaces } \
+ %{?with_dillo:--enable-dillo-viewer-plugin } \
+ %{?without_dillo:--disable-dillo-viewer-plugin } \
+ %{?with_clamav:--enable-clamav-plugin } \
+ %{?without_clamav:--disable-clamav-plugin } \
+ %{?with_mathml:--enable-mathml-viewer-plugin } \
+ %{?without_mathml:--disable-mathml-viewer-plugin } \
+ %{?with_trayicon:--enable-trayicon-plugin } \
+ %{?without_trayicon:--disable-trayicon-plugin } \
+ %{?with_spamassassin:--enable-spamassassin-plugin } \
--enable-aspell \
--enable-gdk-pixbuf \
--enable-threads
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_applnkdir}/Network/Mail,%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Network/Mail
-cp -a themes $RPM_BUILD_ROOT%{_datadir}/sylpheed
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+cp -a themes $RPM_BUILD_ROOT%{_datadir}/%{_sname}
-install sylpheed.png $RPM_BUILD_ROOT%{_pixmapsdir}
+install %{_sname}.png $RPM_BUILD_ROOT%{_pixmapsdir}
-%find_lang sylpheed
+%find_lang %{_sname}
%clean
rm -rf $RPM_BUILD_ROOT
-%files -f sylpheed.lang
+%files -f %{_sname}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README* TODO
-%{_mandir}/man1/sylpheed.1*
+%{_mandir}/man1/%{_sname}.1*
%attr(755,root,root) %{_bindir}/*
-%dir %{_datadir}/sylpheed
-%dir %{_datadir}/sylpheed/manual
-%{_datadir}/sylpheed/manual/en
-%lang(de) %{_datadir}/sylpheed/manual/de
-%lang(es) %{_datadir}/sylpheed/manual/es
-%lang(fr) %{_datadir}/sylpheed/manual/fr
-%lang(ja) %{_datadir}/sylpheed/manual/ja
-%dir %{_datadir}/sylpheed/faq
-%{_datadir}/sylpheed/faq/en
-%lang(de) %{_datadir}/sylpheed/faq/de
-%lang(es) %{_datadir}/sylpheed/faq/es
-%lang(fr) %{_datadir}/sylpheed/faq/fr
-%lang(it) %{_datadir}/sylpheed/faq/it
-%{_datadir}/sylpheed/themes
-%{_applnkdir}/Network/Mail/%{name}.desktop
-%{_pixmapsdir}/sylpheed.png
+%dir %{_datadir}/%{_sname}
+%dir %{_datadir}/%{_sname}/manual
+%{_datadir}/%{_sname}/manual/en
+%lang(de) %{_datadir}/%{_sname}/manual/de
+%lang(es) %{_datadir}/%{_sname}/manual/es
+%lang(fr) %{_datadir}/%{_sname}/manual/fr
+%lang(ja) %{_datadir}/%{_sname}/manual/ja
+%dir %{_datadir}/%{_sname}/faq
+%{_datadir}/%{_sname}/faq/en
+%lang(de) %{_datadir}/%{_sname}/faq/de
+%lang(es) %{_datadir}/%{_sname}/faq/es
+%lang(fr) %{_datadir}/%{_sname}/faq/fr
+%lang(it) %{_datadir}/%{_sname}/faq/it
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{_sname}.png
+
+%files plugins
+%defattr(644,root,root,755)
+%dir %{_libdir}/%{_sname}
+%dir %{_libdir}/%{_sname}/plugins
+%attr(755,root,root) %{_libdir}/%{_sname}/plugins/*so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/%{_sname}
+%{_pkgconfigdir}/*.pc
+
+%files themes
+%defattr(644,root,root,755)
+%{_datadir}/%{_sname}/themes