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