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