X-Git-Url: http://git.pld-linux.org/?p=packages%2Fx11vnc.git;a=blobdiff_plain;f=x11vnc.spec;h=60b6e375220978d4d65fd917cd994cd83c392548;hp=629f384ee788e4d801de67a947002f64676c0b88;hb=2301a83;hpb=9df9992fb8fd5367dd6701bfe07b715cde18359f diff --git a/x11vnc.spec b/x11vnc.spec index 629f384..60b6e37 100644 --- a/x11vnc.spec +++ b/x11vnc.spec @@ -1,15 +1,28 @@ Summary: A VNC server for the current X11 session -Summary(pl): Program serwuj±cy aktualn± sesjê X11 poprzez VNC +Summary(pl.UTF-8): Program serwujący aktualną sesję X11 poprzez VNC Name: x11vnc -Version: 0.8.4 -Release: 1 +Version: 0.9.9 +Release: 2 License: GPL Group: X11/Applications/Networking -Source0: http://www.karlrunge.com/x11vnc/%{name}-%{version}.tar.gz -# Source0-md5: ba5273a480f3c3ee2e676710f9d230b2 +Source0: http://x11vnc.sourceforge.net/dev/%{name}-%{version}.tar.gz +# Source0-md5: 874008821a0588a73ec7fbe09b747bb0 +Source1: %{name}-x11vncd +Source2: %{name}-x11vncd.init +Source3: %{name}-x11vncd.sysconfig +Source4: %{name}-x11vncd_passwd URL: http://www.karlrunge.com/x11vnc/ -BuildRequires: xorg-lib-libX11-devel +BuildRequires: autoconf >= 2.59-9 +BuildRequires: automake BuildRequires: libjpeg-devel +BuildRequires: openssl-devel +BuildRequires: xorg-lib-libX11-devel +BuildRequires: xorg-lib-libXdamage-devel +BuildRequires: xorg-lib-libXext-devel +BuildRequires: xorg-lib-libXfixes-devel +BuildRequires: xorg-lib-libXinerama-devel +BuildRequires: xorg-lib-libXrandr-devel +BuildRequires: xorg-lib-libXtst-devel BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -21,13 +34,25 @@ protocol to the user. Based on the ideas of x0rfbserver and on LibVNCServer, it has evolved into a versatile and performant while still easy to use program. -%description -l pl +%description -l pl.UTF-8 x11vnc jest dla X Window System tym, czym jest WinVNC dla Windows, -czyli programem udostêpniaj±cym aktualny ekran X Window System poprzez -protokó³ RFB (VNC) dla u¿ytkownika. +czyli programem udostępniającym aktualny ekran X Window System poprzez +protokół RFB (VNC) dla użytkownika. + +Bazuje na pomyśle x0rfbserver i LibVNCServer, został stworzony jako +wszechstronny i wydajny, ale także łatwy w użyciu. + +%package init +Summary: Init scripts for VNC server +Summary(pl.UTF-8): Skrytpy startowe dla servera VNC. +Group: X11/Applications/Networking +Requires: x11vnc + +%description init +Init scripts for VNC server. -Bazuje na pomy¶le x0rfbserver i LibVNCServer, zosta³ stworzony jako -wszechstronny i wydajny, ale tak¿e ³atwy w u¿yciu. +%description init -l pl.UTF-8 +Skrytpy startowe dla servera VNC. %prep %setup -q @@ -48,12 +73,38 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_sbindir} \ + $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} + +cp %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/x11vncd +cp %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/x11vncd +cp %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/x11vncd +cp %{SOURCE4} $RPM_BUILD_ROOT/etc/x11vncd_passwd + %clean rm -rf $RPM_BUILD_ROOT +%post init +/sbin/chkconfig --add x11vncd +%service x11vncd restart "VNC Server" + +%preun init +if [ "$1" = "0" ]; then + %service x11vncd stop + /sbin/chkconfig --del x11vncd +fi + %files %defattr(644,root,root,755) %doc README NEWS TODO ChangeLog AUTHORS %attr(755,root,root) %{_bindir}/* %{_datadir}/%{name} +%{_desktopdir}/%{name}.desktop %{_mandir}/man1/%{name}.1* + +%files init +%defattr(644,root,root,755) +%attr(755,root,root) %{_sbindir}/x11vncd +%attr(754,root,root) /etc/rc.d/init.d/x11vncd +%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/x11vncd +%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/x11vncd_passwd