libvncserver-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. %define system_minilzo 1
  2. Summary: Library to make writing a vnc server easy
  3. Name: libvncserver
  4. Version: 0.9.9
  5. Release: 1%{?_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. # workaround there being no x11vnc/ dir in tarball
  13. Patch0: LibVNCServer-0.9.9-no_x11vnc.patch
  14. Patch1: LibVNCServer-0.9.9-system_minilzo.patch
  15. Patch2: libvncserver-0.9.1-multilib.patch
  16. # pkgconfig love (upstreamable)
  17. Patch3: LibVNCServer-0.9.9-pkgconfig.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. %patch0 -p1 -b .no_x11vnc
  44. %if %{system_minilzo}
  45. %patch1 -p1 -b .system_minilzo
  46. #nuke bundled minilzo
  47. rm -f common/lzodefs.h common/lzoconf.h commmon/minilzo.h common/minilzo.c
  48. %endif
  49. %patch2 -p1 -b .multilib
  50. %patch3 -p1 -b .pkgconfig
  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. autoreconf
  59. %configure \
  60. --disable-static \
  61. --without-tightvnc-filetransfer
  62. # hack to omit unused-direct-shlib-dependencies
  63. sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
  64. make \
  65. %if %{system_minilzo}
  66. CFLAGS="$RPM_OPT_FLAGS -I %{_includedir}/lzo" LDFLAGS="$LDFLAGS -lminilzo" \
  67. %endif
  68. %{?_smp_mflags}
  69. %install
  70. rm -rf %{buildroot}
  71. make install DESTDIR=%{buildroot}
  72. # unpackaged files
  73. rm -f %{buildroot}%{_bindir}/LinuxVNC
  74. rm -f %{buildroot}%{_libdir}/lib*.a
  75. rm -f %{buildroot}%{_libdir}/lib*.la
  76. %clean
  77. rm -rf %{buildroot}
  78. %post -p /sbin/ldconfig
  79. %postun -p /sbin/ldconfig
  80. %files
  81. %defattr(-,root,root,-)
  82. %doc AUTHORS ChangeLog COPYING NEWS README TODO
  83. %{_bindir}/linuxvnc
  84. %{_libdir}/libvncclient.so.0*
  85. %{_libdir}/libvncserver.so.0*
  86. %files devel
  87. %defattr(-,root,root,-)
  88. %{_bindir}/*-config
  89. %{_includedir}/rfb/
  90. %{_libdir}/libvncclient.so
  91. %{_libdir}/libvncserver.so
  92. %{_libdir}/pkgconfig/libvncclient.pc
  93. %{_libdir}/pkgconfig/libvncserver.pc
  94. %changelog
  95. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.9-1
  96. - update to 0.9.9
  97. - remove Patch50 (libvncserver-LINUX.patch)
  98. - remove Patch100 (libvncserver-0.9.1-close_server_socket.patch)
  99. - add patches from fedora
  100. - Patch0 (LibVNCServer-0.9.9-no_x11vnc.patch)
  101. - Patch3 (LibVNCServer-0.9.9-pkgconfig.patch)
  102. - update Patch1 (LibVNCServer-0.9.9-system_minilzo.patch) from fedora
  103. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.7-4
  104. - Initial build for Vine Linux
  105. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-3
  106. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  107. * Sat May 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-3
  108. - Socket is not closed when disconnecting from server (#501895)
  109. * Mon May 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-2
  110. - fix detection of LINUX platform/define
  111. * Mon May 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-1
  112. - LibVNCServer-0.9.7
  113. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
  114. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  115. * Thu Apr 10 2008 Manuel Wolfshant <wolfy@fedoraproject.org> 0.9.1-3
  116. - do not use bundled copy of minilzo (#439979)
  117. * Sun Jan 27 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.1-2
  118. - hack libtool to omit unused shlib dependencies
  119. - fix AUTHORS encoding
  120. - fix src perms
  121. * Mon Jan 21 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.1-1
  122. - 0.9.1