Name: libsysstat
Version: 0.1.0
Release: 1%{?dist}
License: GPLv2 and LGPLv2+
Summary: Library used to query system info and statistics
Url: http://www.lxde.org
Source: https://github.com/lxde/libsysstat/archive/%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(QtCore)
%description
Library used to query system info and statistics
%package devel
Summary: Devel files for libsysstat
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig
%description devel
sysstat libraries for development
%prep
%setup -q
%build
mkdir build
pushd build
%cmake ..
make %{?_smp_mflags}
popd
%install
pushd build
%make_install
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc AUTHORS COPYING
%{_libdir}/%{name}.so.*
%files devel
%dir %{_includedir}/sysstat
%dir %{_datadir}/cmake/sysstat/
%{_includedir}/sysstat/*
%{_datadir}/cmake/sysstat/*
%{_libdir}/pkgconfig/sysstat.pc
%{_libdir}/%{name}.so
%changelog
* Fri Sep 26 2014 TI_Eugene <ti.eugene@gmail.com> - 0.1.0-1
- Initial packaging