]>
Commit | Line | Data |
---|---|---|
d4778e57 JB |
1 | # |
2 | # Conditional build: | |
e5d16b31 | 3 | %bcond_without apidocs # API documentation |
c541bbbe | 4 | %bcond_without glade # Glade catalog |
e5d16b31 | 5 | %bcond_without static_libs # static libraries build |
0e866759 | 6 | %bcond_without vala # Vala APIs and GdaData C library |
d4778e57 | 7 | # - database plugins: |
e5d16b31 | 8 | %bcond_without dbsql # BerkeleyDB SQL plugin |
0e866759 | 9 | %bcond_without firebird # Firebird plugins |
e5d16b31 JB |
10 | %bcond_without jdbc # JDBC plugin |
11 | %bcond_without ldap # LDAP plugin | |
12 | %bcond_without mdb # MDB plugin | |
13 | %bcond_without mysql # MySQL plugin | |
d56a3040 | 14 | %bcond_with oci # Oracle DB plugin |
e5d16b31 | 15 | %bcond_without pgsql # PostgreSQL plugin |
d35589a6 | 16 | |
a9a7b3bc | 17 | %ifnarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} |
c5f3adda JR |
18 | %undefine with_jdbc |
19 | %endif | |
d35589a6 | 20 | |
d4778e57 JB |
21 | Summary: GNU Data Access library |
22 | Summary(pl.UTF-8): Biblioteka GNU Data Access | |
23 | Name: libgda5 | |
6fe2b8c6 | 24 | Version: 5.2.10 |
69bdb055 | 25 | Release: 2 |
d4778e57 JB |
26 | License: LGPL v2+/GPL v2+ |
27 | Group: Libraries | |
6fe2b8c6 JB |
28 | Source0: https://download.gnome.org/sources/libgda/5.2/libgda-%{version}.tar.xz |
29 | # Source0-md5: e4b5866e78571a70953416d1dc395097 | |
d4778e57 | 30 | Patch0: %{name}-configure.patch |
d56a3040 | 31 | Patch1: %{name}-oracle.patch |
31af1ee2 | 32 | Patch2: %{name}-missing.patch |
c541bbbe | 33 | Patch3: %{name}-db.patch |
9331021b JB |
34 | Patch4: %{name}-yelp.patch |
35 | Patch5: java-arch.patch | |
287f0265 | 36 | Patch6: java8.patch |
441ba81d | 37 | Patch8: %{name}-sqlite.patch |
c541bbbe | 38 | URL: https://www.gnome-db.org/ |
0e866759 JB |
39 | %{?with_firebird:BuildRequires: Firebird-devel} |
40 | BuildRequires: autoconf >= 2.68 | |
41 | BuildRequires: automake >= 1:1.11.1 | |
c541bbbe JB |
42 | BuildRequires: db-devel >= 4.7 |
43 | %{?with_dbsql:BuildRequires: db-sql-devel >= 4.7} | |
d4778e57 | 44 | BuildRequires: docbook-dtd412-xml |
0e866759 | 45 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
08c94b21 | 46 | BuildRequires: gettext-tools |
c541bbbe JB |
47 | # pkgconfig(gladeui-2.0) |
48 | %{?with_glade:BuildRequires: glade-devel >= 3.0} | |
0e866759 | 49 | BuildRequires: glib2-devel >= 1:2.32.0 |
d4778e57 | 50 | BuildRequires: glibc-misc |
0e866759 | 51 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
d4778e57 JB |
52 | BuildRequires: goocanvas2-devel >= 2.0 |
53 | BuildRequires: graphviz-devel | |
54 | BuildRequires: gtk+3-devel >= 3.0.0 | |
55 | BuildRequires: gtk-doc >= 1.14 | |
56 | BuildRequires: gtksourceview3-devel >= 3.0 | |
0e866759 | 57 | BuildRequires: intltool >= 0.40.6 |
d4778e57 | 58 | BuildRequires: iso-codes |
c541bbbe | 59 | %{?with_jdbc:BuildRequires: jdk >= 1.5} |
d4778e57 JB |
60 | BuildRequires: json-glib-devel |
61 | BuildRequires: libgcrypt-devel >= 1.1.42 | |
0e866759 | 62 | BuildRequires: libsecret-devel |
d4778e57 | 63 | BuildRequires: libsoup-devel >= 2.24.0 |
0e866759 | 64 | BuildRequires: libtool >= 2:2.2.6 |
d4778e57 JB |
65 | BuildRequires: libxml2-devel >= 1:2.6.26 |
66 | BuildRequires: libxslt-devel >= 1.1.17 | |
67 | %{?with_mdb:BuildRequires: mdbtools-devel >= 0.6-0.pre1.7} | |
68 | %{?with_mysql:BuildRequires: mysql-devel} | |
69 | %{?with_ldap:BuildRequires: openldap-devel} | |
70 | BuildRequires: openssl-devel | |
d56a3040 | 71 | %{?with_oci:BuildRequires: oracle-instantclient-devel} |
d4778e57 JB |
72 | BuildRequires: perl-base |
73 | BuildRequires: pkgconfig >= 1:0.18 | |
74 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
6fe2b8c6 | 75 | BuildRequires: python3 >= 1:3 |
d4778e57 | 76 | BuildRequires: readline-devel >= 5.0 |
6fe2b8c6 | 77 | BuildRequires: rpmbuild(macros) >= 1.752 |
c541bbbe | 78 | BuildRequires: sqlite3-devel >= 3.10.2 |
d4778e57 | 79 | BuildRequires: tar >= 1:1.22 |
9331021b | 80 | %{?with_vala:BuildRequires: vala >= 2:0.26.0} |
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} | |
9331021b | 144 | Requires: vala >= 2:0.26.0 |
fbd672ed | 145 | BuildArch: noarch |
d4778e57 JB |
146 | |
147 | %description -n vala-libgda5 | |
0e866759 | 148 | libgda 5.x API for Vala language. |
d4778e57 JB |
149 | |
150 | %description -n vala-libgda5 -l pl.UTF-8 | |
0e866759 | 151 | API libgda 5.x dla języka Vala. |
d4778e57 JB |
152 | |
153 | %package ui | |
154 | Summary: GNU Data Access UI library | |
155 | Summary(pl.UTF-8): Biblioteka GNU Data Access UI | |
156 | Group: Libraries | |
157 | Requires: %{name} = %{version}-%{release} | |
158 | Requires: gtk+3 >= 3.0.0 | |
5945d658 | 159 | Requires: iso-codes |
d4778e57 JB |
160 | |
161 | %description ui | |
162 | GNU Data Access UI library. | |
163 | ||
164 | %description ui -l pl.UTF-8 | |
165 | Biblioteka GNU Data Access UI. | |
166 | ||
167 | %package ui-devel | |
168 | Summary: Development files for GNU Data Access UI library | |
169 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GNU Data Access UI | |
170 | Group: Development/Libraries | |
171 | Requires: %{name}-ui = %{version}-%{release} | |
172 | Requires: gtk+3-devel >= 3.0.0 | |
173 | ||
174 | %description ui-devel | |
175 | Development files for GNU Data Access UI library. | |
176 | ||
177 | %description ui-devel -l pl.UTF-8 | |
178 | Pliki programistyczne biblioteki GNU Data Access UI. | |
179 | ||
180 | %package ui-static | |
181 | Summary: GNU Data Access UI static library | |
182 | Summary(pl.UTF-8): Statyczna biblioteka GNU Data Access UI | |
183 | Group: Development/Libraries | |
184 | Requires: %{name}-ui-devel = %{version}-%{release} | |
185 | ||
186 | %description ui-static | |
187 | GNU Data Access UI static library. | |
188 | ||
189 | %description ui-static -l pl.UTF-8 | |
190 | Statyczna biblioteka GNU Data Access UI. | |
191 | ||
0e866759 JB |
192 | %package -n vala-libgda5-ui |
193 | Summary: libgda-ui 5.x API for Vala language | |
194 | Summary(pl.UTF-8): API libgda-ui 5.x dla języka Vala | |
195 | Group: Development/Libraries | |
196 | Requires: %{name}-ui-devel = %{version}-%{release} | |
197 | Requires: vala-libgda5 = %{version}-%{release} | |
198 | ||
199 | %description -n vala-libgda5-ui | |
200 | libgda-ui 5.x API for Vala language. | |
201 | ||
202 | %description -n vala-libgda5-ui -l pl.UTF-8 | |
203 | API libgda-ui 5.x dla języka Vala. | |
204 | ||
d4778e57 JB |
205 | %package apidocs |
206 | Summary: GNU Data Access API documentation | |
207 | Summary(pl.UTF-8): Dokumentacja API GNU Data Access | |
208 | Group: Documentation | |
209 | Requires: gtk-doc-common | |
fbd672ed | 210 | BuildArch: noarch |
d4778e57 JB |
211 | |
212 | %description apidocs | |
213 | GNU Data Access API documentation. | |
214 | ||
215 | %description apidocs -l pl.UTF-8 | |
216 | Dokumentacja API GNU Data Access. | |
217 | ||
218 | %package provider-db | |
219 | Summary: GDA Berkeley DB provider | |
220 | Summary(pl.UTF-8): Źródło danych Berkeley DB dla GDA | |
221 | Group: Libraries | |
222 | Requires: %{name} = %{version}-%{release} | |
223 | ||
224 | %description provider-db | |
225 | This package contains the GDA Berkeley DB provider. | |
226 | ||
227 | %description provider-db -l pl.UTF-8 | |
2d182a49 | 228 | Pakiet dostarczający dane z Berkeley DB dla GDA. |
d4778e57 | 229 | |
e5d16b31 JB |
230 | %package provider-dbsql |
231 | Summary: GDA Berkeley DB SQL provider | |
232 | Summary(pl.UTF-8): Źródło danych Berkeley DB SQL dla GDA | |
233 | Group: Libraries | |
234 | Requires: %{name} = %{version}-%{release} | |
235 | ||
236 | %description provider-dbsql | |
237 | This package contains the GDA Berkeley DB SQL provider. | |
238 | ||
239 | %description provider-dbsql -l pl.UTF-8 | |
2d182a49 | 240 | Pakiet dostarczający dane z Berkeley DB SQL dla GDA. |
e5d16b31 | 241 | |
0e866759 JB |
242 | %package provider-firebird |
243 | Summary: GDA Firebird providers | |
244 | Summary(pl.UTF-8): Źródła danych Firebirda dla GDA | |
245 | Group: Libraries | |
246 | Requires: %{name} = %{version}-%{release} | |
247 | ||
248 | %description provider-firebird | |
249 | This package contains the GDA Firebird providers. | |
250 | ||
251 | %description provider-firebird -l pl.UTF-8 | |
2d182a49 | 252 | Pakiet dostarczający dane z Firebirda dla GDA. |
0e866759 | 253 | |
d4778e57 JB |
254 | %package provider-jdbc |
255 | Summary: GDA JDBC provider | |
256 | Summary(pl.UTF-8): Źródło danych JDBC dla GDA | |
257 | Group: Libraries | |
258 | Requires: %{name} = %{version}-%{release} | |
259 | ||
260 | %description provider-jdbc | |
261 | This package contains the GDA JDBC provider. | |
262 | ||
263 | %description provider-jdbc -l pl.UTF-8 | |
2d182a49 | 264 | Pakiet dostarczający dane z JDBC dla GDA. |
d4778e57 JB |
265 | |
266 | %package provider-ldap | |
267 | Summary: GDA LDAP provider | |
268 | Summary(pl.UTF-8): Źródło danych LDAP | |
269 | Group: Libraries | |
270 | Requires: %{name} = %{version}-%{release} | |
271 | ||
272 | %description provider-ldap | |
273 | This package contains the GDA LDAP provider. | |
274 | ||
275 | %description provider-ldap -l pl.UTF-8 | |
276 | Pakiet dostarczający dane z LDAP dla GDA. | |
277 | ||
278 | %package provider-mdb | |
279 | Summary: GDA MDB provider | |
280 | Summary(pl.UTF-8): Źródło danych MDB | |
281 | Group: Libraries | |
282 | Requires: %{name} = %{version}-%{release} | |
283 | Requires: mdbtools-libs >= 0.6 | |
284 | ||
285 | %description provider-mdb | |
286 | This package contains the GDA MDB provider. | |
287 | ||
288 | %description provider-mdb -l pl.UTF-8 | |
289 | Pakiet dostarczający dane z MDB dla GDA. | |
290 | ||
291 | %package provider-mysql | |
292 | Summary: GDA MySQL provider | |
293 | Summary(pl.UTF-8): Źródło danych MySQL dla GDA | |
294 | Group: Libraries | |
295 | Requires: %{name} = %{version}-%{release} | |
296 | ||
297 | %description provider-mysql | |
298 | This package contains the GDA MySQL provider. | |
299 | ||
300 | %description provider-mysql -l pl.UTF-8 | |
301 | Pakiet dostarczający dane z MySQL dla GDA. | |
302 | ||
d56a3040 JB |
303 | %package provider-oracle |
304 | Summary: GDA Oracle provider | |
305 | Summary(pl.UTF-8): Źródło danych Oracle dla GDA | |
306 | Group: Libraries | |
307 | Requires: %{name} = %{version}-%{release} | |
308 | ||
309 | %description provider-oracle | |
310 | This package contains the GDA Oracle provider. | |
311 | ||
312 | %description provider-oracle -l pl.UTF-8 | |
313 | Pakiet dostarczający dane z bazy Oracle dla GDA. | |
314 | ||
d4778e57 JB |
315 | %package provider-postgres |
316 | Summary: GDA PostgreSQL provider | |
317 | Summary(pl.UTF-8): Źródło danych PostgreSQL dla GDA | |
318 | Group: Libraries | |
319 | Requires: %{name} = %{version}-%{release} | |
320 | ||
321 | %description provider-postgres | |
322 | This package contains the GDA PostgreSQL provider. | |
323 | ||
324 | %description provider-postgres -l pl.UTF-8 | |
325 | Pakiet dostarczający dane z PostgreSQL dla GDA. | |
326 | ||
327 | %package provider-sqlcipher | |
328 | Summary: GDA SQLCipher provider | |
329 | Summary(pl.UTF-8): Źródło danych SQLCipher dla GDA | |
330 | Group: Libraries | |
331 | Requires: %{name} = %{version}-%{release} | |
332 | ||
333 | %description provider-sqlcipher | |
334 | This package contains the GDA SQLCipher provider. | |
335 | ||
336 | %description provider-sqlcipher -l pl.UTF-8 | |
337 | Pakiet dostarczający dane z SQLCipher dla GDA. | |
338 | ||
339 | %package provider-sqlite | |
340 | Summary: GDA SQLite provider | |
341 | Summary(pl.UTF-8): Źródło danych SQLite dla GDA | |
342 | Group: Libraries | |
343 | Requires: %{name} = %{version}-%{release} | |
c541bbbe | 344 | Requires: sqlite3 >= 3.10.2 |
d4778e57 JB |
345 | |
346 | %description provider-sqlite | |
347 | This package contains the GDA SQLite provider. | |
348 | ||
349 | %description provider-sqlite -l pl.UTF-8 | |
350 | Pakiet dostarczający dane z SQLite dla GDA. | |
351 | ||
352 | %package provider-web | |
353 | Summary: GDA Web provider | |
354 | Summary(pl.UTF-8): Źródło danych Web dla GDA | |
355 | Group: Libraries | |
356 | Requires: %{name} = %{version}-%{release} | |
357 | ||
358 | %description provider-web | |
359 | This package contains the GDA Web provider. | |
360 | ||
361 | %description provider-web -l pl.UTF-8 | |
362 | Pakiet dostarczający dane z Web dla GDA. | |
363 | ||
364 | %package tools | |
365 | Summary: Graphical tools for GDA | |
366 | Summary(pl.UTF-8): Narzędzia graficzne dla GDA | |
367 | Group: X11/Applications | |
b4f282d2 | 368 | Requires: %{name}-ui = %{version}-%{release} |
d4778e57 JB |
369 | Requires: gtk-update-icon-cache |
370 | Requires: hicolor-icon-theme | |
d4778e57 JB |
371 | |
372 | %description tools | |
373 | Graphical tools for GDA. | |
374 | ||
375 | %description tools -l pl.UTF-8 | |
376 | Narzędzia graficzne dla GDA. | |
377 | ||
c541bbbe JB |
378 | %package glade |
379 | Summary: libgda catalog file and icons for Glade | |
380 | Summary(pl.UTF-8): Plik katalogu oraz ikony libgda dla Glade | |
381 | Group: X11/Development/Libraries | |
382 | Requires: %{name}-devel = %{version}-%{release} | |
383 | Requires: glade >= 3 | |
384 | ||
385 | %description glade | |
386 | libgda catalog file and icons for Glade. | |
387 | ||
388 | %description glade -l pl.UTF-8 | |
389 | Plik katalogu oraz ikony libgda dla Glade. | |
390 | ||
d4778e57 JB |
391 | %prep |
392 | %setup -q -n libgda-%{version} | |
393 | %patch0 -p1 | |
d56a3040 | 394 | %patch1 -p1 |
e8796dba | 395 | %patch2 -p1 |
e9d229a1 | 396 | %patch3 -p1 |
0e866759 JB |
397 | %patch4 -p1 |
398 | %patch5 -p1 | |
287f0265 | 399 | %patch6 -p1 |
441ba81d | 400 | %patch8 -p1 |
d4778e57 | 401 | |
6fe2b8c6 JB |
402 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' \ |
403 | libgda-report/RML/trml2html/trml2html.py \ | |
404 | libgda-report/RML/trml2pdf/trml2pdf.py | |
405 | ||
d4778e57 JB |
406 | %build |
407 | # included version is bash-specific, use system file | |
408 | cp -f %{_aclocaldir}/introspection.m4 m4/introspection.m4 | |
409 | %if %{with jdbc} | |
410 | export JAVA_HOME="%{java_home}" | |
03f15e65 JR |
411 | %ifarch %{ix86} |
412 | export _JAVA_SUFFIX="/lib/i386/server" | |
413 | %endif | |
414 | %ifarch %{x8664} | |
415 | export _JAVA_SUFFIX="/lib/amd64/server" | |
416 | %endif | |
d4778e57 JB |
417 | %endif |
418 | %{__gtkdocize} | |
419 | %{__intltoolize} | |
420 | %{__libtoolize} | |
421 | %{__aclocal} -I m4 | |
422 | %{__autoconf} | |
423 | %{__automake} | |
0e866759 JB |
424 | %if %{with jdbc} |
425 | # included getsp.class fails with Sun/Oracle JDK 1.6, regenerate | |
426 | javac getsp.java | |
427 | %endif | |
d4778e57 JB |
428 | %configure \ |
429 | --disable-silent-rules \ | |
818c864a | 430 | %{!?with_vala:--disable-vala} \ |
0e866759 JB |
431 | --enable-gda-gi \ |
432 | --enable-gdaui-gi \ | |
433 | %{?with_vala:--enable-gdaui-vala} \ | |
434 | --enable-gtk-doc%{!?with_apidocs:=no} \ | |
435 | --enable-json \ | |
d4778e57 JB |
436 | %{?with_static_libs:--enable-static} \ |
437 | --enable-system-sqlite \ | |
0e866759 | 438 | %{?with_vala:--enable-vala --enable-vala-extensions} \ |
d4778e57 | 439 | --with-bdb=/usr \ |
0e866759 JB |
440 | --with-html-dir=%{_gtkdocdir} \ |
441 | --with-firebird%{!?with_firebird:=no} \ | |
442 | --with-java%{!?with_jdbc:=no} \ | |
d56a3040 | 443 | --with-libdir-name=%{_lib} \ |
0e866759 JB |
444 | --with-mdb%{!?with_mdb:=no} \ |
445 | --with-mysql%{!?with_mysql:=no} \ | |
d56a3040 JB |
446 | --with-oracle%{!?with_oci:=no} \ |
447 | --with-postgres%{!?with_pgsql:=no} | |
d4778e57 JB |
448 | |
449 | %{__make} -j1 | |
450 | ||
451 | %install | |
452 | rm -rf $RPM_BUILD_ROOT | |
453 | ||
454 | %{__make} install \ | |
1baae868 JB |
455 | DESTDIR=$RPM_BUILD_ROOT \ |
456 | VALA_VAPIDIR=%{_datadir}/vala/vapi | |
d4778e57 JB |
457 | |
458 | # modules dlopened by *.so through libgmodule | |
459 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgda-5.0/providers/*.{a,la} | |
460 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgda-5.0/plugins/*.{a,la} | |
461 | ||
462 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
463 | ||
464 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} | |
465 | ||
69bdb055 JB |
466 | %py3_comp $RPM_BUILD_ROOT%{_datadir}/libgda-5.0/gda_trml2html |
467 | %py3_comp $RPM_BUILD_ROOT%{_datadir}/libgda-5.0/gda_trml2pdf | |
468 | %py3_ocomp $RPM_BUILD_ROOT%{_datadir}/libgda-5.0/gda_trml2html | |
469 | %py3_ocomp $RPM_BUILD_ROOT%{_datadir}/libgda-5.0/gda_trml2pdf | |
d4778e57 JB |
470 | |
471 | %find_lang libgda-5.0 | |
472 | %find_lang gda-browser --with-gnome | |
5945d658 JB |
473 | %find_lang gda-sql --with-gnome |
474 | cat gda-sql.lang >> gda-browser.lang | |
d4778e57 JB |
475 | |
476 | %clean | |
477 | rm -rf $RPM_BUILD_ROOT | |
478 | ||
479 | %post -p /sbin/ldconfig | |
480 | %postun -p /sbin/ldconfig | |
481 | ||
482 | %post tools | |
483 | %update_icon_cache hicolor | |
484 | ||
485 | %postun tools | |
486 | %update_icon_cache hicolor | |
487 | ||
488 | %files -f libgda-5.0.lang | |
489 | %defattr(644,root,root,755) | |
31af1ee2 | 490 | %doc AUTHORS ChangeLog NEWS README |
d4778e57 JB |
491 | %attr(755,root,root) %{_bindir}/gda-list-config |
492 | %attr(755,root,root) %{_bindir}/gda-list-config-5.0 | |
493 | %attr(755,root,root) %{_bindir}/gda-list-server-op | |
494 | %attr(755,root,root) %{_bindir}/gda-list-server-op-5.0 | |
495 | %attr(755,root,root) %{_bindir}/gda-sql | |
496 | %attr(755,root,root) %{_bindir}/gda-sql-5.0 | |
497 | %attr(755,root,root) %{_bindir}/gda-test-connection-5.0 | |
498 | %attr(755,root,root) %{_libdir}/libgda-5.0.so.*.*.* | |
499 | %attr(755,root,root) %ghost %{_libdir}/libgda-5.0.so.4 | |
500 | %attr(755,root,root) %{_libdir}/libgda-report-5.0.so.*.*.* | |
501 | %attr(755,root,root) %ghost %{_libdir}/libgda-report-5.0.so.4 | |
502 | %attr(755,root,root) %{_libdir}/libgda-xslt-5.0.so.*.*.* | |
503 | %attr(755,root,root) %ghost %{_libdir}/libgda-xslt-5.0.so.4 | |
504 | %{_libdir}/girepository-1.0/Gda-5.0.typelib | |
505 | %dir %{_libdir}/libgda-5.0 | |
506 | %dir %{_libdir}/libgda-5.0/providers | |
507 | %dir %{_datadir}/libgda-5.0 | |
508 | %{_datadir}/libgda-5.0/demo | |
509 | %{_datadir}/libgda-5.0/dtd | |
510 | %{_datadir}/libgda-5.0/icons | |
511 | %{_datadir}/libgda-5.0/pixmaps | |
512 | %{_datadir}/libgda-5.0/import_encodings.xml | |
513 | %{_datadir}/libgda-5.0/information_schema.xml | |
514 | %{_datadir}/libgda-5.0/language-specs | |
515 | %{_datadir}/libgda-5.0/server_operation.glade | |
516 | # used by libgda-report | |
517 | %{_datadir}/libgda-5.0/gda_trml2html | |
518 | %{_datadir}/libgda-5.0/gda_trml2pdf | |
519 | %dir %{_sysconfdir}/libgda-5.0 | |
520 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libgda-5.0/config | |
521 | %{_sysconfdir}/libgda-5.0/sales_test.db | |
522 | %{_mandir}/man1/gda-sql-5.0.1* | |
523 | %{_mandir}/man1/gda-sql.1* | |
524 | ||
525 | %files devel | |
526 | %defattr(644,root,root,755) | |
527 | %attr(755,root,root) %{_libdir}/libgda-5.0.so | |
528 | %attr(755,root,root) %{_libdir}/libgda-report-5.0.so | |
529 | %attr(755,root,root) %{_libdir}/libgda-xslt-5.0.so | |
530 | %{_datadir}/gir-1.0/Gda-5.0.gir | |
531 | %{_includedir}/libgda-5.0 | |
532 | %{_pkgconfigdir}/libgda-5.0.pc | |
533 | %{_pkgconfigdir}/libgda-bdb-5.0.pc | |
e5d16b31 | 534 | %{?with_dbsql:%{_pkgconfigdir}/libgda-bdbsql-5.0.pc} |
0e866759 | 535 | %{?with_firebird:%{_pkgconfigdir}/libgda-firebird-5.0.pc} |
d4778e57 JB |
536 | %{?with_jdbc:%{_pkgconfigdir}/libgda-jdbc-5.0.pc} |
537 | %{?with_ldap:%{_pkgconfigdir}/libgda-ldap-5.0.pc} | |
538 | %{?with_mdb:%{_pkgconfigdir}/libgda-mdb-5.0.pc} | |
539 | %{?with_mysql:%{_pkgconfigdir}/libgda-mysql-5.0.pc} | |
d56a3040 | 540 | %{?with_oci:%{_pkgconfigdir}/libgda-oracle-5.0.pc} |
d4778e57 JB |
541 | %{?with_pgsql:%{_pkgconfigdir}/libgda-postgres-5.0.pc} |
542 | %{_pkgconfigdir}/libgda-report-5.0.pc | |
543 | %{_pkgconfigdir}/libgda-sqlcipher-5.0.pc | |
544 | %{_pkgconfigdir}/libgda-sqlite-5.0.pc | |
545 | %{_pkgconfigdir}/libgda-xslt-5.0.pc | |
546 | %{_pkgconfigdir}/libgda-web-5.0.pc | |
547 | ||
548 | %if %{with static_libs} | |
549 | %files static | |
550 | %defattr(644,root,root,755) | |
551 | %{_libdir}/libgda-5.0.a | |
552 | %{_libdir}/libgda-report-5.0.a | |
553 | %{_libdir}/libgda-xslt-5.0.a | |
554 | %endif | |
555 | ||
556 | %if %{with vala} | |
557 | %files -n vala-libgda5 | |
558 | %defattr(644,root,root,755) | |
559 | %{_datadir}/vala/vapi/libgda-5.0.vapi | |
560 | %endif | |
561 | ||
562 | %files ui | |
563 | %defattr(644,root,root,755) | |
564 | %attr(755,root,root) %{_bindir}/gdaui-demo-5.0 | |
565 | %attr(755,root,root) %{_libdir}/libgda-ui-5.0.so.*.*.* | |
566 | %attr(755,root,root) %ghost %{_libdir}/libgda-ui-5.0.so.4 | |
567 | %attr(755,root,root) %{_libdir}/libgda-5.0/plugins/libgda-ui-plugins.so | |
568 | %dir %{_libdir}/libgda-5.0/plugins | |
569 | %{_libdir}/libgda-5.0/plugins/gdaui-*.xml | |
570 | %{_libdir}/girepository-1.0/Gdaui-5.0.typelib | |
571 | %{_datadir}/libgda-5.0/ui | |
572 | ||
573 | %files ui-devel | |
574 | %defattr(644,root,root,755) | |
575 | %attr(755,root,root) %{_libdir}/libgda-ui-5.0.so | |
576 | %{_datadir}/gir-1.0/Gdaui-5.0.gir | |
577 | %{_pkgconfigdir}/libgda-ui-5.0.pc | |
578 | ||
579 | %if %{with static_libs} | |
580 | %files ui-static | |
581 | %defattr(644,root,root,755) | |
582 | %{_libdir}/libgda-ui-5.0.a | |
583 | %endif | |
584 | ||
0e866759 JB |
585 | %if %{with vala} |
586 | %files -n vala-libgda5-ui | |
587 | %defattr(644,root,root,755) | |
c541bbbe | 588 | %{_datadir}/vala/vapi/libgda-ui-5.0.vapi |
0e866759 JB |
589 | %endif |
590 | ||
d4778e57 JB |
591 | %if %{with apidocs} |
592 | %files apidocs | |
593 | %defattr(644,root,root,755) | |
594 | %{_gtkdocdir}/gda-browser | |
595 | %{_gtkdocdir}/libgda-5.0 | |
596 | %endif | |
597 | ||
598 | %files provider-db | |
599 | %defattr(644,root,root,755) | |
600 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-bdb.so | |
601 | %{_datadir}/libgda-5.0/bdb_specs_*.xml | |
602 | ||
e5d16b31 JB |
603 | %if %{with dbsql} |
604 | %files provider-dbsql | |
605 | %defattr(644,root,root,755) | |
606 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-bdbsql.so | |
607 | %{_datadir}/libgda-5.0/bdbsql_specs_*.xml | |
608 | %endif | |
609 | ||
0e866759 JB |
610 | %if %{with firebird} |
611 | %files provider-firebird | |
612 | %defattr(644,root,root,755) | |
613 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-firebird-client.so | |
0e866759 JB |
614 | %{_datadir}/libgda-5.0/firebird_specs_*.xml |
615 | %endif | |
616 | ||
d4778e57 JB |
617 | %if %{with jdbc} |
618 | %files provider-jdbc | |
619 | %defattr(644,root,root,755) | |
620 | %attr(755,root,root) %{_bindir}/gda-list-jdbc-providers-5.0 | |
621 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-jdbc.so | |
622 | %{_libdir}/libgda-5.0/providers/gdaprovider-5.0.jar | |
623 | %{_datadir}/libgda-5.0/jdbc_specs_*.xml | |
624 | %endif | |
625 | ||
626 | %if %{with ldap} | |
627 | %files provider-ldap | |
628 | %defattr(644,root,root,755) | |
629 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-ldap.so | |
630 | %{_datadir}/libgda-5.0/ldap_specs_*.xml | |
631 | %endif | |
632 | ||
633 | %if %{with mdb} | |
634 | %files provider-mdb | |
635 | %defattr(644,root,root,755) | |
636 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-mdb.so | |
637 | %{_datadir}/libgda-5.0/mdb_specs_*.xml | |
638 | %endif | |
639 | ||
640 | %if %{with mysql} | |
641 | %files provider-mysql | |
642 | %defattr(644,root,root,755) | |
643 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-mysql.so | |
644 | %{_datadir}/libgda-5.0/mysql_specs_*.xml | |
645 | %endif | |
646 | ||
d56a3040 JB |
647 | %if %{with oci} |
648 | %files provider-oracle | |
649 | %defattr(644,root,root,755) | |
650 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-oracle.so | |
651 | %{_datadir}/libgda-5.0/oracle_specs_*.xml | |
652 | %endif | |
653 | ||
d4778e57 JB |
654 | %if %{with pgsql} |
655 | %files provider-postgres | |
656 | %defattr(644,root,root,755) | |
657 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-postgres.so | |
658 | %{_datadir}/libgda-5.0/postgres_specs_*.xml | |
659 | %endif | |
660 | ||
661 | %files provider-sqlcipher | |
662 | %defattr(644,root,root,755) | |
663 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-sqlcipher.so | |
664 | %{_datadir}/libgda-5.0/sqlcipher_specs_*.xml | |
665 | ||
666 | %files provider-sqlite | |
667 | %defattr(644,root,root,755) | |
668 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-sqlite.so | |
669 | %{_datadir}/libgda-5.0/sqlite_specs_*.xml | |
670 | ||
671 | %files provider-web | |
672 | %defattr(644,root,root,755) | |
673 | %doc providers/web/README | |
674 | %attr(755,root,root) %{_libdir}/libgda-5.0/providers/libgda-web.so | |
675 | %{_datadir}/libgda-5.0/php | |
676 | %{_datadir}/libgda-5.0/web | |
677 | %{_datadir}/libgda-5.0/web_specs_*.xml | |
678 | ||
679 | %files tools -f gda-browser.lang | |
680 | %defattr(644,root,root,755) | |
681 | %attr(755,root,root) %{_bindir}/gda-browser-5.0 | |
682 | %attr(755,root,root) %{_bindir}/gda-control-center-5.0 | |
9331021b | 683 | %{_datadir}/appdata/gda-browser-5.0.appdata.xml |
d4778e57 JB |
684 | %{_desktopdir}/gda-browser-5.0.desktop |
685 | %{_desktopdir}/gda-control-center-5.0.desktop | |
686 | %{_pixmapsdir}/gda-browser-5.0.png | |
687 | %{_iconsdir}/hicolor/*/apps/gda-control-center.png | |
c541bbbe JB |
688 | |
689 | %if %{with glade} | |
690 | %files glade | |
691 | %defattr(644,root,root,755) | |
692 | %{_datadir}/glade/catalogs/gdaui-catalog.xml | |
693 | %{_datadir}/glade/pixmaps/widget-gdaui-gdauibasicform.png | |
694 | %{_datadir}/glade/pixmaps/widget-gdaui-gdauicombo.png | |
695 | %{_datadir}/glade/pixmaps/widget-gdaui-gdauigrid.png | |
696 | %{_datadir}/glade/pixmaps/widget-gdaui-gdauilogin.png | |
697 | %{_datadir}/glade/pixmaps/widget-gdaui-gdauirawgrid.png | |
698 | %endif |