File evolution-rss.spec of Package evolution-rss
#
# spec file for package evolution-rss
#
# 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/
#
%define _evo_branch %(pkg-config --variable execversion evolution-shell-3.0)
%define _evo_plugindir %(pkg-config --variable plugindir evolution-plugin-3.0)
%define _evo_errordir %(pkg-config --variable errordir evolution-plugin-3.0)
%define _evo_imagesdir %(pkg-config --variable imagesdir evolution-shell-3.0)
Name: evolution-rss
%define _name evolution-plugin-rss
Version: 0.2.90
Release: 3
Provides: %{_name} = %{version}
License: GPLv2+
Summary: Evolution Plugin for RSS Feeds Support
Url: http://gnome.eu.org/evo/index.php/Evolution_RSS_Reader_Plugin
Group: Productivity/Networking/Email/Clients
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE evolution-rss-evo311.patch dimstar@opensuse.org -- Fix build with evo 3.1.1. The commit upstream is against evo master, which does not have a different version than the last tarball.
Patch0: evolution-rss-evo311.patch
# PATCH-FIX-UPSTREAM evolution-rss-evo314.patch dimstar@opensuse.org -- Adapt to evo 3.1.4 changes. Patch taken from upstream.
Patch1: evolution-rss-evo314.patch
# PATCH-FIX-UPSTREAM evolution-rss-gtk_hvbox_new.patch bgo#656126 dimstar@opensuse.org -- Stop using depracted gtk_[hv]box_new calls.
Patch2: evolution-rss-gtk_hvbox_new.patch
# PATCH-FIX-UPSTREAM evolution-rss-evo315.patch vuntz@opensuse.org -- Fix build with evo >= 3.1.5, taken from git
Patch3: evolution-rss-evo315.patch
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: pkgconfig(evolution-data-server-1.2)
BuildRequires: pkgconfig(evolution-plugin-3.0)
BuildRequires: pkgconfig(evolution-shell-3.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtkhtml-editor-4.0)
BuildRequires: pkgconfig(libebook-1.2)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(webkitgtk-3.0)
%description
This plugin for Evolution adds RSS Feeds support and enables the use of
Evolution as a RSS Reader.
%package -n %{_name}
Summary: Evolution Plugin for RSS Feeds Support
Group: Productivity/Networking/Email/Clients
Provides: %{name} = %{version}
Recommends: %{_name}-lang
%description -n %{_name}
This plugin for Evolution adds RSS Feeds support and enables the use of
Evolution as a RSS Reader.
%lang_package -n %{_name}
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
%configure --disable-schemas-install
%__make %{?_smp_mflags}
%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%find_lang %{name}
%find_gconf_schemas
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans
%files -n %{_name} -f %{name}.schemas_list
%defattr(-, root, root)
%{_bindir}/evolution-import-rss
%{_datadir}/evolution/%{_evo_branch}/ui/rss-html-rendering.ui
%{_datadir}/evolution/%{_evo_branch}/ui/rss-main.ui
%{_evo_errordir}/org-gnome-evolution-rss.error
%{_evo_imagesdir}/pix.png
%{_evo_imagesdir}/rss-16.png
%{_evo_imagesdir}/rss-22.png
%{_evo_imagesdir}/rss-24.png
%{_evo_imagesdir}/rss-icon-read.png
%{_evo_imagesdir}/rss-icon-unread.png
%{_evo_imagesdir}/rss-text-html.png
%{_evo_imagesdir}/rss-text-x-generic.png
%{_evo_imagesdir}/rss.png
%{_evo_plugindir}/liborg-gnome-evolution-rss.so
%{_evo_plugindir}/org-gnome-evolution-rss.eplug
%{_evo_plugindir}/org-gnome-evolution-rss.xml
%files -n %{_name}-lang -f %{name}.lang
%changelog