File liferea.spec of Package liferea

#
# spec file for package liferea
#
# 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/
#

# norootforbuild


Name:           liferea
License:        GPLv2+
Group:          Productivity/Other
Version:        1.6.6
Release:        1
# FIXME: Make sure to remove liferea_dbus.xml again with next tarball.
Summary:        Linux Feed Reader
Url:            http://liferea.sourceforge.net/
Source:         http://sourceforge.net/projects/liferea/files/Liferea%20Stable/%{version}/%{name}-%{version}.tar.gz
# liferea_dbus.xml missing in the 1.6.6 tarballs; taken from git.
Source1:        liferea_dbus.xml
# PATCH-FEATURE-OPENSUSE liferea-opensuse-feeds.patch -- Add openSUSE feeds to default feeds
Patch0:         liferea-opensuse-feeds.patch
# PATCH-FIX-UPSTREAM liferea-libnotify07.patch dimstar@opensuse.org -- fix build with libnotify 0.7.x; discussed with upstream, but won't enter 1.6.x branch
Patch1:         liferea-libnotify07.patch
BuildRequires:  NetworkManager-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gconf2-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libglade2-devel
BuildRequires:  libnotify-devel
BuildRequires:  libwebkit-devel
BuildRequires:  libxslt-devel
BuildRequires:  lua-devel
BuildRequires:  sqlite-devel
BuildRequires:  update-desktop-files
Requires:       dbus-1 >= 0.30
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
Liferea is an abbreviation for Linux Feed Reader. It is a news
aggregator for online news feeds. It supports a number of different
feed formats including RSS/RDF, CDF, Atom, OCS, and OPML. There are
many other news readers available, but these others are not available
for Linux or require many extra libraries to be installed. Liferea
tries to fill this gap by creating a fast, easy-to-use, easy-to-install
news aggregator for GTK and GNOME.

%lang_package
%prep
%setup -q
if [ -f src/liferea_dbus.xml]; then
  echo "src/liferea_dbus.xml is part of the tarball. Please drop it from the source section."
  /bin/false
fi
cp %{S:1} src/liferea_dbus.xml
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
%configure \
        --disable-static \
        --disable-schemas-install
make %{?jobs:-j %jobs}

%install
%makeinstall
%suse_update_desktop_file -N "Liferea" liferea X-SuSE-RSS-News
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
rm doc/Makefile*
rm doc/html/Makefile*
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%icon_theme_cache_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/*
%{_datadir}/applications/liferea.desktop
%{_datadir}/liferea
%{_libdir}/liferea
%{_datadir}/icons/hicolor/*/*/*.*
%doc %{_mandir}/man1/liferea.1*
# We can't really move the localized manpages to the lang package, since they'd
# create a conflict between the lang subpackage and bundles
%lang(pl) %dir %{_mandir}/pl
%lang(pl) %dir %{_mandir}/pl/man1
%lang(pl) %{_mandir}/pl/man1/liferea.1*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by