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