]>
Commit | Line | Data |
---|---|---|
269263f1 SP |
1 | Summary: a Free NoMachine (NX) client |
2 | Name: freenx-client | |
3 | Version: 0.9 | |
4 | Release: 0.1 | |
5 | License: GPL v2 or later | |
6 | Group: System/X11/Utilities | |
d02ba9f3 | 7 | Patch0: %{name}-keypath.patch |
269263f1 SP |
8 | URL: http://freenx.berlios.de/ |
9 | BuildRequires: doxygen | |
10 | BuildRequires: libnxcl-devel | |
11 | BuildRequires: QtGui-devel >= 4.4.0 | |
12 | BuildRequires: QtXml-devel >= 4.4.0 | |
13 | BuildRequires: QtCore-devel >= 4.4.0 | |
231cf91d | 14 | BuildRequires: qt4-qmake >= 4.4.0 |
15 | BuildRequires: qt4-build >= 4.4.0 | |
3bc5826e | 16 | Requires(post,postun): desktop-file-utils |
17 | Requires(post,postun): hicolor-icon-theme | |
18 | Requires(post,postun): shared-mime-info | |
269263f1 | 19 | Source0: http://download.berlios.de/freenx/freenx-client-%{version}.tar.bz2 |
3bc5826e | 20 | Source1: %{name}.desktop |
21 | Source2: %{name}.svg | |
269263f1 SP |
22 | # Source0-md5: 777b3cda7a245e3870d4870a9460cb73 |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | ||
26 | %description | |
27 | This is a free implementation of a NX session client. | |
28 | ||
29 | %prep | |
30 | %setup -q | |
d02ba9f3 | 31 | %patch0 -p1 |
269263f1 SP |
32 | |
33 | %build | |
34 | cd qtnx | |
35 | qmake-qt4 | |
36 | %{__make} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | install -d $RPM_BUILD_ROOT%{_bindir} | |
42 | install qtnx/qtnx $RPM_BUILD_ROOT%{_bindir} | |
d02ba9f3 | 43 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
44 | install qtnx/id.key $RPM_BUILD_ROOT%{_datadir}/%{name}/default.key | |
3bc5826e | 45 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/ |
46 | install %{SOURCE2} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/ | |
47 | install -d $RPM_BUILD_ROOT%{_datadir}/applications/ | |
48 | install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop | |
269263f1 SP |
49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
3bc5826e | 53 | %post |
54 | %update_desktop_database_post | |
55 | %update_mime_database | |
56 | %update_icon_cache hicolor | |
57 | ||
58 | %postun | |
59 | %update_desktop_database_postun | |
60 | %update_mime_database | |
61 | %update_icon_cache hicolor | |
62 | ||
269263f1 SP |
63 | %files |
64 | %defattr(644,root,root,755) | |
65 | %attr(755,root,root) %{_bindir}/qtnx | |
d02ba9f3 | 66 | %dir %{_datadir}/%{name} |
67 | %{_datadir}/%{name}/*.key | |
3bc5826e | 68 | %{_iconsdir}/*/*/apps/%{name}.svg |
69 | %{_datadir}/applications/%{name}.desktop |