2012-05-30 17:35:29 +02:00
|
|
|
#
|
2012-06-02 16:43:53 +02:00
|
|
|
# spec file for package tdb (Version 1.2.10)
|
2012-05-30 17:35:29 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2012-05-30 20:11:24 +02:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2012-05-30 18:11:54 +02:00
|
|
|
|
2012-06-02 16:43:53 +02:00
|
|
|
Name: tdb
|
2012-05-30 17:35:29 +02:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
|
|
|
|
%define build_make_smp_mflags %{?_smp_mflags}
|
|
|
|
%else
|
|
|
|
%define build_make_smp_mflags %{?jobs:-j%jobs}
|
|
|
|
%endif
|
2012-06-02 16:43:53 +02:00
|
|
|
License: GPL-3.0+
|
2012-05-30 17:35:29 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Url: http://tdb.samba.org/
|
|
|
|
Version: 1.2.10
|
|
|
|
Release: 0
|
2012-06-02 16:43:53 +02:00
|
|
|
Summary: Samba Trivial Database
|
2012-05-30 17:35:29 +02:00
|
|
|
Source: http://download.samba.org/pub/tdb/tdb-%{version}.tar.gz
|
|
|
|
Source4: baselibs.conf
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2012-06-02 16:43:53 +02:00
|
|
|
|
2012-05-30 17:35:29 +02:00
|
|
|
%description
|
|
|
|
TDB is a Trivial Database. In concept, it is very much like GDBM, and BSD's DB
|
|
|
|
except that it allows multiple simultaneous writers and uses locking
|
|
|
|
internally to keep writers from trampling on each other. TDB is also extremely
|
|
|
|
small.
|
|
|
|
|
2012-06-02 16:43:53 +02:00
|
|
|
|
|
|
|
%package -n libtdb1
|
|
|
|
License: GPL-3.0+
|
|
|
|
Summary: Libraries and Header Files to Develop Programs with tdb1 Support
|
|
|
|
Group: System/Libraries
|
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
Requires: pkg-config
|
|
|
|
%else
|
|
|
|
Requires: pkgconfig
|
|
|
|
%endif
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: libxslt
|
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
%endif
|
|
|
|
BuildRequires: python-devel
|
|
|
|
PreReq: /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%description -n libtdb1
|
|
|
|
TDB is a Trivial Database. In concept, it is very much like GDBM, and BSD's DB
|
|
|
|
except that it allows multiple simultaneous writers and uses locking
|
|
|
|
internally to keep writers from trampling on each other. TDB is also extremely
|
|
|
|
small.
|
|
|
|
|
2012-05-30 17:35:29 +02:00
|
|
|
This package contains the tdb1 library.
|
|
|
|
|
|
|
|
|
2012-05-31 14:14:24 +02:00
|
|
|
%package -n libtdb-devel
|
2012-05-30 17:35:29 +02:00
|
|
|
License: GPL-3.0+
|
|
|
|
Summary: Libraries and Header Files to Develop Programs with tdb1 Support
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libtdb1 = %{version}
|
|
|
|
%if 0%{?suse_version} > 1020
|
|
|
|
Requires: pkg-config
|
|
|
|
%else
|
|
|
|
Requires: pkgconfig
|
|
|
|
%endif
|
|
|
|
|
2012-05-31 14:14:24 +02:00
|
|
|
%description -n libtdb-devel
|
2012-05-30 17:35:29 +02:00
|
|
|
TDB is a Trivial Database. In concept, it is very much like GDBM, and BSD's DB
|
|
|
|
except that it allows multiple simultaneous writers and uses locking
|
|
|
|
internally to keep writers from trampling on each other. TDB is also extremely
|
|
|
|
small.
|
|
|
|
|
|
|
|
This package contains libraries and header files need for development.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n tdb-tools
|
|
|
|
License: GPL-3.0+
|
|
|
|
Summary: Tools to manipulate tdb files
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n tdb-tools
|
|
|
|
TDB is a Trivial Database. In concept, it is very much like GDBM, and BSD's DB
|
|
|
|
except that it allows multiple simultaneous writers and uses locking
|
|
|
|
internally to keep writers from trampling on each other. TDB is also extremely
|
|
|
|
small.
|
|
|
|
|
|
|
|
This package contains tools to manage Tdb files.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python-tdb
|
|
|
|
License: GPL-3.0+
|
|
|
|
Summary: Python bindings for the Tdb library
|
2012-06-02 16:43:53 +02:00
|
|
|
Group: Development/Libraries/Python
|
2012-05-30 17:35:29 +02:00
|
|
|
Requires: libtdb1 = %{version}
|
|
|
|
|
|
|
|
%description -n python-tdb
|
2012-06-02 16:43:53 +02:00
|
|
|
This package contains the python bindings for the Tdb library.
|
2012-05-30 17:35:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n tdb-%{version} -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 911
|
|
|
|
OPTIMIZATION="-O"
|
|
|
|
%else
|
|
|
|
# use the default optimization
|
|
|
|
unset OPTIMIZATION
|
|
|
|
%endif
|
|
|
|
export CFLAGS="${RPM_OPT_FLAGS} -D_GNU_SOURCE ${OPTIMIZATION} -D_LARGEFILE64_SOURCE -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS"
|
|
|
|
CONFIGURE_OPTIONS="\
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--disable-rpath \
|
|
|
|
--bundled-libraries=NONE \
|
|
|
|
"
|
|
|
|
./configure ${CONFIGURE_OPTIONS}
|
|
|
|
%{__make} %{build_make_smp_mflags} \
|
|
|
|
all
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
DESTDIR=${RPM_BUILD_ROOT} make install
|
|
|
|
|
2012-06-02 16:43:53 +02:00
|
|
|
%post -n libtdb1 -p /sbin/ldconfig
|
2012-05-30 17:35:29 +02:00
|
|
|
|
2012-06-02 16:43:53 +02:00
|
|
|
%postun -n libtdb1 -p /sbin/ldconfig
|
2012-05-30 17:35:29 +02:00
|
|
|
|
|
|
|
%post -n python-tdb -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n python-tdb -p /sbin/ldconfig
|
|
|
|
|
2012-06-02 16:43:53 +02:00
|
|
|
%files -n libtdb1
|
2012-05-30 17:35:29 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libtdb.so.*
|
|
|
|
|
2012-05-31 14:14:24 +02:00
|
|
|
%files -n libtdb-devel
|
2012-05-30 17:35:29 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/tdb.h
|
|
|
|
%{_libdir}/libtdb.so
|
|
|
|
%{_libdir}/pkgconfig/tdb.pc
|
|
|
|
|
|
|
|
%files -n tdb-tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/tdbbackup
|
|
|
|
%{_bindir}/tdbdump
|
|
|
|
%{_bindir}/tdbrestore
|
|
|
|
%{_bindir}/tdbtool
|
|
|
|
%{_mandir}/man8/tdbbackup.8*
|
|
|
|
%{_mandir}/man8/tdbdump.8*
|
|
|
|
%{_mandir}/man8/tdbrestore.8*
|
|
|
|
%{_mandir}/man8/tdbtool.8*
|
|
|
|
|
|
|
|
%files -n python-tdb
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python_sitearch}/tdb.so
|
|
|
|
|
|
|
|
%changelog
|