]> git.pld-linux.org Git - packages/libsysstat.git/blob - libsysstat.spec
333aa18f5cdcb5c4a6c41de8b7d159efba16352a
[packages/libsysstat.git] / libsysstat.spec
1 %define         qtver           5.3.1
2
3 Summary:        libsysstat
4 Name:           libsysstat
5 Version:        0.2.0
6 Release:        0.1
7 License:        GPLv2 and LGPL-2.1+
8 Group:          X11/Libraries
9 Source0:        http://lxqt.org/downloads/libsysstat/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  bf404af3e9f5edb414161e30d28b0be5
11 URL:            http://www.lxqt.org/
12 BuildRequires:  Qt5Core-devel >= %{qtver}
13 BuildRequires:  Qt5Gui-devel >= %{qtver}
14 BuildRequires:  Qt5Xml-devel >= %{qtver}
15 BuildRequires:  cmake >= 2.8.3
16 BuildRequires:  xz-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 libsysstat.
21
22 %package devel
23 Summary:        libsysstat - header files and development documentation
24 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja do libsysstat
25 Group:          X11/Development/Libraries
26 Requires:       %{name} = %{version}-%{release}
27 Requires:       Qt5Core-devel >= %{qtver}
28 Requires:       Qt5Gui-devel >= %{qtver}
29 Requires:       Qt5Xml-devel >= %{qtver}
30 Obsoletes:      razor-qt-devel
31
32 %description devel
33 This package contains header files and development documentation for
34 libsysstat.
35
36 %description devel -l pl.UTF-8
37 Pakiet ten zawiera pliki nagłówkowe i dokumentację potrzebną przy
38 pisaniu własnych programów wykorzystujących libsysstat.
39
40 %prep
41 %setup -q -n %{name}
42
43 %build
44 install -d build
45 cd build
46 %cmake \
47     -DUSE_QT5=ON \
48         ../
49
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} -C build install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post   -p /sbin/ldconfig
62 %postun -p /sbin/ldconfig
63
64 %files
65 %defattr(644,root,root,755)
66 %ghost %{_libdir}/libsysstat-qt5.so.0
67 %attr(755,root,root) %{_libdir}/libsysstat-qt5.so.*.*.*
68
69 %files devel
70 %defattr(644,root,root,755)
71 %{_includedir}/sysstat-qt5
72 %{_libdir}/libsysstat-qt5.so
73 %{_pkgconfigdir}/sysstat-qt5.pc
74 %{_datadir}/cmake/sysstat-qt5
This page took 0.063047 seconds and 2 git commands to generate.