File pan.spec of Package pan

#
# spec file for package pan (Version 0.133)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           pan
BuildRequires:  fdupes gcc-c++ gmime-devel gtk2-devel gtkspell-devel intltool pcre-devel translation-update-upstream update-desktop-files
License:        GPL v2 or later
Group:          Productivity/Networking/News/Clients
AutoReqProv:    on
Version:        0.133
Release:        4
Source0:        ftp://source.rebelbase.com/pub/pan/pan-%{version}.tar.bz2
Patch0:         fix-desktop-file-11.0.diff
Patch1:         pan-0.133-gcc44.patch
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
translation-update-upstream
%patch0
%patch1
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
%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 -rf $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
openSUSE Build Service is sponsored by