3 %bcond_without firebird # Firebird plugin
4 %bcond_with freetds # FreeTDS plugin
5 %bcond_without ldap # LDAP plugin
6 %bcond_without mdb # MDB plugin
7 %bcond_with mdb05 # use mdb < 0.6pre1
8 %bcond_without mysql # MySQL plugin
9 %bcond_with oci # Oracle DB plugin
10 %bcond_without odbc # unixODBC plugin
11 %bcond_without pgsql # PostgreSQL plugin
12 %bcond_without sqlite # SQLite plugin
13 %bcond_without sybase # sybase plugin
14 %bcond_without xbase # xbase plugin
16 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
17 %undefine with_firebird
19 Summary: GNU Data Access library
20 Summary(pl.UTF-8): Biblioteka GNU Data Access
25 License: LGPL v2+/GPL v2+
26 Group: Applications/Databases
27 Source0: http://ftp.gnome.org/pub/GNOME/sources/libgda/1.2/%{name}-%{version}.tar.bz2
28 # Source0-md5: 512a8ed842ce98eb432e69bd6867f437
29 Patch0: %{name}-mdb.patch
30 Patch1: %{name}-sqlite.patch
31 Patch2: %{name}-configure.patch
32 Patch3: %{name}-freetds064.patch
33 Patch4: %{name}-xbase.patch
34 Patch5: %{name}-mdb2.patch
35 Patch6: %{name}-gtk-doc.patch
36 Patch7: %{name}-sybase.patch
37 Patch8: %{name}-firebird.patch
39 Patch10: %{name}-xml.patch
40 Patch11: %{name}-format.patch
41 Patch12: %{name}-mdb-0.7.patch
42 URL: http://www.gnome-db.org/
43 %{?with_firebird:BuildRequires: Firebird-devel}
44 BuildRequires: autoconf >= 2.59
45 BuildRequires: automake >= 1:1.8
47 BuildRequires: db-devel
48 BuildRequires: docbook-dtd412-xml
50 %{?with_freetds:BuildRequires: freetds-devel = 0.64}
51 %{?with_sybase:BuildRequires: freetds-devel >= 0.82}
52 BuildRequires: gettext-tools
53 BuildRequires: glib2-devel >= 1:2.12.1
54 BuildRequires: gnome-common >= 2.12.0
55 BuildRequires: gtk-doc >= 1.7
56 BuildRequires: intltool >= 0.35
57 BuildRequires: libtool
58 BuildRequires: libxml2-devel >= 1:2.6.26
59 BuildRequires: libxslt-devel >= 1.1.17
61 %{?with_mdb05:BuildRequires: mdbtools-devel < 0.6}
62 %{!?with_mdb05:BuildRequires: mdbtools-devel >= 0.6}
64 %{?with_mysql:BuildRequires: mysql-devel}
65 %{?with_ldap:BuildRequires: openldap-devel >= 2.4.6}
66 %{?with_oci:BuildRequires: oracle-instantclient-devel}
67 BuildRequires: perl-base
68 BuildRequires: pkgconfig
69 BuildRequires: popt-devel
70 %{?with_pgsql:BuildRequires: postgresql-devel}
71 BuildRequires: readline-devel >= 5.0
72 BuildRequires: rpmbuild(macros) >= 1.213
73 BuildRequires: scrollkeeper
74 %{?with_sqlite:BuildRequires: sqlite3-devel}
75 %{?with_odbc:BuildRequires: unixODBC-devel}
76 %{?with_xbase:BuildRequires: xbase-devel >= 2.0.0}
77 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80 GNU Data Access is an attempt to provide uniform access to different
81 kinds of data sources (databases, information servers, mail spools,
82 etc). It is a complete architecture that provides all you need to
85 libgda was part of the GNOME-DB project but has been separated from it
86 to allow non-GNOME applications to be developed based on it.
88 %description -l pl.UTF-8
89 GNU Data Access to próba zapewnienia jednolitego dostępu do różnych
90 źródeł danych (bazy danych, serwery informacji, katalogi z pocztą
91 itp.). Jest kompletną architekturą dostarczającą wszystko, czego
92 potrzebujesz do dostępu do danych.
94 libgda była częścią projektu GNOME-DB, ale została wydzielona, aby
95 pozwolić na używanie przez niegnomowe aplikacje.
98 Summary: GNU Data Access development files
99 Summary(pl.UTF-8): Pliki programistyczne biblioteki GNU Data Access
100 Group: Development/Libraries
101 Requires: %{name} = %{epoch}:%{version}-%{release}
102 Requires: glib2-devel >= 1:2.12.1
103 Requires: libxml2-devel >= 1:2.6.26
104 Requires: libxslt-devel >= 1.1.17
105 Obsoletes: libgda0-devel
108 GNU Data Access is an attempt to provide uniform access to different
109 kinds of data sources (databases, information servers, mail spools,
110 etc). It is a complete architecture that provides all you need to
111 access your data. This subpackage contains development files.
113 %description devel -l pl.UTF-8
114 GNU Data Access to próba zapewnienia jednolitego dostępu do różnych
115 źródeł danych (bazy danych, serwery informacji, katalogi z pocztą
116 itp.). Jest kompletną architekturą dostarczającą wszystko, czego
117 potrzebujesz do dostępu do danych. Ten podpakiet zawiera pliki dla
118 programistów używających libgda.
121 Summary: GNU Data Access static libraries
122 Summary(pl.UTF-8): Statyczne biblioteki GNU Data Access
123 Group: Development/Libraries
124 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
127 GNU Data Access static libraries.
129 %description static -l pl.UTF-8
130 Statyczne biblioteki GNU Data Access.
133 Summary: libgda API documentation
134 Summary(pl.UTF-8): Dokumentacja API libgda
136 Requires(post,postun): scrollkeeper
137 Requires: gtk-doc-common
138 Requires: scrollkeeper
141 libgda API documentation.
143 %description apidocs -l pl.UTF-8
144 Dokumentacja API libgda.
147 Summary: GDA Berkeley DB provider
148 Summary(pl.UTF-8): Źródło danych Berkeley DB dla GDA
149 Group: Applications/Databases
150 Requires: %{name} = %{epoch}:%{version}-%{release}
152 %description -n gda-db
153 This package contains the GDA Berkeley DB provider.
155 %description -n gda-db -l pl.UTF-8
156 Pakiet dostarczający dane z Berkeley DB dla GDA.
158 %package -n gda-firebird
159 Summary: GDA Firebird provider
160 Summary(pl.UTF-8): Źródło danych Firebird dla GDA
161 Group: Applications/Databases
162 Requires: %{name} = %{epoch}:%{version}-%{release}
164 %description -n gda-firebird
165 This package contains the GDA Firebird provider.
167 %description -n gda-firebird -l pl.UTF-8
168 Pakiet dostarczający dane z Firebird dla GDA.
170 %package -n gda-freetds
171 Summary: GDA FreeTDS provider
172 Summary(pl.UTF-8): Źródło danych FreeTDS dla GDA
173 Group: Applications/Databases
174 Requires: %{name} = %{epoch}:%{version}-%{release}
176 %description -n gda-freetds
177 This package contains the GDA FreeTDS provider.
179 %description -n gda-freetds -l pl.UTF-8
180 Pakiet dostarczający dane z FreeTDS dla GDA.
183 Summary: GDA LDAP provider
184 Summary(pl.UTF-8): Źródło danych LDAP dla GDA
185 Group: Applications/Databases
186 Requires: %{name} = %{epoch}:%{version}-%{release}
188 %description -n gda-ldap
189 This package contains the GDA LDAP provider.
191 %description -n gda-ldap -l pl.UTF-8
192 Pakiet dostarczający dane z LDAP dla GDA
195 Summary: GDA MDB provider
196 Summary(pl.UTF-8): Źródło danych MDB
197 Group: Applications/Databases
198 Requires: %{name} = %{epoch}:%{version}-%{release}
199 %{?with_mdb05:Requires: mdbtools-libs < 0.6}
200 %{!?with_mdb05:Requires: mdbtools-libs >= 0.6}
202 %description -n gda-mdb
203 This package contains the GDA MDB provider.
205 %description -n gda-mdb -l pl.UTF-8
206 Pakiet dostarczający dane z MDB dla GDA.
208 %package -n gda-mysql
209 Summary: GDA MySQL provider
210 Summary(pl.UTF-8): Źródło danych MySQL dla GDA
211 Group: Applications/Databases
212 Requires: %{name} = %{epoch}:%{version}-%{release}
213 Obsoletes: libgda-mysql0
215 %description -n gda-mysql
216 This package contains the GDA MySQL provider.
218 %description -n gda-mysql -l pl.UTF-8
219 Pakiet dostarczający dane z MySQL dla GDA.
222 Summary: GDA ODBC provider
223 Summary(pl.UTF-8): Źródło danych ODBC dla GDA
224 Group: Applications/Databases
225 Requires: %{name} = %{epoch}:%{version}-%{release}
227 %description -n gda-odbc
228 This package contains the GDA ODBC provider.
230 %description -n gda-odbc -l pl.UTF-8
231 Pakiet dostarczający dane z ODBC dla GDA.
233 %package -n gda-oracle
234 Summary: GDA Oracle provider
235 Summary(pl.UTF-8): Źródło danych Oracle dla GDA
237 Requires: %{name} = %{version}-%{release}
239 %description -n gda-oracle
240 This package contains the GDA Oracle provider.
242 %description -n gda-oracle -l pl.UTF-8
243 Pakiet dostarczający dane z bazy Oracle dla GDA.
245 %package -n gda-postgres
246 Summary: GDA PostgreSQL provider
247 Summary(pl.UTF-8): Źródło danych PostgreSQL dla GDA
248 Group: Applications/Databases
249 Requires: %{name} = %{epoch}:%{version}-%{release}
250 Obsoletes: libgda-postgres0
252 %description -n gda-postgres
253 This package contains the GDA PostgreSQL provider.
255 %description -n gda-postgres -l pl.UTF-8
256 Pakiet dostarczający dane z PostgreSQL dla GDA.
258 %package -n gda-sqlite
259 Summary: GDA SQLite provider
260 Summary(pl.UTF-8): Źródło danych SQLite dla GDA
261 Group: Applications/Databases
262 Requires: %{name} = %{epoch}:%{version}-%{release}
264 %description -n gda-sqlite
265 This package contains the GDA SQLite provider.
267 %description -n gda-sqlite -l pl.UTF-8
268 Pakiet dostarczający dane z SQLite dla GDA.
270 %package -n gda-sybase
271 Summary: GDA Sybase provider
272 Summary(pl.UTF-8): Źródło danych Sybase dla GDA
273 Group: Applications/Databases
274 Requires: %{name} = %{epoch}:%{version}-%{release}
276 %description -n gda-sybase
277 This package contains the GDA Sybase provider.
279 %description -n gda-sybase -l pl.UTF-8
280 Pakiet dostarczający dane z Sybase dla GDA.
282 %package -n gda-xbase
283 Summary: GDA xBase provider
284 Summary(pl.UTF-8): Źródło danych xBase dla GDA
285 Group: Applications/Databases
286 Requires: %{name} = %{epoch}:%{version}-%{release}
288 %description -n gda-xbase
289 This package contains the GDA xBase (dBase, Clipper, FoxPro) provider.
291 %description -n gda-xbase -l pl.UTF-8
292 Pakiet dostarczający dane z xBase (dBase, Clippera, FoxPro) dla GDA.
313 CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions"
321 --with-html-dir=%{_gtkdocdir} \
322 --with-firebird%{!?with_firebird:=no} \
323 --with-ldap%{!?with_ldap:=no} \
324 --with-mdb%{!?with_mdb:=no} \
325 --with-mysql%{!?with_mysql:=no} \
326 --with-odbc%{!?with_odbc:=no} \
327 --with-oracle%{!?with_oci:=no} \
328 --with-postgres%{!?with_pgsql:=no} \
329 --with-sqlite%{!?with_sqlite:=no} \
330 %{?with_sybase:--with-sybase=/usr} \
331 --with-tds%{!?with_freetds:=no} \
332 --with-xbase%{!?with_xbase:=no}
336 rm -rf $RPM_BUILD_ROOT
339 DESTDIR=$RPM_BUILD_ROOT
341 # modules dlopened by *.so through libgmodule
342 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgda/providers/*.{a,la}
344 %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{sr@Latn,sr@latin}
346 %find_lang %{name} --with-gnome --all-name
349 rm -rf $RPM_BUILD_ROOT
351 %post -p /sbin/ldconfig
352 %postun -p /sbin/ldconfig
355 %scrollkeeper_update_post
358 %scrollkeeper_update_postun
360 %files -f %{name}.lang
361 %defattr(644,root,root,755)
362 %doc AUTHORS ChangeLog NEWS README
363 %attr(755,root,root) %{_bindir}/gda-config-tool
364 %attr(755,root,root) %{_libdir}/libgda-2.so.*.*.*
365 %attr(755,root,root) %ghost %{_libdir}/libgda-2.so.3
366 %attr(755,root,root) %{_libdir}/libgda-report-2.so.*.*.*
367 %attr(755,root,root) %ghost %{_libdir}/libgda-report-2.so.3
368 %attr(755,root,root) %{_libdir}/libgdasql.so.*.*.*
369 %attr(755,root,root) %ghost %{_libdir}/libgdasql.so.3
370 %dir %{_libdir}/libgda
371 %dir %{_libdir}/libgda/providers
372 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-xml.so
374 %dir %{_sysconfdir}/libgda
375 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libgda/config
376 %{_mandir}/man1/gda-config-tool.1*
377 %{_mandir}/man5/gda-config.5*
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_bindir}/gda-report-test
382 %attr(755,root,root) %{_bindir}/gda-run
383 %attr(755,root,root) %{_bindir}/gda-test
384 %attr(755,root,root) %{_libdir}/libgda-2.so
385 %attr(755,root,root) %{_libdir}/libgda-report-2.so
386 %attr(755,root,root) %{_libdir}/libgdasql.so
387 %{_libdir}/libgda-2.la
388 %{_libdir}/libgda-report-2.la
389 %{_libdir}/libgdasql.la
390 %{_includedir}/libgda-1.2
391 %{_pkgconfigdir}/libgda.pc
394 %defattr(644,root,root,755)
395 %{_libdir}/libgda-2.a
396 %{_libdir}/libgda-report-2.a
397 %{_libdir}/libgdasql.a
400 %defattr(644,root,root,755)
402 %{_omf_dest_dir}/%{name}
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-bdb.so
409 %files -n gda-firebird
410 %defattr(644,root,root,755)
411 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-firebird.so
415 %files -n gda-freetds
416 %defattr(644,root,root,755)
417 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-freetds.so
422 %defattr(644,root,root,755)
423 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-ldap.so
428 %defattr(644,root,root,755)
429 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-mdb.so
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-mysql.so
440 %defattr(644,root,root,755)
441 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-odbc.so
446 %defattr(644,root,root,755)
447 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-oracle.so
451 %files -n gda-postgres
452 %defattr(644,root,root,755)
453 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-postgres.so
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-sqlite.so
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-sybase.so
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-xbase.so