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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 816432 by doktor5000, Tue Dec 16 23:27:05 2014 UTC revision 816433 by doktor5000, Sun Feb 22 14:34:27 2015 UTC
# Line 1  Line 1 
 %define qt5 1  
   
1  %define major 0  %define major 0
2    
3  #define scmrev 0  #define scmrev 0
4  %define libname %mklibname sysstat %{major}  %define libname %mklibname sysstat %{major}
5  %define devname %mklibname sysstat -d  %define devname %mklibname sysstat -d
6    
7  %define rel 3  %define rel 1
8    
9  Name: libsysstat  Name: libsysstat
10  Version: 0.2.0  Version: 0.3.0
11  %if 0%{?scmrev:1}  %if 0%{?scmrev:1}
12  # rm -rf libsysstat && git clone git://git.lxde.org/git/lxde/libsysstat && cd libsysstat/  # 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  # git archive --prefix=libsysstat-$(date +%Y%m%d)/ --format=tar HEAD | xz > ../libsysstat-$(date +%Y%m%d).tar.xz
# Line 17  Release: %mkrel -c %{scmrev} %rel Line 15  Release: %mkrel -c %{scmrev} %rel
15  Source0: %{name}-%{scmrev}.tar.xz  Source0: %{name}-%{scmrev}.tar.xz
16  %else  %else
17  Release: %mkrel %rel  Release: %mkrel %rel
18  Source0: http://lxqt.org/downloads/%{name}/%{version}/%{name}-%{version}.tar.xz  Source0: http://downloads.lxqt.org/%{name}/%{version}/%{name}-%{version}.tar.xz
19  %endif  %endif
20    
21  Summary: System status library for LXQt  Summary: System status library for LXQt
# Line 25  URL: http://lxqt.org/ Line 23  URL: http://lxqt.org/
23  License: LGPLv2+  License: LGPLv2+
24  Group: System/Libraries  Group: System/Libraries
25  BuildRequires: cmake  BuildRequires: cmake
 %if "%{qt5}" == "1"  
26  BuildRequires: pkgconfig(Qt5Help)  BuildRequires: pkgconfig(Qt5Help)
27  %else  
 BuildRequires: qt4-devel  
 %endif  
28    
29  %description  %description
30  System status library for LXQt  System status library for LXQt
# Line 59  Development files (Headers etc.) for %{n Line 54  Development files (Headers etc.) for %{n
54  %if 0%{?scmrev:1}  %if 0%{?scmrev:1}
55  %setup -q -n %{name}-%{scmrev}  %setup -q -n %{name}-%{scmrev}
56  %else  %else
57  %setup -q -n %{name}  %setup -q
58  %endif  %endif
59  %if "%{qt5}" == "1"  
60  %cmake -DUSE_QT5=ON  # fix name and minor version
61  %else  #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  %cmake
65  %endif  
66    
67  %build  %build
68  %make -C build  %make -C build
# Line 73  Development files (Headers etc.) for %{n Line 70  Development files (Headers etc.) for %{n
70  %install  %install
71  %makeinstall_std -C build  %makeinstall_std -C build
72    
73  sed -i 's|/usr//usr/|/usr/|g' %buildroot%{_datadir}/cmake/sysstat-qt5/sysstat-qt5-config.cmake  #sed -i 's|Version: 0.2.0|Version: %{version}|g' %buildroot%{_datadir}/cmake/sysstat-qt5/sysstat-qt5-config.cmake
74    
75  %files -n %{libname}  %files -n %{libname}
76  %{_libdir}/*.so.%{major}*  %{_libdir}/*.so.%{major}*
# Line 82  sed -i 's|/usr//usr/|/usr/|g' %buildroot Line 79  sed -i 's|/usr//usr/|/usr/|g' %buildroot
79  %{_includedir}/*  %{_includedir}/*
80  %{_libdir}/*.so  %{_libdir}/*.so
81  %{_libdir}/pkgconfig/*  %{_libdir}/pkgconfig/*
 %if "%{qt5}" == "1"  
82  %{_datadir}/cmake/sysstat-qt5  %{_datadir}/cmake/sysstat-qt5
 %else  
 %{_datadir}/cmake/sysstat  
 %endif  
83    

Legend:
Removed from v.816432  
changed lines
  Added in v.816433

  ViewVC Help
Powered by ViewVC 1.1.28