File pan.spec of Package pan

#
# spec file for package pan
#
# This is an unofficial build - please do not submit bugs against this package in Novell's bugzilla.


%define favor_gtk2 0

Name:           pan
Version:        0.150
Release:        0
Summary:        A Powerful Newsreader for GNOME
License:        GPL-2.0+
Group:          Productivity/Networking/News/Clients
Url:            http://pan.rebelbase.com/
Source:         pan.tar.xz
BuildRequires:  libtool
BuildRequires:  automake
BuildRequires:  autogen
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gnome-patch-translation
BuildRequires:  intltool >= 0.40.6
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(enchant) >= 1.6.0
BuildRequires:  gnome-common
BuildRequires:  pkgconfig(gmime-3.0) >= 3.2.6
BuildRequires:  pkgconfig(gnome-keyring-1) >= 3.2.0
BuildRequires:  pkgconfig(gnutls) >= 3.0.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.0.0
BuildRequires:  pkgconfig(gtk+-2.0) >= 2.16.0
BuildRequires:  pkgconfig(gtkspell-2.0) >= 2.0.7
BuildRequires:  pkgconfig(gtkspell3-3.0) >= 2.0.16
BuildRequires:  pkgconfig(libnotify) >= 0.4.1
BuildRequires:  gettext-tools >= 0.21
BuildRequires:  bison
BuildRequires:  git-core
Recommends:     %{name}-lang
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
./autogen.sh
sed -i -e "s,sr@Latn,sr@latin," configure
sed -i -e "s,sr@Latn,sr@latin," po/LINGUAS

%build
[ -x autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
%configure \
        --with-gtkspell \
%if 0%{?suse_version} >= 1210
        --with-gnutls \
%endif        
        --with-dbus \
        --enable-gkr \
        --enable-libnotify
make %{?_smp_mflags}

%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc README.org AUTHORS COPYING
%{_bindir}/pan
%{_datadir}/applications/org.gnome.pan.desktop
%{_datadir}/icons/hicolor/16x16/apps/org.gnome.pan.png
%{_datadir}/icons/hicolor/24x24/apps/org.gnome.pan.png
%{_datadir}/icons/hicolor/256x256/apps/org.gnome.pan.png
%{_datadir}/icons/hicolor/32x32/apps/org.gnome.pan.png
%{_datadir}/icons/hicolor/48x48/apps/org.gnome.pan.png
/usr/share/metainfo/org.gnome.pan.metainfo.xml
/usr/share/man/man1/pan.1.gz

%files lang -f %{name}.lang

#%changelog
openSUSE Build Service is sponsored by