]>
Commit | Line | Data |
---|---|---|
0e866759 JB |
1 | # TODO: |
2 | # - oracle provider | |
3 | # - glade catalog? | |
d4778e57 JB |
4 | # |
5 | # Conditional build: | |
e5d16b31 JB |
6 | %bcond_without apidocs # API documentation |
7 | %bcond_without static_libs # static libraries build | |
0e866759 | 8 | %bcond_without vala # Vala APIs and GdaData C library |
d4778e57 | 9 | # - database plugins: |
e5d16b31 | 10 | %bcond_without dbsql # BerkeleyDB SQL plugin |
0e866759 | 11 | %bcond_without firebird # Firebird plugins |
e5d16b31 JB |
12 | %bcond_without jdbc # JDBC plugin |
13 | %bcond_without ldap # LDAP plugin | |
14 | %bcond_without mdb # MDB plugin | |
15 | %bcond_without mysql # MySQL plugin | |
16 | %bcond_without pgsql # PostgreSQL plugin | |
d4778e57 JB |
17 | # |
18 | %ifnarch i586 i686 pentium3 pentium4 athlon %{x8664} | |
19 | %undefine with_jdbc | |
20 | %endif | |
21 | # | |
22 | Summary: GNU Data Access library | |
23 | Summary(pl.UTF-8): Biblioteka GNU Data Access | |
24 | Name: libgda5 | |
9c5d7e91 | 25 | Version: 5.2.1 |
31af1ee2 | 26 | Release: 1 |
d4778e57 JB |
27 | License: LGPL v2+/GPL v2+ |
28 | Group: Libraries | |
0e866759 | 29 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgda/5.2/libgda-%{version}.tar.xz |
9c5d7e91 | 30 | # Source0-md5: b42958a36765183ecce1926e40067ffd |
d4778e57 | 31 | Patch0: %{name}-configure.patch |
31af1ee2 JB |
32 | Patch1: graphviz-api.patch |
33 | Patch2: %{name}-missing.patch | |
34 | Patch3: %{name}-vala.patch | |
0e866759 JB |
35 | Patch4: %{name}-format.patch |
36 | Patch5: %{name}-yelp.patch | |
d4778e57 | 37 | URL: http://www.gnome-db.org/ |
0e866759 JB |
38 | %{?with_firebird:BuildRequires: Firebird-devel} |
39 | BuildRequires: autoconf >= 2.68 | |
40 | BuildRequires: automake >= 1:1.11.1 | |
d4778e57 JB |
41 | BuildRequires: bison |
42 | BuildRequires: db-devel | |
e5d16b31 | 43 | %{?with_dbsql:BuildRequires: db-sql-devel} |
d4778e57 JB |
44 | BuildRequires: docbook-dtd412-xml |
45 | BuildRequires: flex | |
0e866759 | 46 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
d4778e57 | 47 | BuildRequires: gettext-devel |
0e866759 | 48 | BuildRequires: glib2-devel >= 1:2.32.0 |
d4778e57 | 49 | BuildRequires: glibc-misc |
0e866759 | 50 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
d4778e57 JB |
51 | BuildRequires: goocanvas2-devel >= 2.0 |
52 | BuildRequires: graphviz-devel | |
53 | BuildRequires: gtk+3-devel >= 3.0.0 | |
54 | BuildRequires: gtk-doc >= 1.14 | |
55 | BuildRequires: gtksourceview3-devel >= 3.0 | |
0e866759 | 56 | BuildRequires: intltool >= 0.40.6 |
d4778e57 JB |
57 | BuildRequires: iso-codes |
58 | %{?with_jdbc:BuildRequires: jdk} | |
59 | BuildRequires: json-glib-devel | |
60 | BuildRequires: libgcrypt-devel >= 1.1.42 | |
0e866759 JB |
61 | %{?with_vala:BuildRequires: libgee-devel >= 0.8.0} |
62 | BuildRequires: libsecret-devel | |
d4778e57 | 63 | BuildRequires: libsoup-devel >= 2.24.0 |
0e866759 | 64 | BuildRequires: libtool >= 2:2.2.6 |
d4778e57 JB |
65 | BuildRequires: libunique-devel |
66 | BuildRequires: libxml2-devel >= 1:2.6.26 | |
67 | BuildRequires: libxslt-devel >= 1.1.17 | |
68 | %{?with_mdb:BuildRequires: mdbtools-devel >= 0.6-0.pre1.7} | |
69 | %{?with_mysql:BuildRequires: mysql-devel} | |
70 | %{?with_ldap:BuildRequires: openldap-devel} | |
71 | BuildRequires: openssl-devel | |
72 | BuildRequires: perl-base | |
73 | BuildRequires: pkgconfig >= 1:0.18 | |
74 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
75 | BuildRequires: python | |
76 | BuildRequires: readline-devel >= 5.0 | |
77 | BuildRequires: rpmbuild(macros) >= 1.601 | |
78 | BuildRequires: sqlite3-devel >= 3.6.11 | |
79 | BuildRequires: tar >= 1:1.22 | |
0e866759 | 80 | %{?with_vala:BuildRequires: vala >= 2:0.18} |
d4778e57 | 81 | BuildRequires: xz |
0e866759 JB |
82 | BuildRequires: yelp-tools |
83 | Requires: glib2 >= 1:2.32.0 | |
a868e334 | 84 | Conflicts: libgda4 < 4.2.10-2 |
d4778e57 JB |
85 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
86 | ||
87 | %description | |
88 | GNU Data Access is an attempt to provide uniform access to different | |
89 | kinds of data sources (databases, information servers, mail spools, | |
90 | etc). It is a complete architecture that provides all you need to | |
91 | access your data. | |
92 | ||
93 | libgda was part of the GNOME-DB project but has been separated from it | |
94 | to allow non-GNOME applications to be developed based on it. | |
95 | ||
96 | %description -l pl.UTF-8 | |
97 | GNU Data Access to próba zapewnienia jednolitego dostępu do różnych | |
98 | źródeł danych (bazy danych, serwery informacji, katalogi z pocztą | |
99 | itp.). Jest kompletną architekturą dostarczającą wszystko, czego | |
100 | potrzebujesz do dostępu do danych. | |
101 | ||
102 | libgda była częścią projektu GNOME-DB, ale została wydzielona, aby | |
103 | pozwolić na używanie przez niegnomowe aplikacje. | |
104 | ||
105 | %package devel | |
106 | Summary: GNU Data Access development files | |
107 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GNU Data Access | |
108 | Group: Development/Libraries | |
109 | Requires: %{name} = %{version}-%{release} | |
0e866759 | 110 | Requires: glib2-devel >= 1:2.32.0 |
d4778e57 JB |
111 | Requires: libxml2-devel >= 1:2.6.26 |
112 | Requires: libxslt-devel >= 1.1.17 | |
113 | ||
114 | %description devel | |
115 | GNU Data Access is an attempt to provide uniform access to different | |
116 | kinds of data sources (databases, information servers, mail spools, | |
117 | etc). It is a complete architecture that provides all you need to | |
118 | access your data. This subpackage contains development files. | |
119 | ||
120 | %description devel -l pl.UTF-8 | |
121 | GNU Data Access to próba zapewnienia jednolitego dostępu do różnych | |
122 | źródeł danych (bazy danych, serwery informacji, katalogi z pocztą | |
123 | itp.). Jest kompletną architekturą dostarczającą wszystko, czego | |
124 | potrzebujesz do dostępu do danych. Ten podpakiet zawiera pliki dla | |
125 | programistów używających libgda. | |
126 | ||
127 | %package static | |
128 | Summary: GNU Data Access static libraries | |
129 | Summary(pl.UTF-8): Statyczne biblioteki GNU Data Access | |
130 | Group: Development/Libraries | |
131 | Requires: %{name}-devel = %{version}-%{release} | |
132 | ||
133 | %description static | |
134 | GNU Data Access static libraries. | |
135 | ||
136 | %description static -l pl.UTF-8 | |
137 | Statyczne biblioteki GNU Data Access. | |
138 | ||
139 | %package -n vala-libgda5 | |
140 | Summary: libgda 5.x API for Vala language | |
141 | Summary(pl.UTF-8): API libgda 5.x dla języka Vala | |
142 | Group: Development/Libraries | |
143 | Requires: %{name}-devel = %{version}-%{release} | |
0e866759 | 144 | Requires: vala >= 2:0.18 |
d4778e57 JB |
145 | |
146 | %description -n vala-libgda5 | |
0e866759 | 147 | libgda 5.x API for Vala language. |
d4778e57 JB |
148 | |
149 | %description -n vala-libgda5 -l pl.UTF-8 | |
0e866759 | 150 | API libgda 5.x dla języka Vala. |
d4778e57 JB |
151 | |
152 | %package ui | |
153 | Summary: GNU Data Access UI library | |
154 | Summary(pl.UTF-8): Biblioteka GNU Data Access UI | |
155 | Group: Libraries | |
156 | Requires: %{name} = %{version}-%{release} | |
157 | Requires: gtk+3 >= 3.0.0 | |
5945d658 | 158 | Requires: iso-codes |
d4778e57 JB |
159 | |
160 | %description ui | |
161 | GNU Data Access UI library. | |
162 | ||
163 | %description ui -l pl.UTF-8 | |
164 | Biblioteka GNU Data Access UI. | |
165 | ||
166 | %package ui-devel | |
167 | Summary: Development files for GNU Data Access UI library | |
168 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GNU Data Access UI | |
169 | Group: Development/Libraries | |
170 | Requires: %{name}-ui = %{version}-%{release} | |
171 | Requires: gtk+3-devel >= 3.0.0 | |
172 | ||
173 | %description ui-devel | |
174 | Development files for GNU Data Access UI library. | |
175 | ||
176 | %description ui-devel -l pl.UTF-8 | |
177 | Pliki programistyczne biblioteki GNU Data Access UI. | |
178 | ||
179 | %package ui-static | |
180 | Summary: GNU Data Access UI static library | |
181 | Summary(pl.UTF-8): Statyczna biblioteka GNU Data Access UI | |
182 | Group: Development/Libraries | |
183 | Requires: %{name}-ui-devel = %{version}-%{release} | |
184 | ||
185 | %description ui-static | |
186 | GNU Data Access UI static library. | |
187 | ||
188 | %description ui-static -l pl.UTF-8 | |
189 | Statyczna biblioteka GNU Data Access UI. | |
190 | ||
0e866759 JB |
191 | %package -n vala-libgda5-ui |
192 | Summary: libgda-ui 5.x API for Vala language | |
193 | Summary(pl.UTF-8): API libgda-ui 5.x dla języka Vala | |
194 | Group: Development/Libraries | |
195 | Requires: %{name}-ui-devel = %{version}-%{release} | |
196 | Requires: vala-libgda5 = %{version}-%{release} | |
197 | ||
198 | %description -n vala-libgda5-ui | |
199 | libgda-ui 5.x API for Vala language. | |
200 | ||
201 | %description -n vala-libgda5-ui -l pl.UTF-8 | |
202 | API libgda-ui 5.x dla języka Vala. | |
203 | ||
d4778e57 JB |
204 | %package apidocs |
205 | Summary: GNU Data Access API documentation | |
206 | Summary(pl.UTF-8): Dokumentacja API GNU Data Access | |
207 | Group: Documentation | |
208 | Requires: gtk-doc-common | |
209 | ||
210 | %description apidocs | |
211 | GNU Data Access API documentation. | |
212 | ||
213 | %description apidocs -l pl.UTF-8 | |
214 | Dokumentacja API GNU Data Access. | |
215 | ||
216 | %package provider-db | |
217 | Summary: GDA Berkeley DB provider | |
218 | Summary(pl.UTF-8): Źródło danych Berkeley DB dla GDA | |
219 | Group: Libraries | |
220 | Requires: %{name} = %{version}-%{release} | |
221 | ||
222 | %description provider-db | |
223 | This package contains the GDA Berkeley DB provider. | |
224 | ||
225 | %description provider-db -l pl.UTF-8 | |
226 | Pakiet dostaczający dane z Berkeley DB dla GDA. | |
227 | ||
e5d16b31 JB |
228 | %package provider-dbsql |
229 | Summary: GDA Berkeley DB SQL provider | |
230 | Summary(pl.UTF-8): Źródło danych Berkeley DB SQL dla GDA | |
231 | Group: Libraries | |
232 | Requires: %{name} = %{version}-%{release} | |
233 | ||
234 | %description provider-dbsql | |
235 | This package contains the GDA Berkeley DB SQL provider. | |
236 | ||
237 | %description provider-dbsql -l pl.UTF-8 | |
238 | Pakiet dostaczający dane z Berkeley DB SQL dla GDA. | |
239 | ||
0e866759 JB |
240 | %package provider-firebird |
241 | Summary: GDA Firebird providers | |
242 | Summary(pl.UTF-8): Źródła danych Firebirda dla GDA | |
243 | Group: Libraries | |
244 | Requires: %{name} = %{version}-%{release} | |
245 | ||
246 | %description provider-firebird | |
247 | This package contains the GDA Firebird providers. | |
248 | ||
249 | %description provider-firebird -l pl.UTF-8 | |
250 | Pakiet dostaczający dane z Firebirda dla GDA. | |
251 | ||
d4778e57 JB |
252 | %package provider-jdbc |
253 | Summary: GDA JDBC provider | |
254 | Summary(pl.UTF-8): Źródło danych JDBC dla GDA | |
255 | Group: Libraries | |
256 | Requires: %{name} = %{version}-%{release} | |
257 | ||
258 | %description provider-jdbc | |
259 | This package contains the GDA JDBC provider. | |
260 | ||
261 | %description provider-jdbc -l pl.UTF-8 | |
262 | Pakiet dostaczający dane z JDBC dla GDA. | |
263 | ||
264 | %package provider-ldap | |
265 | Summary: GDA LDAP provider | |
266 | Summary(pl.UTF-8): Źródło danych LDAP | |
267 | Group: Libraries | |
268 | Requires: %{name} = %{version}-%{release} | |
269 | ||
270 | %description provider-ldap | |
271 | This package contains the GDA LDAP provider. | |
272 | ||
273 | %description provider-ldap -l pl.UTF-8 | |
274 | Pakiet dostarczający dane z LDAP dla GDA. | |
275 | ||
276 | %package provider-mdb | |
277 | Summary: GDA MDB provider | |
278 | Summary(pl.UTF-8): Źródło danych MDB | |
279 | Group: Libraries | |
280 | Requires: %{name} = %{version}-%{release} | |
281 | Requires: mdbtools-libs >= 0.6 | |
282 | ||
283 | %description provider-mdb | |
284 | This package contains the GDA MDB provider. | |
285 | ||
286 | %description provider-mdb -l pl.UTF-8 | |
287 | Pakiet dostarczający dane z MDB dla GDA. | |
288 | ||
289 | %package provider-mysql | |
290 | Summary: GDA MySQL provider | |
291 | Summary(pl.UTF-8): Źródło danych MySQL dla GDA | |
292 | Group: Libraries | |
293 | Requires: %{name} = %{version}-%{release} | |
294 | ||
295 | %description provider-mysql | |
296 | This package contains the GDA MySQL provider. | |
297 | ||
298 | %description provider-mysql -l pl.UTF-8 | |
299 | Pakiet dostarczający dane z MySQL dla GDA. | |
300 | ||
301 | %package provider-postgres | |
302 | Summary: GDA PostgreSQL provider | |
303 | Summary(pl.UTF-8): Źródło danych PostgreSQL dla GDA | |
304 | Group: Libraries | |
305 | Requires: %{name} = %{version}-%{release} | |
306 | ||
307 | %description provider-postgres | |
308 | This package contains the GDA PostgreSQL provider. | |
309 | ||
310 | %description provider-postgres -l pl.UTF-8 | |
311 | Pakiet dostarczający dane z PostgreSQL dla GDA. | |
312 | ||
313 | %package provider-sqlcipher | |
314 | Summary: GDA SQLCipher provider | |
315 | Summary(pl.UTF-8): Źródło danych SQLCipher dla GDA | |
316 | Group: Libraries | |
317 | Requires: %{name} = %{version}-%{release} | |
318 | ||
319 | %description provider-sqlcipher | |
320 | This package contains the GDA SQLCipher provider. | |
321 | ||
322 | %description provider-sqlcipher -l pl.UTF-8 | |
323 | Pakiet dostarczający dane z SQLCipher dla GDA. | |
324 | ||
325 | %package provider-sqlite | |
326 | Summary: GDA SQLite provider | |
327 | Summary(pl.UTF-8): Źródło danych SQLite dla GDA | |
328 | Group: Libraries | |
329 | Requires: %{name} = %{version}-%{release} | |
330 | ||
331 | %description provider-sqlite | |
332 | This package contains the GDA SQLite provider. | |
333 | ||
334 | %description provider-sqlite -l pl.UTF-8 | |
335 | Pakiet dostarczający dane z SQLite dla GDA. | |
336 | ||
337 | %package provider-web | |
338 | Summary: GDA Web provider | |
339 | Summary(pl.UTF-8): Źródło danych Web dla GDA | |
340 | Group: Libraries | |
341 | Requires: %{name} = %{version}-%{release} | |
342 | ||
343 | %description provider-web | |
344 | This package contains the GDA Web provider. | |
345 | ||
346 | %description provider-web -l pl.UTF-8 | |
347 | Pakiet dostarczający dane z Web dla GDA. | |
348 | ||
349 | %package tools | |
350 | Summary: Graphical tools for GDA | |
351 | Summary(pl.UTF-8): Narzędzia graficzne dla GDA | |
352 | Group: X11/Applications | |
353 | Requires: gtk-update-icon-cache | |
354 | Requires: hicolor-icon-theme | |
355 | Requires: %{name}-ui = %{version}-%{release} | |
356 | ||
357 | %description tools | |
358 | Graphical tools for GDA. | |
359 | ||
360 | %description tools -l pl.UTF-8 | |
361 | Narzędzia graficzne dla GDA. | |
362 | ||
363 | %prep | |
364 | %setup -q -n libgda-%{version} | |
365 | %patch0 -p1 | |
e154aab3 | 366 | %patch1 -p1 |
e8796dba | 367 | %patch2 -p1 |
e9d229a1 | 368 | %patch3 -p1 |
0e866759 JB |
369 | %patch4 -p1 |
370 | %patch5 -p1 | |
d4778e57 JB |
371 | |
372 | %build | |
373 | # included version is bash-specific, use system file | |
374 | cp -f %{_aclocaldir}/introspection.m4 m4/introspection.m4 | |
375 | %if %{with jdbc} | |
376 | export JAVA_HOME="%{java_home}" | |
377 | %endif | |
378 | %{__gtkdocize} | |
379 | %{__intltoolize} | |
380 | %{__libtoolize} | |
381 | %{__aclocal} -I m4 | |
382 | %{__autoconf} | |
383 | %{__automake} | |
0e866759 JB |
384 | %if %{with jdbc} |
385 | # included getsp.class fails with Sun/Oracle JDK 1.6, regenerate | |
386 | javac getsp.java | |
387 | %endif | |
d4778e57 JB |
388 | %configure \ |
389 | --disable-silent-rules \ | |
818c864a | 390 | %{!?with_vala:--disable-vala} \ |
0e866759 JB |
391 | --enable-gda-gi \ |
392 | --enable-gdaui-gi \ | |
393 | %{?with_vala:--enable-gdaui-vala} \ | |
394 | --enable-gtk-doc%{!?with_apidocs:=no} \ | |
395 | --enable-json \ | |
d4778e57 JB |
396 | %{?with_static_libs:--enable-static} \ |
397 | --enable-system-sqlite \ | |
0e866759 | 398 | %{?with_vala:--enable-vala --enable-vala-extensions} \ |
d4778e57 JB |
399 | --with-bdb=/usr \ |
400 | --with-bdb-libdir-name=%{_lib} \ | |
0e866759 JB |
401 | --with-html-dir=%{_gtkdocdir} \ |
402 | --with-firebird%{!?with_firebird:=no} \ | |
e57c332a | 403 | --with-firebird-libdir-name=%{_lib} \ |
0e866759 JB |
404 | --with-java%{!?with_jdbc:=no} \ |
405 | --with-mdb%{!?with_mdb:=no} \ | |
406 | --with-mysql%{!?with_mysql:=no} \ | |
407 | --with-postgres%{!?with_pgsql:=no} \ | |
d4778e57 JB |
408 | --without-oracle |
409 | ||
410 | %{__make} -j1 | |
411 | ||
412 | %install | |
413 | rm -rf $RPM_BUILD_ROOT | |
414 | ||
415 | %{__make} install \ | |
1baae868 JB |
416 | DESTDIR=$RPM_BUILD_ROOT \ |
417 | VALA_VAPIDIR=%{_datadir}/vala/vapi | |
d4778e57 JB |
418 | |
419 | # modules dlopened by *.so through libgmodule | |
420 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgda-5.0/providers/*.{a,la} | |
421 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgda-5.0/plugins/*.{a,la} | |
422 | ||
423 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
424 | ||
425 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} | |
426 | ||
038ba2a0 JB |
427 | # outdated version of sr@latin |
428 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/sr@Latn | |
d4778e57 JB |
429 | |
430 | %py_comp $RPM_BUILD_ROOT%{_datadir}/libgda-5.0/gda_trml2html | |
431 | %py_comp $RPM_BUILD_ROOT%{_datadir}/libgda-5.0/gda_trml2pdf | |
432 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/libgda-5.0/gda_trml2html | |
433 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/libgda-5.0/gda_trml2pdf | |
434 | ||
435 | %find_lang libgda-5.0 | |
436 | %find_lang gda-browser --with-gnome | |
5945d658 JB |
437 | %find_lang gda-sql --with-gnome |
438 | cat gda-sql.lang >> gda-browser.lang | |
d4778e57 JB |
439 | |
440 | %clean | |
441 | rm -rf $RPM_BUILD_ROOT | |
442 | ||
443 | %post -p /sbin/ldconfig | |
444 | %postun -p /sbin/ldconfig | |
445 | ||
446 | %post tools | |
447 | %update_icon_cache hicolor | |
448 | ||
449 | %postun tools | |
450 | %update_icon_cache hicolor | |
451 | ||
452 | %files -f libgda-5.0.lang | |
453 | %defattr(644,root,root,755) | |
31af1ee2 | 454 | %doc AUTHORS ChangeLog NEWS README |
d4778e57 JB |
455 | %attr(755,root,root) %{_bindir}/gda-list-config |
456 | %attr(755,root,root) %{_bindir}/gda-list-config-5.0 | |
457 | %attr(755,root,root) %{_bindir}/gda-list-server-op | |
458 | %attr(755,root,root) %{_bindir}/gda-list-server-op-5.0 | |
459 | %attr(755,root,root) %{_bindir}/gda-sql | |
460 | %attr(755,root,root) %{_bindir}/gda-sql-5.0 | |
461 | %attr(755,root,root) %{_bindir}/gda-test-connection-5.0 | |
462 | %attr(755,root,root) %{_libdir}/libgda-5.0.so.*.*.* | |
463 | %attr(755,root,root) %ghost %{_libdir}/libgda-5.0.so.4 | |
464 | %attr(755,root,root) %{_libdir}/libgda-report-5.0.so.*.*.* | |
465 | %attr(755,root,root) %ghost %{_libdir}/libgda-report-5.0.so.4 | |
466 | %attr(755,root,root) %{_libdir}/libgda-xslt-5.0.so.*.*.* | |
467 | %attr(755,root,root) %ghost %{_libdir}/libgda-xslt-5.0.so.4 | |
0e866759 JB |
468 | %if %{with vala} |
469 | %attr(755,root,root) %{_libdir}/libgdadata-5.0.so.*.*.* | |
470 | %attr(755,root,root) %ghost %{_libdir}/libgdadata-5.0.so.0 | |
471 | %endif | |
d4778e57 | 472 | %{_libdir}/girepository-1.0/Gda-5.0.typelib |
0e866759 JB |
473 | %if %{with vala} |
474 | %{_libdir}/girepository-1.0/GdaData-5.0.typelib | |
475 | %endif | |
d4778e57 JB |
476 | %dir %{_libdir}/libgda-5.0 |
477 | %dir %{_libdir}/libgda-5.0/providers | |
478 | %dir %{_datadir}/libgda-5.0 | |
479 | %{_datadir}/libgda-5.0/demo | |
480 | %{_datadir}/libgda-5.0/dtd | |
481 | %{_datadir}/libgda-5.0/icons | |
482 | %{_datadir}/libgda-5.0/pixmaps | |
483 | %{_datadir}/libgda-5.0/import_encodings.xml | |
484 | %{_datadir}/libgda-5.0/information_schema.xml | |
485 | %{_datadir}/libgda-5.0/language-specs | |
486 | %{_datadir}/libgda-5.0/server_operation.glade | |
487 | # used by libgda-report | |
488 | %{_datadir}/libgda-5.0/gda_trml2html | |
489 | %{_datadir}/libgda-5.0/gda_trml2pdf | |
490 | %dir %{_sysconfdir}/libgda-5.0 | |
491 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libgda-5.0/config | |
492 | %{_sysconfdir}/libgda-5.0/sales_test.db | |
493 | %{_mandir}/man1/gda-sql-5.0.1* | |
494 | %{_mandir}/man1/gda-sql.1* | |
495 | ||
496 | %files devel | |
497 | %defattr(644,root,root,755) | |
498 | %attr(755,root,root) %{_libdir}/libgda-5.0.so | |
499 | %attr(755,root,root) %{_libdir}/libgda-report-5.0.so | |
500 | %attr(755,root,root) %{_libdir}/libgda-xslt-5.0.so | |
0e866759 JB |
501 | %if %{with vala} |
502 | %attr(755,root,root) %{_libdir}/libgdadata-5.0.so | |
503 | %endif | |
d4778e57 | 504 | %{_datadir}/gir-1.0/Gda-5.0.gir |
0e866759 JB |
505 | %if %{with vala} |
506 | %{_datadir}/gir-1.0/GdaData-5.0.gir | |
507 | %endif | |
d4778e57 JB |
508 | %{_includedir}/libgda-5.0 |
509 | %{_pkgconfigdir}/libgda-5.0.pc | |
510 | %{_pkgconfigdir}/libgda-bdb-5.0.pc | |
e5d16b31 | 511 | %{?with_dbsql:%{_pkgconfigdir}/libgda-bdbsql-5.0.pc} |
0e866759 | 512 | %{?with_firebird:%{_pkgconfigdir}/libgda-firebird-5.0.pc} |
d4778e57 JB |
513 | %{?with_jdbc:%{_pkgconfigdir}/libgda-jdbc-5.0.pc} |
514 | %{?with_ldap:%{_pkgconfigdir}/libgda-ldap-5.0.pc} | |
515 | %{?with_mdb:%{_pkgconfigdir}/libgda-mdb-5.0.pc} | |
516 | %{?with_mysql:%{_pkgconfigdir}/libgda-mysql-5.0.pc} | |
517 | %{?with_pgsql:%{_pkgconfigdir}/libgda-postgres-5.0.pc} | |
518 | %{_pkgconfigdir}/libgda-report-5.0.pc | |
519 | %{_pkgconfigdir}/libgda-sqlcipher-5.0.pc | |
520 | %{_pkgconfigdir}/libgda-sqlite-5.0.pc | |
521 | %{_pkgconfigdir}/libgda-xslt-5.0.pc | |
522 | %{_pkgconfigdir}/libgda-web-5.0.pc | |
0e866759 | 523 | %{?with_vala:%{_pkgconfigdir}/libgdadata-5.0.pc} |
d4778e57 JB |
524 | |
525 | %if %{with static_libs} | |
526 | %files static | |
527 | %defattr(644,root,root,755) | |
528 | %{_libdir}/libgda-5.0.a | |
529 | %{_libdir}/libgda-report-5.0.a | |
530 | %{_libdir}/libgda-xslt-5.0.a | |
0e866759 JB |
531 | %if %{with vala} |
532 | %{_libdir}/libgdadata-5.0.a | |
533 | %endif | |
d4778e57 JB |
534 | %endif |
535 | ||
536 | %if %{with vala} | |
537 | %files -n vala-libgda5 | |
538 | %defattr(644,root,root,755) | |
0e866759 | 539 | %{_datadir}/vala/vapi/gdadata-5.0.vapi |
d4778e57 JB |
540 | %{_datadir}/vala/vapi/libgda-5.0.vapi |
541 | %endif | |
542 | ||
543 | %files ui | |
544 | %defattr(644,root,root,755) | |
545 | %attr(755,root,root) %{_bindir}/gdaui-demo-5.0 | |
546 | %attr(755,root,root) %{_libdir}/libgda-ui-5.0.so.*.*.* | |
547 | %attr(755,root,root) %ghost %{_libdir}/libgda-ui-5.0.so.4 | |
548 | %attr(755,root,root) %{_libdir}/libgda-5.0/plugins/libgda-ui-plugins.so | |
549 | %dir %{_libdir}/libgda-5.0/plugins | |
550 | %{_libdir}/libgda-5.0/plugins/gdaui-*.xml | |
551 | %{_libdir}/girepository-1.0/Gdaui-5.0.typelib | |
552 | %{_datadir}/libgda-5.0/ui | |
553 | ||
554 | %files ui-devel | |
555 | %defattr(644,root,root,755) | |
556 | %attr(755,root,root) %{_libdir}/libgda-ui-5.0.so | |
557 | %{_datadir}/gir-1.0/Gdaui-5.0.gir | |
558 | %{_pkgconfigdir}/libgda-ui-5.0.pc | |
559 | ||
560 | %if %{with static_libs} | |
561 | %files ui-static | |
562 | %defattr(644,root,root,755) | |
563 | %{_libdir}/libgda-ui-5.0.a | |
564 | %endif | |
565 | ||
0e866759 JB |
566 | %if %{with vala} |
567 | %files -n vala-libgda5-ui | |
568 | %defattr(644,root,root,755) | |
569 | %{_datadir}/vala/vapi/libgdaui-5.0.vapi | |
570 | %endif | |
571 | ||
d4778e57 JB |
572 | %if %{with apidocs} |
573 | %files apidocs | |
574 | %defattr(644,root,root,755) | |
575 | %{_gtkdocdir}/gda-browser | |
576 | %{_gtkdocdir}/libgda-5.0 | |
577 | %endif | |
578 | ||
579 | %files provider-db | |
580 | %defattr(644,root,root,755) | |
581 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-bdb.so | |
582 | %{_datadir}/libgda-5.0/bdb_specs_*.xml | |
583 | ||
e5d16b31 JB |
584 | %if %{with dbsql} |
585 | %files provider-dbsql | |
586 | %defattr(644,root,root,755) | |
587 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-bdbsql.so | |
588 | %{_datadir}/libgda-5.0/bdbsql_specs_*.xml | |
589 | %endif | |
590 | ||
0e866759 JB |
591 | %if %{with firebird} |
592 | %files provider-firebird | |
593 | %defattr(644,root,root,755) | |
594 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-firebird-client.so | |
595 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-firebird-embed.so | |
596 | %{_datadir}/libgda-5.0/firebird_specs_*.xml | |
597 | %endif | |
598 | ||
d4778e57 JB |
599 | %if %{with jdbc} |
600 | %files provider-jdbc | |
601 | %defattr(644,root,root,755) | |
602 | %attr(755,root,root) %{_bindir}/gda-list-jdbc-providers-5.0 | |
603 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-jdbc.so | |
604 | %{_libdir}/libgda-5.0/providers/gdaprovider-5.0.jar | |
605 | %{_datadir}/libgda-5.0/jdbc_specs_*.xml | |
606 | %endif | |
607 | ||
608 | %if %{with ldap} | |
609 | %files provider-ldap | |
610 | %defattr(644,root,root,755) | |
611 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-ldap.so | |
612 | %{_datadir}/libgda-5.0/ldap_specs_*.xml | |
613 | %endif | |
614 | ||
615 | %if %{with mdb} | |
616 | %files provider-mdb | |
617 | %defattr(644,root,root,755) | |
618 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-mdb.so | |
619 | %{_datadir}/libgda-5.0/mdb_specs_*.xml | |
620 | %endif | |
621 | ||
622 | %if %{with mysql} | |
623 | %files provider-mysql | |
624 | %defattr(644,root,root,755) | |
625 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-mysql.so | |
626 | %{_datadir}/libgda-5.0/mysql_specs_*.xml | |
627 | %endif | |
628 | ||
629 | %if %{with pgsql} | |
630 | %files provider-postgres | |
631 | %defattr(644,root,root,755) | |
632 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-postgres.so | |
633 | %{_datadir}/libgda-5.0/postgres_specs_*.xml | |
634 | %endif | |
635 | ||
636 | %files provider-sqlcipher | |
637 | %defattr(644,root,root,755) | |
638 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-sqlcipher.so | |
639 | %{_datadir}/libgda-5.0/sqlcipher_specs_*.xml | |
640 | ||
641 | %files provider-sqlite | |
642 | %defattr(644,root,root,755) | |
643 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-sqlite.so | |
644 | %{_datadir}/libgda-5.0/sqlite_specs_*.xml | |
645 | ||
646 | %files provider-web | |
647 | %defattr(644,root,root,755) | |
648 | %doc providers/web/README | |
649 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-web.so | |
650 | %{_datadir}/libgda-5.0/php | |
651 | %{_datadir}/libgda-5.0/web | |
652 | %{_datadir}/libgda-5.0/web_specs_*.xml | |
653 | ||
654 | %files tools -f gda-browser.lang | |
655 | %defattr(644,root,root,755) | |
656 | %attr(755,root,root) %{_bindir}/gda-browser-5.0 | |
657 | %attr(755,root,root) %{_bindir}/gda-control-center-5.0 | |
658 | %{_desktopdir}/gda-browser-5.0.desktop | |
659 | %{_desktopdir}/gda-control-center-5.0.desktop | |
660 | %{_pixmapsdir}/gda-browser-5.0.png | |
661 | %{_iconsdir}/hicolor/*/apps/gda-control-center.png |