libvncserver-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. %define system_minilzo 1
  2. Summary: Library to make writing a vnc server easy
  3. Name: libvncserver
  4. Version: 0.9.7
  5. Release: 4%{?_dist_release}
  6. # NOTE: --with-tightvnc-filetransfer => GPLv2
  7. License: GPLv2+
  8. Group: System Environment/Libraries
  9. URL: http://libvncserver.sourceforge.net/
  10. Source0: http://downloads.sf.net/libvncserver/LibVNCServer-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. Patch1: libvncserver-0.9.7-system_minilzo.patch
  13. Patch2: libvncserver-0.9.1-multilib.patch
  14. # safer LINUX platform detection (from opensuse)
  15. Patch50: libvncserver-LINUX.patch
  16. ## upstream patches
  17. Patch100: libvncserver-0.9.1-close_server_socket.patch
  18. # upstream name
  19. Obsoletes: LibVNCServer < %{version}-%{release}
  20. Provides: LibVNCServer = %{version}-%{release}
  21. BuildRequires: findutils
  22. BuildRequires: libjpeg-devel
  23. BuildRequires: zlib-devel
  24. BuildRequires: lzo-minilzo lzo-devel
  25. %description
  26. LibVNCServer makes writing a VNC server (or more correctly, a program
  27. exporting a framebuffer via the Remote Frame Buffer protocol) easy.
  28. It hides the programmer from the tedious task of managing clients and
  29. compression schemata.
  30. %package devel
  31. Summary: Development files for %{name}
  32. Group: Development/Libraries
  33. Requires: %{name} = %{version}-%{release}
  34. # libvncserver-config deps
  35. Requires: coreutils
  36. # upstream name
  37. #Obsoletes: LibVNCServer-devel < %{version}-%{release}
  38. Provides: LibVNCServer-devel = %{version}-%{release}
  39. %description devel
  40. %{summary}.
  41. %prep
  42. %setup -q -n LibVNCServer-%{version}
  43. %if %{system_minilzo}
  44. %patch1 -p1 -b .system_minilzo
  45. #nuke bundled minilzo
  46. find . -name minilzo\* -exec rm -f {} \;
  47. %endif
  48. %patch2 -p1 -b .multilib
  49. %patch50 -p0 -b .LINUX
  50. %patch100 -p1 -b .close_server_socket
  51. # fix encoding
  52. mv AUTHORS AUTHORS.OLD && \
  53. iconv -f ISO_8859-1 -t UTF8 AUTHORS.OLD > AUTHORS && \
  54. touch --reference AUTHORS.OLD AUTHORS
  55. # fix source perms
  56. find -name "*.c" -o -name "*.h" | xargs chmod 644
  57. %build
  58. %configure \
  59. --disable-static \
  60. --without-tightvnc-filetransfer
  61. # hack to omit unused-direct-shlib-dependencies
  62. sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
  63. make \
  64. %if %{system_minilzo}
  65. CFLAGS="$RPM_OPT_FLAGS -I %{_includedir}/lzo" LDFLAGS="$LDFLAGS -lminilzo" \
  66. %endif
  67. %{?_smp_mflags}
  68. %install
  69. rm -rf %{buildroot}
  70. make install DESTDIR=%{buildroot}
  71. # unpackaged files
  72. rm -f %{buildroot}%{_bindir}/LinuxVNC
  73. rm -f %{buildroot}%{_libdir}/lib*.a
  74. rm -f %{buildroot}%{_libdir}/lib*.la
  75. %clean
  76. rm -rf %{buildroot}
  77. %post -p /sbin/ldconfig
  78. %postun -p /sbin/ldconfig
  79. %files
  80. %defattr(-,root,root,-)
  81. %doc AUTHORS ChangeLog COPYING NEWS README TODO
  82. %{_libdir}/libvncclient.so.0*
  83. %{_libdir}/libvncserver.so.0*
  84. %files devel
  85. %defattr(-,root,root,-)
  86. %{_bindir}/*-config
  87. %{_includedir}/rfb/
  88. %{_libdir}/libvncclient.so
  89. %{_libdir}/libvncserver.so
  90. %changelog
  91. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.7-4
  92. - Initial build for Vine Linux
  93. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-3
  94. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  95. * Sat May 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-3
  96. - Socket is not closed when disconnecting from server (#501895)
  97. * Mon May 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-2
  98. - fix detection of LINUX platform/define
  99. * Mon May 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-1
  100. - LibVNCServer-0.9.7
  101. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
  102. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  103. * Thu Apr 10 2008 Manuel Wolfshant <wolfy@fedoraproject.org> 0.9.1-3
  104. - do not use bundled copy of minilzo (#439979)
  105. * Sun Jan 27 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.1-2
  106. - hack libtool to omit unused shlib dependencies
  107. - fix AUTHORS encoding
  108. - fix src perms
  109. * Mon Jan 21 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.1-1
  110. - 0.9.1