File pan.spec of Package pan

#
# spec file for package pan (Version 0.132)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           pan
BuildRequires:  esound-devel fdupes gcc-c++ gmime-devel gtk2-devel gtkspell-devel intltool pcre-devel update-desktop-files
License:        GPL v2 or later
Group:          Productivity/Networking/News/Clients
AutoReqProv:    on
Version:        0.132
Release:        118
Source0:        ftp://source.rebelbase.com/pub/pan/pan-%{version}.tar.bz2
Patch:          fix-desktop-file.diff
Patch1:         pan-gcc-4.3.diff
Patch2:         fix-desktop-file-11.0.diff
Patch3:         pan-glib_compat.diff
Patch4:         bnc395452-sortfix.diff  
Requires:       xf86tools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://pan.rebelbase.com/
Summary:        A Powerful Newsreader for GNOME
Requires:       %{name}-lang = %{version}

%description
PAN is a very powerful newsreader. Its user interface is loosely based
on other popular newsreaders.



Authors:
--------
    Matt Eagleson <e.Messiah@superpimp.org>
    Charles Kerr <charles@rebelbase.com>
    Christophe Lambin <clambin@easynet.be>

%lang_package
%prep
%setup -q
%if %suse_version == 1020
%patch
%endif
%if %suse_version == 1030
%patch
%endif
%if %suse_version > 1030
%patch1
%patch2
%endif
%patch3 -p1
%patch4 -p1

%build
%configure
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}
%suse_update_desktop_file %name Network News
%fdupes $RPM_BUILD_ROOT

%clean
rm -r $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc README ChangeLog AUTHORS TODO COPYING 
%{_bindir}/pan
%{_datadir}/applications/pan.desktop
%{_datadir}/pixmaps/pan.png

%files lang -f %{name}.lang

%changelog
* Fri May 30 2008 drahn@suse.de
- fix for heap overflow (bnc#395452)
  CVE-2008-2363
* Mon Apr 07 2008 drahn@suse.de
- add glib compat layer to abstract glib API
  obsoletes previous g_assert centric patch
* Fri Feb 29 2008 ro@suse.de
- fix include file to get g_assert
* Fri Dec 14 2007 drahn@suse.de
- pan-gcc-4.3.diff - fix compilation with GCC 4.3
- fix-desktop-file-11.0.diff - fix desktop file for >10.3
* Wed Aug 08 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage.
* Sun Aug 05 2007 drahn@suse.de
- update to version 0.132 (sync with BS) "Waxed in Black"
- fix some crashes and lockups
* Fri Jan 12 2007 sbrabec@suse.cz
- Spec file cleanup.
* Mon Jan 08 2007 ro@suse.de
- GNOME moved to /usr
* Sun Nov 19 2006 drahn@suse.de
- update to release 0.119 (sync with BS)
  - 0.119 "Karma Hunters"
  - 0.118 "Gustaf Von Musterhausen"
  - 0.117 "We'll fly and we'll fall and we'll burn"
  - multiple bugfixes and performance improvements
* Sat Nov 18 2006 stbinner@suse.de
- Fix Name entry of .desktop file post openSUSE 10.2
* Tue Sep 12 2006 drahn@suse.de
- update to release 0.112
  - 0.112 "FIXME"
  - 0.111 "Tweedy"
  - 0.110 "Beable Beable"
  - countless bugfixes in all areas
* Thu Sep 07 2006 aj@suse.de
- Build with RPM_OPT_FLAGS.
- Build against gtkspell.
* Tue Sep 05 2006 aj@suse.de
- Further cleanup of BuildRequires.
* Tue Sep 05 2006 ro@suse.de
- first step to cleanup BuildRequires
* Tue Aug 22 2006 drahn@suse.de
- update to beta 0.109
* Mon May 29 2006 drahn@suse.de
- update to beta 0.99
* Wed May 03 2006 drahn@suse.de
- update to beta 0.95
* Sun Apr 23 2006 drahn@suse.de
- update to beta 0.94
* Thu Apr 20 2006 drahn@suse.de
- update to beta release 0.93
- enable spell check
- temporarily remove preferences patch
* Sat Feb 18 2006 gekker@suse.de
- Update desktop file for UI team
* Wed Feb 15 2006 stbinner@suse.de
- fix Name/GenericName in .desktop file
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Oct 14 2005 ro@suse.de
- removed libzvt from neededforbuild (unused)
* Tue Jun 28 2005 sbrabec@suse.cz
- Call desktop-launch to get default browser (#9006).
* Sun May 01 2005 mmj@suse.de
- Fix for gcc4
- Enable parallel build
* Thu Apr 14 2005 sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
* Wed Mar 16 2005 clahey@suse.de
- Move desktop file so that it'll be found.
* Wed Nov 10 2004 ro@suse.de
- removed gnome1 stuff from neededforbuild
* Wed Oct 27 2004 mmj@suse.de
- Rename locale no to nb
* Wed May 12 2004 clahey@suse.de
- Added patch to use gnome-open.
* Fri Feb 20 2004 sbrabec@suse.cz
- Fixed names of GNOME2 packages.
* Wed Jan 28 2004 drahn@suse.de
- update to 0.14.2
- set default editor to gedit
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Tue Aug 19 2003 sbrabec@suse.cz
- Updated neededforbuild (rename of librsvg2, eel2).
* Fri Aug 15 2003 adrian@suse.de
- add Categories
* Mon Jul 14 2003 drahn@suse.de
- finally renamed package to PAN
- changed PREFIX to /opt/gnome
- use %%find_lang
* Mon Jun 16 2003 drahn@suse.de
- add patch for PAN incorrectly handling sockets
* Mon May 12 2003 drahn@suse.de
- update to new stable version 0.14.0
- cleanup of #neededforbuild and #usedforbuild
* Wed Jan 15 2003 drahn@suse.de
- update to new stable version 0.13.3
- bugfixes:
  * Fixed a serious 0.13.1 memory leak, and 0.13.2.92 cache
  overflow, caused by the Task Manager window.
  * Fixed a race condition that could cause Pan to crash on startup
  when the ``restore tasks?'' dialog appeared.
* Tue Nov 12 2002 ro@suse.de
- changed neededforbuild <xf86 xdevel> to <x-devel-packages>
* Sat Nov 09 2002 drahn@suse.de
- update to new stable version 0.13.2
- bugfixes:
  * Fix 0.13.1 bug that crashed Pan when it encountered user-defined
  filters whose names included underscores.
  * Fix large 0.13.1 memory leak in the Task Manager.
* Mon Oct 14 2002 drahn@suse.de
- update to new stable version 0.13.1
- bugfixes:
  * Posted messages from 0.13.0 lacked the proper encoding header.
  * Fix 0.13.0 crash caused by forwarding email.
  * Fixed 0.13.0 message corruption fix in the composer when a
  signature contains 8bit characters.
  * Don't save the attachment when the user presses the escape key.
* Fri Sep 27 2002 ro@suse.de
- Added alsa alsa-devel to neededforbuild (esound)
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Fri Aug 23 2002 drahn@suse.de
- fixed broken desktop file (#18219)
* Mon Aug 19 2002 drahn@suse.de
- fixed wrong declarations in gmime-message-part.c
* Mon Aug 19 2002 drahn@suse.de
- update to new stable version 0.13.0
- fixed several bugs:
  * About a dozen minor memory leaks fixed
  * Fixed 0.12.0 bug where the external editor used when
  comparing a message had to use UTF-8
  * Fixed 0.12.0 bug that caused Pan to crash on mouseover
  of some URLs.
* Tue Jul 23 2002 drahn@suse.de
- Update to new stable release 0.12.1
- Fixed various bugs that would cause gnpan to loose articles
* Thu Jun 27 2002 schwab@suse.de
- Fix conflicting declarations.
* Thu Jun 27 2002 drahn@suse.de
- adjusted build process for GNOME 2.0
- fixed desktop-file for menu generation
* Fri Jun 21 2002 drahn@suse.de
- cleanup directories to fit GNOME 2.0 layout
* Thu Jun 20 2002 drahn@suse.de
- switched to stable version 0.12.0 for GNOME 2.0
- fixed some memory leaks and improved i18n
- fixed decoding of quoted-printable headers
* Wed Apr 24 2002 drahn@suse.de
- update to stable version 0.11.3
  Bug fixes:
  * Fixed bug that caused multi-part binary posts with subjects like
  (3/28) instead of (03/28) to be seen as incomplete. Thanks to Craig
  Orsinger for reporting this.
  * Fixed various memory leaks.
* Fri Feb 08 2002 drahn@suse.de
- update to stable version 0.11.2
* Sat Feb 02 2002 drahn@suse.de
- update to version 0.11.1.94
  Bug fixes:
  * Fixed 0.10.0.93 bug that caused a GUI lockup under arcane
  circumstances when reading articles.
  * Fixed 0.11.1.92 bug that caused Pan to crash when emptying
  a group which had an article displayed in the text pane.
  * Fixed 0.11.1.92 bug that caused a GUI lockup under other
  arcane circumstances.
  * Fixed 0.11.1.92 bug that caused the first article read to
  not be displayed if the user started up Pan in zoom mode.
  * Fixed several other 0.11.1.93 deadlock issues.
  * Now handles '~' in the TMPDIR environmental variable.
* Thu Jan 31 2002 drahn@suse.de
- update to version 0.11.1.93
  Bug fixes:
  * Fixed 0.11.1.92 bug that caused cached articles to not be
  marked as read when the user read them.
  * Fixed 0.11.1.92 bug that made the "Edit Filter" dialog too
  wide to fit even on large screens.
  * Fixed 0.10.0 bug where new articles that automatically get
  deleted by user-defined rules could still appear in the
  article pane.
  * Fixed a long-standing NNTP server connection corruption bug.
  * Fixed a couple of long-standing GUI thread bugs.
* Wed Jan 23 2002 drahn@suse.de
- update to version 0.11.1.92
  Bug fixes:
  * Fixed 0.11.1.90 bug that caused Pan to crash sometimes
  when reading or decoding articles.
  * Fixed 0.11.1.90 bug that caused pan to crash on a SIGPIPE
  signal when a news server connection closed unexpectedly.
  * Fixed 0.11.1.90 bug that caused Pan to not authenticate
  properly on at least one older NNTP server.
  * Fixed 0.10.0.93 memory leak that didn't free all article
  information on duplicate or user-deleted articles.
* Wed Jan 09 2002 drahn@suse.de
- update to version 0.11.1.90
  Features:
  * Support for Microsoft Secure Password Authentication ("SPA")
  * more translations
  Bug fixes:
  * fixed a huge memory leak
  * fixed thread safety bugs
  * fixed "Get New Headers" command
* Tue Dec 11 2001 hhetter@suse.de
- updated to stable version 0.11.1
  Featuring:
  * The left/right arrow keys now collapse/expand the
  currently-selected threads
  * Added 'Newsreader' to the 'Headers to Show' selection
  in the preferences
  * New Simplified Chinese translation
  * New Portuguese translation
  Bug fixes:
  * Fixed "supercede article" bug
  * Small task manager bug fixes
- setup -n pan  to build in directory pan instead of gnpan
- functionality test on i386
* Fri Nov 30 2001 drahn@suse.de
- update to version 0.11.0.92
- fixed several bugs that could cause gnpan to crash
* Tue Nov 13 2001 drahn@suse.de
- fixed SPEC file to build on (hopefully) all architectures
* Fri Nov 09 2001 drahn@suse.de
- first SuSE package - version 0.11.0
- renamed package and binary to gnpan because of conflicts with different
  package
openSUSE Build Service is sponsored by