File pan.spec of Package pan
#
# spec file for package pan
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: pan
Version: 0.133
Release: 12
License: GPLv2+
Summary: A Powerful Newsreader for GNOME
Url: http://pan.rebelbase.com/
Group: Productivity/Networking/News/Clients
Source0: ftp://source.rebelbase.com/pub/pan/pan-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM fix-desktop-file-11.0.diff -- validate desktop file
Patch0: fix-desktop-file-11.0.diff
# PATCH-FIX-UPSTREAM pan-0.133-gcc44.patch -- Fix build with gcc >= 4.4
Patch1: pan-0.133-gcc44.patch
# PATCH-FIX-UPSTREAM pan-gmime24.patch bgo#541676 dimstar@opensuse.org -- Build with gmime 2.4. Taken from de-facto upstream http://github.com/lostcoder/pan2/commit/eb4a0e36
Patch2: pan-gmime24.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: pcre-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gmime-2.4)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gtkspell-2.0)
Recommends: %{name}-lang
Requires: xf86tools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
PAN is a very powerful newsreader. Its user interface is loosely based
on other popular newsreaders.
%lang_package
%prep
%setup -q
translation-update-upstream
%patch0
%patch1
%patch2 -p1
sed -i -e "s,sr@Latn,sr@latin," configure
sed -i -e "s,sr@Latn,sr@latin," po/LINGUAS
sed -i -e "s,sr@Latn,sr@latin," pan.desktop
mv po/sr@Latn.po po/sr@latin.po
%build
autoreconf -fi
%configure
make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %name Network News
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%endif
%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