1 Summary: a Free NoMachine (NX) client
5 License: GPL v2 or later
6 Group: X11/Applications/Networking
7 Patch0: %{name}-keypath.patch
8 URL: http://freenx.berlios.de/
9 BuildRequires: QtCore-devel >= 4.4.0
10 BuildRequires: QtGui-devel >= 4.4.0
11 BuildRequires: QtXml-devel >= 4.4.0
12 BuildRequires: libnxcl-devel
13 BuildRequires: pkgconfig
14 BuildRequires: qt4-build >= 4.4.0
15 BuildRequires: qt4-qmake >= 4.4.0
16 Requires(post,postun): desktop-file-utils
17 Requires(post,postun): gtk-update-icon-cache
18 Requires(post,postun): hicolor-icon-theme
19 Requires(post,postun): shared-mime-info
20 Requires: nx >= 3.5.0-2
21 Source0: http://download.berlios.de/freenx/%{name}-%{version}.tar.bz2
22 Source1: %{name}.desktop
24 # Source0-md5: 777b3cda7a245e3870d4870a9460cb73
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This is a free implementation of a NX session client.
41 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_bindir}
44 install qtnx/qtnx $RPM_BUILD_ROOT%{_bindir}
45 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
46 install qtnx/id.key $RPM_BUILD_ROOT%{_datadir}/%{name}/default.key
47 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/
48 install %{SOURCE2} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/
49 install -d $RPM_BUILD_ROOT%{_desktopdir}/
50 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
53 rm -rf $RPM_BUILD_ROOT
56 %update_desktop_database_post
58 %update_icon_cache hicolor
61 %update_desktop_database_postun
63 %update_icon_cache hicolor
66 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_bindir}/qtnx
68 %dir %{_datadir}/%{name}
69 %{_datadir}/%{name}/*.key
70 %{_iconsdir}/*/*/apps/%{name}.svg
71 %{_desktopdir}/%{name}.desktop