File libKF5NetworkManagerQt.spec of Package libKF5NetworkManagerQt
#
# spec file for package libKF5NetworkManagerQt
#
# 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 5
Name: libKF5NetworkManagerQt
Version: 5.1.0
Release: 0
Summary: A qt wrapper around the NetworkManager libraries
License: LGPL-2.1 or LGPL-3.0
Group: System/GUI/KDE
Source0: libnm-qt-%{version}.1.tar.xz
BuildRequires: NetworkManager-devel >= 0.9.8.4
BuildRequires: cmake
BuildRequires: extra-cmake-modules >= 0.0.12
BuildRequires: kf5-filesystem
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
BuildRequires: pkgconfig(Qt5Network) >= 5.2.0
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
#BuildRequires: libKF5ModemManagerQt-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Qt5 wrapper around the NetworkManager libraries.
%package devel
Summary: Qt Wrapper for NetworkManager libraries
Group: Development/Libraries/KDE
Requires: libKF5NetworkManagerQt%{soversion} = %{version}
Requires: pkgconfig(Qt5Core) >= 5.2.0
Requires: pkgconfig(Qt5DBus) >= 5.2.0
Requires: pkgconfig(Qt5Network) >= 5.2.0
%description devel
Qt5 wrapper around the NetworkManager libraries. Development files.
%package -n libKF5NetworkManagerQt%{soversion}
Summary: Qt Wrapper for NetworkManager libraries
Group: Development/Libraries/KDE
%description -n libKF5NetworkManagerQt%{soversion}
Qt5 wrapper around the NetworkManager libraries.
%prep
%setup -q -n libnm-qt-%{version}
%build
%cmake_kf5 -d build -- -DDISABLE_TESTING=ON
%make_jobs
%install
%kf5_makeinstall -C build
%post -n libKF5NetworkManagerQt%{soversion} -p /sbin/ldconfig
%postun -n libKF5NetworkManagerQt%{soversion} -p /sbin/ldconfig
%files -n libKF5NetworkManagerQt%{soversion}
%defattr(-,root,root)
%doc COPYING.LIB
%{_kf5_libdir}/libKF5NetworkManagerQt.so.*
%files devel
%defattr(-,root,root)
%{_kf5_libdir}/libKF5NetworkManagerQt.so
%{_kf5_includedir}/NetworkManagerQt/
%{_kf5_includedir}/*.h
%{_kf5_libdir}/cmake/KF5NetworkManagerQt/
%{_kf5_mkspecsdir}/qt_NetworkManagerQt.pri
%changelog