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