]>
Commit | Line | Data |
---|---|---|
45c5ce43 WF |
1 | # |
2 | # Conditional build: | |
3 | # | |
158785bc | 4 | %define qtver 5.3.1 |
45c5ce43 WF |
5 | |
6 | Summary: lxqt-powermanagement | |
7 | Name: lxqt-powermanagement | |
158785bc | 8 | Version: 0.8.0 |
9 | Release: 0.2 | |
45c5ce43 WF |
10 | License: GPLv2 and LGPL-2.1+ |
11 | Group: X11/Applications | |
158785bc | 12 | Source0: http://lxqt.org/downloads/lxqt/%{version}/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 3dfb506a077a36b822389f4679c824c9 | |
45c5ce43 | 14 | URL: http://www.lxqt.org/ |
158785bc | 15 | BuildRequires: Qt5Svg-devel >= %{qtver} |
45c5ce43 | 16 | BuildRequires: cmake >= 2.8.3 |
158785bc | 17 | BuildRequires: liblxqt-devel >= 0.8.0 |
45c5ce43 WF |
18 | BuildRequires: libqtxdg-devel >= 0.5.3 |
19 | BuildRequires: libxcb-devel | |
20 | BuildRequires: xz-devel | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | lxqt-powermanagement. | |
25 | ||
26 | %prep | |
158785bc | 27 | %setup -q |
45c5ce43 WF |
28 | |
29 | %build | |
30 | install -d build | |
31 | cd build | |
32 | %cmake \ | |
158785bc | 33 | -DUSE_QT5=ON \ |
45c5ce43 WF |
34 | ../ |
35 | ||
36 | %{__make} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %{__make} -C build install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %attr(755,root,root) %{_bindir}/lxqt-config-powermanagement | |
50 | %attr(755,root,root) %{_bindir}/lxqt-powermanagement | |
51 | %{_desktopdir}/lxqt-config-powermanagement.desktop | |
52 | %{_iconsdir}/hicolor/scalable/devices/laptop-lid.svg |