X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=tigervnc.spec;fp=tigervnc.spec;h=af0e08e5db6805d89afd30127074b9bdb7f6b49a;hb=b05eeac8c634fbf5443d4ca2881c44ff4c9534a6;hp=cd9c64bc3f03f95fbe737d10b2e7ccc068553661;hpb=a5f2294fd721db65c93c74abf2342bdb75433be3;p=packages%2Ftigervnc.git diff --git a/tigervnc.spec b/tigervnc.spec index cd9c64b..af0e08e 100644 --- a/tigervnc.spec +++ b/tigervnc.spec @@ -119,6 +119,7 @@ gałęzi VNC 4 TightVNC. Summary: VNC X server - TigerVNC version Summary(pl.UTF-8): X serwer VNC - wersja TigerVNC Group: X11/Applications/Networking +Requires(post,preun): /sbin/chkconfig Requires: xorg-app-rgb # for vncpasswd tool Requires: %{name}-utils = %{version}-%{release} @@ -281,6 +282,16 @@ rm -rf $RPM_BUILD_ROOT [ ! -x /usr/bin/update-desktop-database ] || %update_desktop_database_postun %update_icon_cache hicolor +%post server +/sbin/chkconfig --add vncserver +%service vncserver restart "VNC server" + +%preun server +if [ "$1" = "0" ]; then + %service vncserver stop + /sbin/chkconfig --del vncserver +fi + %files -f %{name}.lang %defattr(644,root,root,755) %doc README.txt doc/*