/[packages]/updates/8/tigervnc/current/SPECS/tigervnc.spec
ViewVC logotype

Annotation of /updates/8/tigervnc/current/SPECS/tigervnc.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1480672 - (hide annotations) (download)
Thu Jan 16 21:03:24 2020 UTC (4 years, 3 months ago) by wally
Original Path: cauldron/tigervnc/current/SPECS/tigervnc.spec
File size: 6839 byte(s)
- replace deprecated %%configure2_5x
1 barjac 884385 Name: tigervnc
2 kekepower 1469065 Version: 1.10.1
3 daviddavid 1462553 Release: %mkrel 1
4 luigiwalser 1078931 Summary: Viewer for the VNC remote display system
5     Group: Networking/Remote access
6 barjac 884385 License: GPLv2+
7     URL: http://www.tigervnc.com/
8 daviddavid 1079134 Source0: https://github.com/TigerVNC/tigervnc/archive/v%{version}/%{name}-%{version}.tar.gz
9 dmorgan 57067
10 daviddavid 1243651 Patch7: tigervnc-manpages.patch
11     Patch8: tigervnc-getmaster.patch
12     Patch9: tigervnc-shebang.patch
13 daviddavid 1243653 # initially from openmdv
14     Patch12: tigervnc-1.8.90-mga-buildir.patch
15 daviddavid 1243651 #Patches from fedora
16     Patch14: tigervnc-xstartup.patch
17    
18     # copied from debian
19     Patch29: tigervnc-1.7.0-CVE-2014-8241.patch
20     Patch30: tigervnc-1.8.0-CVE-2014-8240.patch
21    
22     # This is tigervnc-%%{version}/unix/xserver120.patch rebased on the latest xorg
23     Patch100: tigervnc-xserver120.patch
24    
25 bersuit 449506 BuildRequires: x11-server-source
26     BuildRequires: gettext-devel
27     BuildRequires: pkgconfig(x11)
28     BuildRequires: libxext-devel
29     BuildRequires: x11-font-util
30     BuildRequires: x11-util-macros
31     BuildRequires: x11-xtrans-devel
32     BuildRequires: mesagl-devel
33     BuildRequires: libxkbfile-devel
34 luigiwalser 1078931 BuildRequires: libxfont2-devel
35 bersuit 449506 BuildRequires: pixman-devel
36     BuildRequires: openssl-devel
37     BuildRequires: libpciaccess-devel
38     BuildRequires: libpam-devel
39     BuildRequires: libxtst-devel
40     BuildRequires: gnutls-devel
41     BuildRequires: imagemagick
42     BuildRequires: nasm
43     BuildRequires: java-devel
44 bersuit 612276 BuildRequires: desktop-file-utils
45 bersuit 494273 BuildRequires: jpackage-utils
46 barjac 884385 BuildRequires: fltk-devel
47 bersuit 494273 BuildRequires: libtool
48     BuildRequires: autoconf
49 barjac 884385 BuildRequires: libxi-devel
50 bersuit 494273 BuildRequires: libxinerama-devel
51     BuildRequires: freetype-devel
52     BuildRequires: libxdmcp-devel
53     BuildRequires: pam-devel
54     BuildRequires: libjpeg-devel
55     BuildRequires: cmake
56 wally 1368220 BuildRequires: libxrandr-devel
57 dmorgan 57067
58     %description
59     Virtual Network Computing (VNC) is a remote display system which
60     allows you to view a computing 'desktop' environment not only on the
61     machine where it is running, but from anywhere on the Internet and
62     from a wide variety of machine architectures. This package contains a
63     client which will allow you to connect to other desktops running a VNC
64     server.
65    
66     %files -f %{name}.lang
67 daviddavid 1462553 %_defaultdocdir/%{name}-%{version}/
68 dmorgan 57067 %{_bindir}/vncviewer
69     %{_iconsdir}/*
70     %{_datadir}/applications/*
71     %{_mandir}/man1/vncviewer.1*
72    
73    
74     #------------------------------------------------------------------------------
75    
76     %package server
77    
78     Summary: Server for the VNC remote display system
79     Group: Networking/Remote access
80    
81     Requires: vnc-server-common
82    
83     %description server
84     The VNC system allows you to access the same desktop from a wide
85     variety of platforms. This package is a TigerVNC server, allowing
86     others to access the desktop on your machine.
87    
88     %files server
89     %{_bindir}/vncconfig
90     %{_bindir}/vncpasswd
91     %{_bindir}/x0vncserver
92     %{_bindir}/Xvnc
93     %{_bindir}/vncserver
94     %{_mandir}/man1/Xvnc.1*
95     %{_mandir}/man1/vncpasswd.1*
96     %{_mandir}/man1/vncconfig.1*
97     %{_mandir}/man1/vncserver.1*
98     %{_mandir}/man1/x0vncserver.1*
99    
100     #------------------------------------------------------------------------------
101    
102     %package server-module
103    
104     Summary: Xorg module for the VNC remote display system
105     Group: Networking/Remote access
106    
107     Requires: x11-server-xorg
108    
109     %description server-module
110     This package contains libvnc.so module to X server, allowing others
111     to access the desktop on your machine.
112    
113     %files server-module
114     %{_libdir}/xorg/modules/extensions/libvnc.so
115    
116     #------------------------------------------------------------------------------
117    
118     %package java
119    
120     Summary: Java viewer for the VNC remote display system
121     Group: Networking/Remote access
122    
123    
124     # "TightVNC-specific" is not a typo, see the README file located inside the
125     # java source tree
126     %description java
127     This distribution is based on the standard VNC source and includes new
128     TightVNC-specific features and fixes, such as additional low-bandwidth
129     optimizations, major GUI improvements, and more.
130    
131     There are three basic ways to use TigerVNC Java viewer:
132     1. Running applet as part of TigerVNC server installation.
133     2. Running applet hosted on a standalone Web server.
134     3. Running the viewer as a standalone application.
135    
136     %files java
137     %{_javadir}/*.jar
138 bersuit 449506 %{_datadir}/vnc
139 dmorgan 57067
140     #------------------------------------------------------------------------------
141    
142     %prep
143 dmorgan 180030 %setup -q -n %{name}-%{version}
144    
145 daviddavid 1243653 %patch12 -p1 -b .builddir
146    
147 dmorgan 57067 cp -r /usr/share/x11-server-source/* unix/xserver
148     pushd unix/xserver
149 dmorgan 180030 for all in `find . -type f -perm -001`; do
150     chmod -x "$all"
151     done
152 daviddavid 1243651 %patch100 -p1 -b .xserver120-rebased
153 dmorgan 57067 popd
154    
155 bersuit 494273 # Synchronise manpages and --help output (bug #980870).
156 barjac 884915 %patch7 -p1 -b .manpages
157 bersuit 449506
158 bersuit 494273 # libvnc.so: don't use unexported GetMaster function (bug #744881 again).
159 barjac 884915 %patch8 -p1 -b .getmaster
160 bersuit 449506
161 bersuit 494273 # Don't use shebang in vncserver script.
162     %patch9 -p1 -b .shebang
163 dmorgan 57067
164 barjac 884915 # Clearer xstartup file (bug #923655).
165 tv 998752 %patch14 -p1 -b .xstartup
166 barjac 884915
167 luigiwalser 904671 %patch29 -p1 -b .CVE-2014-8241
168     %patch30 -p1 -b .CVE-2014-8240
169 bersuit 612276
170 dmorgan 57067 %build
171    
172 barjac 884915 %cmake
173 daviddavid 1079134 %make_build
174 bersuit 494273 cd ..
175 dmorgan 57067
176     pushd unix/xserver
177 bersuit 494273 rm -f configure
178 dmorgan 57067 autoreconf -fiv
179 wally 1480672 %configure --disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
180 luigiwalser 668397 --disable-xwin --disable-xephyr --disable-kdrive --disable-xwayland \
181     --with-pic --disable-static --disable-xinerama \
182 bersuit 494273 --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \
183 daviddavid 1462553 --with-fontrootdir=%{_datadir}/X11/fonts \
184 bersuit 494273 --with-xkb-output=%{_localstatedir}/lib/xkb \
185 bersuit 612276 --enable-glx --disable-dri --enable-dri2 --disable-dri3 \
186 daviddavid 1462553 --disable-unit-tests \
187 bersuit 612276 --disable-present \
188 bersuit 494273 --disable-config-hal \
189     --disable-config-udev \
190     --without-dtrace \
191     --disable-devel-docs \
192     --disable-selective-werror
193 dmorgan 57067
194 daviddavid 1079134 %make_build
195 dmorgan 57067 popd
196    
197 bersuit 494273
198 dmorgan 57067 # Build icons
199     pushd media
200 barjac 884385 %cmake
201 daviddavid 1079134 %make_build
202 dmorgan 57067 popd
203    
204 tv 998755 # Build Java applet
205 bersuit 494273 pushd java
206 daviddavid 1079134 %cmake
207     JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8" \
208     %make_build
209 dmorgan 57067 popd
210    
211     %install
212 daviddavid 1079134 %make_install -C build
213 dmorgan 57067
214 daviddavid 1079134 %make_install -C unix/xserver/hw/vnc
215 dmorgan 57067
216     # Install desktop stuff
217 daviddavid 1079134 mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,24x24,48x48}/apps
218 dmorgan 57067
219     pushd media/icons
220     for s in 16 24 48; do
221 daviddavid 1079134 install -m644 tigervnc_$s.png %{buildroot}%{_datadir}/icons/hicolor/${s}x$s/apps/tigervnc.png
222 dmorgan 57067 done
223     popd
224    
225     %find_lang %{name} %{name}.lang
226    
227     # remove unwanted files
228 daviddavid 1079134 rm -f %{buildroot}%{_libdir}/xorg/modules/extensions/libvnc.la
229 dmorgan 57067
230 bersuit 494273 # Install Java applet
231 dmorgan 57067
232     install -d -m 755 %{buildroot}%{_javadir}
233 bersuit 449506 install -d -m 755 %{buildroot}%{_datadir}/vnc/classes
234 bersuit 494273 pushd java/build
235 bersuit 449506
236 bersuit 494273 install -m 755 VncViewer.jar %{buildroot}%{_datadir}/vnc/classes/vncviewer-%{version}.jar
237 dmorgan 57067 popd
238 bersuit 494273
239 bersuit 449506 pushd %{buildroot}%{_datadir}/vnc/classes
240 dmorgan 57067 mv vncviewer-%{version}.jar %{buildroot}%{_javadir}
241     ln -s %{_javadir}/vncviewer-%{version}.jar VncViewer.jar
242     popd
243 bersuit 494273
244 dmorgan 57067 pushd %{buildroot}%{_javadir}
245     ln -s vncviewer-%{version}.jar vncviewer.jar
246     ln -s vncviewer-%{version}.jar VncViewer.jar
247     popd
248 bersuit 494273
249    

  ViewVC Help
Powered by ViewVC 1.1.30