]>
Commit | Line | Data |
---|---|---|
3b4074b8 | 1 | Summary: A VNC server for the current X11 session |
7f068e27 | 2 | Summary(pl.UTF-8): Program serwujący aktualną sesję X11 poprzez VNC |
3b4074b8 | 3 | Name: x11vnc |
a0ad82be | 4 | Version: 0.9.16 |
409aae42 | 5 | Release: 4 |
720c5135 | 6 | License: GPL v2+ |
1d0e4d7b | 7 | Group: X11/Applications/Networking |
912b0598 JB |
8 | #Source0Download: https://github.com/LibVNC/x11vnc/releases |
9 | Source0: https://github.com/LibVNC/x11vnc/archive/%{version}/%{name}-%{version}.tar.gz | |
a0ad82be | 10 | # Source0-md5: 64172e8f896389ec963fff93415f0d93 |
98390819 | 11 | Source1: %{name}-x11vncd |
12 | Source2: %{name}-x11vncd.init | |
13 | Source3: %{name}-x11vncd.sysconfig | |
14 | Source4: %{name}-x11vncd_passwd | |
31bd86f6 | 15 | Patch0: gcc10.patch |
720c5135 | 16 | URL: https://github.com/LibVNC/x11vnc/ |
f5cfbe8f JB |
17 | BuildRequires: autoconf >= 2.59-9 |
18 | BuildRequires: automake | |
912b0598 JB |
19 | BuildRequires: avahi-devel >= 0.6.4 |
20 | BuildRequires: cairo-devel | |
1d0e4d7b | 21 | BuildRequires: libjpeg-devel |
912b0598 | 22 | BuildRequires: libvncserver-devel >= 0.9.8 |
f5cfbe8f | 23 | BuildRequires: openssl-devel |
912b0598 | 24 | BuildRequires: pkgconfig |
f5cfbe8f | 25 | BuildRequires: xorg-lib-libX11-devel |
912b0598 JB |
26 | BuildRequires: xorg-lib-libXcomposite-devel |
27 | BuildRequires: xorg-lib-libXcursor-devel | |
f5cfbe8f JB |
28 | BuildRequires: xorg-lib-libXdamage-devel |
29 | BuildRequires: xorg-lib-libXext-devel | |
30 | BuildRequires: xorg-lib-libXfixes-devel | |
912b0598 | 31 | BuildRequires: xorg-lib-libXi-devel >= 1.3 |
f5cfbe8f JB |
32 | BuildRequires: xorg-lib-libXinerama-devel |
33 | BuildRequires: xorg-lib-libXrandr-devel | |
34 | BuildRequires: xorg-lib-libXtst-devel | |
912b0598 | 35 | BuildRequires: xorg-proto-inputproto-devel >= 2 |
1d0e4d7b | 36 | BuildRequires: zlib-devel |
912b0598 JB |
37 | Requires: avahi-libs >= 0.6.4 |
38 | Requires: libvncserver >= 0.9.8 | |
39 | Requires: xorg-lib-libXi >= 1.3 | |
1d0e4d7b | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
3b4074b8 JB |
43 | x11vnc is to X Window System what WinVNC is to Windows, i.e. a server |
44 | which serves the current X Window System desktop via RFB (VNC) | |
45 | protocol to the user. | |
46 | ||
1d0e4d7b | 47 | Based on the ideas of x0rfbserver and on LibVNCServer, it has evolved |
48 | into a versatile and performant while still easy to use program. | |
49 | ||
60f49683 | 50 | %description -l pl.UTF-8 |
7e0656b4 | 51 | x11vnc jest dla X Window System tym, czym jest WinVNC dla Windows, |
60f49683 JR |
52 | czyli programem udostępniającym aktualny ekran X Window System poprzez |
53 | protokół RFB (VNC) dla użytkownika. | |
3b4074b8 | 54 | |
60f49683 JR |
55 | Bazuje na pomyśle x0rfbserver i LibVNCServer, został stworzony jako |
56 | wszechstronny i wydajny, ale także łatwy w użyciu. | |
1d0e4d7b | 57 | |
98390819 | 58 | %package init |
a25ea149 | 59 | Summary: Init scripts for VNC server |
98390819 | 60 | Summary(pl.UTF-8): Skrytpy startowe dla servera VNC. |
61 | Group: X11/Applications/Networking | |
912b0598 | 62 | Requires: %{name} = %{version}-%{release} |
98390819 | 63 | |
64 | %description init | |
65 | Init scripts for VNC server. | |
66 | ||
67 | %description init -l pl.UTF-8 | |
68 | Skrytpy startowe dla servera VNC. | |
69 | ||
1d0e4d7b | 70 | %prep |
71 | %setup -q | |
31bd86f6 | 72 | %patch0 -p1 |
1d0e4d7b | 73 | |
74 | %build | |
9df9992f RT |
75 | %{__aclocal} |
76 | %{__autoconf} | |
77 | %{__autoheader} | |
78 | %{__automake} | |
79 | %configure \ | |
80 | --with-x | |
1d0e4d7b | 81 | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
3b4074b8 | 86 | |
1d0e4d7b | 87 | %{__make} install \ |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
98390819 | 90 | install -d $RPM_BUILD_ROOT%{_sbindir} \ |
91 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} | |
92 | ||
912b0598 JB |
93 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/x11vncd |
94 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/x11vncd | |
95 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/x11vncd | |
96 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/x11vncd_passwd | |
98390819 | 97 | |
1d0e4d7b | 98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
98390819 | 101 | %post init |
102 | /sbin/chkconfig --add x11vncd | |
103 | %service x11vncd restart "VNC Server" | |
104 | ||
105 | %preun init | |
106 | if [ "$1" = "0" ]; then | |
107 | %service x11vncd stop | |
108 | /sbin/chkconfig --del x11vncd | |
109 | fi | |
110 | ||
1d0e4d7b | 111 | %files |
112 | %defattr(644,root,root,755) | |
912b0598 JB |
113 | %doc ChangeLog NEWS README |
114 | %attr(755,root,root) %{_bindir}/Xdummy | |
115 | %attr(755,root,root) %{_bindir}/x11vnc | |
116 | %{_desktopdir}/x11vnc.desktop | |
117 | %{_mandir}/man1/x11vnc.1* | |
98390819 | 118 | |
119 | %files init | |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_sbindir}/x11vncd | |
a25ea149 | 122 | %attr(754,root,root) /etc/rc.d/init.d/x11vncd |
98390819 | 123 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/x11vncd |
124 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/x11vncd_passwd |