]> git.pld-linux.org Git - packages/libgda.git/blob - libgda.spec
5381602411c43b0d7956bc6863e3d20d82cc135b
[packages/libgda.git] / libgda.spec
1 #
2 # Conditional build:
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
15 #
16 %ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
17 %undefine       with_firebird
18 %endif
19 Summary:        GNU Data Access library
20 Summary(pl.UTF-8):      Biblioteka GNU Data Access
21 Name:           libgda
22 Version:        1.2.4
23 Release:        21
24 Epoch:          1
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
38 Patch9:         glib.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
46 BuildRequires:  bison
47 BuildRequires:  db-devel
48 BuildRequires:  docbook-dtd412-xml
49 BuildRequires:  flex
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
60 %if %{with_mdb}
61 %{?with_mdb05:BuildRequires:    mdbtools-devel < 0.6}
62 %{!?with_mdb05:BuildRequires:   mdbtools-devel >= 0.6}
63 %endif
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)
78
79 %description
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
83 access your data.
84
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.
87
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.
93
94 libgda była częścią projektu GNOME-DB, ale została wydzielona, aby
95 pozwolić na używanie przez niegnomowe aplikacje.
96
97 %package devel
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
106
107 %description 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.
112
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.
119
120 %package static
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}
125
126 %description static
127 GNU Data Access static libraries.
128
129 %description static -l pl.UTF-8
130 Statyczne biblioteki GNU Data Access.
131
132 %package apidocs
133 Summary:        libgda API documentation
134 Summary(pl.UTF-8):      Dokumentacja API libgda
135 Group:          Documentation
136 Requires(post,postun):  scrollkeeper
137 Requires:       gtk-doc-common
138 Requires:       scrollkeeper
139
140 %description apidocs
141 libgda API documentation.
142
143 %description apidocs -l pl.UTF-8
144 Dokumentacja API libgda.
145
146 %package -n gda-db
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}
151
152 %description -n gda-db
153 This package contains the GDA Berkeley DB provider.
154
155 %description -n gda-db -l pl.UTF-8
156 Pakiet dostarczający dane z Berkeley DB dla GDA.
157
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}
163
164 %description -n gda-firebird
165 This package contains the GDA Firebird provider.
166
167 %description -n gda-firebird -l pl.UTF-8
168 Pakiet dostarczający dane z Firebird dla GDA.
169
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}
175
176 %description -n gda-freetds
177 This package contains the GDA FreeTDS provider.
178
179 %description -n gda-freetds -l pl.UTF-8
180 Pakiet dostarczający dane z FreeTDS dla GDA.
181
182 %package -n gda-ldap
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}
187
188 %description -n gda-ldap
189 This package contains the GDA LDAP provider.
190
191 %description -n gda-ldap -l pl.UTF-8
192 Pakiet dostarczający dane z LDAP dla GDA
193
194 %package -n gda-mdb
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}
201
202 %description -n gda-mdb
203 This package contains the GDA MDB provider.
204
205 %description -n gda-mdb -l pl.UTF-8
206 Pakiet dostarczający dane z MDB dla GDA.
207
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
214
215 %description -n gda-mysql
216 This package contains the GDA MySQL provider.
217
218 %description -n gda-mysql -l pl.UTF-8
219 Pakiet dostarczający dane z MySQL dla GDA.
220
221 %package -n gda-odbc
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}
226
227 %description -n gda-odbc
228 This package contains the GDA ODBC provider.
229
230 %description -n gda-odbc -l pl.UTF-8
231 Pakiet dostarczający dane z ODBC dla GDA.
232
233 %package -n gda-oracle
234 Summary:        GDA Oracle provider
235 Summary(pl.UTF-8):      Źródło danych Oracle dla GDA
236 Group:          Libraries
237 Requires:       %{name} = %{version}-%{release}
238
239 %description -n gda-oracle
240 This package contains the GDA Oracle provider.
241
242 %description -n gda-oracle -l pl.UTF-8
243 Pakiet dostarczający dane z bazy Oracle dla GDA.
244
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
251
252 %description -n gda-postgres
253 This package contains the GDA PostgreSQL provider.
254
255 %description -n gda-postgres -l pl.UTF-8
256 Pakiet dostarczający dane z PostgreSQL dla GDA.
257
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}
263
264 %description -n gda-sqlite
265 This package contains the GDA SQLite provider.
266
267 %description -n gda-sqlite -l pl.UTF-8
268 Pakiet dostarczający dane z SQLite dla GDA.
269
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}
275
276 %description -n gda-sybase
277 This package contains the GDA Sybase provider.
278
279 %description -n gda-sybase -l pl.UTF-8
280 Pakiet dostarczający dane z Sybase dla GDA.
281
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}
287
288 %description -n gda-xbase
289 This package contains the GDA xBase (dBase, Clipper, FoxPro) provider.
290
291 %description -n gda-xbase -l pl.UTF-8
292 Pakiet dostarczający dane z xBase (dBase, Clippera, FoxPro) dla GDA.
293
294 %prep
295 %setup -q
296 %if %{with mdb05}
297 %patch0 -p1
298 %endif
299 %patch1 -p1
300 %patch2 -p1
301 %patch3 -p1
302 %patch4 -p1
303 %patch5 -p1
304 %patch6 -p1
305 %patch7 -p1
306 %patch8 -p1
307 %patch9 -p1
308 %patch10 -p1
309 %patch11 -p1
310 %patch12 -p1
311
312 %build
313 CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions"
314 %{__intltoolize}
315 %{__libtoolize}
316 %{__aclocal}
317 %{__autoconf}
318 %{__automake}
319 %configure \
320         --enable-gtk-doc \
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}
333 %{__make} -j1
334
335 %install
336 rm -rf $RPM_BUILD_ROOT
337
338 %{__make} install \
339         DESTDIR=$RPM_BUILD_ROOT
340
341 # modules dlopened by *.so through libgmodule
342 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgda/providers/*.{a,la}
343
344 %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{sr@Latn,sr@latin}
345
346 %find_lang %{name} --with-gnome --all-name
347
348 %clean
349 rm -rf $RPM_BUILD_ROOT
350
351 %post   -p /sbin/ldconfig
352 %postun -p /sbin/ldconfig
353
354 %post apidocs
355 %scrollkeeper_update_post
356
357 %postun apidocs
358 %scrollkeeper_update_postun
359
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
373 %{_datadir}/libgda
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*
378
379 %files devel
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
392
393 %files static
394 %defattr(644,root,root,755)
395 %{_libdir}/libgda-2.a
396 %{_libdir}/libgda-report-2.a
397 %{_libdir}/libgdasql.a
398
399 %files apidocs
400 %defattr(644,root,root,755)
401 %{_gtkdocdir}/libgda
402 %{_omf_dest_dir}/%{name}
403
404 %files -n gda-db
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-bdb.so
407
408 %if %{with firebird}
409 %files -n gda-firebird
410 %defattr(644,root,root,755)
411 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-firebird.so
412 %endif
413
414 %if %{with freetds}
415 %files -n gda-freetds
416 %defattr(644,root,root,755)
417 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-freetds.so
418 %endif
419
420 %if %{with ldap}
421 %files -n gda-ldap
422 %defattr(644,root,root,755)
423 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-ldap.so
424 %endif
425
426 %if %{with mdb}
427 %files -n gda-mdb
428 %defattr(644,root,root,755)
429 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-mdb.so
430 %endif
431
432 %if %{with mysql}
433 %files -n gda-mysql
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-mysql.so
436 %endif
437
438 %if %{with odbc}
439 %files -n gda-odbc
440 %defattr(644,root,root,755)
441 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-odbc.so
442 %endif
443
444 %if %{with oci}
445 %files -n gda-oracle
446 %defattr(644,root,root,755)
447 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-oracle.so
448 %endif
449
450 %if %{with pgsql}
451 %files -n gda-postgres
452 %defattr(644,root,root,755)
453 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-postgres.so
454 %endif
455
456 %if %{with sqlite}
457 %files -n gda-sqlite
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-sqlite.so
460 %endif
461
462 %if %{with sybase}
463 %files -n gda-sybase
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-sybase.so
466 %endif
467
468 %if %{with xbase}
469 %files -n gda-xbase
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_libdir}/libgda/providers/libgda-xbase.so
472 %endif
This page took 0.145664 seconds and 2 git commands to generate.