]>
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 | |
7a144c8a | 8 | Version: 0.11.0 |
d4f342ef | 9 | Release: 1 |
45c5ce43 WF |
10 | License: GPLv2 and LGPL-2.1+ |
11 | Group: X11/Applications | |
d4f342ef | 12 | Source0: http://downloads.lxqt.org/lxqt/%{version}/%{name}-%{version}.tar.xz |
7a144c8a | 13 | # Source0-md5: cde27ffc5e8000e9ba927321e5f0ba20 |
45c5ce43 | 14 | URL: http://www.lxqt.org/ |
158785bc | 15 | BuildRequires: Qt5Svg-devel >= %{qtver} |
45c5ce43 | 16 | BuildRequires: cmake >= 2.8.3 |
84d92dc3 | 17 | BuildRequires: kf5-solid-devel |
7a144c8a WF |
18 | BuildRequires: liblxqt-devel >= 0.11.0 |
19 | BuildRequires: libqtxdg-devel >= 2.0.0 | |
45c5ce43 WF |
20 | BuildRequires: libxcb-devel |
21 | BuildRequires: xz-devel | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | lxqt-powermanagement. | |
26 | ||
27 | %prep | |
158785bc | 28 | %setup -q |
45c5ce43 WF |
29 | |
30 | %build | |
31 | install -d build | |
32 | cd build | |
33 | %cmake \ | |
7a144c8a | 34 | -DPULL_TRANSLATIONS:BOOL=OFF \ |
45c5ce43 WF |
35 | ../ |
36 | ||
37 | %{__make} | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %{__make} -C build install \ | |
43 | DESTDIR=$RPM_BUILD_ROOT | |
44 | ||
7a144c8a | 45 | #%find_lang %{name} --all-name --with-qm |
d4f342ef | 46 | |
45c5ce43 WF |
47 | %clean |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
7a144c8a | 50 | %files |
45c5ce43 WF |
51 | %defattr(644,root,root,755) |
52 | %attr(755,root,root) %{_bindir}/lxqt-config-powermanagement | |
53 | %attr(755,root,root) %{_bindir}/lxqt-powermanagement | |
54 | %{_desktopdir}/lxqt-config-powermanagement.desktop | |
55 | %{_iconsdir}/hicolor/scalable/devices/laptop-lid.svg | |
7a144c8a WF |
56 | #%dir %{_datadir}/lxqt/translations/lxqt-config-powermanagement |
57 | #%dir %{_datadir}/lxqt/translations/lxqt-powermanagement |