File QtZeitgeist.spec of Package QtZeitgeist
#
# spec file for package QtZeitgeist
#
# 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/
#
%define rname libqzeitgeist
%define sonum 1
%define libname %{rname}%{sonum}
Name: QtZeitgeist
Version: 0.8.0
Release: 0
Summary: Qt Zeitgeist Library
License: LGPL-2.1
Group: Development/Libraries/KDE
Url: https://projects.kde.org/projects/kdesupport/libqzeitgeist/
Source: ftp://ftp.kde.org/pub/kde/stable/libqzeitgeist/0.8.0/src/%{rname}-%{version}.tar.bz2
Source1: baselibs.conf
# PATCH-FIX-UPSTREAM libqzeitgeist-0.8.0-declarative.patch asterios.dramis@gmail.com -- Fix linking (don't link the Qt world, only use QT_DECLARATIVE_LIBRARIES), consistently use QT_IMPORTS_DIR
Patch0: libqzeitgeist-0.8.0-declarative.patch
# PATCH-FIX-UPSTREAM libqzeitgeist-0.8.0-declarative.patch asterios.dramis@gmail.com -- Reduce linking in libqzeitgeist
Patch1: libqzeitgeist-0.8.0-reduced_linking.patch
BuildRequires: automoc4
BuildRequires: cmake
BuildRequires: libqt4-devel
BuildRequires: pkg-config
BuildRequires: zeitgeist
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Zeitgeist is a service which logs the user's activities
and notifications, anywhere from files opened to websites
visited and conversations, and makes this information
readily available for other applications to use. It is
also able to establish relationships between items based
on similarity and usage patterns.
This package provides the Qt interface for Zeitgeist.
%package devel
Summary: Development files for QtZeitgeist
Group: Development/Languages/C and C++
Requires: %{libname} = %{version}
Requires: libqt4-devel
Requires: zeitgeist
%description devel
This package provides headers and libraries needed to build against the Qt
interface for Zeitgeist.
%package -n %{libname}
Summary: Qt Zeitgeist Library
Group: Development/Libraries/KDE
Recommends: zeitgeist
%description -n %{libname}
Zeitgeist is a service which logs the user's activities
and notifications, anywhere from files opened to websites
visited and conversations, and makes this information
readily available for other applications to use. It is
also able to establish relationships between items based
on similarity and usage patterns.
This package provides the Qt interface for Zeitgeist.
%prep
%setup -q -n %{rname}-%{version}
%patch0 -p1
%patch1 -p1
%build
mkdir build
cd build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%if %{_lib} == "lib64"
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_SUFFIX=64 ..
%else
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
%endif
make VERBOSE=1 %{?_smp_mflags}
%install
cd build
%make_install
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files devel
%defattr(-,root,root,-)
%{_includedir}/QZeitgeist/
%{_libdir}/cmake/QZeitgeist/
%{_libdir}/libqzeitgeist.so
%{_libdir}/pkgconfig/QZeitgeist.pc
%files -n %{libname}
%defattr(-,root,root,-)
%doc COPYING README
%{_libdir}/libqzeitgeist.so.*
%dir %{_libdir}/qt4/plugins/imports/org/
%dir %{_libdir}/qt4/plugins/imports/org/gnome/
%{_libdir}/qt4/plugins/imports/org/gnome/zeitgeist/
%changelog