3 Summary: A free (GPL) implementation of the NX server
4 Summary(pl.UTF-8): Darmowa (GPL) imlementacja serwera NX
9 Group: X11/Applications/Networking
10 Source0: http://download.berlios.de/freenx/%{name}-%{version}.tar.gz
11 # Source0-md5: 961913bb82ee6e60d8df6f10e647bda9
13 Patch0: freenx-node-conf.patch
14 Patch1: %{name}-nx-3.2.0.patch
15 URL: http://freenx.berlios.de/
16 BuildRequires: sed >= 4.0
17 Requires(postun): /usr/sbin/userdel
18 Requires(pre): /bin/id
19 Requires(pre): /usr/sbin/useradd
25 Requires: openssh-clients
26 Requires: openssh-server
27 Requires: openssl-tools
29 Requires: xorg-app-sessreg
30 Requires: xorg-app-xauth
31 Requires: xorg-app-xmessage
32 Requires: xorg-lib-libXcomposite
33 Suggests: cups-backend-smb
34 Suggests: gnome-session
35 Suggests: kdebase-desktop
36 Suggests: openssl-tools
38 Suggests: samba-clients
39 Suggests: xorg-app-sessreg
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 NoMachine NX is the next-generation X compression and roundtrip
48 suppression scheme. It can operate remote X11 sessions over 56k modem
49 dialup links or anything better.
51 This package contains a free (GPL) implementation of the nxserver
54 %description -l pl.UTF-8
55 NoMachine NX to schemat kompresji dla X nowej generacji. Działa na
56 zdalnych sesjach X11 nawet przy prędkości 56k i na każdej szybszej.
58 Ten pakiet zawiera darmową (GPL) implementację komponentu nxserwer.
65 %if "%{_lib}" == "lib64"
66 %{__sed} -i -e 's/PATH_LIB=$NX_DIR\/lib/PATH_LIB=$NX_DIR\/lib64/' nxloadconfig
72 # THIS ALL IS BROKEN. create .patch next time.
73 #sed -i -e 's#useradd -d $NX_HOME_DIR -s $(which nxserver) nx#useradd -d $NX_HOME_DIR -u 138 -s $(which nxserver) nx#g' nxsetup
74 #sed -i -e 's#NX_HOME_DIR=/home/.nx/#NX_HOME_DIR=%{_sysconfdir}/nxserver/#g' nxserver
75 #sed -i -e 's#netcat#nc#g' nxserver
76 #sed -i -e 's#export PATH#export LD_LIBRARY_PATH=%{_libdir}/NX/lib\nexport PATH#g' nxnode
79 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT%{_bindir}
82 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
83 install -d $RPM_BUILD_ROOT%{_sysconfdir}/nxserver
84 install node.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/nxserver/node.conf
85 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/freenx
87 install nxcheckload.sample $RPM_BUILD_ROOT%{_bindir}/nxcheckload
88 install nxcups-gethost nxdesktop_helper nxdialog nxkeygen nxloadconfig nxnode nxnode-login nxprint nxserver nxserver-helper/nxserver-helper nxsetup nxviewer_helper nxviewer-passwd/nxpasswd/nxpasswd $RPM_BUILD_ROOT%{_bindir}
91 rm -rf $RPM_BUILD_ROOT
94 %useradd -u 160 -d %{_sysconfdir}/nxserver -s %{_bindir}/nxserver -g users -c "FreeNX User" nx
97 /sbin/chkconfig --add freenx
98 %service freenx restart
101 if [ "$1" = "0" ]; then
103 /sbin/chkconfig --del freenx
107 if [ "$1" = "0" ]; then
112 %defattr(644,root,root,755)
113 %doc AUTHORS CONTRIB ChangeLog
114 %attr(755,root,root) %{_bindir}/*
115 %dir %{_sysconfdir}/nxserver
116 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nxserver/node.conf
117 %attr(754,root,root) /etc/rc.d/init.d/freenx