tsclient-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. %define gtk2_version 2.2.0
  2. %define gnome_panel 2.2.0
  3. %define rdesktop_version 1.3.0
  4. %define vnc_version 4.0
  5. %define desktop_file_utils_version 0.4
  6. Summary: Client for VNC and Windows Terminal Server
  7. Summary(ja): VNC および Windows ターミナルサーバ用クライアント
  8. Name: tsclient
  9. Version: 2.0.2
  10. Release: 6%{?_dist_release}
  11. URL: http://sourceforge.net/projects/tsclient
  12. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
  13. License: GPL+
  14. Group: User Interface/X
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  16. Requires: rdesktop
  17. #Requires: vnc
  18. BuildRequires: gnome-desktop-devel
  19. BuildRequires: libgnomeui-devel
  20. BuildRequires: libnotify-devel
  21. BuildRequires: NetworkManager-glib-devel
  22. BuildRequires: gtk2-devel >= %{gtk2_version}
  23. BuildRequires: gnome-panel >= %{gnome_panel}
  24. BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
  25. BuildRequires: gettext
  26. BuildRequires: autoconf, automake, libtool, intltool
  27. BuildRequires: libICE-devel, libSM-devel
  28. # reported upstream
  29. Patch0: icon-names.patch
  30. # reported upstream
  31. Patch2: edit-dialog-crash.patch
  32. # reported upstream
  33. Patch3: vnc-password-optional.patch
  34. # reported upstream
  35. Patch4: vnc-remote-screen-size.patch
  36. # NOT reported upstream; there's no simple way to make it support both
  37. # realvnc and tightvnc
  38. Patch5: realvnc-args.patch
  39. Patch6: tsclient-libgnomeui.patch
  40. Patch10: tsclient-2.0.2-nm08.patch
  41. Vendor: Project Vine
  42. Distribution: Vine Linux
  43. Packager: daisuke
  44. %description
  45. tsclient is a frontend that makes it easy to use rdesktop and vncviewer.
  46. %description -l ja
  47. tsclient は rdesktop と vncviewer を簡単に利用するためのフロントエンドです。
  48. %package devel
  49. Summary: Header files needed to write tsclient plugins
  50. Summary(ja): tsclient のプラグインを開発するためのヘッダファイル
  51. Group: Development/Libraries
  52. Requires: %{name} = %{version}-%{release}
  53. %description devel
  54. The tsclient-devel package contains header files that are needed to
  55. develop tsclient plugins.
  56. %prep
  57. %setup -q
  58. %patch0 -p1 -b .icon-names
  59. %patch2 -p1 -b .edit-dialog-crash
  60. %patch3 -p1 -b .vnc-password
  61. %patch4 -p1 -b .vnc-remotesize
  62. %patch5 -p1 -b .realvnc-args
  63. %patch6 -p1 -b .libgnomeui
  64. %patch10 -p1 -b .nm08
  65. libtoolize --force --copy
  66. autoreconf -f -i
  67. %build
  68. %configure
  69. make %{?_smp_mflags}
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. make install DESTDIR=$RPM_BUILD_ROOT
  73. rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
  74. desktop-file-install --vendor tsclient --delete-original \
  75. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  76. --remove-category Application \
  77. $RPM_BUILD_ROOT%{_datadir}/applications/*
  78. rm -rf $RPM_BUILD_ROOT/usr/lib/tsclient/plugins/*.{a,la}
  79. %find_lang %{name}
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT
  82. %post
  83. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  84. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/tsc-handlers.schemas >& /dev/null || :
  85. touch --no-create %{_datadir}/icons/hicolor
  86. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  87. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  88. fi
  89. %pre
  90. if [ "$1" -gt 1 ]; then
  91. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  92. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/tsc-handlers.schemas >& /dev/null || :
  93. fi
  94. %preun
  95. if [ "$1" -eq 0 ]; then
  96. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  97. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/tsc-handlers.schemas >& /dev/null || :
  98. fi
  99. %postun
  100. touch --no-create %{_datadir}/icons/hicolor
  101. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  102. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  103. fi
  104. %files -f %{name}.lang
  105. %defattr(-,root,root)
  106. %doc COPYING AUTHORS
  107. %{_bindir}/*
  108. %{_datadir}/applications/*.desktop
  109. %{_sysconfdir}/gconf/schemas/tsc-handlers.schemas
  110. %{_libdir}/tsclient
  111. %{_datadir}/gnome/autostart/tsc-autostart.desktop
  112. %{_datadir}/icons/hicolor/scalable/apps/tsclient.svg
  113. %{_datadir}/tsclient
  114. %files devel
  115. %{_includedir}/tsclient
  116. %changelog
  117. * Thu Apr 21 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.2-6
  118. - merge with tomop-san's change
  119. * Thu Apr 21 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.2-5
  120. - added "BuildRequires: libSM-devel, libICE-devel".
  121. * Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.2-5
  122. - rebuild for Vine 6
  123. * Wed May 05 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.2-4
  124. - rebuild with NetworkManager-0.8
  125. - add patch10 to build with NetworkManager-0.8
  126. * Sun Apr 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.2-3
  127. - rebuild with GNOME-2.30
  128. - change BuildRequires: gnome-panel-devel -> gnome-panel
  129. * Sat May 09 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.2-2
  130. - remove Requires: vnc
  131. * Thu May 07 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.2-1
  132. - new upstream release
  133. * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 0.148-1vl5
  134. - applied new versioning policy, spec in utf-8
  135. - changed _serverdir, %%{_libdir} => %%{_prefix}/lib
  136. * Fri Dec 1 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.148-0vl1
  137. - new upstream release
  138. - dropped Patch13
  139. * Tue May 10 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.140-0vl1
  140. - new upstream release
  141. - remove banner-ja.png that are now included in upstream
  142. - update ja.po
  143. * Mon Feb 23 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.132-0vl4
  144. - add Patch13 to support -gworkarea
  145. * Fri Dec 12 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.132-0vl3
  146. - add banner-ja.png
  147. * Fri Dec 12 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.132-0vl2
  148. - add Vine default fontpath to XDMCP(Xnest) option.
  149. * Fri Dec 12 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.132-0vl1
  150. - initial build for Vine Linux
  151. - add ja.po
  152. * Mon Sep 30 2002 - Erick Woods <erick@gnomepro.com>
  153. - This file was created