X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=claws-mail.spec;h=77d4092ad3702cc1531e034ffa726203fc264e83;hb=4b18e98a223e5389a75588ecd4c27e93e6ad6863;hp=2d3b10af416f4c96e83fb02b468c4c03eec40747;hpb=5dc0058283300af9bdc78d64fd867db07e3ee00b;p=packages%2Fclaws-mail.git diff --git a/claws-mail.spec b/claws-mail.spec index 2d3b10a..77d4092 100644 --- a/claws-mail.spec +++ b/claws-mail.spec @@ -1,46 +1,54 @@ # # 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 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_without spamassassin # build without spamassassin plugin +%bcond_without trayicon # build without trayicon plugin +%bcond_with mathml # build with mathml plugin # -Summary: A bleeding edge branch of Sylpheed, a GTK+ based, lightweight, and fast e-mail client +%define _iconver 20040929 +Summary: A bleeding edge branch of Sylpheed, a GTK2 based, lightweight, and fast e-mail client Summary(pl): Rozwojowa wersja Sylpheed z du¿± ilo¶ci± zmian oraz ulepszeñ Name: sylpheed-claws -Version: 0.9.4 -Release: 1 -License: GPL +Version: 2.0.0 +Release: 0.1 +License: GPL v2 Group: X11/Applications/Networking -Source0: http://dl.sourceforge.net/sylpheed-claws/sylpheed-%{version}claws.tar.bz2 -# Source0-md5: 754d07be167e2613c112ca3e7a0d5665 +Source0: http://dl.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2 +# Source0-md5: 6e26f8e36772b71361d0c463b9a6c7a1 Source1: %{name}.desktop -BuildRequires: autoconf +Source2: http://dl.sourceforge.net/sylpheed-claws/sylpheed-iconset-%{_iconver}.tar.gz +# Source2-md5: d72cf03bf3d13cf9e2785eaca3807707 +URL: http://sylpheed-claws.sourceforge.net/ +BuildRequires: aspell-devel >= 2:0.50 +BuildRequires: autoconf >= 2.50 BuildRequires: automake -%{!?_without_clamav:BuildRequires: clamav-devel} -%{!?_without_faces:BuildRequires: faces-devel} +BuildRequires: bzip2-devel +%{?with_clamav:BuildRequires: clamav-devel} +%{?with_faces:BuildRequires: faces-devel} BuildRequires: gdk-pixbuf-devel >= 0.8 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.4.0 +BuildRequires: imlib-devel >= 1.9 +BuildRequires: libetpan-devel >= 0.41 BuildRequires: libltdl-devel BuildRequires: libtool -%{!?_without_ldap:BuildRequires: openldap-devel} -%{!?_without_ssl:BuildRequires: openssl-devel >= 0.9.7} -BuildRequires: aspell-devel >= 0.50 -%{!?_without_jconv:BuildRequires: libjconv-devel} -%{!?_without_faces:Requires: faces} -%{!?_without_dillo:Requires: dillo} +# TODO: package gtkmathview: http://helm.cs.unibo.it/mml-widget/ (0.4.3 for gtk1, 0.6.0 for gtk2) +%{?with_mathml:BuildRequires: gtkmathview >= 0.4.2} +%{?with_mathml:BuildRequires: gtkmathview < 0.5} +%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} +%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} +BuildRequires: pkgconfig +%{?with_faces:Requires: faces} Obsoletes: sylpheed -URL: http://sylpheed-claws.sourceforge.net/ +Obsoletes: sylpheed-gtk2 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -54,93 +62,125 @@ ale z nowymi/poprawionymi funkcjami. Niekt ¶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} +Summary: Special plugins for Sylpheed-Claws +Summary(pl): Dodatkowe pluginy dla Sylpheed-Claws +Group: X11/Applications/Networking +Requires: %{name} = %{version}-%{release} +%{?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. +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}-%{release} + +%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}-%{release} + +%description themes +Sylpheed-Claws themes package. + +%description themes -l pl +Motywy dla programu Sylpheed-Claws. %prep -%setup -q -n sylpheed-%{version}claws -a1 -#mv sylpheed*claws-iconset themes -#mv -f themes/README README.themes +%setup -q -a2 +mv sylpheed-iconset-* themes +mv -f themes/README README.themes + +rm -f po/stamp-po %build -rm -f missing -%{__libtoolize} -%{__gettextize} -%{__aclocal} -I ac -%{__autoconf} -%{__autoheader} -%{__automake} +#%%{__libtoolize} +#%%{__gettextize} +#%%{__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_gpg:--disable-pgpmime-plugin} \ + %{?with_gpg:--enable-pgpmime-plugin} \ + %{!?with_ldap:--disable-ldap} \ + %{?with_ssl:--enable-openssl} \ + %{!?with_ssl:--disable-openssl} \ + %{?with_ipv6:--enable-ipv6} \ + %{!?with_faces:--disable-compface} \ + %{?with_dillo:--enable-dillo-viewer-plugin } \ + %{!?with_dillo:--disable-dillo-viewer-plugin } \ + %{?with_clamav:--enable-clamav-plugin } \ + %{!?with_clamav:--disable-clamav-plugin } \ + %{?with_mathml:--enable-mathml-viewer-plugin } \ + %{!?with_mathml:--disable-mathml-viewer-plugin } \ + %{?with_trayicon:--enable-trayicon-plugin } \ + %{!?with_trayicon:--disable-trayicon-plugin } \ + %{?with_spamassassin:--enable-spamassassin-plugin } \ --enable-aspell \ --enable-gdk-pixbuf \ - --enable-threads + --enable-pthread \ + --disable-static \ + --enable-gnomeprint \ + --enable-libetpan \ + --with-config-dir=.sylpheed %{__make} %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 %{SOURCE1} $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}/%{name} + +install %{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} -install sylpheed.png $RPM_BUILD_ROOT%{_pixmapsdir} +rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.la -%find_lang sylpheed +%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT -%files -f sylpheed.lang +%files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README* TODO -%{_mandir}/man1/sylpheed.1* +%{_mandir}/man1/%{name}.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}/%{name} +%dir %{_datadir}/%{name}/manual +%{_datadir}/%{name}/manual/en +%{_desktopdir}/%{name}.desktop +%{_pixmapsdir}/%{name}.png %files plugins %defattr(644,root,root,755) -%dir %{_libdir}/sylpheed -%dir %{_libdir}/sylpheed/plugins -%{_libdir}/sylpheed/plugins/*so +%dir %{_libdir}/%{name} +%dir %{_libdir}/%{name}/plugins +%attr(755,root,root) %{_libdir}/%{name}/plugins/*.so + +%files devel +%defattr(644,root,root,755) +%{_includedir}/%{name} +%{_pkgconfigdir}/*.pc + +%files themes +%defattr(644,root,root,755) +%{_datadir}/%{name}/themes