File libbluedevil.spec of Package libbluedevil

#
# spec file for package libbluedevil
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Raymond Wooninck <tittiatcoke@gmail.com>
#
# 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/
#

# norootforbuild


Name:           libbluedevil
BuildRequires:  bluez-devel kdebase4-workspace-devel
License:        GPL
Url:            http://www.kde.org
Group:          System/GUI/KDE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Qt Bluetooth client library
Version:        1.8
Release:        1
%define rversion v1.8-1
Source:         %{name}-%rversion.tar.bz2
%kde4_runtime_requires

%description
Qt wrapper for BlueZ. This wrapper is used by KDE's Bluetooth layer.



Author(s):
  Eduardo Robles Elvira <edulix@gmail.com> 
  Alex Fiestas <afiestas@eyeos.org>
  Rafael Fernandez Lopez <ereslibre@kde.org>

%package devel
License:        GPL
Summary:        Qt Wrapper for Bluez
Group:          Development/Languages/C and C++
Requires:       libbluedevil1 = %{version}

%description devel
Development files for interacting with BlueZ using Qt.



Author(s):
  Eduardo Robles Elvira <edulix@gmail.com> 
  Alex Fiestas <afiestas@eyeos.org>
  Rafael Fernandez Lopez <ereslibre@kde.org>

%package -n libbluedevil1
License:        GPL
Summary:        Qt Wrapper for Bluez
Group:          System/GUI/KDE
Requires:       bluez

%description -n libbluedevil1
Qt wrapper for BlueZ. This wrapper is used by KDE's Bluetooth layer.



Author(s):
  Eduardo Robles Elvira <edulix@gmail.com> 
  Alex Fiestas <afiestas@eyeos.org>
  Rafael Fernandez Lopez <ereslibre@kde.org>

%prep
%setup -n %{name}-%rversion -q

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  %kde_post_install

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libbluedevil1 -p /sbin/ldconfig

%postun -n libbluedevil1 -p /sbin/ldconfig

%files -n libbluedevil1
%defattr(-,root,root)
%{_libdir}/libbluedevil.so.*

%files devel
%defattr(-,root,root)
/usr/include/bluedevil/
%{_libdir}/libbluedevil.so
%{_libdir}/pkgconfig/bluedevil.pc

%changelog
openSUSE Build Service is sponsored by