File libNetworkManagerQt.spec of Package libNetworkManagerQt
#
# spec file for package libNetworkManagerQt
#
# 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 1
Name: libNetworkManagerQt
Version: 0.9.8.3
Release: 0
Summary: A qt wrapper around the NetworkManager libraries
License: LGPL-2.1 or LGPL-3.0
Group: System/GUI/KDE
Source0: http://download.kde.org/unstable/networkmanager-qt/%{version}/src/libnm-qt-%{version}-1.tar.xz
BuildRequires: NetworkManager-devel >= 0.9.8.4
BuildRequires: cmake
BuildRequires: kde4-filesystem
BuildRequires: libModemManagerQt-devel
BuildRequires: libqt4-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A qt wrapper around the NetworkManager libraries
%package devel
Summary: Qt Wrapper for NetworkManager libraries
Group: Development/Libraries/KDE
Requires: libModemManagerQt-devel
Requires: libNetworkManagerQt%{soversion} = %{version}
%description devel
A qt wrapper around the NetworkManager libraries
%package -n libNetworkManagerQt%{soversion}
Summary: Qt Wrapper for NetworkManager libraries
Group: Development/Libraries/KDE
Requires: NetworkManager >= 0.9.8.0
%description -n libNetworkManagerQt%{soversion}
A qt wrapper around the NetworkManager libraries
%prep
%setup -q -n libnm-qt-%{version}
%build
%cmake_kde4 -d build -- -DDISABLE_TESTING=ON
%make_jobs
%install
%makeinstall -C build
%kde_post_install
%post -n libNetworkManagerQt%{soversion} -p /sbin/ldconfig
%postun -n libNetworkManagerQt%{soversion} -p /sbin/ldconfig
%files -n libNetworkManagerQt%{soversion}
%defattr(-,root,root)
%doc COPYING.LIB
%{_libdir}/libNetworkManagerQt.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/NetworkManagerQt/
%{_libdir}/libNetworkManagerQt.so
%{_libdir}/pkgconfig/NetworkManagerQt.pc
%changelog