]> git.pld-linux.org Git - packages/claws-mail.git/blobdiff - claws-mail.spec
- added locale-names patch, cleanup unpackages files; release 1
[packages/claws-mail.git] / claws-mail.spec
index 84a72eb9071d5b7ed07775065b44cef956712d6b..ec93660d6d66c914fde5f9d3e6d04e2df67a4c24 100644 (file)
+#
 # Conditional build:
-
+%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
+#
+%define                _sname  sylpheed
+%define                _iconver        20040525
 Summary:       A bleeding edge branch of Sylpheed, a GTK+ based, lightweight, and fast e-mail client
-Summary(pl):   Osobno rozwijana wersja Sylpheed z paroma zmianami/ulepszeniami.
-Name:          sylpheed-claws
-Version:       0.7.1
-Release:       2
-License:       GPL
+Summary(pl):   Rozwojowa wersja Sylpheed z du¿± ilo¶ci± zmian oraz ulepszeñ
+Name:          %{_sname}-claws
+Version:       0.9.12
+Release:       1
+License:       GPL v2
 Group:         X11/Applications/Networking
-Group(cs):     X11/Aplikace/Sí»ové
-Group(da):     X11/Programmer/Netværks
-Group(de):     X11/Applikationen/Netzwerkwesen
-Group(es):     X11/Aplicaciones/Red
-Group(fr):     X11/Applications/Réseau
-Group(it):     X11/Applicazioni/Rete
-Group(no):     X11/Applikasjoner/Nettverks
-Group(pl):     X11/Aplikacje/Sieciowe
-Group(pt_BR):  X11/Aplicações/Rede
-Group(pt):     X11/Aplicações/Rede
-Group(ru):     X11/ðÒÉÌÏÖÅÎÉÑ/óÅÔÅ×ÙÅ
-Group(sv):     X11/Tillämpningar/Nätverk
-Source0:       http://prdownloads.sourceforge.net/sylpheed-claws/sylpheed-%{version}claws.tar.gz
+Source0:       http://dl.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2
+# Source0-md5: 798f25bb5dae7fd4959fbcb38868bef0
 Source1:       %{name}.desktop
+Source2:       http://dl.sourceforge.net/sylpheed-claws/%{_sname}-iconset-%{_iconver}.tar.gz
+# Source2-md5: a2aa029cdee6cc22a0305774b70a5a70
+Patch0:                %{name}-locale-names.patch
+URL:           http://sylpheed-claws.sourceforge.net/
+BuildRequires: aspell-devel >= 2:0.50
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: imlib-devel
-BuildRequires: faces-devel
-BuildRequires: gettext-devel
+BuildRequires: bzip2-devel
+%{?with_clamav:BuildRequires:  clamav-devel}
+%{?with_faces:BuildRequires:   faces-devel}
 BuildRequires: gdk-pixbuf-devel >= 0.8
+BuildRequires: gettext-devel
+BuildRequires: gmp-devel
+%{?with_gpg:BuildRequires:     gpgme-devel >= 0.3.10}
+%{?with_gpg:BuildRequires:     gpgme-devel < 0.4}
 BuildRequires: gtk+-devel >= 1.2.6
-BuildRequires: gtkhtml-devel >= 0.10.1 
-#BuildRequires:        libjconv-devel - this exist ?
+BuildRequires: imlib-devel
+BuildRequires: libltdl-devel
 BuildRequires: libtool
-BuildRequires: openssl-devel
-Requires:      faces
-Conflicts:     sylpheed
-URL:           http://sylpheed-claws.sourceforge.net/
+# 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}
+%{?with_ssl:BuildRequires:     openssl-devel >= 0.9.7d}
+BuildRequires: pkgconfig
+%{?with_faces:Requires:        faces}
+Obsoletes:     sylpheed
+Obsoletes:     sylpheed-gtk2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr/X11R6
-%define                _mandir         %{_prefix}/man
-
 %description
-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.
+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± na prawdê ¶wietne i u¿yteczne.
+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 plugins
+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.
+
+%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-0.7.1claws
+%setup -q -a2
+%patch0 -p1
+mv %{_sname}-iconset-* themes
+mv -f themes/README README.themes
+
+mv -f po/{zh_TW.Big5,zh_TW}.po
+rm -f po/stamp-po
 
 %build
-rm -f missing
-libtoolize --copy --force
-gettextize --copy --force 
-aclocal -I ac
-autoconf
-autoheader
-automake --add-missing --foreign --copy
+%{__libtoolize}
+%{__gettextize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
-       --enable-jconv \
-       --enable-pspell \
-       --enable-impib \
+       %{?with_gpg:--enable-gpgme} %{!?with_gpg:--disable-gpgme} \
+       %{?with_ldap:--enable-ldap} \
+       %{?with_ssl:--enable-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-ssl \
-       --enable-ipv6
+       --disable-static
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d  $RPM_BUILD_ROOT%{_applnkdir}/Network/Mail
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
+       DESTDIR=$RPM_BUILD_ROOT
 
-install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Network/Mail
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+cp -a themes $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-gzip -9nf AUTHORS ChangeLog NEWS README TODO
+install %{_sname}.png $RPM_BUILD_ROOT%{_pixmapsdir}
 
-%find_lang sylpheed
+rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.la
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files -f sylpheed.lang
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc *.gz
+%doc AUTHORS ChangeLog NEWS README* TODO
+%{_mandir}/man1/%{_sname}.1*
 %attr(755,root,root) %{_bindir}/*
-%dir %{_datadir}/sylpheed
-%dir %{_datadir}/sylpheed/manual
-%{_datadir}/sylpheed/manual/en
-%lang(ja) %{_datadir}/sylpheed/manual/ja
-%{_applnkdir}/Network/Mail/*
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/manual
+%{_datadir}/%{name}/manual/en
+%lang(de) %{_datadir}/%{name}/manual/de
+%lang(es) %{_datadir}/%{name}/manual/es
+%lang(fr) %{_datadir}/%{name}/manual/fr
+%lang(ja) %{_datadir}/%{name}/manual/ja
+%dir %{_datadir}/%{name}/faq
+%{_datadir}/%{name}/faq/en
+%lang(de) %{_datadir}/%{name}/faq/de
+%lang(es) %{_datadir}/%{name}/faq/es
+%lang(fr) %{_datadir}/%{name}/faq/fr
+%lang(it) %{_datadir}/%{name}/faq/it
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{_sname}.png
+
+%files plugins
+%defattr(644,root,root,755)
+%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
This page took 0.048072 seconds and 4 git commands to generate.