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