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 http://bugs.opensuse.org/
#
Url: http://www.kde.org
%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
Source0: http://download.kde.org/unstable/modemmanager-qt/%{version}/src/libmm-qt-%{version}-1.tar.xz
BuildRequires: cmake
BuildRequires: kde4-filesystem
BuildRequires: libqt4-devel
BuildRequires: pkgconfig(ModemManager) >= 0.8
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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.
%prep
%setup -q -n libmm-qt-%{version}
%build
%cmake_kde4 -d build -- -DCMAKE_CXX_FLAGS_RELEASE="%optflags"
%make_jobs
%install
%makeinstall -C build
%post -n libModemManagerQt%{soversion} -p /sbin/ldconfig
%postun -n libModemManagerQt%{soversion} -p /sbin/ldconfig
%files -n libModemManagerQt%{soversion}
%defattr(-,root,root)
%doc README COPYING.LIB
%{_libdir}/libModemManagerQt.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/libModemManagerQt.so
%{_includedir}/ModemManagerQt/
%{_libdir}/pkgconfig/ModemManagerQt.pc
%changelog