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