]>
Commit | Line | Data |
---|---|---|
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 | |
26 | Summary: GNU Data Access library | |
6f64b75f | 27 | Summary(pl.UTF-8): Biblioteka GNU Data Access |
b4cae6aa | 28 | Name: libgda3 |
ed4aa3ff | 29 | Version: 3.1.5 |
d9043a3c | 30 | Release: 18 |
2c13119c | 31 | License: LGPL v2+/GPL v2+ |
6f64b75f | 32 | Group: Libraries |
b883b2db | 33 | Source0: http://ftp.gnome.org/pub/gnome/sources/libgda/3.1/libgda-%{version}.tar.bz2 |
ed4aa3ff | 34 | # Source0-md5: eb7da5286a112e7cff3111c89fba4456 |
e9a8c49e | 35 | Patch0: %{name}-configure.patch |
4d1d7fc7 | 36 | Patch1: %{name}-am.patch |
af5560b9 | 37 | Patch2: glib232.patch |
00eee7f2 | 38 | Patch3: format-security.patch |
d9153d00 | 39 | Patch4: mdb-0.7.patch |
fd278e0c | 40 | URL: http://www.gnome-db.org/ |
b4cae6aa JB |
41 | %{?with_firebird:BuildRequires: Firebird-devel} |
42 | BuildRequires: autoconf >= 2.59 | |
43 | BuildRequires: automake >= 1:1.8 | |
44 | BuildRequires: bison | |
45 | BuildRequires: db-devel | |
169c4908 | 46 | BuildRequires: docbook-dtd412-xml |
b4cae6aa JB |
47 | %{!?with_gamin:BuildRequires: fam-devel} |
48 | BuildRequires: 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 | 52 | BuildRequires: gettext-devel |
b4cae6aa JB |
53 | BuildRequires: glib2-devel >= 1:2.12.0 |
54 | BuildRequires: gnome-common >= 2.12.0 | |
69656563 | 55 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.20} |
b4cae6aa | 56 | BuildRequires: gtk-doc >= 1.6 |
6f64b75f JB |
57 | BuildRequires: intltool >= 0.35.5 |
58 | BuildRequires: libgcrypt-devel >= 1.1.42 | |
b4cae6aa | 59 | BuildRequires: libtool |
6f64b75f | 60 | BuildRequires: libxml2-devel >= 1:2.6.26 |
b4cae6aa | 61 | BuildRequires: 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 | 65 | BuildRequires: perl-base |
169c4908 | 66 | BuildRequires: pkgconfig |
b4cae6aa JB |
67 | BuildRequires: popt-devel |
68 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
69 | BuildRequires: readline-devel >= 5.0 | |
70 | BuildRequires: 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} | |
74 | BuildRoot: %{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 | |
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 | |
6f64b75f JB |
98 | Summary: GNU Data Access development files |
99 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GNU Data Access | |
b4cae6aa JB |
100 | Group: Development/Libraries |
101 | Requires: %{name} = %{version}-%{release} | |
102 | %{!?with_gamin:Requires: fam-devel} | |
cdc6be99 | 103 | %{?with_gamin:Requires: gamin-devel >= 0.1.8} |
b4cae6aa | 104 | Requires: glib2-devel >= 1:2.12.0 |
69656563 | 105 | %{?with_gnomevfs:Requires: gnome-vfs2-devel >= 2.20} |
b4cae6aa | 106 | Requires: gtk-doc-common |
6f64b75f | 107 | Requires: libgcrypt-devel >= 1.1.42 |
b4cae6aa JB |
108 | Requires: libxml2-devel >= 1:2.6.26 |
109 | Requires: libxslt-devel >= 1.1.17 | |
110 | Obsoletes: libgda0-devel | |
111 | ||
112 | %description devel | |
113 | GNU Data Access is an attempt to provide uniform access to different | |
114 | kinds of data sources (databases, information servers, mail spools, | |
115 | etc). It is a complete architecture that provides all you need to | |
116 | access your data. This subpackage contains development files. | |
117 | ||
118 | %description devel -l pl.UTF-8 | |
119 | GNU Data Access to próba zapewnienia jednolitego dostępu do różnych | |
120 | źródeł danych (bazy danych, serwery informacji, katalogi z pocztą | |
121 | itp.). Jest kompletną architekturą dostarczającą wszystko, czego | |
122 | potrzebujesz do dostępu do danych. Ten podpakiet zawiera pliki dla | |
123 | programistów używających libgda. | |
124 | ||
125 | %package static | |
126 | Summary: GNU Data Access static libraries | |
6f64b75f | 127 | Summary(pl.UTF-8): Statyczne biblioteki GNU Data Access |
b4cae6aa JB |
128 | Group: Development/Libraries |
129 | Requires: %{name}-devel = %{version}-%{release} | |
130 | ||
131 | %description static | |
132 | GNU Data Access static libraries. | |
133 | ||
134 | %description static -l pl.UTF-8 | |
135 | Statyczne biblioteki GNU Data Access. | |
136 | ||
137 | %package provider-db | |
138 | Summary: GDA Berkeley DB provider | |
6f64b75f JB |
139 | Summary(pl.UTF-8): Źródło danych Berkeley DB dla GDA |
140 | Group: Libraries | |
b4cae6aa JB |
141 | Requires: %{name} = %{version}-%{release} |
142 | ||
143 | %description provider-db | |
144 | This package contains the GDA Berkeley DB provider. | |
145 | ||
146 | %description provider-db -l pl.UTF-8 | |
147 | Pakiet dostaczający dane z Berkeley DB dla GDA. | |
148 | ||
149 | %package provider-firebird | |
150 | Summary: GDA Firebird provider | |
6f64b75f JB |
151 | Summary(pl.UTF-8): Źródło danych Firebird dla GDA |
152 | Group: Libraries | |
b4cae6aa JB |
153 | Requires: %{name} = %{version}-%{release} |
154 | ||
155 | %description provider-firebird | |
156 | This package contains the GDA Firebird provider. | |
157 | ||
158 | %description provider-firebird -l pl.UTF-8 | |
159 | Pakiet dostarczający dane z Firebird dla GDA. | |
160 | ||
161 | %package provider-freetds | |
162 | Summary: GDA FreeTDS provider | |
6f64b75f JB |
163 | Summary(pl.UTF-8): Źródło danych FreeTDS dla GDA |
164 | Group: Libraries | |
b4cae6aa JB |
165 | Requires: %{name} = %{version}-%{release} |
166 | ||
167 | %description provider-freetds | |
168 | This package contains the GDA FreeTDS provider. | |
169 | ||
170 | %description provider-freetds -l pl.UTF-8 | |
171 | Pakiet dostarczający dane z FreeTDS dla GDA. | |
172 | ||
173 | %package provider-ldap | |
174 | Summary: GDA LDAP provider | |
6f64b75f JB |
175 | Summary(pl.UTF-8): Źródło danych LDAP dla GDA |
176 | Group: Libraries | |
b4cae6aa JB |
177 | Requires: %{name} = %{version}-%{release} |
178 | ||
179 | %description provider-ldap | |
180 | This package contains the GDA LDAP provider. | |
181 | ||
182 | %description provider-ldap -l pl.UTF-8 | |
183 | Pakiet dostarczający dane z LDAP dla GDA | |
184 | ||
185 | %package provider-mdb | |
186 | Summary: GDA MDB provider | |
6f64b75f JB |
187 | Summary(pl.UTF-8): Źródło danych MDB |
188 | Group: Libraries | |
b4cae6aa | 189 | Requires: %{name} = %{version}-%{release} |
69628b45 | 190 | Requires: mdbtools-libs >= 0.6 |
b4cae6aa JB |
191 | |
192 | %description provider-mdb | |
193 | This package contains the GDA MDB provider. | |
194 | ||
195 | %description provider-mdb -l pl.UTF-8 | |
196 | Pakiet dostarczający dane z MDB dla GDA. | |
197 | ||
198 | %package provider-mysql | |
199 | Summary: GDA MySQL provider | |
6f64b75f JB |
200 | Summary(pl.UTF-8): Źródło danych MySQL dla GDA |
201 | Group: Libraries | |
b4cae6aa JB |
202 | Requires: %{name} = %{version}-%{release} |
203 | Obsoletes: libgda-mysql0 | |
204 | ||
205 | %description provider-mysql | |
206 | This package contains the GDA MySQL provider. | |
207 | ||
208 | %description provider-mysql -l pl.UTF-8 | |
209 | Pakiet dostarczający dane z MySQL dla GDA. | |
210 | ||
211 | %package provider-odbc | |
212 | Summary: GDA ODBC provider | |
6f64b75f JB |
213 | Summary(pl.UTF-8): Źródło danych ODBC dla GDA |
214 | Group: Libraries | |
b4cae6aa JB |
215 | Requires: %{name} = %{version}-%{release} |
216 | ||
217 | %description provider-odbc | |
218 | This package contains the GDA ODBC provider. | |
219 | ||
220 | %description provider-odbc -l pl.UTF-8 | |
221 | Pakiet dostarczający dane z ODBC dla GDA. | |
222 | ||
223 | %package provider-postgres | |
224 | Summary: GDA PostgreSQL provider | |
6f64b75f JB |
225 | Summary(pl.UTF-8): Źródło danych PostgreSQL dla GDA |
226 | Group: Libraries | |
b4cae6aa JB |
227 | Requires: %{name} = %{version}-%{release} |
228 | Obsoletes: libgda-postgres0 | |
229 | ||
230 | %description provider-postgres | |
231 | This package contains the GDA PostgreSQL provider. | |
232 | ||
233 | %description provider-postgres -l pl.UTF-8 | |
234 | Pakiet dostarczający dane z PostgreSQL dla GDA. | |
235 | ||
236 | %package provider-sqlite | |
237 | Summary: GDA SQLite provider | |
6f64b75f JB |
238 | Summary(pl.UTF-8): Źródło danych SQLite dla GDA |
239 | Group: Libraries | |
b4cae6aa JB |
240 | Requires: %{name} = %{version}-%{release} |
241 | ||
242 | %description provider-sqlite | |
243 | This package contains the GDA SQLite provider. | |
244 | ||
245 | %description provider-sqlite -l pl.UTF-8 | |
246 | Pakiet dostarczający dane z SQLite dla GDA. | |
247 | ||
69656563 JB |
248 | %package provider-sybase |
249 | Summary: GDA Sybase provider | |
250 | Summary(pl.UTF-8): Źródło danych Sybase dla GDA | |
251 | Group: Libraries | |
252 | Requires: %{name} = %{version}-%{release} | |
253 | ||
254 | %description provider-sybase | |
255 | This package contains the GDA Sybase provider. | |
256 | ||
257 | %description provider-sybase -l pl.UTF-8 | |
258 | Pakiet dostarczający dane z Sybase dla GDA. | |
259 | ||
b4cae6aa JB |
260 | %package provider-xbase |
261 | Summary: GDA xBase provider | |
6f64b75f JB |
262 | Summary(pl.UTF-8): Źródło danych xBase dla GDA |
263 | Group: Libraries | |
b4cae6aa JB |
264 | Requires: %{name} = %{version}-%{release} |
265 | ||
266 | %description provider-xbase | |
267 | This package contains the GDA xBase (dBase, Clipper, FoxPro) provider. | |
268 | ||
269 | %description provider-xbase -l pl.UTF-8 | |
270 | Pakiet 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} |
281 | sed -i -e 's#PKG_CHECK_MODULES(GAMIN.*)#have_fam=no#g' configure.in | |
282 | %endif | |
283 | %if %{without gnomevfs} | |
284 | sed -i -e 's#PKG_CHECK_MODULES(GNOMEVFS.*)#have_gnomevfs=no#g' configure.in | |
b4cae6aa JB |
285 | %endif |
286 | ||
287 | %build | |
288 | CXXFLAGS="%{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 | |
312 | rm -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 |
324 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{sr@Latn,sr@latin} |
325 | ||
b4cae6aa JB |
326 | %find_lang libgda-3.0 |
327 | ||
328 | %clean | |
329 | rm -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 |