2011-01-25 10:07:44 +01:00
|
|
|
#
|
2011-01-25 10:07:50 +01:00
|
|
|
# spec file for package libdbi
|
2011-01-25 10:07:44 +01:00
|
|
|
#
|
2019-10-02 13:35:29 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-01-25 10:07:44 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-10-02 13:35:29 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-01-25 10:07:44 +01:00
|
|
|
#
|
|
|
|
|
2019-10-04 13:11:21 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%nil
|
2011-01-25 10:07:50 +01:00
|
|
|
|
2019-10-02 13:35:29 +02:00
|
|
|
%global sname libdbi
|
2019-10-04 13:11:21 +02:00
|
|
|
%if "%flavor" == "devel-doc"
|
2019-10-02 13:35:29 +02:00
|
|
|
%global psuffix -devel-doc
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: libdbi%{?psuffix}
|
2014-04-26 10:05:37 +02:00
|
|
|
%define lname libdbi3
|
2014-11-11 14:52:01 +01:00
|
|
|
Version: 0.9.0.g33
|
|
|
|
#Snapshot: libdbi-0.9.0-33-gcdc4479
|
2013-09-09 19:43:57 +02:00
|
|
|
Release: 0
|
2019-10-04 13:11:21 +02:00
|
|
|
%if "%flavor" == ""
|
2011-01-25 10:07:44 +01:00
|
|
|
Summary: Database Independent Abstraction Layer for C
|
2012-09-26 16:21:14 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-10-02 13:35:29 +02:00
|
|
|
%endif
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
URL: http://libdbi.sourceforge.net/
|
2011-01-25 10:07:50 +01:00
|
|
|
|
2014-08-25 17:54:54 +02:00
|
|
|
#Git-Clone: git://git.code.sf.net/p/libdbi/libdbi
|
2019-10-02 13:35:29 +02:00
|
|
|
#Source: http://downloads.sf.net/libdbi/%%name-%%version.tar.gz
|
2019-10-04 13:11:21 +02:00
|
|
|
Source: %sname-%version.tar.xz
|
2011-09-19 21:11:44 +02:00
|
|
|
Source2: baselibs.conf
|
2014-04-26 10:05:37 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2013-09-09 19:43:57 +02:00
|
|
|
BuildRequires: pkgconfig
|
2014-04-26 10:05:37 +02:00
|
|
|
BuildRequires: xz
|
2019-10-04 13:11:21 +02:00
|
|
|
%if "%flavor" == "devel-doc"
|
2014-04-26 10:05:37 +02:00
|
|
|
# Only needed when doc is not already prebuilt
|
|
|
|
BuildRequires: docbook-dsssl-stylesheets
|
|
|
|
BuildRequires: openjade
|
2019-10-02 13:35:29 +02:00
|
|
|
BuildRequires: tex(8r.enc)
|
|
|
|
BuildRequires: tex(t1ptm.fd)
|
|
|
|
BuildRequires: tex(t1phv.fd)
|
|
|
|
BuildRequires: tex(uwasy.fd)
|
|
|
|
BuildRequires: tex(wasy10.tfm)
|
2014-04-26 10:05:37 +02:00
|
|
|
BuildRequires: texlive-jadetex
|
|
|
|
BuildRequires: texlive-pdftex-bin
|
2019-10-04 13:11:21 +02:00
|
|
|
Provides: libdbi-devel:%_docdir/libdbi/driver-guide.pdf
|
2014-04-26 10:05:37 +02:00
|
|
|
%endif
|
2011-01-25 10:07:44 +01:00
|
|
|
|
2019-10-04 13:11:21 +02:00
|
|
|
%if "%flavor" == ""
|
2011-01-25 10:07:44 +01:00
|
|
|
%description
|
2013-09-09 19:43:57 +02:00
|
|
|
libdbi implements a database-independent abstraction layer in C,
|
|
|
|
similar to the DBI/DBD layer in Perl. Writing one generic set of
|
|
|
|
code, programmers can leverage the power of multiple databases and
|
|
|
|
multiple simultaneous database connections by using this framework.
|
2011-01-25 10:07:44 +01:00
|
|
|
|
2019-10-02 13:35:29 +02:00
|
|
|
%else
|
|
|
|
Summary: Development documentation for libdbi
|
|
|
|
Group: Documentation/Other
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The libdbi-devel-doc package contains libdbi programmers-guide
|
|
|
|
and driver-guide.
|
|
|
|
%endif
|
|
|
|
|
2014-04-26 10:05:37 +02:00
|
|
|
%package -n %lname
|
2011-01-25 10:07:44 +01:00
|
|
|
Summary: Database Independent Abstraction Layer for C
|
2013-09-09 19:43:57 +02:00
|
|
|
Group: System/Libraries
|
2011-01-25 10:07:44 +01:00
|
|
|
|
2014-04-26 10:05:37 +02:00
|
|
|
%description -n %lname
|
2013-09-09 19:43:57 +02:00
|
|
|
libdbi implements a database-independent abstraction layer in C,
|
|
|
|
similar to the DBI/DBD layer in Perl. Writing one generic set of
|
|
|
|
code, programmers can leverage the power of multiple databases and
|
|
|
|
multiple simultaneous database connections by using this framework.
|
2011-01-25 10:07:44 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libdbi (Database Independent Abstraction Layer for C)
|
2011-12-14 14:33:51 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-04-26 10:05:37 +02:00
|
|
|
Requires: %lname = %version
|
2011-01-25 10:07:44 +01:00
|
|
|
|
|
|
|
%description devel
|
2019-10-02 13:35:29 +02:00
|
|
|
The libdbi-devel package contains the header files needed to develop
|
|
|
|
applications with libdbi.
|
|
|
|
|
2011-01-25 10:07:44 +01:00
|
|
|
|
|
|
|
%prep
|
2019-10-04 13:11:21 +02:00
|
|
|
%setup -qn %sname
|
2011-01-25 10:07:44 +01:00
|
|
|
|
|
|
|
%build
|
2014-04-26 10:05:37 +02:00
|
|
|
autoreconf -fi
|
2014-08-27 12:35:30 +02:00
|
|
|
sed -i s,\-O20,\-O2,g configure
|
2014-05-09 17:36:11 +02:00
|
|
|
%configure \
|
2019-10-04 13:11:21 +02:00
|
|
|
%if "%flavor" == ""
|
|
|
|
--disable-docs \
|
2019-10-02 13:35:29 +02:00
|
|
|
%else
|
2019-10-04 13:11:21 +02:00
|
|
|
--enable-docs \
|
2019-10-02 13:35:29 +02:00
|
|
|
%endif
|
2019-10-04 13:11:21 +02:00
|
|
|
--docdir="%_docdir/libdbi" \
|
|
|
|
--disable-static
|
2019-10-02 13:35:29 +02:00
|
|
|
|
2019-10-04 13:11:21 +02:00
|
|
|
%if "%flavor" == ""
|
2019-10-02 13:35:29 +02:00
|
|
|
%make_build
|
|
|
|
%else
|
|
|
|
%make_build -C doc
|
2014-05-09 17:36:11 +02:00
|
|
|
%endif
|
2011-01-25 10:07:44 +01:00
|
|
|
|
|
|
|
%install
|
2019-10-04 13:11:21 +02:00
|
|
|
%if "%flavor" == ""
|
2019-10-02 13:35:29 +02:00
|
|
|
%make_install
|
2019-10-04 13:11:21 +02:00
|
|
|
rm "%buildroot/%_libdir/libdbi.la"
|
2019-10-02 13:35:29 +02:00
|
|
|
|
|
|
|
%else
|
|
|
|
%make_install -C doc
|
|
|
|
%endif
|
2014-04-26 10:05:37 +02:00
|
|
|
|
2019-10-02 13:35:29 +02:00
|
|
|
|
2019-10-04 13:11:21 +02:00
|
|
|
%if "%flavor" == ""
|
2014-04-26 10:05:37 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2011-01-25 10:07:44 +01:00
|
|
|
|
2014-04-26 10:05:37 +02:00
|
|
|
%files -n %lname
|
2019-10-02 13:35:29 +02:00
|
|
|
%doc AUTHORS ChangeLog README
|
|
|
|
%license COPYING
|
2014-04-26 10:05:37 +02:00
|
|
|
%_libdir/libdbi.so.3*
|
2011-01-25 10:07:44 +01:00
|
|
|
|
|
|
|
%files devel
|
2013-09-09 19:43:57 +02:00
|
|
|
%_includedir/dbi/
|
2014-04-26 10:05:37 +02:00
|
|
|
%_libdir/libdbi.so
|
2013-09-09 19:43:57 +02:00
|
|
|
%_libdir/pkgconfig/dbi.pc
|
2019-10-02 13:35:29 +02:00
|
|
|
|
|
|
|
%else
|
|
|
|
|
2019-10-04 13:11:21 +02:00
|
|
|
%files -n %sname-devel-doc
|
|
|
|
%dir %_docdir/libdbi
|
|
|
|
%_docdir/libdbi/*-guide*
|
2019-10-02 13:35:29 +02:00
|
|
|
|
2014-05-09 17:36:11 +02:00
|
|
|
%endif
|
2011-01-25 10:07:44 +01:00
|
|
|
|
|
|
|
%changelog
|