File synapse.spec of Package synapse

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



Name:           synapse
Version:        0.2.8
Release:        1
License:        GPL-3.0+
Summary:        A semantic launcher for GNOME
Url:            http://launchpad.net/synapse-project
Group:          System/GUI/GNOME
Source0:        http://launchpad.net/synapse-project/0.2/%{version}/+download/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM synapse-0.2.8.1.patch lp#862104 vuntz@opensuse.org -- Cherry-pick fixes from 0.2.8.1; upstream tarball is broken
Patch0:         synapse-0.2.8.1.patch
BuildRequires:  intltool
BuildRequires:  update-desktop-files
%if 0%{?suse_version} > 1140
BuildRequires:  vala-0_12 >= 0.12.0
%else
BuildRequires:  vala >= 0.12.0
%endif
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gee-1.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtkhotkey-1.0)
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(rest-0.7)
BuildRequires:  pkgconfig(unique-1.0)
BuildRequires:  pkgconfig(zeitgeist-1.0)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Synapse is a semantic launcher written in Vala that you can use to start
applications as well as find and access relevant documents and files by
making use of the Zeitgeist engine.

%lang_package
%prep
%setup -q
%patch0 -p0

%build
# needed for patch0
autoreconf -fi
%configure --disable-static
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name}
%suse_update_desktop_file %{name} X-SuSE-DesktopUtility

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%post
%icon_theme_cache_post
%desktop_database_post

%postun
%icon_theme_cache_postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/%{name}.1%{?ext_man}

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by