tsclient-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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: 4%{?_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. # reported upstream
  28. Patch0: icon-names.patch
  29. # reported upstream
  30. Patch2: edit-dialog-crash.patch
  31. # reported upstream
  32. Patch3: vnc-password-optional.patch
  33. # reported upstream
  34. Patch4: vnc-remote-screen-size.patch
  35. # NOT reported upstream; there's no simple way to make it support both
  36. # realvnc and tightvnc
  37. Patch5: realvnc-args.patch
  38. Patch6: tsclient-libgnomeui.patch
  39. Patch10: tsclient-2.0.2-nm08.patch
  40. %description
  41. tsclient is a frontend that makes it easy to use rdesktop and vncviewer.
  42. %package devel
  43. Summary: Header files needed to write tsclient plugins
  44. Summary(ja): Header files needed to write tsclient plugins
  45. Group: Development/Libraries
  46. Requires: %{name} = %{version}-%{release}
  47. %description devel
  48. The tsclient-devel package contains header files that are needed to
  49. develop tsclient plugins.
  50. %prep
  51. %setup -q
  52. %patch0 -p1 -b .icon-names
  53. %patch2 -p1 -b .edit-dialog-crash
  54. %patch3 -p1 -b .vnc-password
  55. %patch4 -p1 -b .vnc-remotesize
  56. %patch5 -p1 -b .realvnc-args
  57. %patch6 -p1 -b .libgnomeui
  58. %patch10 -p1 -b .nm08
  59. libtoolize --force --copy
  60. autoreconf -f -i
  61. %build
  62. %configure
  63. make %{?_smp_mflags}
  64. %install
  65. rm -rf $RPM_BUILD_ROOT
  66. make install DESTDIR=$RPM_BUILD_ROOT
  67. rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
  68. desktop-file-install --vendor tsclient --delete-original \
  69. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  70. --remove-category Application \
  71. $RPM_BUILD_ROOT%{_datadir}/applications/*
  72. rm -rf $RPM_BUILD_ROOT/usr/lib/tsclient/plugins/*.{a,la}
  73. %find_lang %{name}
  74. %clean
  75. rm -rf $RPM_BUILD_ROOT
  76. %post
  77. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  78. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/tsc-handlers.schemas >& /dev/null || :
  79. touch --no-create %{_datadir}/icons/hicolor
  80. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  81. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  82. fi
  83. %pre
  84. if [ "$1" -gt 1 ]; then
  85. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  86. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/tsc-handlers.schemas >& /dev/null || :
  87. fi
  88. %preun
  89. if [ "$1" -eq 0 ]; then
  90. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  91. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/tsc-handlers.schemas >& /dev/null || :
  92. fi
  93. %postun
  94. touch --no-create %{_datadir}/icons/hicolor
  95. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  96. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  97. fi
  98. %files -f %{name}.lang
  99. %defattr(-,root,root)
  100. %doc COPYING AUTHORS
  101. %{_bindir}/*
  102. %{_datadir}/applications/*.desktop
  103. %{_sysconfdir}/gconf/schemas/tsc-handlers.schemas
  104. %{_libdir}/tsclient
  105. %{_datadir}/gnome/autostart/tsc-autostart.desktop
  106. %{_datadir}/icons/hicolor/scalable/apps/tsclient.svg
  107. %{_datadir}/tsclient
  108. %files devel
  109. %{_includedir}/tsclient
  110. %changelog
  111. * Wed May 05 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.2-4
  112. - rebuild with NetworkManager-0.8
  113. - add patch10 to build with NetworkManager-0.8
  114. * Sun Apr 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.2-3
  115. - rebuild with GNOME-2.30
  116. - change BuildRequires: gnome-panel-devel -> gnome-panel
  117. * Sat May 09 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.2-2
  118. - remove Requires: vnc
  119. * Thu May 07 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.2-1
  120. - new upstream release
  121. * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 0.148-1vl5
  122. - applied new versioning policy, spec in utf-8
  123. - changed _serverdir, %%{_libdir} => %%{_prefix}/lib
  124. * Fri Dec 1 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.148-0vl1
  125. - new upstream release
  126. - dropped Patch13
  127. * Tue May 10 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.140-0vl1
  128. - new upstream release
  129. - remove banner-ja.png that are now included in upstream
  130. - update ja.po
  131. * Mon Feb 23 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.132-0vl4
  132. - add Patch13 to support -gworkarea
  133. * Fri Dec 12 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.132-0vl3
  134. - add banner-ja.png
  135. * Fri Dec 12 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.132-0vl2
  136. - add Vine default fontpath to XDMCP(Xnest) option.
  137. * Fri Dec 12 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.132-0vl1
  138. - initial build for Vine Linux
  139. - add ja.po
  140. * Mon Sep 30 2002 - Erick Woods <erick@gnomepro.com>
  141. - This file was created