File telepathy-logger-qt4.spec of Package telepathy-logger-qt4
#
# spec file for package telepathy-logger-qt4
#
# Copyright (c) 2013 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 SOVERSION 1
Name: telepathy-logger-qt4
Version: 0.8.0
Release: 0
License: LGPL-2.1+
Summary: Qt Wrapper around TpLogger client library
Url: https://projects.kde.org/telepathy-logger-qt
Group: Productivity/Networking/Instant Messenger
Source0: http://download.kde.org/stable/telepathy-logger-qt/%{version}/src/telepathy-logger-qt-%{version}.tar.bz2
BuildRequires: bison
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: kde4-filesystem
BuildRequires: python-xml
BuildRequires: telepathy-logger-devel >= 0.8.0
BuildRequires: telepathy-qt4-devel >= 0.9.1
# Only QtGlib is required, not also (qt)gstreamer plugins
BuildRequires: pkgconfig(QtGLib-2.0)
BuildRequires: pkgconfig(telepathy-glib) >= 0.16.0
Requires: telepathy-logger >= 0.8.0
BuildRoot: %{_tmppath}/telepathy-logger-qt-%{version}-%{version}-build
%kde4_runtime_requires
%description
Telepathy-logger-qt4 is a Qt Wrapper around the TpLogger client library.
It is needed by KDE Telepathy in order to log the chat activity.
%package devel
Summary: Qt Wrapper around TpLogger client library
Group: Development/Libraries/KDE
Requires: pkgconfig(QtGLib-2.0)
Requires: lib%{name}-%{SOVERSION} = %{version}
Requires: telepathy-glib-devel
Requires: telepathy-logger-devel >= 0.8.0
%description devel
Telepathy-logger-qt4 is a Qt Wrapper around the TpLogger client library.
It is needed by KDE Telepathy in order to log the chat activity.
%package -n lib%{name}-%{SOVERSION}
Summary: Qt Wrapper around TpLogger client library
Group: Productivity/Networking/Instant Messenger
%description -n lib%{name}-%{SOVERSION}
Telepathy-logger-qt4 is a Qt Wrapper around the TpLogger client library.
It is needed by KDE Telepathy in order to log the chat activity.
%prep
%setup -q -n telepathy-logger-qt-%{version}
%build
%cmake_kde4 -d build -- -DPYTHON_EXECUTABLE=%{_bindir}/python2
%make_jobs
%install
%make_install -C build
%fdupes -s %{buildroot}
%kde_post_install
%post -n lib%{name}-%{SOVERSION} -p /sbin/ldconfig
%postun -n lib%{name}-%{SOVERSION} -p /sbin/ldconfig
%files -n lib%{name}-%{SOVERSION}
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING HACKING TODO
%{_libdir}/libtelepathy-logger-qt4.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/telepathy-logger-0.2/TelepathyLoggerQt4/
%{_libdir}/cmake/TelepathyLoggerQt4/
%{_libdir}/libtelepathy-logger-qt4.so
%{_libdir}/pkgconfig/TelepathyLoggerQt4.pc
%changelog