]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | # | |
4 | %define qtver 5.3.1 | |
5 | ||
6 | Summary: lxqt-config | |
7 | Name: lxqt-config | |
8 | Version: 0.11.0 | |
9 | Release: 1 | |
10 | License: GPLv2 and LGPL-2.1+ | |
11 | Group: X11/Applications | |
12 | Source0: http://downloads.lxqt.org/lxqt/%{version}/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: e50bf87b509ec57281cda154b272392c | |
14 | URL: http://www.lxqt.org/ | |
15 | BuildRequires: Qt5Concurrent-devel >= %{qtver} | |
16 | BuildRequires: Qt5Svg-devel >= %{qtver} | |
17 | BuildRequires: cmake >= 2.8.3 | |
18 | BuildRequires: kp5-libkscreen-devel | |
19 | BuildRequires: liblxqt-devel >= 0.11.0 | |
20 | BuildRequires: libqtxdg-devel >= 2.0.0 | |
21 | BuildRequires: xz-devel | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | lxqt-config | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %build | |
31 | install -d build | |
32 | cd build | |
33 | %cmake \ | |
34 | -DPULL_TRANSLATIONS=OFF \ | |
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 | ||
45 | #%find_lang %{name} --all-name --with-qm | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %{_sysconfdir}/xdg/menus/lxqt-config.menu | |
53 | %attr(755,root,root) %{_bindir}/lxqt-config | |
54 | %attr(755,root,root) %{_bindir}/lxqt-config-appearance | |
55 | %attr(755,root,root) %{_bindir}/lxqt-config-file-associations | |
56 | %attr(755,root,root) %{_bindir}/lxqt-config-input | |
57 | %attr(755,root,root) %{_bindir}/lxqt-config-locale | |
58 | %attr(755,root,root) %{_bindir}/lxqt-config-monitor | |
59 | %dir %{_libdir}/lxqt-config | |
60 | %attr(755,root,root) %{_libdir}/lxqt-config/liblxqt-config-cursor.so | |
61 | %{_desktopdir}/lxqt-config-appearance.desktop | |
62 | %{_desktopdir}/lxqt-config-file-associations.desktop | |
63 | %{_desktopdir}/lxqt-config-input.desktop | |
64 | %{_desktopdir}/lxqt-config-locale.desktop | |
65 | %{_desktopdir}/lxqt-config.desktop | |
66 | %{_desktopdir}/lxqt-config-monitor.desktop | |
67 | ||
68 | #%dir %{_datadir}/lxqt/translations/lxqt-config | |
69 | #%dir %{_datadir}/lxqt/translations/lxqt-config-appearance | |
70 | #%dir %{_datadir}/lxqt/translations/lxqt-config-cursor | |
71 | #%dir %{_datadir}/lxqt/translations/lxqt-config-file-associations | |
72 | #%dir %{_datadir}/lxqt/translations/lxqt-config-input | |
73 | #%dir %{_datadir}/lxqt/translations/lxqt-config-monitor | |
74 | ||
75 | %attr(755,root,root) %{_bindir}/lxqt-config-brightness | |
76 | %{_desktopdir}/lxqt-config-brightness.desktop | |
77 | %{_iconsdir}/hicolor/48x48/apps/brightnesssettings.svg | |
78 | %{_datadir}/lxqt/icons/monitor.svg |