]> git.pld-linux.org Git - packages/spice-gtk.git/blob - spice-gtk.spec
- rel. 3
[packages/spice-gtk.git] / spice-gtk.spec
1 Summary:        A GTK+ client and libraries for SPICE remote desktop servers
2 Summary(pl.UTF-8):      Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE
3 Name:           spice-gtk
4 Version:        0.7
5 Release:        3
6 License:        LGPL v2.1+
7 Group:          X11/Applications
8 Source0:        http://spice-space.org/download/gtk/%{name}-%{version}.tar.bz2
9 # Source0-md5:  a47ca51ef4bb27cab35ddbfb9e6c0fff
10 Patch0:         %{name}-sh.patch
11 URL:            http://spice-space.org/
12 BuildRequires:  autoconf >= 2.57
13 BuildRequires:  automake
14 BuildRequires:  cairo-devel >= 1.2.0
15 BuildRequires:  celt051-devel >= 0.5.1.1
16 BuildRequires:  cyrus-sasl-devel >= 2.0
17 BuildRequires:  gettext-devel >= 0.17
18 BuildRequires:  gobject-introspection-devel >= 0.9.4
19 BuildRequires:  glib2-devel >= 1:2.22
20 BuildRequires:  gtk-doc >= 1.14
21 BuildRequires:  gtk+2-devel >= 2:2.18.0
22 BuildRequires:  gtk+3-devel >= 3.0
23 BuildRequires:  intltool >= 0.40.0
24 BuildRequires:  libcacard-devel >= 0.1.2
25 BuildRequires:  libjpeg-devel
26 BuildRequires:  libstdc++-devel
27 BuildRequires:  libtool >= 2:2.0
28 BuildRequires:  openssl-devel
29 BuildRequires:  perl-Text-CSV
30 BuildRequires:  perl-base >= 1:5.8.1
31 BuildRequires:  pixman-devel >= 0.17.7
32 BuildRequires:  pkgconfig
33 BuildRequires:  pulseaudio-devel
34 BuildRequires:  python-devel >= 2.0
35 BuildRequires:  python-pygtk-devel >= 2:2.0.0
36 BuildRequires:  spice-protocol >= 0.8.1
37 BuildRequires:  xorg-lib-libXrandr-devel
38 BuildRequires:  zlib-devel
39 Requires:       libcacard >= 0.1.2
40 Requires:       spice-glib = %{version}-%{release}
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 A GTK+ client and libraries for SPICE remote desktop servers.
45
46 %description -l pl.UTF-8
47 Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE.
48
49 %package devel
50 Summary:        Header files for SPICE GTK 3.0 client library
51 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
52 Group:          X11/Development/Libraries
53 Requires:       %{name} = %{version}-%{release}
54 Requires:       spice-glib-devel = %{version}-%{release}
55 Requires:       gtk+3-devel >= 3.0
56
57 %description devel
58 Header files for SPICE GTK 3.0 client library.
59
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
62
63 %package static
64 Summary:        Static SPICE GTK 3.0 client library
65 Summary(pl.UTF-8):      Statyczna biblioteka kliencka SPICE GTK 3.0
66 Group:          X11/Development/Libraries
67 Requires:       %{name}-devel = %{version}-%{release}
68
69 %description static
70 Static SPICE GTK 3.0 client library.
71
72 %description static -l pl.UTF-8
73 Statyczna biblioteka kliencka SPICE GTK 3.0.
74
75 %package apidocs
76 Summary:        SPICE GTK API documentation
77 Summary(pl.UTF-8):      Dokumentacja API bibliotek SPICE GTK
78 Group:          Documentation
79
80 %description apidocs
81 API documentation for SPICE GTK libraries.
82
83 %description apidocs -l pl.UTF-8
84 Dokumentacja API bibliotek SPICE GTK.
85
86 %package -n spice-glib
87 Summary:        SPICE Client GLib library
88 Summary(pl.UTF-8):      Biblioteka kliencka SPICE GLib
89 Group:          Libraries
90 Requires:       celt051 >= 0.5.1.1
91 Requires:       glib2 >= 1:2.22
92 Requires:       pixman >= 0.17.7
93
94 %description -n spice-glib
95 SPICE Client GLib library.
96
97 %description -n spice-glib -l pl.UTF-8
98 Biblioteka kliencka SPICE GLib.
99
100 %package -n spice-glib-devel
101 Summary:        Header files for SPICE Client GLib library
102 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej SPICE GLib
103 Group:          Development/Libraries
104 Requires:       celt051-devel >= 0.5.1.1
105 Requires:       glib2-devel >= 1:2.22
106 Requires:       openssl-devel
107 Requires:       pixman-devel >= 0.17.7
108 Requires:       spice-glib = %{version}-%{release}
109 Requires:       spice-protocol >= 0.8.1
110
111 %description -n spice-glib-devel
112 Header files for SPICE Client GLib library.
113
114 %description -n spice-glib-devel -l pl.UTF-8
115 Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
116
117 %package -n spice-glib-static
118 Summary:        SPICE Client GLib static library
119 Summary(pl.UTF-8):      Statyczna biblioteka kliencka SPICE GLib
120 Group:          Development/Libraries
121 Requires:       spice-glib-devel = %{version}-%{release}
122
123 %description -n spice-glib-static
124 SPICE Client GLib static library.
125
126 %description -n spice-glib-static -l pl.UTF-8
127 Statyczna biblioteka kliencka SPICE GLib.
128
129 %package -n spice-gtk2
130 Summary:        SPICE Client GTK 2.0 library
131 Summary(pl.UTF-8):      Biblioteka kliencka SPICE GTK 2.0
132 Group:          X11/Libraries
133 Requires:       gtk+2 >= 2:2.18.0
134 Requires:       spice-glib = %{version}-%{release}
135
136 %description -n spice-gtk2
137 SPICE Client GTK 2.0 library.
138
139 %description -n spice-gtk2 -l pl.UTF-8
140 Biblioteka kliencka SPICE GTK 2.0.
141
142 %package -n spice-gtk2-devel
143 Summary:        Header files for SPICE Client GTK 2.0 library
144 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0
145 Group:          X11/Development/Libraries
146 Requires:       gtk+2-devel >= 2:2.18.0
147 Requires:       spice-glib-devel = %{version}-%{release}
148
149 %description -n spice-gtk2-devel
150 Header files for SPICE Client GTK 2.0 library.
151
152 %description -n spice-gtk2-devel -l pl.UTF-8
153 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0.
154
155 %package -n spice-gtk2-static
156 Summary:        SPICE Client GTK 2.0 static library
157 Summary(pl.UTF-8):      Statyczna biblioteka kliencka SPICE GTK 2.0
158 Group:          X11/Development/Libraries
159 Requires:       spice-gtk2-devel = %{version}-%{release}
160
161 %description -n spice-gtk2-static
162 SPICE Client GTK 2.0 static library.
163
164 %description -n spice-gtk2-static -l pl.UTF-8
165 Statyczna biblioteka kliencka SPICE GTK 2.0.
166
167 %package -n python-spice-gtk
168 Summary:        Python interface to SPICE client GTK library
169 Summary(pl.UTF-8):      Pythonowy interfejs do biblioteki klienckiej SPICE GTK
170 Group:          Libraries/Python
171 Requires:       spice-gtk2 = %{version}-%{release}
172
173 %description -n python-spice-gtk
174 Python interface to SPICE client GTK library.
175
176 %description -n python-spice-gtk -l pl.UTF-8
177 Pythonowy interfejs do biblioteki klienckiej SPICE GTK.
178
179 %package -n vala-spice-protocol
180 Summary:        Vala API for SPICE client library
181 Summary(pl.UTF-8):      Interfejs języka Vala do biblioteki klienckiej SPICE
182 Group:          Development/Libraries
183 Requires:       spice-protocol >= 0.8.1
184 Requires:       vala >= 0.11.7
185
186 %description -n vala-spice-protocol
187 Vala API for SPICE client library.
188
189 %description -n vala-spice-protocol -l pl.UTF-8
190 Interfejs języka Vala do biblioteki klienckiej SPICE.
191
192 %prep
193 %setup -q
194 %patch0 -p1
195
196 mkdir gtk{2,3}
197
198 %build
199 %{__gettextize}
200 %{__intltoolize}
201 %{__libtoolize}
202 %{__aclocal} -I m4
203 %{__autoconf}
204 %{__autoheader}
205 %{__automake}
206
207 cd gtk2
208 ../%configure \
209         --disable-silent-rules \
210         --with-gtk=2.0 \
211         --with-html-dir=%{_gtkdocdir}
212 %{__make}
213
214 cd ../gtk3
215 ../%configure \
216         --disable-silent-rules \
217         --with-gtk=3.0 \
218         --with-html-dir=%{_gtkdocdir}
219 %{__make}
220
221 %install
222 rm -rf $RPM_BUILD_ROOT
223
224 # gtk2 first, so executables will use gtk3 libs
225 %{__make} -C gtk2 install -j1 \
226         DESTDIR=$RPM_BUILD_ROOT
227
228 %{__make} -C gtk3 install -j1 \
229         DESTDIR=$RPM_BUILD_ROOT
230
231 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.{la,a}
232 # obsoleted by pkg-config
233 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
234
235 %find_lang %{name}
236
237 %clean
238 rm -rf $RPM_BUILD_ROOT
239
240 %post   -p /sbin/ldconfig
241 %postun -p /sbin/ldconfig
242
243 %post   -n spice-glib -p /sbin/ldconfig
244 %postun -n spice-glib -p /sbin/ldconfig
245
246 %post   -n spice-gtk2 -p /sbin/ldconfig
247 %postun -n spice-gtk2 -p /sbin/ldconfig
248
249 %files -f %{name}.lang
250 %defattr(644,root,root,755)
251 %doc AUTHORS NEWS README THANKS TODO
252 %attr(755,root,root) %{_bindir}/snappy
253 %attr(755,root,root) %{_bindir}/spicy
254 %attr(755,root,root) %{_bindir}/spicy-stats
255 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
256 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.1
257 %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
258
259 %files devel
260 %defattr(644,root,root,755)
261 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so
262 %{_includedir}/spice-client-gtk-3.0
263 %{_pkgconfigdir}/spice-client-gtk-3.0.pc
264 %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir
265
266 %files static
267 %defattr(644,root,root,755)
268 %{_libdir}/libspice-client-gtk-3.0.a
269
270 %files apidocs
271 %defattr(644,root,root,755)
272 %{_gtkdocdir}/spice-gtk
273
274 %files -n spice-glib
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
277 %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.4
278 %attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.*
279 %attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0
280 %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
281
282 %files -n spice-glib-devel
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
285 %attr(755,root,root) %{_libdir}/libspice-controller.so
286 %{_includedir}/spice-client-glib-2.0
287 %{_includedir}/spice-controller
288 %{_pkgconfigdir}/spice-client-glib-2.0.pc
289 %{_pkgconfigdir}/spice-controller.pc
290 %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
291
292 %files -n spice-glib-static
293 %defattr(644,root,root,755)
294 %{_libdir}/libspice-client-glib-2.0.a
295 %{_libdir}/libspice-controller.a
296
297 %files -n spice-gtk2
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so.*.*.*
300 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-2.0.so.1
301 %{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib
302
303 %files -n spice-gtk2-devel
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so
306 %{_includedir}/spice-client-gtk-2.0
307 %{_pkgconfigdir}/spice-client-gtk-2.0.pc
308 %{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir
309
310 %files -n spice-gtk2-static
311 %defattr(644,root,root,755)
312 %{_libdir}/libspice-client-gtk-2.0.a
313
314 %files -n python-spice-gtk
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{py_sitedir}/SpiceClientGtk.so
317
318 %files -n vala-spice-protocol
319 %defattr(644,root,root,755)
320 %{_datadir}/vala/vapi/spice-protocol.vapi
This page took 0.113954 seconds and 4 git commands to generate.