File zeitgeist.spec of Package zeitgeist

#
# spec file for package zeitgeist (Version 0.6)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Dominique Leuenberger, Amsterdam, The Netherlands.
#
# 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:           zeitgeist
Version:        0.6
Release:        1
License:        GPLv2+
Summary:        Zeitgeist Engine
Url:            https://launchpad.net/zeitgeist
Group:          Productivity/Other
Source:         %{name}-%{version}.tar.bz2
# dbus required for file ownership only.
BuildRequires:  dbus-1
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  python
BuildRequires:  python-rdflib
BuildRequires:  python-xml
BuildRequires:  raptor
Requires:       dbus-1-python
# For gconf
Requires:       python-gnome
Requires:       python-gobject2
Requires:       python-rdflib
Requires:       python-xdg
Requires:       python-xml
# For recent files data source
Recommends:     python-gtk
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{suse_version} > 1110
BuildArch:      noarch
%endif
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%define python_sitearch %{py_sitedir}
%endif

%description
Zeitgeist is a service that logs the users activity. The log can be
queried and managed in various ways over a DBus API.

This is the Zeitgeist backend engine.

%lang_package
%prep
%setup -q

%build
%configure
%__make %{?_smp_mflags}

%install
%makeinstall
# Let's move the .pc file from %{_libdir} to %{_datadir}. As of up to version 0.5.0 of zeitgeist,
# the .pc file does not contain any Requires and no arch-dependent information. Moving the file
# to %{_datadir} allows us to remain a noarch package
install -d -m 755 %{buildroot}%{_datadir}/pkgconfig
mv %{buildroot}%{_libdir}/pkgconfig/zeitgeist-daemon.pc %{buildroot}%{_datadir}/pkgconfig/zeitgeist-daemon.pc
%fdupes %{buildroot}%{_datadir}/zeitgeist
%fdupes %{buildroot}%{python_sitelib}
%find_lang %{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/zeitgeist*
%{python_sitelib}/zeitgeist/
%{_datadir}/dbus-1/services/org.gnome.zeitgeist.service
%{_mandir}/man?/*.*
%{_datadir}/zeitgeist/
# As long as the .pc file does not drag in any -devel files, let's keep it in the main package.
%{_datadir}/pkgconfig/zeitgeist-daemon.pc

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by