File libModemManagerQt.spec of Package libModemManagerQt

# spec file for package libModemManagerQt
# Copyright (c) 2014 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

%define soversion 0

Name:           libModemManagerQt
Version:        1.0.1
Release:        0
Summary:        Qt wrapper for ModemManager DBus API
License:        LGPL-2.1 or LGPL-3.0
Group:          System/GUI/KDE
BuildRequires:  cmake
BuildRequires:  kde4-filesystem
BuildRequires:  libqt4-devel
BuildRequires:  pkgconfig(ModemManager) >= 0.8
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Qt wrapper for ModemManager DBus API.

%package devel
Summary:        Development package for the libmm-qt library
Group:          Development/Libraries/KDE
Requires:       libModemManagerQt%{soversion} = %{version}
Requires:       pkgconfig(ModemManager) >= 0.8

%description devel
Qt wrapper for ModemManager DBus API.

%package -n libModemManagerQt%{soversion}
Summary:        Qt wrapper around the ModemManager libraries
Group:          Development/Libraries/KDE

%description -n libModemManagerQt%{soversion}
Qt wrapper for ModemManager DBus API.

%setup -q -n libmm-qt-%{version}

  %cmake_kde4 -d build -- -DCMAKE_CXX_FLAGS_RELEASE="%optflags"

  %makeinstall -C build

%post -n libModemManagerQt%{soversion} -p /sbin/ldconfig
%postun -n libModemManagerQt%{soversion} -p /sbin/ldconfig

%files -n libModemManagerQt%{soversion}

%files devel