]> git.pld-linux.org Git - packages/spice-gtk.git/blob - spice-gtk.spec
- updated to 0.7
[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:        1
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:       spice-glib-devel = %{version}-%{release}
54 Requires:       gtk+3-devel >= 3.0
55
56 %description devel
57 Header files for SPICE GTK 3.0 client library.
58
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0.
61
62 %package static
63 Summary:        Static SPICE GTK 3.0 client library
64 Summary(pl.UTF-8):      Statyczna biblioteka kliencka SPICE GTK 3.0
65 Group:          X11/Development/Libraries
66 Requires:       %{name}-devel = %{version}-%{release}
67
68 %description static
69 Static SPICE GTK 3.0 client library.
70
71 %description static -l pl.UTF-8
72 Statyczna biblioteka kliencka SPICE GTK 3.0.
73
74 %package apidocs
75 Summary:        SPICE GTK API documentation
76 Summary(pl.UTF-8):      Dokumentacja API bibliotek SPICE GTK
77 Group:          Documentation
78
79 %description apidocs
80 API documentation for SPICE GTK libraries.
81
82 %description apidocs -l pl.UTF-8
83 Dokumentacja API bibliotek SPICE GTK.
84
85 %package -n spice-glib
86 Summary:        SPICE Client GLib library
87 Summary(pl.UTF-8):      Biblioteka kliencka SPICE GLib
88 Group:          Libraries
89 Requires:       celt051 >= 0.5.1.1
90 Requires:       glib2 >= 1:2.22
91 Requires:       pixman >= 0.17.7
92
93 %description -n spice-glib
94 SPICE Client GLib library.
95
96 %description -n spice-glib -l pl.UTF-8
97 Biblioteka kliencka SPICE GLib.
98
99 %package -n spice-glib-devel
100 Summary:        Header files for SPICE Client GLib library
101 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej SPICE GLib
102 Group:          Development/Libraries
103 Requires:       celt051-devel >= 0.5.1.1
104 Requires:       glib2-devel >= 1:2.22
105 Requires:       openssl-devel
106 Requires:       pixman-devel >= 0.17.7
107 Requires:       spice-glib = %{version}-%{release}
108 Requires:       spice-protocol >= 0.8.1
109
110 %description -n spice-glib-devel
111 Header files for SPICE Client GLib library.
112
113 %description -n spice-glib-devel -l pl.UTF-8
114 Pliki nagłówkowe biblioteki klienckiej SPICE GLib.
115
116 %package -n spice-glib-static
117 Summary:        SPICE Client GLib static library
118 Summary(pl.UTF-8):      Statyczna biblioteka kliencka SPICE GLib
119 Group:          Development/Libraries
120 Requires:       spice-glib-devel = %{version}-%{release}
121
122 %description -n spice-glib-static
123 SPICE Client GLib static library.
124
125 %description -n spice-glib-static -l pl.UTF-8
126 Statyczna biblioteka kliencka SPICE GLib.
127
128 %package -n spice-gtk2
129 Summary:        SPICE Client GTK 2.0 library
130 Summary(pl.UTF-8):      Biblioteka kliencka SPICE GTK 2.0
131 Group:          X11/Libraries
132 Requires:       gtk+2 >= 2:2.18.0
133 Requires:       spice-glib = %{version}-%{release}
134
135 %description -n spice-gtk2
136 SPICE Client GTK 2.0 library.
137
138 %description -n spice-gtk2 -l pl.UTF-8
139 Biblioteka kliencka SPICE GTK 2.0.
140
141 %package -n spice-gtk2-devel
142 Summary:        Header files for SPICE Client GTK 2.0 library
143 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0
144 Group:          X11/Development/Libraries
145 Requires:       gtk+2-devel >= 2:2.18.0
146 Requires:       spice-glib-devel = %{version}-%{release}
147
148 %description -n spice-gtk2-devel
149 Header files for SPICE Client GTK 2.0 library.
150
151 %description -n spice-gtk2-devel -l pl.UTF-8
152 Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0.
153
154 %package -n spice-gtk2-static
155 Summary:        SPICE Client GTK 2.0 static library
156 Summary(pl.UTF-8):      Statyczna biblioteka kliencka SPICE GTK 2.0
157 Group:          X11/Development/Libraries
158 Requires:       spice-gtk2-devel = %{version}-%{release}
159
160 %description -n spice-gtk2-static
161 SPICE Client GTK 2.0 static library.
162
163 %description -n spice-gtk2-static -l pl.UTF-8
164 Statyczna biblioteka kliencka SPICE GTK 2.0.
165
166 %package -n python-spice-gtk
167 Summary:        Python interface to SPICE client GTK library
168 Summary(pl.UTF-8):      Pythonowy interfejs do biblioteki klienckiej SPICE GTK
169 Group:          Libraries/Python
170 Requires:       spice-gtk2 = %{version}-%{release}
171
172 %description -n python-spice-gtk
173 Python interface to SPICE client GTK library.
174
175 %description -n python-spice-gtk -l pl.UTF-8
176 Pythonowy interfejs do biblioteki klienckiej SPICE GTK.
177
178 %package -n vala-spice-protocol
179 Summary:        Vala API for SPICE client library
180 Summary(pl.UTF-8):      Interfejs języka Vala do biblioteki klienckiej SPICE
181 Group:          Development/Libraries
182 Requires:       spice-protocol >= 0.8.1
183 Requires:       vala >= 0.11.7
184
185 %description -n vala-spice-protocol
186 Vala API for SPICE client library.
187
188 %description -n vala-spice-protocol -l pl.UTF-8
189 Interfejs języka Vala do biblioteki klienckiej SPICE.
190
191 %prep
192 %setup -q
193 %patch0 -p1
194
195 mkdir gtk{2,3}
196
197 %build
198 %{__gettextize}
199 %{__intltoolize}
200 %{__libtoolize}
201 %{__aclocal} -I m4
202 %{__autoconf}
203 %{__autoheader}
204 %{__automake}
205
206 cd gtk2
207 ../%configure \
208         --disable-silent-rules \
209         --with-gtk=2.0 \
210         --with-html-dir=%{_gtkdocdir}
211 %{__make}
212
213 cd ../gtk3
214 ../%configure \
215         --disable-silent-rules \
216         --with-gtk=3.0 \
217         --with-html-dir=%{_gtkdocdir}
218 %{__make}
219
220 %install
221 rm -rf $RPM_BUILD_ROOT
222
223 # gtk2 first, so executables will use gtk3 libs
224 %{__make} -C gtk2 install \
225         DESTDIR=$RPM_BUILD_ROOT
226
227 %{__make} -C gtk3 install \
228         DESTDIR=$RPM_BUILD_ROOT
229
230 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.{la,a}
231 # obsoleted by pkg-config
232 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
233
234 %find_lang %{name}
235
236 %clean
237 rm -rf $RPM_BUILD_ROOT
238
239 %post   -p /sbin/ldconfig
240 %postun -p /sbin/ldconfig
241
242 %post   -n spice-glib -p /sbin/ldconfig
243 %postun -n spice-glib -p /sbin/ldconfig
244
245 %post   -n spice-gtk2 -p /sbin/ldconfig
246 %postun -n spice-gtk2 -p /sbin/ldconfig
247
248 %files -f %{name}.lang
249 %defattr(644,root,root,755)
250 %doc AUTHORS NEWS README THANKS TODO
251 %attr(755,root,root) %{_bindir}/snappy
252 %attr(755,root,root) %{_bindir}/spicy
253 %attr(755,root,root) %{_bindir}/spicy-stats
254 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
255 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.1
256 %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
257
258 %files devel
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so
261 %{_includedir}/spice-client-gtk-3.0
262 %{_pkgconfigdir}/spice-client-gtk-3.0.pc
263 %{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir
264
265 %files static
266 %defattr(644,root,root,755)
267 %{_libdir}/libspice-client-gtk-3.0.a
268
269 %files apidocs
270 %defattr(644,root,root,755)
271 %{_gtkdocdir}/spice-gtk
272
273 %files -n spice-glib
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
276 %attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.4
277 %attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.*
278 %attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0
279 %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
280
281 %files -n spice-glib-devel
282 %defattr(644,root,root,755)
283 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
284 %attr(755,root,root) %{_libdir}/libspice-controller.so
285 %{_includedir}/spice-client-glib-2.0
286 %{_includedir}/spice-controller
287 %{_pkgconfigdir}/spice-client-glib-2.0.pc
288 %{_pkgconfigdir}/spice-controller.pc
289 %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
290
291 %files -n spice-glib-static
292 %defattr(644,root,root,755)
293 %{_libdir}/libspice-client-glib-2.0.a
294 %{_libdir}/libspice-controller.a
295
296 %files -n spice-gtk2
297 %defattr(644,root,root,755)
298 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so.*.*.*
299 %attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-2.0.so.1
300 %{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib
301
302 %files -n spice-gtk2-devel
303 %defattr(644,root,root,755)
304 %attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so
305 %{_includedir}/spice-client-gtk-2.0
306 %{_pkgconfigdir}/spice-client-gtk-2.0.pc
307 %{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir
308
309 %files -n spice-gtk2-static
310 %defattr(644,root,root,755)
311 %{_libdir}/libspice-client-gtk-2.0.a
312
313 %files -n python-spice-gtk
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{py_sitedir}/SpiceClientGtk.so
316
317 %files -n vala-spice-protocol
318 %defattr(644,root,root,755)
319 %{_datadir}/vala/vapi/spice-protocol.vapi
This page took 0.101696 seconds and 4 git commands to generate.