14590
|
1 |
#
|
|
2 |
# spec file for package gtk-vnc
|
|
3 |
#
|
17789
|
4 |
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
14590
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
16434
|
8 |
%define owner halton
|
14590
|
9 |
#
|
|
10 |
|
17852
|
11 |
%define OSR LFI#105446 (gnome Exec. summary):n/a
|
14590
|
12 |
|
|
13 |
Name: gtk-vnc
|
|
14 |
License: LGPL v2.1, MIT, MPL 1.1
|
|
15 |
Group: Development/Libraries
|
16824
|
16 |
Version: 0.3.10
|
14590
|
17 |
Release: 1
|
|
18 |
Distribution: Java Desktop System
|
17864
|
19 |
Vendor: Gnome Community
|
14590
|
20 |
URL: http://gtk-vnc.sf.net/
|
|
21 |
Summary: A GTK widget for VNC clients
|
15204
|
22 |
Source: http://download.gnome.org/sources/%{name}/0.3/%{name}-%{version}.tar.bz2
|
16244
|
23 |
# date:2008-11-28 owner:fujiwara type:feature bugster:6777514 bugzilla:591523
|
|
24 |
Patch1: gtk-vnc-01-cp-utf8.diff
|
14780
|
25 |
# date:2008-12-16 owner:halton type:bug bugzilla:564718
|
17428
|
26 |
Patch2: gtk-vnc-02-ff3.6.diff
|
14590
|
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
28 |
|
|
29 |
BuildRequires: gtk2-devel pygtk2-devel python-devel
|
|
30 |
|
16744
|
31 |
%{?!pythonver:%define pythonver %default_python_version}
|
14655
|
32 |
|
14590
|
33 |
%description
|
|
34 |
gtk-vnc is a VNC viewer widget for GTK. It is built using coroutines
|
|
35 |
allowing it to be completely asynchronous while remaining single threaded.
|
|
36 |
|
|
37 |
%package devel
|
|
38 |
Summary: Libraries, includes, etc. to compile with the gtk-vnc library
|
|
39 |
Group: Development/Libraries
|
|
40 |
Requires: %{name} = %{version}
|
|
41 |
Requires: pkgconfig
|
|
42 |
Requires: pygtk2-devel gtk2-devel
|
|
43 |
|
|
44 |
%description devel
|
|
45 |
gtk-vnc is a VNC viewer widget for GTK. It is built using coroutines
|
|
46 |
allowing it to be completely asynchronous while remaining single threaded.
|
|
47 |
|
|
48 |
Libraries, includes, etc. to compile with the gtk-vnc library
|
|
49 |
|
|
50 |
%package python
|
|
51 |
Summary: Python bindings for the gtk-vnc library
|
|
52 |
Group: Development/Libraries
|
|
53 |
Requires: %{name} = %{version}
|
|
54 |
|
|
55 |
%description python
|
|
56 |
gtk-vnc is a VNC viewer widget for GTK. It is built using coroutines
|
|
57 |
allowing it to be completely asynchronous while remaining single threaded.
|
|
58 |
|
|
59 |
A module allowing use of the GTK-VNC widget from python
|
|
60 |
|
|
61 |
%prep
|
|
62 |
%setup -q
|
14677
|
63 |
%patch1 -p1
|
|
64 |
%patch2 -p1
|
14590
|
65 |
|
|
66 |
%build
|
|
67 |
%ifos linux
|
|
68 |
if [ -x /usr/bin/getconf ]; then
|
|
69 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
70 |
fi
|
|
71 |
%else
|
|
72 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
73 |
%endif
|
|
74 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
75 |
CPUS=1
|
|
76 |
fi
|
|
77 |
|
15369
|
78 |
export PYTHON=/usr/bin/python%{pythonver}
|
14655
|
79 |
|
14749
|
80 |
libtoolize --force --force
|
16244
|
81 |
# FIXME: community is doing i18n thing, disable it for now.
|
|
82 |
#intltoolize --automake -c -f
|
14749
|
83 |
aclocal -I gnulib/m4
|
14590
|
84 |
autoheader
|
14749
|
85 |
automake --add-missing --copy
|
14590
|
86 |
autoconf
|
|
87 |
|
|
88 |
./configure --prefix=%{_prefix} \
|
|
89 |
--bindir=%{_bindir} \
|
|
90 |
--mandir=%{_mandir} \
|
|
91 |
--libdir=%{_libdir} \
|
|
92 |
--datadir=%{_datadir} \
|
|
93 |
--includedir=%{_includedir} \
|
|
94 |
--sysconfdir=%{_sysconfdir} \
|
|
95 |
%if %debug_build
|
|
96 |
--enable-debug=yes \
|
|
97 |
%endif
|
|
98 |
%if %with_brower_plugin
|
|
99 |
--enable-plugin
|
|
100 |
%endif
|
|
101 |
|
|
102 |
|
|
103 |
make -j $CPUS
|
|
104 |
|
|
105 |
%install
|
|
106 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
107 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
108 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
109 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
110 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
111 |
|
14655
|
112 |
# move to vendor-packages
|
|
113 |
%if %with_64
|
|
114 |
cd $RPM_BUILD_ROOT%{_libdir}/..
|
|
115 |
mkdir -p python%{pythonver}/vendor-packages/64
|
|
116 |
mv python%{pythonver}/site-packages/* python%{pythonver}/vendor-packages/64
|
|
117 |
%else
|
|
118 |
cd $RPM_BUILD_ROOT%{_libdir}
|
|
119 |
mkdir -p python%{pythonver}/vendor-packages
|
|
120 |
mv python%{pythonver}/site-packages/* python%{pythonver}/vendor-packages/
|
|
121 |
%endif
|
|
122 |
rmdir python%{pythonver}/site-packages
|
|
123 |
|
14590
|
124 |
%clean
|
|
125 |
rm -rf $RPM_BUILD_ROOT
|
|
126 |
|
|
127 |
%post
|
|
128 |
/sbin/ldconfig
|
|
129 |
|
|
130 |
%postun
|
|
131 |
/sbin/ldconfig
|
|
132 |
|
|
133 |
%files
|
|
134 |
%defattr(-, root, root)
|
|
135 |
%doc AUTHORS ChangeLog NEWS README COPYING.LIB
|
|
136 |
%{_libdir}/lib*.so.*
|
|
137 |
|
|
138 |
%files devel
|
|
139 |
%defattr(-, root, root)
|
|
140 |
%doc AUTHORS ChangeLog NEWS README COPYING.LIB
|
|
141 |
%doc examples/gvncviewer.c
|
|
142 |
%{_libdir}/lib*.so
|
|
143 |
%dir %{_includedir}/%{name}-1.0/
|
|
144 |
%{_includedir}/%{name}-1.0/*.h
|
|
145 |
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
146 |
|
|
147 |
%files python
|
|
148 |
%defattr(-, root, root)
|
|
149 |
%doc AUTHORS ChangeLog NEWS README COPYING.LIB
|
|
150 |
%doc examples/gvncviewer.py
|
|
151 |
%{_libdir}/python*/site-packages/gtkvnc.so
|
|
152 |
|
|
153 |
%changelog
|
17428
|
154 |
* Mon Jan 25 2010 - [email protected]
|
|
155 |
- Remove gtk-vnc-02-ff3.1.diff, add gtk-vnc-02-ff3.6.diff.
|
16936
|
156 |
* Tue Nov 11 2009 - [email protected]
|
|
157 |
- Remove hacking stuff cause 591524 is fixed
|
16824
|
158 |
* Wed Oct 21 2009 - [email protected]
|
|
159 |
- Bump to 0.3.10
|
|
160 |
- Remove upstreamed patch sasl.diff
|
16244
|
161 |
* Wed Aug 12 2009 - [email protected]
|
|
162 |
- Bump to 0.3.9
|
|
163 |
- Remove obsoleted patch textdomain.diff and reorder
|
|
164 |
- Add patch sasl.diff to fix bugzilla #592521
|
14780
|
165 |
* Tue Dec 16 2008 - [email protected]
|
|
166 |
- Add ff3.1.diff to fix the build issue when FF bumped to 3.1
|
14749
|
167 |
* Thu Dec 11 2008 - [email protected]
|
|
168 |
- Bump to 0.3.8
|
14677
|
169 |
* Fri Nov 28 2008 - [email protected]
|
|
170 |
- Add patch textdomain.diff to support message i18n.
|
|
171 |
- Add patch cp-utf8.diff to copy multibyte chars.
|
14655
|
172 |
* Wed Nov 26 2008 - [email protected]
|
|
173 |
- use %{pythonver} macro to select which version of Python to build with
|
14593
|
174 |
* Thu Nov 13 2008 - [email protected]
|
|
175 |
- Moved from SFE
|
14590
|
176 |
* Tue Sep 09 2008 - [email protected]
|
|
177 |
- Bump to 0.3.7
|
|
178 |
* Tue May 06 2008 - [email protected]
|
|
179 |
- Bump to 0.3.6
|
|
180 |
- Remove upsteamed patch solaris-ld-ast.diff
|
|
181 |
* Tue Apr 22 2008 - [email protected]
|
|
182 |
- Bump to 0.3.5
|
|
183 |
* Fri Mar 07 2008 - [email protected]
|
|
184 |
- Bump to 0.3.4
|
|
185 |
* Wed Feb 20 2008 - [email protected]
|
|
186 |
- Bump to 0.3.3
|
|
187 |
- Remove upstreamed patch suncc-range-case.diff
|
|
188 |
* Thu Jan 10 2008 - [email protected]
|
|
189 |
- Bump to 0.3.2
|
|
190 |
- Add patch suncc-range-case.diff to fix build issue.
|
|
191 |
* Fri Dec 14 2007 - [email protected]
|
|
192 |
- Bump to 0.3.1
|
|
193 |
* Thu Dec 13 2007 - [email protected]
|
|
194 |
- Bump to 0.3.0
|
|
195 |
- Remove upsreamed patches: makefile.diff, macro.diff,
|
|
196 |
yield.diff and coroutine.diff
|
|
197 |
- Add new patch solaris-ld-ast.diff
|
|
198 |
* Tue Oct 30 2007 - [email protected]
|
|
199 |
- Add debug option.
|
|
200 |
* Thu Oct 25 2007 - [email protected]
|
|
201 |
- Initial version
|