Package libgda4: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 | %define _name libgda %define ver_major 4.2 %define abi_ver 4.0 # to avoid conflict with old libgda %def_disable default_binary %def_disable static %def_enable gtk_doc %def_with mysql %def_with postgres %def_without odbc %def_with mdb %def_with bdb %def_with ldap %def_without oracle %def_without tds %def_without sybase %def_with sqlite %def_enable system_sqlite %def_without interbase %def_without jdbc %def_disable crypto %def_disable introspection %define _libexecdir %_prefix/libexec %add_python_req_skip rml2html Name: %{_name}4 Version: %ver_major.13 Release: alt2 Summary: Library for writing gnome database programs Group: System/Libraries License: LGPL Url: http://www.gnome-db.org/ #Source: ftp://ftp.gnome.org/pub/gnome/sources/%_name/%ver_major/%_name-%version.tar.xz Source: %_name-%version.tar Patch: libgda4-4.0.7-link.patch Obsoletes: libgda2 < %version Provides: libgda2 = %version-%release %define mysql_ver 5.0.50 %define mdbtools_ver 0.6-alt3cvs20050908 %define ldap_ver 2.2.27-alt1.1 %define freetds_ver 0.63 BuildPreReq: intltool >= 0.35.5 BuildPreReq: gnome-common >= 2.8.0 BuildPreReq: perl-XML-Parser BuildPreReq: glib2-devel >= 2.12.0 BuildPreReq: libgio-devel >= 2.12.0 BuildPreReq: libxslt-devel >= 1.0.9 BuildPreReq: gtk-doc >= 1.0 BuildRequires: gnome-doc-utils BuildPreReq: libldap-devel >= %ldap_ver libsasl2-devel BuildRequires: libjson-glib-devel libunixODBC-devel libssl-devel BuildRequires: libgnome-keyring-devel iso-codes-devel BuildRequires: gcc-c++ libncurses-devel libreadline-devel libsoup-devel libgcrypt-devel %{?_enable_introspection:BuildPreReq: gobject-introspection-devel >= 0.6.7} %if_with postgres BuildPreReq: libpq-devel BuildPreReq: postgresql-devel %endif %if_with mysql BuildPreReq: libMySQL-devel >= %mysql_ver %endif %if_with odbc BuildPreReq: libunixODBC-devel %endif %if_with mdb BuildPreReq: libmdbtools-devel >= %mdbtools_ver %endif %if_with interbase #BuildPreReq: interbase BuildPreReq: FirebirdCS %endif %if_with sqlite BuildPreReq: libsqlite3-devel %endif %if_with ldap BuildPreReq: libldap-devel >= %ldap_ver # while libldap-devel doesn't requires libsasl2-devel BuildPreReq: libsasl2-devel %endif %if_with tds BuildPreReq: libfreetds-devel >= %freetds_ver %endif %if_with bdb BuildPreReq: libdb4.7-devel %endif %if_with jdbc #BuildRequires: java-devel BuildRequires: java-devel-openjdk BuildRequires: /proc %endif %description GNU Data Access is an attempt to provide uniform access to different kinds of data sources (databases, information servers, mail spools, etc). It is a complete architecture that provides all you need to access your data. libgda was part of the GNOME-DB project (http://www.gnome.org/projects/gnome-db), but has been separated from it to allow non-GNOME applications to be developed based on it. %package providers Summary: GDA service providers for %_name Group: System/Libraries %if_with mysql Requires: %name-mysql = %version-%release %endif %if_with postgres Requires: %name-postgresql = %version-%release %endif %if_with odbc Requires: %name-odbc = %version-%release %endif %if_with mdb Requires: %name-mdb = %version-%release %endif %if_with interbase Requires: %name-interbase = %version-%release %endif %if_with ldap Requires: %name-ldap = %version-%release %endif %if_with tds Requires: %name-tds = %version-%release %endif %if_with sqlite Requires: %name-sqlite = %version-%release %endif %if_with bdb Requires: %name-bdb = %version-%release %endif %if_with jdbc Requires: %name-jdbc = %version-%release %endif %description providers This package includes: %if_with ldap GDA LDAP provider. %endif %if_with mysql GDA MySQL provider. %endif %if_with postgres GDA PostgreSQL provider. %endif %if_with odbc GDA ODBC provider. %endif %if_with interbase GDA Interbase provider. %endif %if_with ldap GDA LDAP provider. %endif %if_with tds Provider for TDS-based databases (using FreeTDS) %endif %if_with sqlite GDA SQLite provider. %endif %if_with bdb GDA BerkleyDB provider. %endif %if_with jdbs JDBC provider. %endif %package mysql Summary: GDA MySQL Provider Group: System/Libraries Requires: %name = %version-%release %description mysql This package includes the GDA MySQL provider. %package bdb Summary: GDA BerkleyDB Provider Group: System/Libraries Requires: %name = %version-%release %description bdb This package includes the GDA BerkleyDB provider. %package postgresql Summary: GDA PostgreSQL Provider Group: System/Libraries Requires: %name = %version-%release %description postgresql This package includes the GDA PostgreSQL provider. %package odbc Summary: GDA ODBC Provider Group: System/Libraries Requires: %name = %version-%release %description odbc This package includes the GDA ODBC provider. %package mdb Summary: GDA MS Access Provider Group: System/Libraries Requires: %name = %version-%release %description mdb This package includes the GDA MS Access provider. %package interbase Summary: GDA Interbase Provider Group: System/Libraries Requires: %name = %version-%release #Requires: interbase %description interbase This package includes the GDA Intebase provider %package ldap Summary: GDA LDAP Provider Group: System/Libraries Requires: %name = %version-%release %description ldap This package includes the GDA LDAP provider %package tds Summary: CDA Provider for TDS-based databases Group: System/Libraries Requires: %name = %version-%release %description tds This package includes the GDA provider for TDS-based databases (using FreeTDS). %package sqlite Summary: GDA SQLite Provider Group: System/Libraries Requires: %name = %version-%release %description sqlite This package includes the GDA SQLite provider %package jdbc Summary: GDA JDBC Provider Group: System/Libraries Requires: %name = %version-%release %description jdbc This package includes the GDA JDBC provider %package devel Summary: Development libraries and header files for libgda Group: Development/C Requires: %name = %version-%release Obsoletes: libgda2-devel < %version Provides: libgda2-devel = %version-%release %package devel-doc Summary: Development libraries and header files for libgda Group: Development/C BuildArch: noarch Conflicts: %name < %version %package gir Summary: GObject introspection data for the GDA library Group: System/Libraries Requires: %name = %version-%release %description gir GObject introspection data for the GNU Data Access library %package gir-devel Summary: GObject introspection devel data for the GDA library Group: System/Libraries BuildArch: noarch Requires: %name-gir = %version-%release %description gir-devel GObject introspection devel data for the GNU Data Access library %if 0 Requires: %name-providers = %version-%release %if_with openldap Requires: libldap-devel >= %ldap_ver # while libldap-devel doesn't requires libsasl2-devel Requires: libsasl2-devel %endif %if_with mysql Requires: libMySQL-devel >= %mysql_ver %endif %if_with postgres Requires: postgresql-devel %endif %if_with odbc Requires: libunixODBC-devel %endif %if_with interbase Requires: interbase %endif %if_with tds Requires: libfreetds-devel >= %freetds_ver %endif %{?_with_sqlite:Requires: libsqlite3-devel} %if_with bdb Requires: libdb4.7-devel %endif %endif %description devel This package contains the header files and libraries needed to write or compile programs that use libgda. %description devel-doc This package provides documentation needed to write programs that use libgda. %package devel-static Summary: Static libraries for libgda Group: Development/C Requires: %name-devel = %version-%release %description devel-static This package contains the static version of %name libraries. %prep %setup -q -n %_name-%version %patch touch config.rpath %if_enabled crypto sed -e 's/^[[:blank:]]//' libgda/libgda.symbols |grep '^_' > libgda/private.sym %define private_sym _gda_server_operation_new_from_string|_split_identifier_string|_gda_vconnection_change_working_obj|_gda_vconnection_set_ %endif %build gnome-doc-prepare -f %autoreconf %configure \ %{subst_enable static} \ %{?_enable_gtk_doc:--enable-gtk-doc} \ %{?_disable_default_binary:--disable-default-binary} \ %if_with bdb --with-bdb=%_prefix \ --with-bdb-libdir-name=%_lib \ %endif %if_with mysql --with-mysql=%prefix \ %endif %if_with postgres --with-postgres=%prefix \ %endif %if_with odbc --with-odbc \ %endif %if_with mdb --with-mdb \ %endif %if_with oracle --with-oracle \ %endif %if_with interbase --with-interbase=%prefix \ %else --with-interbase=no \ %endif %if_with tds --with-tds \ %else --with-tds=no \ %endif %if_with sybase --with-sybase \ %else --with-sybase=no \ %endif %if_with sqlite %{?_enable_system_sqlite:--enable-system-sqlite} \ %endif %{subst_enable crypto} \ %{subst_enable introspection} # SMP-incompatible build %if_enabled crypto %make LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^(gda_|fnYM49765777344607__gda|%private_sym).*"' %else %make %endif %install %make_install DESTDIR=%buildroot install %find_lang --with-gnome %_name-%abi_ver %files -f %_name-%abi_ver.lang %_bindir/* %_libdir/*.so.* %dir %_libdir/%_name-%abi_ver %dir %_libdir/%_name-%abi_ver/providers %{?_enable_crypto:%_libdir/%_name-%abi_ver/providers/libgda-sqlcipher.so} %_libdir/%_name-%abi_ver/providers/libgda-web.so %_datadir/%_name-%abi_ver %_man1dir/gda-sql* %dir %_sysconfdir/%_name-%abi_ver %config(noreplace) %_sysconfdir/%_name-%abi_ver/config %doc AUTHORS ChangeLog README NEWS %files providers %if_with mysql %files mysql %_libdir/%_name-%abi_ver/*/*-mysql.so %endif %if_with postgres %files postgresql %_libdir/%_name-%abi_ver/*/*-postgres.so %endif %if_with mdb %files mdb %_libdir/%_name-%abi_ver/*/*-mdb.so %endif %if_with bdb %files bdb %_libdir/%_name-%abi_ver/*/*-bdb.so %endif %if_with odbc %files odbc %_libdir/%_name-%abi_ver/*/*-odbc.so %endif %if_with interbase %files interbase %_libdir/%_name-%abi_ver/*/*-firebird.so %endif %if_with ldap %files ldap %_libdir/%_name-%abi_ver/*/*-ldap.so %endif %if_with tds %files tds %_libdir/%_name-%abi_ver/*/*-freetds.so %endif %if_with sqlite %files sqlite %_libdir/%_name-%abi_ver/*/*-sqlite.so %endif %if_with jdbc %files jdbc %_libdir/%_name-%abi_ver/*/gdaprovider-%abi_ver.0.jar %_libdir/%_name-%abi_ver/*/libgda-jdbc.so %endif %files devel %_includedir/* %_libdir/*.so %_libdir/pkgconfig/libgda-%abi_ver.pc %_libdir/pkgconfig/libgda-report-%abi_ver.pc %_libdir/pkgconfig/libgda-xslt-%abi_ver.pc # .pc files for providers %{?_enable_crypto:%_libdir/pkgconfig/libgda-sqlcipher-%abi_ver.pc} %_libdir/pkgconfig/libgda-web-%abi_ver.pc %{?_with_mdb:%_libdir/pkgconfig/*mdb*} %{?_with_mysql:%_libdir/pkgconfig/*mysql*} %{?_with_postgres:%_libdir/pkgconfig/*postgres*} %{?_with_bdb:%_libdir/pkgconfig/*bdb*} %{?_with_sqlite:%_libdir/pkgconfig/*sqlite*} %{?_with_ldap:%_libdir/pkgconfig/*ldap*} %{?_with_jdbc:%_libdir/pkgconfig/libgda-jdbc-%abi_ver.pc} %files devel-doc %_datadir/gtk-doc/html/* %if_enabled introspection %files gir %_libdir/girepository-1.0/* %files gir-devel %_datadir/gir-1.0/* %endif %if_enabled static %files devel-static %_libdir/*.a %_libdir/%_name-%abi_ver/*/*.a %endif %exclude %_libdir/%_name-%abi_ver/providers/*.la %exclude %_sysconfdir/%_name-%abi_ver/sales_test.db %changelog * Fri Jun 07 2013 Yuri N. Sedunov <aris@altlinux.org> 4.2.13-alt2 - updated buildreqs - rebuild against libmdbtools-0.7 * Tue Oct 09 2012 Yuri N. Sedunov <aris@altlinux.org> 4.2.13-alt1 - 4.2.13 snapshot (7a3e641) - disabled introspection * Wed Jun 01 2011 Yuri N. Sedunov <aris@altlinux.org> 4.2.7-alt1 - 4.2.7 * Wed Feb 16 2011 Yuri N. Sedunov <aris@altlinux.org> 4.2.4-alt1 - 4.2.4 * Mon Nov 15 2010 Yuri N. Sedunov <aris@altlinux.org> 4.2.1-alt1 - 4.2.1 * Fri Oct 08 2010 Yuri N. Sedunov <aris@altlinux.org> 4.2.0-alt1 - 4.2.0 * Sat Jun 12 2010 Yuri N. Sedunov <aris@altlinux.org> 4.0.9-alt1 - 4.0.9 * Thu Apr 01 2010 Yuri N. Sedunov <aris@altlinux.org> 4.0.8-alt2 - rebuild with new rpm-build-gir * Sat Mar 06 2010 Yuri N. Sedunov <aris@altlinux.org> 4.0.8-alt1 - 4.0.8 - introspection support * Mon Jul 20 2009 Yuri N. Sedunov <aris@altlinux.org> 4.0.2-alt2 - fixed build * Sat Apr 18 2009 Yuri N. Sedunov <aris@altlinux.org> 4.0.2-alt1 - 4.0.2 - use --disable-default-binary to fix ALT #19662 * Sun Mar 29 2009 Yuri N. Sedunov <aris@altlinux.org> 4.0.1-alt1 - new version * Thu Mar 19 2009 Yuri N. Sedunov <aris@altlinux.org> 4.0.0-alt1 - 4.0.0 - JDBC provider * Tue Jan 20 2009 Yuri N. Sedunov <aris@altlinux.org> 3.99.9-alt1 - 3.99.9 - removed obsolete %%post{,un}_ldconfig * Mon Nov 10 2008 Yuri N. Sedunov <aris@altlinux.org> 3.99.6-alt1 - rename libgda to libgda4 - disable freetds, LDAP, ODBC providers (not implemented yet) - updated buildreqs * Fri Mar 30 2007 ALT QA Team Robot <qa-robot@altlinux.org> 1.9.103-alt1.0 - Fixed postgresql build dependencies. - Rebuilt due to libpq.so.4 -> libpq.so.5 soname change. * Fri Sep 15 2006 Ildar Mulyukov <ildar@altlinux.ru> 1.9.103-alt1 - renamed libgda2 -> libgda - newer version of libdb(4.4) for providers - xml provider not exist any more - no mSQL, IBM DB2, Xbase support - mono support preparing * Mon Jun 12 2006 ALT QA Team Robot <qa-robot@altlinux.org> 1.3.91-alt1.1.1.1 - Rebuilt with libldap-2.3.so.0. * Thu Feb 02 2006 ALT QA Team Robot <qa-robot@altlinux.org> 1.3.91-alt1.1.1 - Rebuilt for new pkg-config dependencies. * Fri Dec 30 2005 ALT QA Team Robot <qa-robot@altlinux.org> 1.3.91-alt1.1 - Rebuilt with libreadline.so.5. * Mon Nov 28 2005 Vital Khilko <vk@altlinux.ru> 1.3.91-alt1 - 1.3.91 * Mon Oct 31 2005 Vital Khilko <vk@altlinux.ru> 1.2.2-alt2 - fixed postgres dependencies * Fri Oct 28 2005 Vital Khilko <vk@altlinux.ru> 1.2.2-alt1 - 1.2.2 * Mon Nov 15 2004 Yuri N. Sedunov <aris@altlinux.ru> 1.1.99-alt1 - 1.1.99 - mdb provider temporarily disabled (not ready for 0.6). * Fri Jun 25 2004 Vital Khilko <vk@altlinux.ru> 1.1.4-alt1 - 1.1.4 * Fri May 28 2004 Vital Khilko <vk@altlinux.ru> 1.1.2-alt2 - rebuilded with sqlite and without interbase providers * Mon Apr 26 2004 Yuri N. Sedunov <aris@altlinux.ru> 1.1.2-alt1 - 1.1.2 * Thu Apr 08 2004 Yuri N. Sedunov <aris@altlinux.ru> 1.1.1-alt2 - gda-export.h provided by libgda2-devel subpackage. * Tue Apr 06 2004 Yuri N. Sedunov <aris@altlinux.ru> 1.1.1-alt1 - 1.1.1 * Tue Dec 16 2003 Yuri N. Sedunov <aris@altlinux.ru> 1.0.2-alt1 - 1.0.2 - do not package .la files. - do not build devel-static subpackage by default. * Mon Sep 22 2003 Yuri N. Sedunov <aris@altlinux.ru> 1.0.0-alt2 - rebuild with new mysql. - removed unusual dependencies (fix #3012). * Mon Sep 15 2003 Yuri N. Sedunov <aris@altlinux.ru> 1.0.0-alt1 - 1.0.0 * Thu Jul 10 2003 Yuri N. Sedunov <aris@altlinux.ru> 0.90.0-alt1 - 0.90.0 * Mon Jun 02 2003 Yuri N. Sedunov <aris@altlinux.ru> 0.12.1-alt1 - interbase support disabled. !!! * Thu May 29 2003 Yuri N. Sedunov <aris@altlinux.ru> 0.12.0-alt1 - 0.12.0 - new tds provider package. * Thu Mar 13 2003 Yuri N. Sedunov <aris@altlinux.ru> 0.11.0-alt1 - 0.11.0 * Sun Feb 09 2003 Yuri N. Sedunov <aris@altlinux.ru> 0.10.0-alt2 - fixed buildreqs (close #2181). * Tue Jan 28 2003 Yuri N. Sedunov <aris@altlinux.ru> 0.10.0-alt1 - 0.10.0 * Thu Dec 12 2002 Yuri N. Sedunov <aris@altlinux.ru> 0.9.0-alt1 - new version. - mdb provider. * Wed Dec 04 2002 Yuri N. Sedunov <aris@altlinux.ru> 0.8.199-alt2 - Removed wrong dependence on postgresql-libs for main package (#1660) * Mon Oct 28 2002 Yuri N. Sedunov <aris@altlinux.ru> 0.8.199-alt1 - 0.8.199 * Sun Sep 22 2002 Yuri N. Sedunov <aris@altlinux.ru> 0.8.192-alt1 - Adopted for Sisyphus. - devel-static package. - providers moved in separate packages. * Tue Feb 26 2002 Chris Chabot <chabotc@reviewboard.com> - Added defines and configure flags for all supported DB types * Mon Feb 25 2002 Chris Chabot <chabotc@reviewboard.com> - Cleaned up formatting - Added Requirements - Added defines for postgres, mysql, odbc support * Thu Feb 21 2002 Chris Chabot <chabotc@reviewboard.com> - Initial spec file |