%define srcname %{name}-libs %define _pkglibdir %{_libdir}/nx %define _pkgincdir %{_includedir}/nx %define _pkgdatadir %{_datadir}/nx %define _pkglibexecdir %{_libexecdir}/nx %define lib_major_xcompext 3 %define lib_name_xcompext %mklibname xcompext %{lib_major_xcompext} %define lib_major_nxx11 0 %define lib_name_nxx11 %mklibname nxX11_ %{lib_major_nxx11} %define lib_major_nxcomp 3 %define lib_name_nxcomp %mklibname xcomp %{lib_major_nxcomp} Name: nx Version: 3.5.0.11 Release: %mkrel 1 Summary: NX core libraries License: GPLv2 Group: Networking/Remote access Url: http://x2go.org/ Source0: http://code.x2go.org/releases/source/%{srcname}/%{srcname}_%{version}-full.tar.gz BuildRequires: autoconf BuildRequires: gcc-c++ BuildRequires: jpeg-devel BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(liblzma) %description NoMachine NX is the next-generation X compression and roundtrip suppression scheme. It can operate remote X11 sessions over 56k modem dialup links or anything better. This package uses the patched and redistributed sources from the x2go project. %package -n %{lib_name_nxx11} Summary: Nx-X11 lib for NX Group: System/Libraries Provides: nxX11 = %{version}-%{release} %description -n %{lib_name_nxx11} NX-X11 lib for the NX framework %package -n %{lib_name_nxcomp} Summary: Xcomp library for NX Group: System/Libraries Provides: xcomp = %{version}-%{release} %description -n %{lib_name_nxcomp} Xcomp library for NX subsystem %package -n %{lib_name_xcompext} Summary: Xcompext/Xcompshad library for NX Group: System/Libraries Provides: xcompext = %{version}-%{release} Provides: xcompshad = %{version}-%{release} %description -n %{lib_name_xcompext} Xcompext and Xcompshad library needed by the NX framework %package -n nxproxy Summary: Provide the protocol compression and caching part of the NX scheme Group: Networking/Remote access %description -n nxproxy The nxproxy runs on the X server side of the wire and thus accompanies the nxagent running on X client side. It provides the protocol compression and caching part of the NX scheme. %package -n nxagent Summary: NX X server based on Xnest Group: Networking/Remote access %description -n nxagent The nxagent is an X server based on Xnest, but modified for the purpose of reducing roundtrips over high-latency networks significantly. It is run on the client side of X, that is, on the machine where X clients run. It connects, over the wire, to your regular X server, possibly through nxproxy. %package -n x2goagent Summary: Wrapper arround nxagent to use with x2goserver Group: Networking/Remote access Requires: nxagent %description -n x2goagent The x2goagent is a wrapper arround nxagent, that is used for running x2goserver %prep %setup -q -n %{srcname}_%{version} %build cat >"tmp_configure" < %{buildroot}%{_bindir}/nxagent << EOF #!/bin/sh LD_LIBRARY_PATH="%{_pkglibdir}:\$LD_LIBRARY_PATH" exec "%{_pkglibexecdir}/nxagent" "\$@" EOF cat > %{buildroot}%{_bindir}/nxauth << EOF #!/bin/sh LD_LIBRARY_PATH="%{_pkglibdir}:\$LD_LIBRARY_PATH" exec "%{_pkglibexecdir}/nxauth" "\$@" EOF cat > %{buildroot}%{_bindir}/nxproxy << EOF #!/bin/sh LD_LIBRARY_PATH="%{_pkglibdir}:\$LD_LIBRARY_PATH" exec "%{_pkglibexecdir}/nxproxy" "\$@" EOF # create x2goagent symlink ln -s %{_bindir}/nxagent %{buildroot}%{_bindir}/x2goagent mkdir -p %{buildroot}%{_datadir}/pixmaps/ mkdir -p %{buildroot}%{_mandir}/man1/ install -pm0644 nx-X11/programs/Xserver/hw/nxagent/x2go.xpm %{buildroot}%{_datadir}/pixmaps/ install -pm0644 nx-X11/programs/Xserver/hw/nxagent/man/x2goagent.1 %{buildroot}%{_mandir}/man1/ install -pm0644 nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1 %{buildroot}%{_mandir}/man1/ install -pm0644 nxproxy/man/nxproxy.1 %{buildroot}%{_mandir}/man1/ #install doc files for i in nxcomp nxcompext nxcompshad nxproxy nx-X11 \ nx-X11/programs/nxauth nx-X11/programs/Xserver/hw/nxagent; do for j in CHANGELOG COPYING LICENSE; do [ -f $i/$j ] && install -Dpm 0644 $i/$j \ %{buildroot}%{_defaultdocdir}/%{name}-%{version}/${i##*/}/$j done done %files -n nxproxy %dir %{_pkglibdir} %dir %{_defaultdocdir}/%{name}-%{version} %{_pkglibdir}/nxproxy %attr(0755,root,root) %{_bindir}/nxproxy %{_mandir}/man1/nxproxy* %doc %{_defaultdocdir}/%{name}-%{version}/nxproxy %files -n nxagent %dir %{_pkglibdir} %dir %{_defaultdocdir}/%{name}-%{version} %{_pkglibdir}/nxagent %attr(0755,root,root) %{_bindir}/nxagent %{_mandir}/man1/nxagent* %doc %{_defaultdocdir}/%{name}-%{version}/nxagent %files -n %{lib_name_nxx11} %dir %{_pkglibdir} %dir %{_defaultdocdir}/%{name}-%{version} %{_pkglibdir}/libNX_freetype*.so.* %{_pkglibdir}/libNX_X11*.so.* %{_pkglibdir}/libNX_Xau*.so.* %{_pkglibdir}/libNX_Xcomposite*.so.* %{_pkglibdir}/libNX_Xdamage*.so.* %{_pkglibdir}/libNX_Xdmcp*.so.* %{_pkglibdir}/libNX_Xext*.so.* %{_pkglibdir}/libNX_Xfixes*.so.* %{_pkglibdir}/libNX_Xinerama*.so.* %{_pkglibdir}/libNX_Xpm*.so.* %{_pkglibdir}/libNX_Xrandr*.so.* %{_pkglibdir}/libNX_Xrender*.so.* %{_pkglibdir}/libNX_Xtst*.so.* %{_pkglibdir}/nxauth %attr(0755,root,root) %{_bindir}/nxauth %doc %{_defaultdocdir}/%{name}-%{version}/nx-X11 %doc %{_defaultdocdir}/%{name}-%{version}/nxauth %files -n %{lib_name_nxcomp} %dir %{_pkglibdir} %dir %{_defaultdocdir}/%{name}-%{version} %{_pkglibdir}/libXcomp.so.* %doc %{_defaultdocdir}/%{name}-%{version}/nxcomp %files -n %{lib_name_xcompext} %dir %{_pkglibdir} %dir %{_defaultdocdir}/%{name}-%{version} %{_pkglibdir}/libXcompext.so.* %{_pkglibdir}/libXcompshad.so.* %doc %{_defaultdocdir}/%{name}-%{version}/nxcompext %doc %{_defaultdocdir}/%{name}-%{version}/nxcompshad %files -n x2goagent %{_bindir}/x2goagent %{_mandir}/man1/x2goagent* %{_datadir}/pixmaps/x2go.xpm