]> git.pld-linux.org Git - packages/libvncserver.git/blame - libvncserver.spec
- added noLlibdir patch (avoid /usr/lib* in `libvncserver-config --libs` output)...
[packages/libvncserver.git] / libvncserver.spec
CommitLineData
0857b620
JB
1#
2# Conditional build:
3%bcond_with openssl # use OpenSSL instead of GnuTLS
4
4e154a07 5Summary: LibVNCServer - a for easy implementation of VNC/RDP server
a91cb256 6Summary(pl.UTF-8): LibVNCServer - biblioteka do łatwego implementowania serwera VNC/RDP
ae85b5dc 7Name: libvncserver
32ed0098 8Version: 0.9.11
ecfb9b50 9Release: 3
10b982cb 10License: GPL v2
ae85b5dc 11Group: Libraries
32ed0098 12#Source0Download: https://github.com/LibVNC/libvncserver/releases
0857b620 13Source0: https://github.com/LibVNC/libvncserver/archive/LibVNCServer-%{version}.tar.gz
32ed0098 14# Source0-md5: 7f06104d5c009813e95142932c4ddb06
0f92f1cc 15Patch0: %{name}-linux.patch
ecfb9b50 16Patch1: %{name}-noLlibdir.patch
cd658684 17URL: https://github.com/LibVNC/libvncserver/
39c32d93 18BuildRequires: autoconf >= 2.50
ae85b5dc 19BuildRequires: automake
0857b620 20%{!?with_openssl:BuildRequires: gnutls-devel >= 2.4.0}
6b981399 21BuildRequires: libgcrypt-devel >= 1.4.0
4e154a07 22BuildRequires: libjpeg-devel
0857b620 23BuildRequires: libpng-devel
4e154a07 24BuildRequires: libtool
0857b620
JB
25BuildRequires: libva-devel >= 1.2.0
26BuildRequires: libva-x11-devel >= 1.2.0
27%{?with_openssl:BuildRequires: openssl-devel}
b0259930 28BuildRequires: pkgconfig
6b981399 29BuildRequires: sed >= 4.0
32ed0098 30BuildRequires: systemd-devel >= 1:209
6b981399 31BuildRequires: xorg-lib-libX11-devel
39c32d93
JB
32BuildRequires: xorg-lib-libXdamage-devel
33BuildRequires: xorg-lib-libXext-devel
34BuildRequires: xorg-lib-libXfixes-devel
35BuildRequires: xorg-lib-libXinerama-devel
36BuildRequires: xorg-lib-libXrandr-devel
37BuildRequires: xorg-lib-libXtst-devel
4e154a07 38BuildRequires: 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 45Requires: libgcrypt >= 1.4.0
ae85b5dc
MK
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
49LibVNCServer makes writing a VNC server (or more correctly, a program
50exporting a framebuffer via the Remote Frame Buffer protocol) easy.
51
52It is based on OSXvnc, which in turn is based on the original Xvnc by
53ORL, later AT&T research labs in UK.
54
55It hides the programmer from the tedious task of managing clients and
56compression schemata.
57
58LibVNCServer was put together and is (actively ;-) maintained by
4e154a07
JB
59Johannes Schindelin <Johannes.Schindelin@gmx.de>.
60
16f8c8e7
JR
61%description -l pl.UTF-8
62LibVNCServer ułatwia pisanie serwera VNC (lub, bardziej poprawnie,
63programu eksportującego framebuffer poprzez protokół Remote Frame
4e154a07
JB
64Buffer).
65
16f8c8e7
JR
66Jest oparty na OSXvnc, który z kolei bazuje na oryginalnym Xvnc
67napisanym przez ORL, a później AT&T.
4e154a07 68
16f8c8e7 69Biblioteka ukrywa przed programistą nudne zadanie zarządzania
4e154a07
JB
70klientami i schematami kompresji.
71
16f8c8e7 72LibVNCServer została poskładana i jest (aktywnie) utrzymywana przez
4e154a07 73Johannesa Schindelina <Johannes.Schindelin@gmx.de>.
ae85b5dc 74
2e160c3a 75%package devel
4e154a07 76Summary: LibVNCServer header files
a91cb256 77Summary(pl.UTF-8): Pliki nagłówkowe LibVNCServer
4e154a07 78Group: Development/Libraries
cd658684 79Requires: %{name} = %{version}-%{release}
0857b620 80%{!?with_openssl:Requires: gnutls-devel >= 2.4.0}
6b981399 81Requires: libgcrypt-devel >= 1.4.0
39c32d93 82Requires: libjpeg-devel
0857b620
JB
83Requires: libpng-devel
84%{?with_openssl:Requires: openssl-devel}
39c32d93 85Requires: zlib-devel
2e160c3a
MK
86
87%description devel
4e154a07 88LibVNCServer header files.
2e160c3a 89
16f8c8e7
JR
90%description devel -l pl.UTF-8
91Pliki nagłówkowe LibVNCServer.
4e154a07
JB
92
93%package static
94Summary: Static LibVNCServer libraries
a91cb256 95Summary(pl.UTF-8): Statyczne biblioteki LibVNCServer
4e154a07 96Group: Development/Libraries
cd658684 97Requires: %{name}-devel = %{version}-%{release}
4e154a07
JB
98
99%description static
100Static LibVNCServer libraries.
101
16f8c8e7 102%description static -l pl.UTF-8
4e154a07
JB
103Statyczne 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
123rm -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
132rm -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
This page took 0.085535 seconds and 4 git commands to generate.