File evolution-tray.spec of Package evolution-tray

#
# spec file for package evolution-tray
#
# Copyright (c) 2012 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:           evolution-tray
Version:        0.0.8
Release:        0
Summary:        Evolution plugin to minimize in tray
License:        GPL-2.0+
Group:          Productivity/Office/Other
Url:            http://gnome.eu.org/evo/index.php/Evolution_Tray
Source0:        http://gnome.eu.org/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM evolution-tray-fix-include.patch vuntz@opensuse.org -- Add missing include; sent upstream by mail
Patch0:         evolution-tray-fix-include.patch
# PATCH-FIX-UPSTREAM evolution-tray-git-00c08ae8.patch vuntz@opensuse.org -- Update to latest git
Patch1:         evolution-tray-git-00c08ae8.patch
# PATCH-FIX-UPSTREAM evolution-tray-evo-3.4.patch vuntz@opensuse.org -- Fix build with latest evo 3.3.x; sent upstream by mail
Patch2:         evolution-tray-evo-3.4.patch
# needed for patch1
BuildRequires:  gnome-common
BuildRequires:  intltool
BuildRequires:  pkgconfig(evolution-plugin-3.0)
BuildRequires:  pkgconfig(evolution-shell-3.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libnotify)
Requires:       evolution
Enhances:       evolution
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
This plugin is useful when you want to put evolution in the "tray"
(notification area). While in the tray, evolution is minimized and
is not visible in the pager. Evolution can then be restored on any
workspace.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
# needed for patch1
NOCONFIGURE=1 gnome-autogen.sh
%configure
%__make %{?_smp_mflags} V=1

%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print

%post
%glib2_gsettings_schema_post

%postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_datadir}/GConf/gsettings/evolution-tray.convert
%{_datadir}/glib-2.0/schemas/org.gnome.evolution.plugin.evolution-tray.gschema.xml
%{_libdir}/evolution/*/plugins/liborg-gnome-evolution-tray.so
%{_libdir}/evolution/*/plugins/org-gnome-evolution-tray.eplug

%changelog