]> git.pld-linux.org Git - packages/libgda3.git/blame - libgda3.spec
noarch apidocs
[packages/libgda3.git] / libgda3.spec
CommitLineData
6698215c 1# TODO: ibmdb2 provider
b4cae6aa 2#
b4cae6aa 3# Conditional build:
6698215c
JB
4%bcond_without apidocs # API documentation build
5%bcond_without static_libs # static libraries build
b4cae6aa 6%bcond_with gamin # use gamin instead of fam library
6698215c
JB
7%bcond_without gnomevfs # gnome-vfs support
8%bcond_without gnome # (convenience alias for gnomevfs)
6f64b75f 9# - database plugins:
6698215c
JB
10%bcond_without firebird # Firebird plugin
11%bcond_with freetds # FreeTDS plugin
12%bcond_without ldap # LDAP plugin
13%bcond_without mdb # MDB plugin
14%bcond_without mysql # MySQL plugin
15%bcond_with oci # Oracle DB plugin
16%bcond_without odbc # unixODBC plugin
17%bcond_without pgsql # PostgreSQL plugin
18%bcond_without sqlite # SQLite plugin
19%bcond_without sybase # sybase plugin
20%bcond_without xbase # xbase plugin
4dd4d9ec 21
6f64b75f
JB
22%if %{without gnome}
23%undefine with_gnomevfs
24%endif
b4cae6aa
JB
25%ifnarch %{ix86} sparc sparcv9 alpha
26%undefine with_firebird
27%endif
28Summary: GNU Data Access library
6f64b75f 29Summary(pl.UTF-8): Biblioteka GNU Data Access
b4cae6aa 30Name: libgda3
ed4aa3ff 31Version: 3.1.5
4dd4d9ec 32Release: 20
2c13119c 33License: LGPL v2+/GPL v2+
6f64b75f 34Group: Libraries
6698215c 35Source0: http://ftp.gnome.org/pub/GNOME/sources/libgda/3.1/libgda-%{version}.tar.bz2
ed4aa3ff 36# Source0-md5: eb7da5286a112e7cff3111c89fba4456
e9a8c49e 37Patch0: %{name}-configure.patch
4d1d7fc7 38Patch1: %{name}-am.patch
af5560b9 39Patch2: glib232.patch
00eee7f2 40Patch3: format-security.patch
d9153d00 41Patch4: mdb-0.7.patch
08a7f073 42Patch5: x32.patch
fd278e0c 43URL: http://www.gnome-db.org/
b4cae6aa
JB
44%{?with_firebird:BuildRequires: Firebird-devel}
45BuildRequires: autoconf >= 2.59
46BuildRequires: automake >= 1:1.8
47BuildRequires: bison
48BuildRequires: db-devel
169c4908 49BuildRequires: docbook-dtd412-xml
b4cae6aa
JB
50%{!?with_gamin:BuildRequires: fam-devel}
51BuildRequires: flex
687a3c3a 52%{?with_freetds:BuildRequires: freetds-devel = 0.64}
169c4908 53%{?with_sybase:BuildRequires: freetds-devel >= 0.82}
cdc6be99 54%{?with_gamin:BuildRequires: gamin-devel >= 0.1.8}
19185bab 55BuildRequires: gettext-tools
b4cae6aa
JB
56BuildRequires: glib2-devel >= 1:2.12.0
57BuildRequires: gnome-common >= 2.12.0
69656563 58%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.20}
b4cae6aa 59BuildRequires: gtk-doc >= 1.6
6f64b75f
JB
60BuildRequires: intltool >= 0.35.5
61BuildRequires: libgcrypt-devel >= 1.1.42
b4cae6aa 62BuildRequires: libtool
6f64b75f 63BuildRequires: libxml2-devel >= 1:2.6.26
b4cae6aa 64BuildRequires: libxslt-devel >= 1.1.17
69628b45 65%{?with_mdb:BuildRequires: mdbtools-devel >= 0.6}
b4cae6aa 66%{?with_mysql:BuildRequires: mysql-devel}
ae0d41e4 67%{?with_ldap:BuildRequires: openldap-devel >= 2.4.6}
6698215c 68%{?with_oci:BuildRequires: oracle-instantclient-devel}
b4cae6aa 69BuildRequires: perl-base
169c4908 70BuildRequires: pkgconfig
b4cae6aa
JB
71BuildRequires: popt-devel
72%{?with_pgsql:BuildRequires: postgresql-devel}
73BuildRequires: readline-devel >= 5.0
74BuildRequires: rpmbuild(macros) >= 1.213
5d9ee9dd 75%{?with_sqlite:BuildRequires: sqlite3-devel >= 3.5.0-2}
b4cae6aa
JB
76%{?with_odbc:BuildRequires: unixODBC-devel}
77%{?with_xbase:BuildRequires: xbase-devel >= 2.0.0}
78BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
79
6698215c
JB
80%define libgdadir libgda-3.0
81%define providersdir %{_libdir}/%{libgdadir}/providers
b4cae6aa
JB
82
83%description
84GNU Data Access is an attempt to provide uniform access to different
85kinds of data sources (databases, information servers, mail spools,
86etc). It is a complete architecture that provides all you need to
87access your data.
88
89libgda was part of the GNOME-DB project but has been separated from it
90to allow non-GNOME applications to be developed based on it.
91
92%description -l pl.UTF-8
93GNU Data Access to próba zapewnienia jednolitego dostępu do różnych
94źródeł danych (bazy danych, serwery informacji, katalogi z pocztą
95itp.). Jest kompletną architekturą dostarczającą wszystko, czego
96potrzebujesz do dostępu do danych.
97
98libgda była częścią projektu GNOME-DB, ale została wydzielona, aby
99pozwolić na używanie przez niegnomowe aplikacje.
100
101%package devel
6f64b75f
JB
102Summary: GNU Data Access development files
103Summary(pl.UTF-8): Pliki programistyczne biblioteki GNU Data Access
b4cae6aa
JB
104Group: Development/Libraries
105Requires: %{name} = %{version}-%{release}
106%{!?with_gamin:Requires: fam-devel}
cdc6be99 107%{?with_gamin:Requires: gamin-devel >= 0.1.8}
b4cae6aa 108Requires: glib2-devel >= 1:2.12.0
69656563 109%{?with_gnomevfs:Requires: gnome-vfs2-devel >= 2.20}
6f64b75f 110Requires: libgcrypt-devel >= 1.1.42
b4cae6aa
JB
111Requires: libxml2-devel >= 1:2.6.26
112Requires: libxslt-devel >= 1.1.17
113Obsoletes: libgda0-devel
114
115%description devel
116GNU Data Access is an attempt to provide uniform access to different
117kinds of data sources (databases, information servers, mail spools,
118etc). It is a complete architecture that provides all you need to
119access your data. This subpackage contains development files.
120
121%description devel -l pl.UTF-8
122GNU Data Access to próba zapewnienia jednolitego dostępu do różnych
123źródeł danych (bazy danych, serwery informacji, katalogi z pocztą
124itp.). Jest kompletną architekturą dostarczającą wszystko, czego
125potrzebujesz do dostępu do danych. Ten podpakiet zawiera pliki dla
126programistów używających libgda.
127
128%package static
129Summary: GNU Data Access static libraries
6f64b75f 130Summary(pl.UTF-8): Statyczne biblioteki GNU Data Access
b4cae6aa
JB
131Group: Development/Libraries
132Requires: %{name}-devel = %{version}-%{release}
133
134%description static
135GNU Data Access static libraries.
136
137%description static -l pl.UTF-8
138Statyczne biblioteki GNU Data Access.
139
6698215c
JB
140%package apidocs
141Summary: GNU Data Access API documentation
142Summary(pl.UTF-8): Dokumentacja API GNU Data Access
143Group: Documentation
144Requires: gtk-doc-common
4dd4d9ec
ER
145%if "%{_rpmversion}" >= "5"
146BuildArch: noarch
147%endif
6698215c
JB
148
149%description apidocs
150GNU Data Access API documentation.
151
152%description apidocs -l pl.UTF-8
153Dokumentacja API GNU Data Access.
154
b4cae6aa
JB
155%package provider-db
156Summary: GDA Berkeley DB provider
6f64b75f
JB
157Summary(pl.UTF-8): Źródło danych Berkeley DB dla GDA
158Group: Libraries
b4cae6aa
JB
159Requires: %{name} = %{version}-%{release}
160
161%description provider-db
162This package contains the GDA Berkeley DB provider.
163
164%description provider-db -l pl.UTF-8
6698215c 165Pakiet dostarczający dane z Berkeley DB dla GDA.
b4cae6aa
JB
166
167%package provider-firebird
168Summary: GDA Firebird provider
6f64b75f
JB
169Summary(pl.UTF-8): Źródło danych Firebird dla GDA
170Group: Libraries
b4cae6aa
JB
171Requires: %{name} = %{version}-%{release}
172
173%description provider-firebird
174This package contains the GDA Firebird provider.
175
176%description provider-firebird -l pl.UTF-8
177Pakiet dostarczający dane z Firebird dla GDA.
178
179%package provider-freetds
180Summary: GDA FreeTDS provider
6f64b75f
JB
181Summary(pl.UTF-8): Źródło danych FreeTDS dla GDA
182Group: Libraries
b4cae6aa
JB
183Requires: %{name} = %{version}-%{release}
184
185%description provider-freetds
186This package contains the GDA FreeTDS provider.
187
188%description provider-freetds -l pl.UTF-8
189Pakiet dostarczający dane z FreeTDS dla GDA.
190
191%package provider-ldap
192Summary: GDA LDAP provider
6f64b75f
JB
193Summary(pl.UTF-8): Źródło danych LDAP dla GDA
194Group: Libraries
b4cae6aa
JB
195Requires: %{name} = %{version}-%{release}
196
197%description provider-ldap
198This package contains the GDA LDAP provider.
199
200%description provider-ldap -l pl.UTF-8
6698215c 201Pakiet dostarczający dane z LDAP dla GDA.
b4cae6aa
JB
202
203%package provider-mdb
204Summary: GDA MDB provider
6f64b75f
JB
205Summary(pl.UTF-8): Źródło danych MDB
206Group: Libraries
b4cae6aa 207Requires: %{name} = %{version}-%{release}
69628b45 208Requires: mdbtools-libs >= 0.6
b4cae6aa
JB
209
210%description provider-mdb
211This package contains the GDA MDB provider.
212
213%description provider-mdb -l pl.UTF-8
214Pakiet dostarczający dane z MDB dla GDA.
215
216%package provider-mysql
217Summary: GDA MySQL provider
6f64b75f
JB
218Summary(pl.UTF-8): Źródło danych MySQL dla GDA
219Group: Libraries
b4cae6aa
JB
220Requires: %{name} = %{version}-%{release}
221Obsoletes: libgda-mysql0
222
223%description provider-mysql
224This package contains the GDA MySQL provider.
225
226%description provider-mysql -l pl.UTF-8
227Pakiet dostarczający dane z MySQL dla GDA.
228
229%package provider-odbc
230Summary: GDA ODBC provider
6f64b75f
JB
231Summary(pl.UTF-8): Źródło danych ODBC dla GDA
232Group: Libraries
b4cae6aa
JB
233Requires: %{name} = %{version}-%{release}
234
235%description provider-odbc
236This package contains the GDA ODBC provider.
237
238%description provider-odbc -l pl.UTF-8
239Pakiet dostarczający dane z ODBC dla GDA.
240
6698215c
JB
241%package provider-oracle
242Summary: GDA Oracle provider
243Summary(pl.UTF-8): Źródło danych Oracle dla GDA
244Group: Libraries
245Requires: %{name} = %{version}-%{release}
246
247%description provider-oracle
248This package contains the GDA Oracle provider.
249
250%description provider-oracle -l pl.UTF-8
251Pakiet dostarczający dane z bazy Oracle dla GDA.
252
b4cae6aa
JB
253%package provider-postgres
254Summary: GDA PostgreSQL provider
6f64b75f
JB
255Summary(pl.UTF-8): Źródło danych PostgreSQL dla GDA
256Group: Libraries
b4cae6aa
JB
257Requires: %{name} = %{version}-%{release}
258Obsoletes: libgda-postgres0
259
260%description provider-postgres
261This package contains the GDA PostgreSQL provider.
262
263%description provider-postgres -l pl.UTF-8
264Pakiet dostarczający dane z PostgreSQL dla GDA.
265
266%package provider-sqlite
267Summary: GDA SQLite provider
6f64b75f
JB
268Summary(pl.UTF-8): Źródło danych SQLite dla GDA
269Group: Libraries
b4cae6aa
JB
270Requires: %{name} = %{version}-%{release}
271
272%description provider-sqlite
273This package contains the GDA SQLite provider.
274
275%description provider-sqlite -l pl.UTF-8
276Pakiet dostarczający dane z SQLite dla GDA.
277
69656563
JB
278%package provider-sybase
279Summary: GDA Sybase provider
280Summary(pl.UTF-8): Źródło danych Sybase dla GDA
281Group: Libraries
282Requires: %{name} = %{version}-%{release}
283
284%description provider-sybase
285This package contains the GDA Sybase provider.
286
287%description provider-sybase -l pl.UTF-8
288Pakiet dostarczający dane z Sybase dla GDA.
289
b4cae6aa
JB
290%package provider-xbase
291Summary: GDA xBase provider
6f64b75f
JB
292Summary(pl.UTF-8): Źródło danych xBase dla GDA
293Group: Libraries
b4cae6aa
JB
294Requires: %{name} = %{version}-%{release}
295
296%description provider-xbase
297This package contains the GDA xBase (dBase, Clipper, FoxPro) provider.
298
299%description provider-xbase -l pl.UTF-8
300Pakiet dostarczający dane z xBase (dBase, Clippera, FoxPro) dla GDA.
301
302%prep
303%setup -q -n libgda-%{version}
e9a8c49e 304%patch0 -p1
4d1d7fc7 305%patch1 -p1
af5560b9 306%patch2 -p1
00eee7f2 307%patch3 -p1
d9153d00 308%patch4 -p1
08a7f073 309%patch5 -p1
b4cae6aa 310
6f64b75f 311%if %{without gamin}
6698215c 312%{__sed} -i -e 's#PKG_CHECK_MODULES(GAMIN.*)#have_fam=no#g' configure.in
6f64b75f
JB
313%endif
314%if %{without gnomevfs}
6698215c 315%{__sed} -i -e 's#PKG_CHECK_MODULES(GNOMEVFS.*)#have_gnomevfs=no#g' configure.in
b4cae6aa
JB
316%endif
317
318%build
319CXXFLAGS="%{rpmcxxflags} -fno-rtti -fno-exceptions"
320%{__intltoolize}
321%{__libtoolize}
322%{__aclocal}
323%{__autoconf}
324%{__automake}
325%configure \
69656563 326 %{!?with_static_libs:--disable-static} \
6698215c 327 %{?with_apidocs:--enable-gtk-doc} \
b4cae6aa 328 --with-html-dir=%{_gtkdocdir} \
6698215c
JB
329 --with-firebird%{!?with_firebird:=no} \
330 --with-ldap%{!?with_ldap:=no} \
331 --with-mdb%{!?with_mdb:=no} \
332 --with-mysql%{!?with_mysql:=no} \
333 --with-odbc%{!?with_odbc:=no} \
334 --with-oracle%{!?with_oci:=no} \
335 --with-postgres%{!?with_pgsql:=no} \
336 --with-sqlite%{!?with_sqlite:=no} \
d154588c 337 %{?with_sybase:--with-sybase=/usr} \
6698215c 338 --with-tds%{!?with_freetds:=no} \
d154588c 339 --with-xbase%{!?with_xbase:=no}
b4cae6aa
JB
340%{__make} -j1
341
342%install
343rm -rf $RPM_BUILD_ROOT
344
345%{__make} install \
346 DESTDIR=$RPM_BUILD_ROOT \
347 HTML_DIR=%{_gtkdocdir}
348
349# modules dlopened by *.so through libgmodule
b43c427d 350%if %{with static_libs}
6698215c 351%{__rm} $RPM_BUILD_ROOT%{providersdir}/*.a
b43c427d 352%endif
6698215c 353%{__rm} $RPM_BUILD_ROOT{%{providersdir},%{_libdir}}/*.la
b4cae6aa 354
4dd4d9ec 355mv -f $RPM_BUILD_ROOT%{_localedir}/{sr@Latn,sr@latin}
5174964e 356
b4cae6aa
JB
357%find_lang libgda-3.0
358
359%clean
360rm -rf $RPM_BUILD_ROOT
361
362%post -p /sbin/ldconfig
363%postun -p /sbin/ldconfig
364
365%files -f libgda-3.0.lang
366%defattr(644,root,root,755)
367%doc AUTHORS ChangeLog NEWS README
368%attr(755,root,root) %{_bindir}/gda-config-tool-3.0
db567452 369%attr(755,root,root) %{_bindir}/gda-list-server-op-3.0
b4cae6aa 370%attr(755,root,root) %{_libdir}/libgda-3.0.so.*.*.*
6f64b75f 371%attr(755,root,root) %ghost %{_libdir}/libgda-3.0.so.3
b4cae6aa 372%attr(755,root,root) %{_libdir}/libgda-report-3.0.so.*.*.*
6f64b75f 373%attr(755,root,root) %ghost %{_libdir}/libgda-report-3.0.so.3
350ed337 374%attr(755,root,root) %{_libdir}/libgda-xslt-3.0.so.*.*.*
6f64b75f 375%attr(755,root,root) %ghost %{_libdir}/libgda-xslt-3.0.so.0
b4cae6aa 376%attr(755,root,root) %{_libdir}/libgdasql-3.0.so.*.*.*
6f64b75f 377%attr(755,root,root) %ghost %{_libdir}/libgdasql-3.0.so.3
6698215c
JB
378%dir %{_libdir}/%{libgdadir}
379%dir %{providersdir}
380%dir %{_datadir}/libgda-3.0
381%{_datadir}/libgda-3.0/dtd
b4cae6aa
JB
382%dir %{_sysconfdir}/libgda-3.0
383%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libgda-3.0/config
384%{_mandir}/man1/gda-config-tool-3.0.1*
385%{_mandir}/man5/gda-config-3.0.5*
386
387%files devel
388%defattr(644,root,root,755)
389%attr(755,root,root) %{_bindir}/gda-author-dict-file-3.0
b883b2db 390%attr(755,root,root) %{_bindir}/gda-bdb-test
b4cae6aa
JB
391%attr(755,root,root) %{_bindir}/gda-diagnose-3.0
392%attr(755,root,root) %{_bindir}/gda-inspect-dict-file-3.0
393%attr(755,root,root) %{_bindir}/gda-list-config-3.0
b883b2db 394%attr(755,root,root) %{_bindir}/gda-sql-3.0
b4cae6aa
JB
395%attr(755,root,root) %{_bindir}/gda-test-connection-3.0
396%attr(755,root,root) %{_libdir}/libgda-3.0.so
397%attr(755,root,root) %{_libdir}/libgda-report-3.0.so
6f64b75f 398%attr(755,root,root) %{_libdir}/libgda-xslt-3.0.so
b4cae6aa 399%attr(755,root,root) %{_libdir}/libgdasql-3.0.so
b4cae6aa
JB
400%{_includedir}/libgda-3.0
401%{_pkgconfigdir}/libgda-3.0.pc
402%{_pkgconfigdir}/libgda-*-3.0.pc
b883b2db 403%{_sysconfdir}/libgda-3.0/sales_test.db
b4cae6aa
JB
404
405%if %{with static_libs}
406%files static
407%defattr(644,root,root,755)
408%{_libdir}/libgda-3.0.a
409%{_libdir}/libgda-report-3.0.a
350ed337 410%{_libdir}/libgda-xslt-3.0.a
b4cae6aa
JB
411%{_libdir}/libgdasql-3.0.a
412%endif
413
6698215c
JB
414%if %{with apidocs}
415%files apidocs
416%defattr(644,root,root,755)
417%{_gtkdocdir}/libgda-3.0
418%endif
419
b4cae6aa
JB
420%files provider-db
421%defattr(644,root,root,755)
6698215c
JB
422%attr(755,root,root) %{providersdir}/libgda-bdb.so
423%{_datadir}/libgda-3.0/bdb_specs_*.xml
b4cae6aa
JB
424
425%if %{with firebird}
426%files provider-firebird
427%defattr(644,root,root,755)
6698215c
JB
428%attr(755,root,root) %{providersdir}/libgda-firebird.so
429%{_datadir}/libgda-3.0/firebird_specs_*.xml
b4cae6aa
JB
430%endif
431
432%if %{with freetds}
433%files provider-freetds
434%defattr(644,root,root,755)
6698215c
JB
435%attr(755,root,root) %{providersdir}/libgda-freetds.so
436%{_datadir}/libgda-3.0/freetds_specs_*.xml
b4cae6aa
JB
437%endif
438
439%if %{with ldap}
440%files provider-ldap
441%defattr(644,root,root,755)
6698215c
JB
442%attr(755,root,root) %{providersdir}/libgda-ldap.so
443%{_datadir}/libgda-3.0/ldap_specs_*.xml
b4cae6aa
JB
444%endif
445
446%if %{with mdb}
447%files provider-mdb
448%defattr(644,root,root,755)
6698215c
JB
449%attr(755,root,root) %{providersdir}/libgda-mdb.so
450%{_datadir}/libgda-3.0/mdb_specs_*.xml
b4cae6aa
JB
451%endif
452
453%if %{with mysql}
454%files provider-mysql
455%defattr(644,root,root,755)
6698215c
JB
456%attr(755,root,root) %{providersdir}/libgda-mysql.so
457%{_datadir}/libgda-3.0/mysql_specs_*.xml
b4cae6aa
JB
458%endif
459
460%if %{with odbc}
461%files provider-odbc
462%defattr(644,root,root,755)
6698215c
JB
463%attr(755,root,root) %{providersdir}/libgda-odbc.so
464%{_datadir}/libgda-3.0/odbc_specs_*.xml
465%endif
466
467%if %{with oci}
468%files provider-oracle
469%defattr(644,root,root,755)
470%attr(755,root,root) %{providersdir}/libgda-oracle.so
471%{_datadir}/libgda-3.0/oracle_specs_*.xml
b4cae6aa
JB
472%endif
473
474%if %{with pgsql}
475%files provider-postgres
476%defattr(644,root,root,755)
6698215c
JB
477%attr(755,root,root) %{providersdir}/libgda-postgres.so
478%{_datadir}/libgda-3.0/postgres_specs_*.xml
b4cae6aa
JB
479%endif
480
481%if %{with sqlite}
482%files provider-sqlite
483%defattr(644,root,root,755)
6698215c
JB
484%attr(755,root,root) %{providersdir}/libgda-sqlite.so
485%{_datadir}/libgda-3.0/sqlite_specs_*.xml
b4cae6aa
JB
486%endif
487
69656563
JB
488%if %{with sybase}
489%files provider-sybase
490%defattr(644,root,root,755)
6698215c
JB
491%attr(755,root,root) %{providersdir}/libgda-sybase.so
492%{_datadir}/libgda-3.0/sybase_specs_*.xml
69656563
JB
493%endif
494
b4cae6aa
JB
495%if %{with xbase}
496%files provider-xbase
497%defattr(644,root,root,755)
6698215c
JB
498%attr(755,root,root) %{providersdir}/libgda-xbase.so
499%{_datadir}/libgda-3.0/xbase_specs_*.xml
b4cae6aa 500%endif
This page took 0.960719 seconds and 4 git commands to generate.