tsclient-vl.spec 4.9 KB

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