]> git.pld-linux.org Git - packages/apr-util.git/commitdiff
- it builds with postgresql support by default auto/th/apr-util-1_2_1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 19 Sep 2005 20:28:14 +0000 (20:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added bcond to enable mysql (not tested)

Changed files:
    apr-util.spec -> 1.29

apr-util.spec

index 0b929e300d810a9b0c64fb100fc01cf501062802..95ac2b9ab102713d209a63e7fdfc26c51817884c 100644 (file)
@@ -1,6 +1,8 @@
 #
 # Conditional build:
 %bcond_without ldap    # without LDAP support
+%bcond_with    mysql   # with MySQL support
+%bcond_without pgsql   # without PostgreSQL support
 %bcond_with    sqlite  # with SQLite 2.x support
 %bcond_without sqlite3 # without SQLite3 support
 #
@@ -22,7 +24,9 @@ BuildRequires:        db-devel
 BuildRequires: expat-devel
 BuildRequires: gdbm-devel
 BuildRequires: libtool
+%{?with_mysql:BuildRequires:   mysql-devel}
 %{?with_ldap:BuildRequires:    openldap-devel}
+%{?with_pgsql:BuildRequires:   postgresql-devel}
 %{?with_sqlite:BuildRequires:  sqlite-devel >= 2}
 %{?with_sqlite3:BuildRequires: sqlite3-devel >= 3}
 Requires:      apr >= 1:1.1.0
@@ -46,7 +50,9 @@ Requires:     apr-devel >= 1:1.1.0
 Requires:      db-devel
 Requires:      expat-devel
 Requires:      gdbm-devel
+%{?with_mysql:Requires:        mysql-devel}
 %{?with_ldap:Requires: openldap-devel}
+%{?with_pgsql:Requires:        postgresql-devel}
 %{?with_sqlite:Requires:       sqlite-devel >= 2}
 %{?with_sqlite3:Requires:      sqlite3-devel >= 3}
 
@@ -87,6 +93,8 @@ Statyczna biblioteka apr-util.
        --with-ldap-lib=%{_libdir} \
 %endif
        --with-iconv=%{_prefix} \
+       %{?with_mysql:--with-mysql} \
+       %{!?with_pgsql:--without-pgsql} \
        %{!?with_sqlite:--without-sqlite2} \
        %{!?with_sqlite3:--without-sqlite3}
 
This page took 0.061371 seconds and 4 git commands to generate.