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