x11vnc-vl.spec 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. Summary: VNC server for the current X11 session
  2. Summary(ja): 実行中の X セッションにリモートアクセスできる VNC サーバ
  3. Name: x11vnc
  4. Version: 0.9.12
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: User Interface/X
  8. URL: http://www.karlrunge.com/x11vnc/
  9. Source0: http://downloads.sourceforge.net/libvncserver/%{name}-%{version}.tar.gz
  10. # Don't want hardcoded rpaths.
  11. Patch1: x11vnc-0.9.8-disableRpath.patch
  12. # According to new paths add new include to build. I think it is Fedora-related.
  13. Patch2: x11vnc-0.9.8-XShm-explicit-include.patch
  14. BuildRequires: libjpeg-devel, zlib-devel, openssl-devel
  15. BuildRequires: xorg-x11-proto-devel, libXext-devel, libXtst-devel
  16. BuildRequires: libXfixes-devel, avahi-devel
  17. BuildRequires: libXtst-devel
  18. BuildRequires: libXinerama-devel
  19. BuildRequires: libXrandr-devel
  20. #BuildRequires: libvncserver-devel
  21. ### drop java stuff for vine
  22. #BuildRequires: java-1.6.0-openjdk-devel
  23. Requires: Xvfb
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  25. Packager: kazutaka
  26. %description
  27. x11vnc allows one to view remotely and interact with real X displays
  28. (i.e. a display corresponding to a physical monitor, keyboard, and
  29. mouse) with any VNC viewer.
  30. It has built-in SSL/TLS encryption and RSA authentication, UNIX account
  31. and password login support, server-side scaling, single port HTTPS/HTTP
  32. and VNC, and Zeroconf service advertising.
  33. %description -l ja
  34. x11vnc により、VNC ビューアを使って実行中の X セッションに
  35. リモートアクセスできるようになります。アクセス中はモニターの
  36. 表示だけでなく、キーボードやマウスのの操作も可能になります。
  37. また組込みの SSL/TLS 暗号化や RSA 認証、UNIX アカウントとパス
  38. ワードによるログイン、サーバーサイド・スケーリング、シングル
  39. ポート HTTPS/HTTP 及び VNC 接続、Zeroconf サービスへの通知など
  40. をサポートしています。
  41. ### drop java stuff for vine
  42. #%package javaviewers
  43. #Version: %{version}
  44. #Summary: VNC clients (browser java applets)
  45. #Requires: %{name} = %{version}-%{release}
  46. #License: GPLv2+
  47. #Group: User Interface/X
  48. #BuildArch: noarch
  49. #BuildRequires: java-devel >= 1:1.6.0
  50. #BuildRequires: jpackage-utils
  51. #
  52. #
  53. #%description javaviewers
  54. #The package contains the corresponding java clients for %{name}. They
  55. #can be used with any java-enabled browser and provide an easy access to
  56. #the server without the need to install software on the client machine.
  57. %prep
  58. %setup -q
  59. %patch1 -p0 -b .rpath
  60. %if %{?_dist_release} == "vl6"
  61. %patch2 -p0 -b .XShm
  62. %endif
  63. # fix source perms for the -debuginfo package rpmlint warnings
  64. find -name "*.c" -o -name "*.h" -exec %{__chmod} 0644 {} \;
  65. for file in README AUTHORS; do
  66. # ISO-8859-1 is my assumption.
  67. iconv -f ISO-8859-1 -t UTF-8 "$file" > "$file.new"
  68. touch --reference "$file" "$file.new"
  69. %{__mv} "$file.new" "$file"
  70. done
  71. ### drop java stuff for vine
  72. ## Delete prebuilt binaries
  73. #find -name '*.jar' -exec rm {} \;
  74. %build
  75. %configure --without-tightvnc-filetransfer
  76. # --with-system-libvncserver
  77. ### drop java stuff for vine
  78. # First rebuild jars, what have been removed in %%prep.
  79. #pushd classes/ssl/src
  80. #%{__make} %{?_smp_mflags}
  81. # # Alternative to patch Makefiles.
  82. # for jarfile in *.jar; do
  83. # %{__ln_s} src/$jarfile ../;
  84. # %{__ln_s} ssl/src/$jarfile ../../;
  85. # done
  86. #popd
  87. %{__make} %{?_smp_mflags}
  88. %install
  89. %{__rm} -rf %{buildroot}
  90. %{__make} install DESTDIR="%{buildroot}"
  91. ### drop java stuff for vine
  92. ## And Java viewers
  93. #pushd classes/ssl
  94. #%{__make} install DESTDIR="%{buildroot}"
  95. #popd
  96. #
  97. # Rename README file to avoid name bump
  98. #%{__mv} classes/ssl/src/tight/README classes/ssl/src/tight/README.tight
  99. #%{__mv} classes/ssl/src/ultra/README classes/ssl/src/ultra/README.ultra
  100. ### Remove Java viewers for vine
  101. %{__rm} -rf $RPM_BUILD_ROOT/%{_datadir}/%{name}/classes
  102. ### Remove header files
  103. %{__rm} -rf $RPM_BUILD_ROOT/%{_includedir}/rfb
  104. %clean
  105. %{__rm} -rf %{buildroot}
  106. %files
  107. %defattr(-,root,root,-)
  108. %doc AUTHORS ChangeLog COPYING NEWS README TODO
  109. %{_mandir}/man1/x11vnc.1*
  110. %{_bindir}/x11vnc
  111. %{_datadir}/applications/x11vnc.desktop
  112. ### drop java stuff for vine
  113. #%files javaviewers
  114. #%defattr(-,root,root,-)
  115. #%doc classes/ssl/README classes/ssl/src/tight/README.tight classes/ssl/src/ultra/README.ultra
  116. #%{_datadir}/%{name}
  117. #%exclude %{_datadir}/%{name}/classes/ssl/README
  118. %changelog
  119. * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.12-1
  120. - new upstream release
  121. - add BuildRequires: libXtst-devel, libXinerama-devel, libXrandr-devel
  122. * Sat Nov 21 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.8-2
  123. - apply Patch2 on VineSeed
  124. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9.8-1
  125. - initial build for Vine Linux based on fedora development
  126. - remove java related stuff to avoid to depend java
  127. - drop dependency for libvncserver (also drop configure option)
  128. - add japanese description and summary
  129. * Tue Oct 6 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-14
  130. - Make -javaviewers subpackage noarch.
  131. * Sun Oct 4 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-13
  132. - Small fis requires release.
  133. - Rename README file to avoid name bump
  134. * Fri Sep 25 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-12
  135. - Own %%{_datadir}/%%{name} instead of %%{_datadir}/%%{name}/classes
  136. - Add Requires: %%{name} = %%{version}-%%{release} in subpackage.
  137. - Change summary and description for javaviewers subpackage.
  138. - Remove %%doc marker from man-page.
  139. - %%defattr(-,root,root,0755) -> %%defattr(-,root,root,-)
  140. - Add classes/ssl/src/tight/README classes/ssl/src/ultra/README files into
  141. javaviewers subpackage %%doc (thank you Orcan Ogetbil)
  142. - ln -s replaced by %%{__ln_s}
  143. - Set License: GPLv2+ for javaviewers subpackage (Thanks Spot)
  144. * Mon Aug 31 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-11
  145. - Remove all prebuilt *.jar-files in %%prep section and try build it from source.
  146. - Add BR java-1.6.0-openjdk-devel
  147. - Introduce new subpackage x11vnc-javaviewers.
  148. - Add separate build java-viewers.
  149. - Add Russian localized versions of Summary and descrioptions.
  150. * Wed Aug 26 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-10
  151. - Fix some spelling, change some cosmetic things.
  152. - Delete Patch0 and hacks to link with system lzo package - it is not needed
  153. anymore as we link it with systel libvncserver instead.
  154. - Delete BR lzo-devel
  155. - Remiove empty directory %%{_datadir}/%%{name}/
  156. * Sun Aug 9 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-9
  157. - Add Requires: Xvfb
  158. * Fri Aug 7 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-8
  159. - Link to shared lzo instead of minilzo for all (not only EL-5).
  160. - Add BuildRequires: /usr/include/X11/extensions/XShm.h
  161. - Patch2: x11vnc-0.9.8-XShm-explicit-include.patch
  162. - Step to conditional BR for Fedora 12, add
  163. Patch2: x11vnc-0.9.8-XShm-explicit-include.patch to build on it.
  164. * Tue Aug 4 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-7
  165. - Change license to GPLv2 without plus according to x11vnc.c
  166. source (thanks to Christian Krause).
  167. - For consistency macros usage replace "ln -s" by %%{__ln_s},
  168. mv by %%{__mv} and similar (chmod, sed).
  169. - Change find call to avoid using xargs in chmod sources command.
  170. * Wed Jul 29 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-6
  171. - Build with openssl unconditionally.
  172. - Add Patch1: x11vnc-0.9.8-disableRpath.patch
  173. - fix source perms for the -debuginfo package rpmlint warnings
  174. * Tue Jul 21 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-5
  175. - Try use lzo instead of minilzo in EL-5 (minilzo is not bundled in it).
  176. - Try use system libvncserver library (--with-system-libvncserver
  177. configure option) instead of bundled one.
  178. - System libvncserver built without tightvnc-filetransfer support.
  179. Now disable it there (--without-filetransfer)
  180. And according to it change License to only GPLv2+
  181. ./configure --help misleading, using --without-tightvnc-filetransfer
  182. * Tue Jul 21 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-4
  183. - All changes inspired by started Fedora Review (thank you to Christian Krause).
  184. - README and AUTHORS files converted into UTF-8.
  185. - Explicit mention previous author in changelog and delet old entries of it.
  186. - Source renamed to Source0.
  187. - Source0 URL changed to long (correct) variant:
  188. http://downloads.sourceforge.net/libvncserver/%%{name}-%%{version}.tar.gz
  189. was http://dl.sf.net/libvncserver/x11vnc-%%{version}.tar.gz
  190. - Add BR: /usr/include/X11/extensions/XInput.h; In F12 it is located in
  191. libXi-devel but in previous versions in xorg-x11-proto-devel
  192. so, to do not make conditional requires, require explicit file.
  193. - Remove prebuild binaries clients.
  194. - Remove Requires: minilzo it will be automatically propogated.
  195. - Add BR: libvncserver-devel
  196. * Fri Jul 10 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-3
  197. - Add BR openssl-devel to provide SSL capability (thanks Manuel Wolfshant).
  198. - Requires: minilzo, BR lzo-devel and Patch0:
  199. 11vnc-0.9.8-use-system-minilzo.patch to use system version of library.
  200. - Add "and GPLv2" to License. See comment above why.
  201. - Add BuildRequires: libXfixes-devel
  202. * Fri Jul 10 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.9.8-2
  203. - Import http://packages.sw.be/x11vnc/x11vnc-0.9.7-1.rf.src.rpm to maintain it in fedora:
  204. Packager: Dag Wieers <dag@wieers.com>
  205. Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
  206. - Step to version 0.9.8
  207. - Reformat spec with tabs.
  208. - Comment out (leave for history) Packager and Vendor tags
  209. - Remove defines of several macros like dtag, conditional _without_modxorg
  210. - Remove all stuff around conditional build _without_modxorg
  211. - Add -%%(%%{__id_u} -n) part into buildroot.
  212. - Make setup quiet.
  213. - Remove "rf" Release suffix and replace it by %%{?dist}
  214. - License from GPL changed to GPLv2+