/[packages]/cauldron/nx/current/SPECS/nx.spec
ViewVC logotype

Annotation of /cauldron/nx/current/SPECS/nx.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 145536 - (hide annotations) (download)
Mon Sep 19 15:33:22 2011 UTC (12 years, 7 months ago) by obgr_seneca
File size: 7538 byte(s)
- new version 3.5.0
- added png-1.5 patch

1 obgr_seneca 89080 # most of the descriptions are stolen from the debian package
2    
3     Name: nx
4 obgr_seneca 145536 Version: 3.5.0
5     Release: %mkrel 1
6     Summary: NoMachine NX
7     License: GPLv2+ and MIT
8     Group: Networking/Remote access
9     URL: http://www.nomachine.com/sources.php
10    
11     Source0: nx-X11-%{version}-2.tar.gz
12     Source1: nxagent-%{version}-5.tar.gz
13 obgr_seneca 89080 Source2: nxauth-%{version}-1.tar.gz
14 obgr_seneca 145536 Source4: nxcompext-%{version}-1.tar.gz
15     Source5: nxcompshad-%{version}-2.tar.gz
16 obgr_seneca 89080 Source6: nxwin-%{version}-2.tar.gz
17 obgr_seneca 145536 Source7: nxcomp-%{version}-2.tar.gz
18     Source8: nxproxy-%{version}-1.tar.gz
19     Source9: nxssh-%{version}-2.tar.gz
20 obgr_seneca 89080
21     Source10: GUUG-Presentation-NX.pdf
22    
23     # rename libs with nx prefix => allow us to put them in %{_libdir} (from debian)
24     # rediffed for 2.0
25     Patch0: nx-X11-3.1-libdir.patch
26     Patch1: nx-X11-fix-format-errors.patch
27     Patch2: nxssh-fix-format-errors.patch
28 obgr_seneca 145536 #Patch3: nx-3.3.0-nxcomp-glibc2.10.patch
29     # Patch from OpenBSD allowing to build nxcomp agains libpng-1.5
30     Patch4: nxcomp-3.5.0-2-png-1.5.patch
31    
32 obgr_seneca 89080 BuildRequires: X11-devel
33     BuildRequires: libfontconfig-devel
34     BuildRequires: zlib-devel
35     BuildRequires: libpng-devel
36     BuildRequires: libjpeg-devel
37     #BuildRequires: automake1.7, automake1.4
38     BuildRequires: openssl-devel
39     BuildRequires: imake
40    
41     %description
42     NoMachine NX is the next-generation X compression and roundtrip
43     suppression scheme. It can operate remote X11 sessions over
44     56k modem dialup links or anything better.
45    
46     ####################
47     # xcompext lib #
48     ####################
49     %define lib_name_orig_xcompext libxcompext
50     %define lib_major_xcompext 3
51     %define lib_name_xcompext %mklibname xcompext %{lib_major_xcompext}
52     %package -n %{lib_name_xcompext}
53     Summary: Xcompext/Xcompshad library for NX
54     Group: System/Libraries
55     Provides: xcompext = %{version}-%{release}
56     Provides: xcompshad = %{version}-%{release}
57    
58     %description -n %{lib_name_xcompext}
59     Xcompext and Xcompshad library needed by the NX framework
60    
61     ###############
62     # nx-X11 lib #
63     ###############
64     %define lib_name_orig_nxx11 libnxX11
65     %define lib_major_nxx11 0
66     %define lib_name_nxx11 %mklibname nxX11_ %{lib_major_nxx11}
67     %package -n %{lib_name_nxx11}
68     Summary: Nx-X11 lib for NX
69     Group: System/Libraries
70     Provides: nxX11 = %{version}-%{release}
71    
72     %description -n %{lib_name_nxx11}
73     NX-X11 lib for the NX framework
74    
75     ##########
76     # nxcomp #
77     ##########
78     %define lib_name_orig_nxcomp libxcomp
79     %define lib_major_nxcomp 3
80     %define lib_name_nxcomp %mklibname xcomp %{lib_major_nxcomp}
81    
82     %package -n %{lib_name_nxcomp}
83     Summary: Xcomp library for NX
84     Group: System/Libraries
85     Provides: xcomp = %{version}-%{release}
86    
87     %description -n %{lib_name_nxcomp}
88     Xcomp library for NX subsystem
89    
90     ###########
91     # nxproxy #
92     ###########
93     %package -n nxproxy
94     Summary: Provide the protocol compression and caching part of the NX scheme
95     Group: Networking/Remote access
96    
97     %description -n nxproxy
98     The nxproxy runs on the X server side of the wire and thus accompanies
99     the nxagent running on X client side. It provides the protocol
100     compression and caching part of the NX scheme.
101    
102     ###########
103     # nxagent #
104     ###########
105     %package -n nxagent
106     Summary: NX X server based on Xnest
107     Group: Networking/Remote access
108    
109     %description -n nxagent
110     The nxagent is an X server based on Xnest, but modified
111     for the purpose of reducing roundtrips over high-latency
112     networks significantly. It is run on the client side of X,
113     that is, on the machine where X clients run. It connects,
114     over the wire, to your regular X server, possibly through nxproxy.
115    
116     #########
117     # nxssh #
118     #########
119    
120     %package -n nxssh
121     Summary: NX ssh client
122     Group: Networking/Remote access
123    
124     %description -n nxssh
125     Nx ssh client
126    
127     %prep
128     %setup -q -c -a 1 -a 2 -a 4 -a 5 -a 6 -a 7 -a 8 -a 9
129     %patch0 -p 0
130     %patch1 -p 0
131     %patch2 -p 0
132    
133     pushd nxcomp
134 obgr_seneca 145536 #%patch3 -p0
135     %patch4 -p0
136 obgr_seneca 89080 popd
137    
138     %build
139     # documentation explainig how NX works
140     cp %{SOURCE10} ./
141    
142     # the build system Sux, or I haven't understand how it works
143     # We must build all the lib, and somes binaries at the same shot
144     # because -I ../nxFOO <-- It *sux*
145    
146     #-------- Build nxcomp
147    
148     pushd nxcomp
149     export CFLAGS="%{optflags} -fPIC"
150     export CXXFLAGS="%{optflags} -fPIC"
151     export CPPFLAGS="%{optflags} -fPIC"
152     %configure2_5x
153     # configure script doesn't care of CFLAGS
154     perl -pi -e "s/CXXFLAGS = -O3/CXXFLAGS = %{optflags} -fPIC/" Makefile
155     perl -pi -e "s/LDFLAGS = /LDFLAGS = -fPIC/" Makefile
156     perl -pi -e "s/CCFLAGS\s+=/CCFLAGS = %{optflags} -fPIC/" Makefile
157     make clean
158     %make
159     popd
160    
161     #-------- build nxcompext lib
162     pushd nxcompext
163     export CFLAGS="%{optflags} -fPIC"
164     export CXXFLAGS="%{optflags} -fPIC"
165     export CPPFLAGS="%{optflags} -fPIC"
166     %configure2_5x
167     perl -pi -e "s/CXXFLAGS = -O3/CXXFLAGS = %{optflags} -fPIC/" Makefile
168     perl -pi -e "s|LDFLAGS = |LDFLAGS = -fPIC -L/usr/X11R6/%{_lib}|" Makefile
169     make clean
170     %make
171     popd
172    
173     #-------- build nxcompshad lib
174     pushd nxcompshad
175     export CFLAGS="%{optflags} -fPIC"
176     export CXXFLAGS="%{optflags} -fPIC"
177     export CPPFLAGS="%{optflags} -fPIC"
178     %configure2_5x
179     perl -pi -e "s/CXXFLAGS = -O3/CXXFLAGS = %{optflags} -fPIC/" Makefile
180     perl -pi -e "s|LDFLAGS = |LDFLAGS = -fPIC -L/usr/X11R6/%{_lib}|" Makefile
181     perl -pi -e "s|LIBS = |LIBS = -lXext |" Makefile
182     make clean
183     %make
184     popd
185    
186     #-------- Build nx X11 libs
187     pushd nx-X11
188 obgr_seneca 145536 LC_ALL=C make World
189 obgr_seneca 89080 popd
190    
191     #-------- build nxproxy
192     pushd nxproxy
193     %configure2_5x
194     %make
195     popd
196    
197     #-------- build nxssh
198     pushd nxssh
199     %configure2_5x
200     %make
201     popd
202    
203     %install
204     rm -rf %{buildroot}
205     #create the directory tree
206     install -d -m 755 %{buildroot}%{_libdir}/pkgconfig
207     install -d -m 755 %{buildroot}%{_bindir}
208     install -d -m 755 %{buildroot}%{_includedir}
209     install -d -m 755 %{buildroot}%{_includedir}/nxcompsh
210    
211     #----------- nxcomp
212     install -m 755 nxcomp/libXcomp.so.* %{buildroot}%{_libdir}
213     rm -f %{buildroot}%{_libdir}/libXcomp.so.3
214     ln -s libXcomp.so.3.1.0 %{buildroot}%{_libdir}/libXcomp.so.3
215    
216     #----------- nxX11
217     install -m 755 nx-X11/lib/X11/libX11-nx.so.* %{buildroot}%{_libdir}
218     install -m 755 nx-X11/lib/Xext/libXext-nx.so.* %{buildroot}%{_libdir}
219     install -m 755 nx-X11/lib/Xrender/libXrender-nx.so.* %{buildroot}%{_libdir}
220     install -m 755 nx-X11/programs/Xserver/nxagent %{buildroot}%{_bindir}
221     rm -f %{buildroot}%{_libdir}/libX11-nx.so.6
222     ln -s libX11.so.6.2 %{buildroot}%{_libdir}/libX11-nx.so.6
223     rm -f %{buildroot}%{_libdir}/libXext-nx.so.6
224     ln -s libXext.so.6.4 %{buildroot}%{_libdir}/libXext-nx.so.6
225     rm -f %{buildroot}%{_libdir}/libXrender-nx.so.1
226     ln -s libXrender.so.1.2.2 %{buildroot}%{_libdir}/libXrender-nx.so.1
227    
228     #----------- nxcompext
229     install -m 755 nxcompext/libXcompext.so.* %{buildroot}%{_libdir}
230     rm -f %{buildroot}%{_libdir}/libXcompext.so.3
231     ln -s libXcompext.so.3.1.0 %{buildroot}%{_libdir}/libXcompext.so.3
232     install -m 755 nxcompshad/libXcompshad.so.* %{buildroot}%{_libdir}
233     rm -f %{buildroot}%{_libdir}/libXcompshad.so.3
234     ln -s libXcompshad.so.3.1.0 %{buildroot}%{_libdir}/libXcompshad.so.3
235    
236     #----------- nxproxy
237     install -m 755 nxproxy/nxproxy %{buildroot}%{_bindir}
238    
239     #----------- nxssh
240     install -m 755 nxssh/nxssh %{buildroot}%{_bindir}
241    
242     %clean
243     rm -rf %{buildroot}
244    
245     %files -n nxproxy
246     %defattr(-,root,root)
247     %{_bindir}/nxproxy
248    
249     %files -n nxagent
250     %defattr(-,root,root)
251     %{_bindir}/nxagent
252    
253     #---------- nxcomp
254     %files -n %{lib_name_nxcomp}
255     %defattr(-,root,root)
256     %{_libdir}/libXcomp.so.*
257    
258     #---------- nx-x11
259     %files -n %{lib_name_nxx11}
260     %defattr(-,root,root)
261     %doc GUUG-Presentation-NX.pdf
262     %{_libdir}/libX11-nx.so.*
263     %{_libdir}/libXext-nx.so.*
264     %{_libdir}/libXrender-nx.so.*
265    
266     #-------- lib xcompext
267     %files -n %{lib_name_xcompext}
268     %defattr(-,root,root)
269     %{_libdir}/libXcompext.so.*
270     %{_libdir}/libXcompshad.so.*
271    
272     #-------- nxssh
273     %files -n nxssh
274     %defattr(-,root,root)
275     %{_bindir}/nxssh
276    
277    
278    
279    

  ViewVC Help
Powered by ViewVC 1.1.30