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