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/
#



Name:           libbluedevil
Version:        1.9.0
Release:        1
%define rversion 1.9
License:        GPL
Summary:        Qt Bluetooth client library
Url:            http://www.kde.org
Group:          System/Libraries
Source:         %{name}-%{rversion}.tar.bz2
Patch0:         devicelistnoclean.diff
BuildRequires:  bluez-devel
BuildRequires:  cmake
BuildRequires:  kde4-filesystem
BuildRequires:  libqt4-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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


%package devel

Summary:        Qt Wrapper for Bluez
Group:          Development/Libraries/C and C++
Requires:       libbluedevil1 = %{version}

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


%package -n libbluedevil1

Summary:        Qt Wrapper for Bluez
Group:          System/Libraries

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


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

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  %kde_post_install

%clean
rm -rf %{buildroot}

%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)
%{_includedir}/bluedevil/
%{_libdir}/libbluedevil.so
%{_libdir}/pkgconfig/bluedevil.pc

%changelog
openSUSE Build Service is sponsored by