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