File libsysstat-qt5.spec of Package libsysstat-qt5

# spec file for package libsysstat-qt5
# Copyright (c) 2015 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

%define         _name libsysstat
Name:           libsysstat-qt5
Version:        0.4.0
Release:        0
Summary:        Query system info and statistics
License:        LGPL-2.1+
Group:          Development/Libraries/C and C++
Source2:        libsysstat-qt5.keyring
BuildRequires:  cmake >= 3.0.2
BuildRequires:  gcc-c++
BuildRequires:  lxqt-build-tools-devel >= 0.4.0
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  pkgconfig(Qt5Core) >= 5.4.2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Library used to query system info and statistics

%package -n libsysstat-qt5-0
Summary:        Libraries for lxqt
Group:          System/Libraries
Provides:       libsysstat

%description -n libsysstat-qt5-0
Development libraries for libsysstat

%package devel
Summary:        Devel files for libsysstat
Group:          Development/Libraries/C and C++
Requires:       libsysstat-qt5-0 = %{version}
Requires:       pkgconfig

%description devel
sysstat libraries for development

%setup -q -n %{_name}-%{version}

%cmake -DUSE_QT5=ON
%__make %{?_smp_mflags}


%post -n libsysstat-qt5-0 -p /sbin/ldconfig

%postun -n libsysstat-qt5-0 -p /sbin/ldconfig

%files -n libsysstat-qt5-0

%files devel
%defattr (-,root,root)