File libKF5ModemManagerQt.spec of Package libKF5ModemManagerQt
#
# spec file for package libKF5ModemManagerQt
#
# Copyright (c) 2017 SUSE LINUX 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 6
%define _tar_path 5.32
Name: libKF5ModemManagerQt
Version: 5.32.0
Release: 0
Summary: Qt wrapper for ModemManager DBus API
License: LGPL-2.1 or LGPL-3.0
Group: System/GUI/KDE
Url: http://www.kde.org
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/modemmanager-qt-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: extra-cmake-modules >= %{_tar_path}
BuildRequires: kf5-filesystem
BuildRequires: cmake(Qt5Core) >= 5.6.0
BuildRequires: cmake(Qt5DBus) >= 5.6.0
BuildRequires: cmake(Qt5Xml) >= 5.6.0
BuildRequires: pkgconfig(ModemManager) >= 1.0.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Qt5 wrapper for ModemManager DBus API.
%package devel
Summary: Development package for the libmm-qt library
Group: Development/Libraries/KDE
Requires: libKF5ModemManagerQt%{soversion} = %{version}
Requires: cmake(Qt5Core) >= 5.6.0
Requires: cmake(Qt5DBus) >= 5.6.0
Requires: cmake(Qt5Xml) >= 5.6.0
Requires: pkgconfig(ModemManager) >= 1.0.0
%description devel
Qt5 wrapper for ModemManager DBus API. Development files.
%package -n libKF5ModemManagerQt%{soversion}
Summary: Qt wrapper around the ModemManager libraries
Group: Development/Libraries/KDE
%description -n libKF5ModemManagerQt%{soversion}
Qt5 wrapper for ModemManager DBus API.
%prep
%setup -q -n modemmanager-qt-%{version}
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%post -n libKF5ModemManagerQt%{soversion} -p /sbin/ldconfig
%postun -n libKF5ModemManagerQt%{soversion} -p /sbin/ldconfig
%files -n libKF5ModemManagerQt%{soversion}
%defattr(-,root,root)
%doc README COPYING.LIB
%{_kf5_libdir}/libKF5ModemManagerQt.so.*
%files devel
%defattr(-,root,root)
%{_kf5_libdir}/libKF5ModemManagerQt.so
%{_kf5_includedir}/ModemManagerQt/
%{_kf5_includedir}/*.h
%{_kf5_libdir}/cmake/KF5ModemManagerQt/
%{_kf5_mkspecsdir}/qt_ModemManagerQt.pri
%changelog