]> git.pld-linux.org Git - packages/gtk-vnc.git/blob - gtk-vnc.spec
- build gtk3 version too
[packages/gtk-vnc.git] / gtk-vnc.spec
1 Summary:        A GTK+ widget for VNC clients
2 Summary(pl.UTF-8):      Widget GTK+ dla klientów VNC
3 Name:           gtk-vnc
4 Version:        0.4.3
5 Release:        2
6 License:        LGPL v2
7 Group:          X11/Libraries
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc/0.4/%{name}-%{version}.tar.bz2
9 # Source0-md5:  38d3fbacb5d00e630f939e88858206f1
10 Patch0:         %{name}-codegen.patch
11 URL:            http://live.gnome.org/gtk-vnc
12 BuildRequires:  autoconf >= 2.63
13 BuildRequires:  automake >= 1:1.10
14 BuildRequires:  cairo-devel >= 1.2.0
15 BuildRequires:  cyrus-sasl-devel
16 BuildRequires:  gdk-pixbuf2-devel >= 2.10.0
17 BuildRequires:  gettext-devel
18 BuildRequires:  glib2-devel >= 1:2.28.0
19 BuildRequires:  gnome-common
20 BuildRequires:  gnutls-devel >= 1.4.0
21 BuildRequires:  gobject-introspection-devel >= 0.9.4
22 BuildRequires:  gtk+2-devel >= 2:2.18.0
23 BuildRequires:  gtk+3-devel >= 3.0.0
24 BuildRequires:  intltool >= 0.40.0
25 BuildRequires:  libtool >= 2.2.6
26 BuildRequires:  libview-devel >= 0.6.0
27 BuildRequires:  perl-Text-CSV
28 BuildRequires:  perl-tools-pod
29 BuildRequires:  pkgconfig
30 BuildRequires:  python-devel >= 1:2.4
31 BuildRequires:  python-pygtk-devel >= 2:2.0.0
32 BuildRequires:  rpm-pythonprov
33 BuildRequires:  xorg-lib-libX11-devel
34 BuildRequires:  zlib-devel
35 Requires:       libgvnc = %{version}-%{release}
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 gtk-vnc is a VNC viewer widget for GTK+. It is built using coroutines
40 allowing it to be completely asynchronous while remaining single
41 threaded.
42
43 %description -l pl.UTF-8
44 gtk-vnc to widget przeglądarki VNC dla GTK+. Jest skonstruowany z
45 użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
46 pozostając jednowątkowymi.
47
48 %package devel
49 Summary:        Header files for gtk-vnc library
50 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gtk-vnc
51 Group:          X11/Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53 Requires:       gnutls-devel >= 1.4.0
54 Requires:       gtk+2-devel >= 2:2.18.0
55 Requires:       libgvnc-devel = %{version}-%{release}
56
57 %description devel
58 Header files for gtk-vnc library.
59
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe biblioteki gtk-vnc.
62
63 %package static
64 Summary:        Static gtk-vnc library
65 Summary(pl.UTF-8):      Statyczna biblioteka gtk-vnc
66 Group:          X11/Development/Libraries
67 Requires:       %{name}-devel = %{version}-%{release}
68 Requires:       libgvnc-static = %{version}-%{release}
69
70 %description static
71 Static gtk-vnc library.
72
73 %description static -l pl.UTF-8
74 Statyczna biblioteka gtk-vnc.
75
76 %package -n gtk3-vnc
77 Summary:        A GTK+ widget for VNC clients
78 Summary(pl.UTF-8):      Widget GTK+ dla klientów VNC
79 Group:          X11/Libraries
80 Requires:       libgvnc = %{version}-%{release}
81
82 %description -n gtk3-vnc
83 gtk-vnc is a VNC viewer widget for GTK+ 3.x. It is built using
84 coroutines allowing it to be completely asynchronous while remaining
85 single threaded.
86
87 %description -n gtk3-vnc -l pl.UTF-8
88 gtk-vnc to widget przeglądarki VNC dla GTK+ 3.x. Jest skonstruowany z
89 użyciem korutyn, dzięki czemu mogą być w pełni asynchroniczne
90 pozostając jednowątkowymi.
91
92 %package -n gtk3-vnc-devel
93 Summary:        Header files for gtk-vnc library - GTK+ 3.x version
94 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gtk-vnc - wersja dla GTK+ 3.x
95 Group:          X11/Development/Libraries
96 Requires:       %{name} = %{version}-%{release}
97 Requires:       gnutls-devel >= 1.4.0
98 Requires:       gtk+3-devel >= 3.0.0
99 Requires:       libgvnc-devel = %{version}-%{release}
100
101 %description -n gtk3-vnc-devel
102 Header files for gtk-vnc library - GTK+ 3.x version.
103
104 %description -n gtk3-vnc-devel -l pl.UTF-8
105 Pliki nagłówkowe biblioteki gtk-vnc - wersja dla GTK+ 3.x.
106
107 %package -n gtk3-vnc-static
108 Summary:        Static gtk-vnc library - GTK+ 3.x version
109 Summary(pl.UTF-8):      Statyczna biblioteka gtk-vnc - wersja dla GTK+ 3.x
110 Group:          X11/Development/Libraries
111 Requires:       gtk3-vnc-devel = %{version}-%{release}
112 Requires:       libgvnc-static = %{version}-%{release}
113
114 %description -n gtk3-vnc-static
115 Static gtk-vnc library - GTK+ 3.x version.
116
117 %description -n gtk3-vnc-static -l pl.UTF-8
118 Statyczna biblioteka gtk-vnc - wersja dla GTK+ 3.x.
119
120 %package -n libgvnc
121 Summary:        A library for VNC clients
122 Summary(pl.UTF-8):      Biblioteka dla klientów VNC
123 Group:          X11/Libraries
124
125 %description -n libgvnc
126 A library for VNC clients.
127
128 %description -n libgvnc -l pl.UTF-8
129 Biblioteka dla klientów VNC.
130
131 %package -n libgvnc-devel
132 Summary:        Header files for libgvnc library
133 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libgvnc
134 Group:          X11/Development/Libraries
135 Requires:       libgvnc = %{version}-%{release}
136
137 %description -n libgvnc-devel
138 Header files for libgvnc library.
139
140 %description -n libgvnc-devel -l pl.UTF-8
141 Pliki nagłówkowe biblioteki libgvnc.
142
143 %package -n libgvnc-static
144 Summary:        Static libgvnc library
145 Summary(pl.UTF-8):      Statyczna biblioteka libgvnc
146 Group:          X11/Development/Libraries
147 Requires:       libgvnc-devel = %{version}-%{release}
148
149 %description -n libgvnc-static
150 Static libgvnc library.
151
152 %description -n libgvnc-static -l pl.UTF-8
153 Statyczna biblioteka libgvnc.
154
155 %package -n python-gtk-vnc
156 Summary:        Python bindings for the gtk-vnc library
157 Summary(pl.UTF-8):      Wiązania Pythona do biblioteki gtk-vnc
158 Group:          Libraries/Python
159 Requires:       %{name} = %{version}-%{release}
160 %requires_eq    python-libs
161
162 %description -n python-gtk-vnc
163 A module allowing use of the GTK+ VNC widget from Python.
164
165 %description -n python-gtk-vnc -l pl.UTF-8
166 Moduł pozwalający na używanie widgetu GTK+ VNC z poziomu Pythona.
167
168 %package tools
169 Summary:        Command line tools for VNC
170 Summary(pl.UTF-8):      Narzędzia linii poleceń dla VNC
171 Group:          Applications/Networking
172 Requires:       %{name} = %{version}-%{release}
173
174 %description tools
175 Command line utilities for interacting with VNC servers.
176
177 %description tools -l pl.UTF-8
178 Narzędzia linii poleceń do interakcji z serwerami VNC.
179
180 %prep
181 %setup -q
182 %patch0 -p1
183
184 %build
185 %{__libtoolize}
186 %{__aclocal} -I m4
187 %{__autoconf}
188 %{__autoheader}
189 %{__automake}
190 # force enums regeneration
191 touch src/vncconnection.h src/vncdisplay.h
192 mkdir gtk{2,3}
193 cd gtk2
194 ../%configure \
195         --with-gtk=2.0 \
196         --with-libview \
197         --enable-static \
198         --disable-plugin \
199         --disable-silent-rules
200 %{__make}
201 cd ../gtk3
202 # libview not ported to gtk+3
203 ../%configure \
204         --with-gtk=3.0 \
205         --without-libview \
206         --enable-static \
207         --disable-plugin \
208         --disable-silent-rules
209 %{__make}
210 cd ..
211
212 %install
213 rm -rf $RPM_BUILD_ROOT
214
215 cd gtk2
216 %{__make} -j1 install \
217         DESTDIR=$RPM_BUILD_ROOT
218 cd ../gtk3
219 %{__make} -j1 install \
220         DESTDIR=$RPM_BUILD_ROOT
221 cd ..
222
223 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
224         $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
225
226 install examples/gvncviewer.{c,js} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
227 install examples/gvncviewer.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
228
229 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \
230         $RPM_BUILD_ROOT%{_libdir}/*.la
231
232 %find_lang %{name}
233
234 %clean
235 rm -rf $RPM_BUILD_ROOT
236
237 %post   -p /sbin/ldconfig
238 %postun -p /sbin/ldconfig
239
240 %files
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so.*.*.*
243 %attr(755,root,root) %ghost %{_libdir}/libgtk-vnc-1.0.so.0
244 %{_libdir}/girepository-1.0/GtkVnc-1.0.typelib
245
246 %files devel
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/libgtk-vnc-1.0.so
249 %{_includedir}/%{name}-1.0
250 %{_datadir}/gir-1.0/GtkVnc-1.0.gir
251 %{_pkgconfigdir}/%{name}-1.0.pc
252 %{_examplesdir}/%{name}-%{version}
253
254 %files static
255 %defattr(644,root,root,755)
256 %{_libdir}/libgtk-vnc-1.0.a
257
258 %files -n gtk3-vnc
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.0
261 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so.0.0.2
262 %{_libdir}/girepository-1.0/GtkVnc-2.0.typelib
263
264 %files -n gtk3-vnc-devel
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_libdir}/libgtk-vnc-2.0.so
267 %{_includedir}/gtk-vnc-2.0
268 %{_pkgconfigdir}/gtk-vnc-2.0.pc
269 %{_datadir}/gir-1.0/GtkVnc-2.0.gir
270
271 %files -n gtk3-vnc-static
272 %defattr(644,root,root,755)
273 %{_libdir}/libgtk-vnc-2.0.a
274
275 %files -n libgvnc -f %{name}.lang
276 %defattr(644,root,root,755)
277 %doc AUTHORS ChangeLog NEWS README
278 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so.*.*.*
279 %attr(755,root,root) %ghost %{_libdir}/libgvnc-1.0.so.0
280 %{_libdir}/girepository-1.0/GVnc-1.0.typelib
281
282 %files -n libgvnc-devel
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_libdir}/libgvnc-1.0.so
285 %{_datadir}/gir-1.0/GVnc-1.0.gir
286 %{_includedir}/gvnc-1.0
287 %{_pkgconfigdir}/gvnc-1.0.pc
288
289 %files -n libgvnc-static
290 %defattr(644,root,root,755)
291 %{_libdir}/libgvnc-1.0.a
292
293 %files -n python-gtk-vnc
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{py_sitedir}/gtkvnc.so
296 %{_examplesdir}/python-%{name}-%{version}
297
298 %files tools
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_bindir}/gvnccapture
301 %{_mandir}/man1/gvnccapture.1*
This page took 0.061548 seconds and 4 git commands to generate.