]>
Commit | Line | Data |
---|---|---|
ce40b2eb WF |
1 | # |
2 | # Conditional build: | |
3 | # | |
4 | %define qtver 4.8.5 | |
5 | ||
6 | Summary: lxqt-common | |
7 | Name: lxqt-common | |
8 | Version: 0.7.0 | |
09ec2100 | 9 | Release: 0.2 |
ce40b2eb WF |
10 | License: GPLv2 and LGPL-2.1+ |
11 | Group: X11/Applications | |
12 | Source0: http://lxqt.org/downloads/lxqt/0.7.0/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: f1a64db07d04f686b584cc8952479910 | |
09ec2100 | 14 | Patch0: startlxqt.patch |
ce40b2eb WF |
15 | URL: http://www.lxqt.org/ |
16 | BuildRequires: cmake >= 2.8.3 | |
17 | BuildRequires: xz-devel | |
18 | Requires: liblxqt >= 0.7.0 | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | lxqt-common. | |
24 | ||
25 | %prep | |
26 | %setup -q -c %{name}-%{version} | |
09ec2100 | 27 | %patch0 -p1 |
ce40b2eb WF |
28 | |
29 | %build | |
30 | install -d build | |
31 | cd build | |
32 | %cmake \ | |
33 | ../ | |
34 | ||
35 | %{__make} | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/sessions | |
40 | ||
41 | %{__make} -C build install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | cp -a $RPM_BUILD_ROOT/usr/share/xsessions/*.desktop $RPM_BUILD_ROOT%{_sysconfdir}/X11/sessions/ | |
45 | rm -rf $RPM_BUILD_ROOT/usr/share/xsessions | |
46 | rm -rf $RPM_BUILD_ROOT/usr/share/apps/kdm | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %attr(755,root,root) %{_bindir}/startlxqt | |
54 | %{_datadir}/lxqt/graphics | |
55 | %dir %{_sysconfdir}/qt4/lxqt | |
56 | %{_sysconfdir}/qt4/lxqt/*.conf | |
57 | %{_datadir}/lxqt/openbox | |
58 | %dir %{_sysconfdir}/qt4/pcmanfm-qt | |
59 | %dir %{_sysconfdir}/qt4/pcmanfm-qt/lxqt | |
60 | %{_sysconfdir}/qt4/pcmanfm-qt/lxqt/*.conf | |
61 | %{_sysconfdir}/xdg/autostart/lxqt*.desktop | |
62 | %{_sysconfdir}/X11/sessions/lxqt.desktop | |
63 | %dir %{_datadir}/lxqt/themes | |
64 | %{_datadir}/lxqt/themes/ambiance | |
65 | %{_datadir}/lxqt/themes/a-mego | |
66 | %{_datadir}/lxqt/themes/light | |
67 | %{_datadir}/lxqt/themes/flat | |
68 | %{_datadir}/lxqt/themes/green |