]> git.pld-linux.org Git - packages/claws-mail.git/blobdiff - claws-mail.spec
- updated to 3.2.0
[packages/claws-mail.git] / claws-mail.spec
index 21843cab16d034a6d4824de536221e890bf3a796..dbdee3eede98d96e696466daa216d0f59632e50f 100644 (file)
@@ -1,50 +1,53 @@
 #
 # Conditional build:
-# _without_jconv        - without jconv support
-# _without_gpg          - without gpg support
-# _without_ssl          - without ssl support
-# _without_ipv6         - without ipv6 support
-# _without_ldap         - without ldap support
-# _without_faces        - without compfaces support
-# _without_dillo       - without dillo plugin (html browser)
-# _without_clamav      - without clamav plugin
-# _with_mathml         - with mathml plugin
-# _without_trayicon    - without trayicon plugin
-# _without_spamassassin - without spamassassin plugin
+%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
 #
-
-%define                _sname  sylpheed
-%define                _iconver        20030712
-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:          %{_sname}-claws
-Version:       0.9.6
+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:       3.2.0
 Release:       1
-License:       GPL
+License:       GPL v3
 Group:         X11/Applications/Networking
-Source0:       http://dl.sourceforge.net/%{name}/%{_sname}-%{version}claws.tar.bz2
-# Source0-md5: a4a7e7c9a6c1b17f688a782e8c06ae4b
+Source0:       http://dl.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2
+# Source0-md5: acbfd919f7b633d51e96a0419ac07802
 Source1:       %{name}.desktop
-Source2:       http://dl.sourceforge.net/%{name}/%{_sname}-iconset-%{_iconver}.tar.gz
-# Source2-md5: 7da918c0ebe89cd6c9f8b65bc3e18377
-URL:           http://sylpheed-claws.sourceforge.net/
-BuildRequires: autoconf
+URL:           http://www.claws-mail.net/
+BuildRequires: aspell >= 2:0.50
+BuildRequires: aspell-devel >= 2:0.50
+BuildRequires: autoconf >= 2.60
 BuildRequires: automake
-%{!?_without_clamav:BuildRequires:     clamav-devel}
-%{!?_without_faces:BuildRequires:      faces-devel}
-BuildRequires: gdk-pixbuf-devel >= 0.8
+BuildRequires: bzip2-devel
+%{?with_clamav:BuildRequires:  clamav-devel}
+%{?with_compface:BuildRequires:        compface-devel}
 BuildRequires: gettext-devel
-%{!?_without_gpg:BuildRequires:        gpgme-devel < 0.4}
-BuildRequires: gtk+-devel >= 1.2.6
-BuildRequires: imlib-devel
+BuildRequires: gmp-devel
+%{?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: libltdl-devel
 BuildRequires: libtool
-%{!?_without_ldap:BuildRequires:       openldap-devel}
-%{!?_without_ssl:BuildRequires:        openssl-devel >= 0.9.7c}
-BuildRequires: aspell-devel >= 0.50
-%{!?_without_jconv:BuildRequires:      libjconv-devel}
-%{!?_without_faces:Requires:   faces}
-Obsoletes:     sylpheed
+%{?with_ldap:BuildRequires:    openldap-devel >= 2.4.6}
+%{?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): hicolor-icon-theme
+Provides:      sylpheed-claws
+Obsoletes:     claws-mail-plugin-etpan-privacy
+Obsoletes:     claws-mail-plugin-maildir
+Obsoletes:     sylpheed-claws
+Obsoletes:     sylpheed-gtk2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -52,132 +55,324 @@ This program is an X based fast e-mail client which has features same
 as orginal Sylpheed but with new/improved features. Some of new stuff
 is really cool and useable.
 
-%description -l pl
-Szybki klient poczty o mo¿liwo¶ciach takich jak oryginalny Sylpheed
-ale z nowymi/poprawionymi funkcjami. Niektóre dodatki s± naprawdê
-¶wietne i u¿yteczne.
+%description -l pl.UTF-8
+Szybki klient poczty o możliwościach takich jak oryginalny Sylpheed
+ale z nowymi/poprawionymi funkcjami. Niektóre dodatki są naprawdę
+świetne i użyteczne.
+
+%package devel
+Summary:       Headers from Claws-Mail
+Summary(pl.UTF-8):     Pliki nagłówkowe programu Claws-Mail
+Group:         X11/Applications/Networking
+Requires:      %{name} = %{version}-%{release}
+Requires:      gpgme-devel >= 1:0.4.5
+Requires:      libetpan-devel >= 0.49
+Requires:      openssl-devel >= 0.9.7d
+Provides:      sylpheed-claws-devel
+Obsoletes:     sylpheed-claws-devel
+
+%description devel
+Claws-Mail development package.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe programu Claws-Mail.
 
 %package plugins
-Summary:       Special plugins for Sylpheed-Claws
-Summary(pl):   Dodatkowe pluginy dla Sylpheed-Claws
+Summary:       Special plugins for Claws-Mail (metapackage)
+Summary(pl.UTF-8):     Dodatkowe wtyczki dla Claws-Mail (metapakiet)
 Group:         X11/Applications/Networking
-Requires:      %{name} = %{version}
-%{!?_without_dillo:Requires:   dillo}
+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-spamassassin = %{version}-%{release}
+Requires:      %{name}-plugin-trayicon = %{version}-%{release}
+Provides:      sylpheed-claws-plugins = %{version}
+Obsoletes:     sylpheed-claws-plugins
 
 %description plugins
-This is collection of some usefull plugins for Sylpheed-claws.
+This is collection of some usefull plugins for Claws-Mail
+(metapackage).
 
-%description plugins -l pl
-Jest to zbiór kilku dodatkowych pluginów powiêkszaj±cych mo¿liwo¶ci Sylpheeda.
+%description plugins -l pl.UTF-8
+Jest to zbiór kilku dodatkowych wtyczek powiększających możliwości
+Claws-Mail (metapakiet).
 
-%package devel
-Summary:       Headers from Sylpheed-Claws
-Summary(pl):   Pliki nag³ówkowe programu Sylpheed-Claws
+%package plugin-bogofilter
+Summary:       Bogofilter plugin for Claws-Mail
+Summary(pl.UTF-8):     Wtyczka bogofilter dla Claws-Mail
 Group:         X11/Applications/Networking
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
+Requires:      bogofilter
+Provides:      sylpheed-claws-plugin-bogofilter
+Obsoletes:     sylpheed-claws-plugin-bogofilter
 
-%description devel
-Sylpheed-Claws development package.
+%description plugin-bogofilter
+This plugin enables the scanning of incoming mail received from a POP,
+IMAP or LOCAL account using Bogofilter. It can optionally delete mail
+identified as spam or save it to a designated folder.
+
+%description plugin-bogofilter -l pl.UTF-8
+Wtyczka pozwalająca na skanowanie bogofilterem poczty przychodzącej
+jak i już znajdującej się w lokalnych skrzynkach. Opcjonalnie może
+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
+Requires:      %{name} = %{version}-%{release}
+Requires:      dillo
+Provides:      sylpheed-claws-plugin-dillo
+Obsoletes:     sylpheed-claws-plugin-dillo
+Conflicts:     sylpheed-claws-plugins <= 2.3.0-1
+
+%description plugin-dillo
+This plugin enables the viewing of html messages using the Dillo web
+browser.
+
+%description plugin-dillo -l pl.UTF-8
+Wtyczka pozwalająca na przeglądanie listów pisanych w HTML przy pomocy
+przeglądarki 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
+Requires:      %{name} = %{version}-%{release}
+Provides:      sylpheed-claws-plugin-pgpcore
+Obsoletes:     sylpheed-claws-plugin-pgpcore
+Conflicts:     sylpheed-claws-plugins <= 2.3.0-1
+
+%description plugin-pgpcore
+This plugin handles core PGP functions.
+
+%description plugin-pgpcore -l pl.UTF-8
+Wtyczka obsługująca podstawowe funkcje PGP.
+
+%package plugin-pgpinline
+Summary:       PGP/Inline plugin for Claws-Mail
+Summary(pl.UTF-8):     Wtyczka PGP/Inline dla Claws-Mail
+Group:         X11/Applications/Networking
+Requires:      %{name}-plugin-pgpcore = %{version}-%{release}
+Provides:      sylpheed-claws-plugin-pgpinline
+Obsoletes:     sylpheed-claws-plugin-pgpinline
+Conflicts:     sylpheed-claws-plugins <= 2.3.0-1
+
+%description plugin-pgpinline
+This plugin handles PGP/Inline signed and/or encrypted mails. It can
+decrypt mails, verify signatures or sign and encrypt your own mails.
+
+%description plugin-pgpinline -l pl.UTF-8
+Wtyczka obsługująca listy podpisane lub szyfrowane PGP/Inline. Potrafi
+rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać
+własne listy.
+
+%package plugin-pgpmime
+Summary:       PGP/MIME plugin for Claws-Mail
+Summary(pl.UTF-8):     Wtyczka PGP/MIME dla Claws-Mail
+Group:         X11/Applications/Networking
+Requires:      %{name}-plugin-pgpcore = %{version}-%{release}
+Provides:      sylpheed-claws-plugin-pgpmime
+Obsoletes:     sylpheed-claws-plugin-pgpmime
+Conflicts:     sylpheed-claws-plugins <= 2.3.0-1
+
+%description plugin-pgpmime
+This plugin handles PGP/MIME signed and/or encrypted mails. It can
+decrypt mails, verify signatures or sign and encrypt your own mails.
 
-%description devel -l pl
-Pliki nag³ówkowe programu Sylpheed-Claws.
+%description plugin-pgpmime -l pl.UTF-8
+Wtyczka obsługująca listy podpisane lub szyfrowane PGP/MIME. Potrafi
+rozszyfrowywać, sprawdzać podpisy a także szyfrować i podpisywać
+własne listy.
 
-%package themes
-Summary:       Themes for Sylpheed-Claws
-Summary(pl):   Motywy dla programu Sylpheed-Claws
+%package plugin-spamassassin
+Summary:       spamassassin plugin for Claws-Mail
+Summary(pl.UTF-8):     Wtyczka spamassassin dla Claws-Mail
 Group:         X11/Applications/Networking
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
+Provides:      sylpheed-claws-plugin-spamassassin
+Obsoletes:     sylpheed-claws-plugin-spamassassin
+Conflicts:     sylpheed-claws-plugins <= 2.3.0-1
 
-%description themes
-Sylpheed-Claws themes package.
+%description plugin-spamassassin
+This plugin enables the scanning of incoming mail received from a POP,
+IMAP, or LOCAL account using SpamAssassin. It can optionally delete
+mail identified as spam or save it to a designated folder, and also
+can be used to train a local Spamassassin or a remote one.
 
-%description themes -l pl
-Motywy dla programu Sylpheed-Claws.
+%description plugin-spamassassin -l pl.UTF-8
+Wtyczka pozwalająca na skanowanie SpamAssassinem poczty przychodzącej
+jak i już znajdującej się w lokalnych skrzynkach. Opcjonalnie może
+usuwać listy oznaczone jako spam lub zapisywać je w dedykowanym
+folderze. Może też byż używana do "uczenia" lokalnego lub zdalnego
+demona SpamAssassin.
+
+%package plugin-trayicon
+Summary:       trayicon plugin for Claws-Mail
+Summary(pl.UTF-8):     Wtyczka trayicon dla Claws-Mail
+Group:         X11/Applications/Networking
+Requires:      %{name} = %{version}-%{release}
+Provides:      sylpheed-claws-plugin-trayicon
+Obsoletes:     sylpheed-claws-plugin-trayicon
+Conflicts:     sylpheed-claws-plugins <= 2.3.0-1
+
+%description plugin-trayicon
+This plugin places an icon in the system tray that indicates whether
+you have any new mail. A tooltip also shows the current new, unread
+and total number of messages, and a contextual menu allows the most
+common operations.
+
+%description plugin-trayicon -l pl.UTF-8
+Wtyczka umieszczająca w tacce systemowej ikonę informującą o nadejściu
+nowej poczty. Ikona wyświetla dane na temat wiadomości (ilość nowych,
+nieprzeczytanych i wszystkich) a jej menu pozwala wykonywać
+najpopularniejsze operacje.
 
 %prep
-%setup -q -n %{_sname}-%{version}claws -a1 -a2
-mv %{_sname}-iconset-* themes
-mv -f themes/README README.themes
+%setup -q
+
+rm -f po/stamp-po
 
 %build
-rm -f missing
 %{__libtoolize}
 %{__gettextize}
-%{__aclocal} -I ac
+%{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
-       %{!?_without_jconv:--enable-jconv} %{?_without_jconv:--disable-jconv} \
-       %{!?_without_gpg:--enable-gpgme} %{?_without_gpg:--disable-gpgme} \
-       %{!?_without_ldap:--enable-ldap} \
-       %{!?_without_ssl:--enable-openssl} \
-       %{!?_without_ipv6:--enable-ipv6 } \
-       %{?_without_faces:--disable-compfaces } \
-       %{!?_without_dillo:--enable-dillo-viewer-plugin } \
-       %{?_without_dillo:--disable-dillo-viewer-plugin } \
-       %{!?_without_clamav:--enable-clamav-plugin } \
-       %{?_without_clamav:--disable-clamav-plugin } \
-       %{?_with_mathml:--enable-mathml-viewer-plugin } \
-       %{!?_with_mathml:--disable-mathml-viewer-plugin } \
-       %{!?_without_trayicon:--enable-trayicon-plugin } \
-       %{?_without_trayicon:--disable-trayicon-plugin } \
-       %{!?_without_spamassassin:--enable-spamassassin-plugin } \
+       --%{?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 \
+       --enable-dillo-viewer-plugin \
        --enable-gdk-pixbuf \
-       --enable-threads
+       --enable-libetpan \
+       --enable-pthread \
+       --enable-spamassassin-plugin \
+       --enable-trayicon-plugin \
+       --disable-static
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_applnkdir}/Network/Mail,%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT{%{_datadir}/%{name}/themes,%{_desktopdir},%{_pixmapsdir}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Network/Mail
-cp -a themes $RPM_BUILD_ROOT%{_datadir}/%{_sname}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
 
-install %{_sname}.png $RPM_BUILD_ROOT%{_pixmapsdir}
+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}
 
-%find_lang %{_sname}
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files -f %{_sname}.lang
+%post
+%update_icon_cache hicolor
+
+%postun
+%update_icon_cache hicolor
+
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README* TODO
-%{_mandir}/man1/%{_sname}.1*
+%doc AUTHORS ChangeLog NEWS README* RELEASE_NOTES TODO
+%{_mandir}/man1/%{name}.1*
 %attr(755,root,root) %{_bindir}/*
-%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
-%{_applnkdir}/Network/Mail/%{name}.desktop
-%{_pixmapsdir}/%{_sname}.png
+%dir %{_datadir}/%{name}
+%dir %{_docdir}/%{name}
+%dir %{_docdir}/%{name}/manual
+%dir %{_datadir}/%{name}/themes
+%dir %{_libdir}/%{name}
+%dir %{_libdir}/%{name}/plugins
+%{_docdir}/%{name}/manual/en
+%lang(es) %{_docdir}/%{name}/manual/es
+%lang(fr) %{_docdir}/%{name}/manual/fr
+%lang(pl) %{_docdir}/%{name}/manual/pl
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.png
+%{_iconsdir}/hicolor/48x48/apps/%{name}.png
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/%{name}
+%{_pkgconfigdir}/*.pc
 
 %files plugins
 %defattr(644,root,root,755)
-%dir %{_libdir}/%{_sname}
-%dir %{_libdir}/%{_sname}/plugins
-%attr(755,root,root) %{_libdir}/%{_sname}/plugins/*so
 
-%files devel
+%files plugin-bogofilter
 %defattr(644,root,root,755)
-%{_includedir}/%{_sname}
-%{_pkgconfigdir}/*.pc
+%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
+
+%if %{with gpg}
+%files plugin-pgpcore
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/plugins/pgpcore.so
+
+%files plugin-pgpinline
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/plugins/pgpinline.so
+
+%files plugin-pgpmime
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/plugins/pgpmime.so
+%endif
+
+%files plugin-spamassassin
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/plugins/spamassassin.so
 
-%files themes
+%files plugin-trayicon
 %defattr(644,root,root,755)
-%{_datadir}/%{_sname}/themes
+%attr(755,root,root) %{_libdir}/%{name}/plugins/trayicon.so
This page took 0.070956 seconds and 4 git commands to generate.