/[packages]/cauldron/libsysstat/current/SPECS/libsysstat.spec
ViewVC logotype

Contents of /cauldron/libsysstat/current/SPECS/libsysstat.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 816433 - (show annotations) (download)
Sun Feb 22 14:34:27 2015 UTC (9 years, 2 months ago) by doktor5000
File size: 1849 byte(s)
- new version 0.3.0
  o manually fix minor version in CMakeLists.txt, oversight upstream
- remove conditional handling for QT5 as QT4 is not supported anymore
- adjusted BuildRequires from pkgconfig(lxqt-qt5) to pkgconfig(lxqt)
- use new URL http://downloads.lxqt.org/lxqt/
- updated file list (SILENT)
1 %define major 0
2
3 #define scmrev 0
4 %define libname %mklibname sysstat %{major}
5 %define devname %mklibname sysstat -d
6
7 %define rel 1
8
9 Name: libsysstat
10 Version: 0.3.0
11 %if 0%{?scmrev:1}
12 # rm -rf libsysstat && git clone git://git.lxde.org/git/lxde/libsysstat && cd libsysstat/
13 # git archive --prefix=libsysstat-$(date +%Y%m%d)/ --format=tar HEAD | xz > ../libsysstat-$(date +%Y%m%d).tar.xz
14 Release: %mkrel -c %{scmrev} %rel
15 Source0: %{name}-%{scmrev}.tar.xz
16 %else
17 Release: %mkrel %rel
18 Source0: http://downloads.lxqt.org/%{name}/%{version}/%{name}-%{version}.tar.xz
19 %endif
20
21 Summary: System status library for LXQt
22 URL: http://lxqt.org/
23 License: LGPLv2+
24 Group: System/Libraries
25 BuildRequires: cmake
26 BuildRequires: pkgconfig(Qt5Help)
27
28
29 %description
30 System status library for LXQt
31
32 %package -n %{libname}
33 Summary: System status library for LXQt
34 Group: System/Libraries
35 Obsoletes: %{_lib}razorsysstat0 < 0.5.4
36
37 %description -n %{libname}
38 System status library for LXQt
39
40 %package -n %{devname}
41 Summary: Development files for %{name}
42 Group: Development/C
43 Requires: %libname = %version
44 Provides: %name-devel = %version-%release
45 %if %mgaversion < 5
46 Provides: pkgconfig(sysstat-qt5)
47 %endif
48 Obsoletes: %{_lib}razorsysstat-devel < 0.5.4
49
50 %description -n %{devname}
51 Development files (Headers etc.) for %{name}.
52
53 %prep
54 %if 0%{?scmrev:1}
55 %setup -q -n %{name}-%{scmrev}
56 %else
57 %setup -q
58 %endif
59
60 # fix name and minor version
61 #sed -i 's|-qt5||g' CMakeLists.txt
62 sed -i 's|set(MINOR_VERSION 2)|set(MINOR_VERSION 3)|g' CMakeLists.txt
63
64 %cmake
65
66
67 %build
68 %make -C build
69
70 %install
71 %makeinstall_std -C build
72
73 #sed -i 's|Version: 0.2.0|Version: %{version}|g' %buildroot%{_datadir}/cmake/sysstat-qt5/sysstat-qt5-config.cmake
74
75 %files -n %{libname}
76 %{_libdir}/*.so.%{major}*
77
78 %files -n %{devname}
79 %{_includedir}/*
80 %{_libdir}/*.so
81 %{_libdir}/pkgconfig/*
82 %{_datadir}/cmake/sysstat-qt5
83

  ViewVC Help
Powered by ViewVC 1.1.30