#redhat and mdk are exclusive %define redhat 1 %define mdk 0 %define gmimever 2.1.7 %if %redhat %define config_opts --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} --libdir=%{_libdir} --bindir=%{_bindir} --includedir=%{_includedir} --datadir=%{_datadir} --enable-threads --disable-more-warnings --with-ssl --with-gss %endif %if %mdk %define config_opts --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} --libdir=%{_libdir} --bindir=%{_bindir} --includedir=%{_includedir} --datadir=%{_datadir} --enable-threads --disable-more-warnings %endif Summary: Balsa Mail Client Name: balsa Version: 2.2.2 Release: 1 Copyright: GPL Group: Applications/Internet Source0: %{name}-%{version}.tar.bz2 Source1: gmime-%{gmimever}.tar.bz2 %define gmime_patch gmime-2.1.7-sig-attach.patch Patch1: %{gmime_patch} URL: http://balsa.gnome.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: libesmtp >= 1.0.3 Requires: aspell Provides: balsa BuildRequires: libesmtp-devel >= 1.0.3 %if %redhat Requires: gtk2 >= 2.0.0 Requires: libgnome >= 2.0.0 Requires: libgnomeui >= 2.0.0 Requires: gnome-vfs2 >= 2.0.0 BuildRequires: gtk2-devel >= 2.0.0 BuildRequires: libgnome-devel >= 2.0.0 BuildRequires: libgnomeui-devel >= 2.0.0 BuildRequires: gnome-vfs2-devel >= 2.0.0 BuildRequires: aspell-devel %endif %if %mdk Requires: gtk+2.0 Requires: libgnome2_0 Requires: libgnomeui2_0 Requires: libgnome-vfs2_0 BuildRequires: libgtk+2.0_0-devel BuildRequires: libgnome2_0-devel BuildRequires: libgnomeui2_0-devel BuildRequires: libgnome-vfs2_0-devel BuildRequires: libpspell4-devel BuildRequires: libltdl3-devel BuildRequires: libpcre0-devel %endif %description Balsa is an e-mail reader. This client is part of the GNOME desktop environment. It supports local mailboxes, POP3 and IMAP. %prep %setup -D -a 1 cd gmime-%{gmimever} && patch -p1 < %{_sourcedir}/%{gmime_patch} %build # Needed for snapshot releases. %ifarch alpha ARCHFLAG="--host=alpha-redhat-linux" %endif dir=`pwd`; cd gmime-%{gmimever} && ./configure --prefix=`pwd` --disable-shared && make install; cd $dir if [ ! -f configure ]; then CFLAGS="$RPM_OPT_FLAGS" \ PKG_CONFIG_PATH="$PKG_CONFIG_PATH:gmime-%{gmimever}" \ ./autogen.sh $ARCHFLAG %{config_opts} else CFLAGS="$RPM_OPT_FLAGS" \ PKG_CONFIG_PATH="$PKG_CONFIG_PATH:gmime-%{gmimever}" \ ./configure $ARCHFLAG %{config_opts} fi if [ "$SMP" != "" ]; then (make "MAKE=make -k -j $SMP"; exit 0) make else make fi %install rm -rf "$RPM_BUILD_ROOT" make DESTDIR="$RPM_BUILD_ROOT" install rm "$RPM_BUILD_ROOT%{_bindir}"/balsa-ab #desktop-file-install --vendor gnome --delete-original \ # --dir $RPM_BUILD_ROOT%{_datadir}/applications \ # $RPM_BUILD_ROOT%{_datadir}/applications/* %find_lang %{name} %clean [ -n "$RPM_BUILD_DIR/%{name}-%{version}" ] && rm -rf "$RPM_BUILD_DIR/%{name}-%{version}" %post if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update fi %postun which scrollkeeper-update>/dev/null 2>&1 && scrollkeeper-update %files -f %{name}.lang %defattr(-, root, root) %doc README COPYING ChangeLog NEWS TODO AUTHORS HACKING docs/mh-mail-HOWTO %doc docs/vconvert.awk docs/pine2vcard %{_bindir}/balsa %{_libdir}/bonobo/servers/GNOME_Balsa.server %{_datadir}/applications/balsa.desktop %{_datadir}/pixmaps/gnome-balsa2.png %{_datadir}/gnome/help/balsa/* %{_datadir}/omf/balsa/* %{_datadir}/balsa/pixmaps/* %{_datadir}/idl/Balsa.idl %{_datadir}/sounds/balsa/* %{_mandir}/man1/balsa.1* %config %{_sysconfdir}/sound/events/* %changelog * Sat Jul 26 2003 Misu Moldovan - further split the Red Hat and Mandrake sections - fix Mandrake 9.x dependencies * Mon Sep 16 2002 Pawel Salek - adapt to GNOME2 requirements. * Sun Jun 24 2001 Spider - remove all defined paths to user-specified. - update configures, locales, update esmtp as a requires/buildrequires * Fri Nov 03 2000 Pawel Salek - use %{_mandir} for location of the manual. * Fri Oct 20 2000 Pawel Salek - require gtk+>= 1.2.7, not gnome-libs. * Fri Oct 20 2000 Pawel Salek - require gnome-libs >= 1.2.7, earlier versions are buggy. drop building GSS. * Mon Sep 18 2000 Pawel Salek - include only translation files, not whole directories, to aviod misleading messages when removing the package. * Tue Aug 15 2000 Pawel Salek - added --disable-more-warning option - libmutt configure fails without it. * Thu Jun 1 2000 Peter Williams - Don't try to install IDL stuff as we have deleted it :-) * Thu Dec 30 1999 Bruno Pires Marinho - Improved the spec file by adding a sysconfdir=/etc, removing the man instalation because balsa does it now and adding the files on the /etc to the distribution * Tue Oct 5 1999 Jan Nieuwenhuizen - Fixed man install * Sun Sep 26 1999 Stuart Parmenter - Updated to version 0.5.0 * Mon Dec 14 1998 Stuart Parmenter - Updated to version 0.4.8. * Sun Sep 09 1998 Stuart Parmenter - Updated to version 0.4.7. * Sun Aug 23 1998 Stuart Parmenter - Updated to version 0.4.5. * Mon Aug 3 1998 Stuart Parmenter - Updated to version 0.4.0. * Sun Jul 26 1998 Stuart Parmenter - Updated RPM file to reflect recent changes with the removal of c-client. * Thu Apr 02 1998 Michael Fulbright - First try at an RPM