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