forked from pool/libdbi-drivers
Accepting request 103979 from devel:libraries:c_c++
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/103979 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdbi-drivers?expand=0&rev=8
This commit is contained in:
parent
fb14447d56
commit
10e5712e61
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 1 01:54:59 UTC 2012 - jengelh@medozas.de
|
||||||
|
|
||||||
|
- Remove redundant tags/sections per specfile guideline suggestions
|
||||||
|
- Parallel building using %_smp_mflags
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 12 11:30:42 UTC 2012 - coolo@suse.com
|
Thu Jan 12 11:30:42 UTC 2012 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define special -1
|
%define special -1
|
||||||
|
|
||||||
Summary: Database drivers for libdbi
|
Summary: Database drivers for libdbi
|
||||||
@ -40,10 +41,6 @@ libdbi implements a database-independent abstraction layer in C, similar to the
|
|||||||
DBI/DBD layer in Perl. Drivers are distributed separately from the library
|
DBI/DBD layer in Perl. Drivers are distributed separately from the library
|
||||||
itself.
|
itself.
|
||||||
|
|
||||||
_Original_Vendor: Neon Goat Productions
|
|
||||||
_Original_Packager: David A. Parker <david@neongoat.com>
|
|
||||||
|
|
||||||
|
|
||||||
%package dbd-mysql
|
%package dbd-mysql
|
||||||
Summary: MySQL driver for libdbi
|
Summary: MySQL driver for libdbi
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -96,27 +93,29 @@ does not require recompilation or rewriting source code.
|
|||||||
%setup -q -n %{name}-%{version}%{special}
|
%setup -q -n %{name}-%{version}%{special}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %configure \
|
%configure \
|
||||||
--with-mysql \
|
--with-mysql \
|
||||||
--with-mysql-incdir=/usr/include/mysql \
|
--with-mysql-incdir=%_includedir/mysql \
|
||||||
--with-mysql-libdir=%{_libdir}/mysql \
|
--with-mysql-libdir=%{_libdir}/mysql \
|
||||||
--with-pgsql \
|
--with-pgsql \
|
||||||
--with-pgsql-incdir=/usr/include/pgsql \
|
--with-pgsql-incdir=%_includedir/pgsql \
|
||||||
--with-pgsql-libdir=%{_libdir} \
|
--with-pgsql-libdir=%{_libdir} \
|
||||||
%if 0%{?suse_version} == 910
|
%if 0%{?suse_version} == 910
|
||||||
--with-sqlite \
|
--with-sqlite \
|
||||||
--with-sqlite-incdir=/usr/include \
|
--with-sqlite-incdir=%_includedir \
|
||||||
--with-sqlite-libdir=%{_libdir} \
|
--with-sqlite-libdir=%{_libdir} \
|
||||||
%else
|
%else
|
||||||
--with-sqlite3 \
|
--with-sqlite3 \
|
||||||
--with-sqlite3-incdir=/usr/include \
|
--with-sqlite3-incdir=%_includedir \
|
||||||
--with-sqlite3-libdir=%{_libdir} \
|
--with-sqlite3-libdir=%{_libdir} \
|
||||||
%endif
|
%endif
|
||||||
--with-dbi-incdir=/usr/include/dbi \
|
--with-dbi-incdir=%_includedir/dbi \
|
||||||
--with-dbi-libdir=%{_libdir} \
|
--with-dbi-libdir=%{_libdir} \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-docs
|
--disable-docs
|
||||||
make AM_CFLAGS="$RPM_OPT_FLAGS"
|
# Broken upstream code overrides CFLAGS !:-[. Since AM_CFLAGS is unused in
|
||||||
|
# the source, we can hack there to get our flags in...
|
||||||
|
make %{?_smp_mflags} AM_CFLAGS="%optflags"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
@ -153,9 +152,6 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
|||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%clean
|
|
||||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user