]>
Commit | Line | Data |
---|---|---|
0857b620 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with openssl # use OpenSSL instead of GnuTLS | |
4 | ||
4e154a07 | 5 | Summary: LibVNCServer - a for easy implementation of VNC/RDP server |
a91cb256 | 6 | Summary(pl.UTF-8): LibVNCServer - biblioteka do łatwego implementowania serwera VNC/RDP |
ae85b5dc | 7 | Name: libvncserver |
32ed0098 JB |
8 | Version: 0.9.11 |
9 | Release: 1 | |
10b982cb | 10 | License: GPL v2 |
ae85b5dc | 11 | Group: Libraries |
32ed0098 | 12 | #Source0Download: https://github.com/LibVNC/libvncserver/releases |
0857b620 | 13 | Source0: https://github.com/LibVNC/libvncserver/archive/LibVNCServer-%{version}.tar.gz |
32ed0098 | 14 | # Source0-md5: 7f06104d5c009813e95142932c4ddb06 |
0f92f1cc | 15 | Patch0: %{name}-linux.patch |
cd658684 | 16 | URL: https://github.com/LibVNC/libvncserver/ |
39c32d93 | 17 | BuildRequires: autoconf >= 2.50 |
ae85b5dc | 18 | BuildRequires: automake |
0857b620 | 19 | %{!?with_openssl:BuildRequires: gnutls-devel >= 2.4.0} |
6b981399 | 20 | BuildRequires: libgcrypt-devel >= 1.4.0 |
4e154a07 | 21 | BuildRequires: libjpeg-devel |
0857b620 | 22 | BuildRequires: libpng-devel |
4e154a07 | 23 | BuildRequires: libtool |
0857b620 JB |
24 | BuildRequires: libva-devel >= 1.2.0 |
25 | BuildRequires: libva-x11-devel >= 1.2.0 | |
26 | %{?with_openssl:BuildRequires: openssl-devel} | |
b0259930 | 27 | BuildRequires: pkgconfig |
6b981399 | 28 | BuildRequires: sed >= 4.0 |
32ed0098 | 29 | BuildRequires: systemd-devel >= 1:209 |
6b981399 | 30 | BuildRequires: xorg-lib-libX11-devel |
39c32d93 JB |
31 | BuildRequires: xorg-lib-libXdamage-devel |
32 | BuildRequires: xorg-lib-libXext-devel | |
33 | BuildRequires: xorg-lib-libXfixes-devel | |
34 | BuildRequires: xorg-lib-libXinerama-devel | |
35 | BuildRequires: xorg-lib-libXrandr-devel | |
36 | BuildRequires: xorg-lib-libXtst-devel | |
4e154a07 | 37 | BuildRequires: zlib-devel |
39c32d93 JB |
38 | # for noinst client_examples only |
39 | #BuildRequires: SDL-devel | |
0857b620 JB |
40 | #BuildRequires: gtk+2-devel >= 2.0 |
41 | # for vnc2mpg example | |
42 | #BuildRequires: ffmpeg-devel || lame-libs-devel | |
43 | %{!?with_openssl:Requires: gnutls >= 2.4.0} | |
6b981399 | 44 | Requires: libgcrypt >= 1.4.0 |
ae85b5dc MK |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
48 | LibVNCServer makes writing a VNC server (or more correctly, a program | |
49 | exporting a framebuffer via the Remote Frame Buffer protocol) easy. | |
50 | ||
51 | It is based on OSXvnc, which in turn is based on the original Xvnc by | |
52 | ORL, later AT&T research labs in UK. | |
53 | ||
54 | It hides the programmer from the tedious task of managing clients and | |
55 | compression schemata. | |
56 | ||
57 | LibVNCServer was put together and is (actively ;-) maintained by | |
4e154a07 JB |
58 | Johannes Schindelin <Johannes.Schindelin@gmx.de>. |
59 | ||
16f8c8e7 JR |
60 | %description -l pl.UTF-8 |
61 | LibVNCServer ułatwia pisanie serwera VNC (lub, bardziej poprawnie, | |
62 | programu eksportującego framebuffer poprzez protokół Remote Frame | |
4e154a07 JB |
63 | Buffer). |
64 | ||
16f8c8e7 JR |
65 | Jest oparty na OSXvnc, który z kolei bazuje na oryginalnym Xvnc |
66 | napisanym przez ORL, a później AT&T. | |
4e154a07 | 67 | |
16f8c8e7 | 68 | Biblioteka ukrywa przed programistą nudne zadanie zarządzania |
4e154a07 JB |
69 | klientami i schematami kompresji. |
70 | ||
16f8c8e7 | 71 | LibVNCServer została poskładana i jest (aktywnie) utrzymywana przez |
4e154a07 | 72 | Johannesa Schindelina <Johannes.Schindelin@gmx.de>. |
ae85b5dc | 73 | |
2e160c3a | 74 | %package devel |
4e154a07 | 75 | Summary: LibVNCServer header files |
a91cb256 | 76 | Summary(pl.UTF-8): Pliki nagłówkowe LibVNCServer |
4e154a07 | 77 | Group: Development/Libraries |
cd658684 | 78 | Requires: %{name} = %{version}-%{release} |
0857b620 | 79 | %{!?with_openssl:Requires: gnutls-devel >= 2.4.0} |
6b981399 | 80 | Requires: libgcrypt-devel >= 1.4.0 |
39c32d93 | 81 | Requires: libjpeg-devel |
0857b620 JB |
82 | Requires: libpng-devel |
83 | %{?with_openssl:Requires: openssl-devel} | |
39c32d93 | 84 | Requires: zlib-devel |
2e160c3a MK |
85 | |
86 | %description devel | |
4e154a07 | 87 | LibVNCServer header files. |
2e160c3a | 88 | |
16f8c8e7 JR |
89 | %description devel -l pl.UTF-8 |
90 | Pliki nagłówkowe LibVNCServer. | |
4e154a07 JB |
91 | |
92 | %package static | |
93 | Summary: Static LibVNCServer libraries | |
a91cb256 | 94 | Summary(pl.UTF-8): Statyczne biblioteki LibVNCServer |
4e154a07 | 95 | Group: Development/Libraries |
cd658684 | 96 | Requires: %{name}-devel = %{version}-%{release} |
4e154a07 JB |
97 | |
98 | %description static | |
99 | Static LibVNCServer libraries. | |
100 | ||
16f8c8e7 | 101 | %description static -l pl.UTF-8 |
4e154a07 JB |
102 | Statyczne biblioteki LibVNCServer. |
103 | ||
ae85b5dc | 104 | %prep |
0857b620 | 105 | %setup -q -n libvncserver-LibVNCServer-%{version} |
4e154a07 | 106 | %patch0 -p1 |
6b981399 | 107 | |
ae85b5dc | 108 | %build |
4e154a07 | 109 | %{__libtoolize} |
0857b620 | 110 | %{__aclocal} -I m4 |
ae85b5dc | 111 | %{__autoconf} |
4e154a07 JB |
112 | %{__autoheader} |
113 | %{__automake} | |
d708d698 | 114 | %configure \ |
aa808c9d | 115 | --disable-silent-rules \ |
0857b620 JB |
116 | %{?with_openssl:--without-gnutls} \ |
117 | %{!?with_openssl:--without-ssl} | |
ae85b5dc MK |
118 | %{__make} |
119 | ||
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
4e154a07 JB |
122 | |
123 | %{__make} install \ | |
124 | DESTDIR=$RPM_BUILD_ROOT | |
ae85b5dc | 125 | |
0857b620 JB |
126 | # obsoleted by pkg-config |
127 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvnc*.la | |
6b981399 | 128 | |
ae85b5dc MK |
129 | %clean |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
4e154a07 JB |
132 | %post -p /sbin/ldconfig |
133 | %postun -p /sbin/ldconfig | |
134 | ||
ae85b5dc MK |
135 | %files |
136 | %defattr(644,root,root,755) | |
10b982cb | 137 | %doc AUTHORS ChangeLog NEWS README TODO |
fc559bc5 | 138 | %attr(755,root,root) %{_libdir}/libvncclient.so.*.*.* |
32ed0098 | 139 | %attr(755,root,root) %ghost %{_libdir}/libvncclient.so.1 |
fc559bc5 | 140 | %attr(755,root,root) %{_libdir}/libvncserver.so.*.*.* |
32ed0098 | 141 | %attr(755,root,root) %ghost %{_libdir}/libvncserver.so.1 |
2e160c3a MK |
142 | |
143 | %files devel | |
144 | %defattr(644,root,root,755) | |
145 | %attr(755,root,root) %{_bindir}/libvncserver-config | |
fc559bc5 JB |
146 | %attr(755,root,root) %{_libdir}/libvncclient.so |
147 | %attr(755,root,root) %{_libdir}/libvncserver.so | |
4e154a07 | 148 | %{_includedir}/rfb |
6b981399 JB |
149 | %{_pkgconfigdir}/libvncclient.pc |
150 | %{_pkgconfigdir}/libvncserver.pc | |
4e154a07 JB |
151 | |
152 | %files static | |
153 | %defattr(644,root,root,755) | |
fc559bc5 JB |
154 | %{_libdir}/libvncclient.a |
155 | %{_libdir}/libvncserver.a |