SHA256
1
0
forked from pool/ldb

osc copypac from project:network:samba:STABLE package:libldb1 revision:2

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=1
This commit is contained in:
Lars Müller 2012-05-25 10:58:25 +00:00 committed by Git OBS Bridge
commit 8decf56742
6 changed files with 253 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libldb1

3
ldb-1.1.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:048021224d36adac86d348f62ca6753454e39155e207af2e2ca8cde54fd0006d
size 1613612

17
libldb1.changes Normal file
View File

@ -0,0 +1,17 @@
-------------------------------------------------------------------
Thu May 17 12:44:28 UTC 2012 - lmuelle@suse.com
- BuildRequire libtalloc2-devel >= 2.0.7.
-------------------------------------------------------------------
Mon May 14 15:18:49 UTC 2012 - lmuelle@suse.com
- BuildRequire libtalloc2-devel, libtdb1-devel, and libtevent0-devel.
- Adjust license string.
- Require libldb1 = %{version} from the devel package.
-------------------------------------------------------------------
Wed Sep 7 21:56:42 UTC 2011 - lars@samba.org
- Initial independent libldb1 package.

208
libldb1.spec Normal file
View File

@ -0,0 +1,208 @@
#
# spec file for package libldb1 (Version 1.1.6)
#
# 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
#%{!?python_version: %global python_version %(%{__python} -c "import sys; sys.stdout.write(sys.version[:3])")}
Name: libldb1
BuildRequires: cups-devel
BuildRequires: e2fsprogs-devel
BuildRequires: fam-devel
BuildRequires: libacl-devel
BuildRequires: pam-devel
BuildRequires: popt-devel
BuildRequires: readline-devel
%if 0%{?suse_version}
BuildRequires: cracklib-devel openldap2-devel
%endif
%if 0%{?suse_version} > 1030
BuildRequires: gdbm-devel pwdutils
%endif
%if 0%{?suse_version} > 930
BuildRequires: krb5-devel libiniparser-devel libnscd-devel python-devel
%endif
%if 0%{?suse_version} > 1000
BuildRequires: keyutils-devel
%endif
%if 0%{?suse_version} > 1000 || 0%{?fedora_version} || 0%{?rhel_version} || 0%{?mandriva_version}
BuildRequires: ctdb-devel
%endif
%if 0%{?suse_version} > 1020
BuildRequires: pkg-config
%else
BuildRequires: pkgconfig
%endif
BuildRequires: libtalloc2-devel >= 2.0.7
BuildRequires: libtdb1-devel
BuildRequires: libtevent0-devel
%if 0%{?suse_version} && 0%{?suse_version} < 1111
%define guards_symbols pre_1111
%endif
%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
License: LGPL-3.0+
Group: System/Libraries
Url: http://ldb.samba.org/
AutoReqProv: on
Version: 1.1.6
Release: 0
PreReq: /sbin/ldconfig
Summary: Samba ldb Library
Source: http://download.samba.org/pub/ldb/ldb-%{version}.tar.gz
Source4: baselibs.conf
# Choose some features / extra packages here
############################################
%if 0%{?suse_version} && 0%{?suse_version} < 1111
%define link_static_libs 1
%else
%define link_static_libs 0
%endif
# Define some global directories
################################
%define DOCDIR %{_defaultdocdir}/samba
%define DOCBOOKDIR %{_defaultdocdir}/%{name}/docbook
%define SWATDIR %{_datadir}/samba/swat
%define LOGDIR %{_localstatedir}/log/samba
%define LOCKDIR %{_localstatedir}/lib/samba
%define CONFIGDIR %{_sysconfdir}/samba
%define INITDIR %{_sysconfdir}/init.d
%define PIDDIR %{_localstatedir}/run/samba
%if "%{_vendor}" == "suse"
%define NET_CFGDIR network
%else
%define NET_CFGDIR network-scripts
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package includes the ldb1 library.
%package devel
License: LGPL-3.0+
Summary: Libraries and Header Files to Develop Programs with ldb1 Support
Group: Development/Libraries/C and C++
Requires: libldb1 = %{version}
%description devel
Libraries and Header Files to Develop Programs with ldb1 Support
%package -n ldb-tools
License: GPL-3.0+
Summary: Tools to manipulate ldb files
Group: Development/Libraries/C and C++
%description -n ldb-tools
Tools to manipulate ldb files
%prep
%setup -n ldb-%{version} -q
%build
%if 0%{?suse_version} && 0%{?suse_version} < 911
OPTIMIZATION="-O"
%else
# use the default optimization
unset OPTIMIZATION
%endif
%if 0%{?suse_version} > 1110
export SUSE_ASNEEDED=0
%endif
export CFLAGS="${RPM_OPT_FLAGS} -D_GNU_SOURCE ${OPTIMIZATION} -D_LARGEFILE64_SOURCE -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS"
CONFIGURE_OPTIONS="\
--prefix=%{_prefix} \
--localstatedir=%{LOCKDIR} \
--sysconfdir=%{CONFIGDIR} \
--libdir=%{_libdir} \
--with-modulesdir=%{_libdir}/samba \
"
./configure ${CONFIGURE_OPTIONS}
%{__make} %{build_make_smp_mflags} \
all
%check
#%{__make} test
%install
DESTDIR=${RPM_BUILD_ROOT} make install
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libldb.so.*
%{_libdir}/ldb/libccan.so.*
%{_libdir}/ldb/libpytalloc-util.so.*
%{_libdir}/ldb/libtalloc.so.*
%{_libdir}/ldb/libtdb.so.*
%{_libdir}/ldb/libtevent.so.*
%{_libdir}/libpyldb-util.so.*
%{_libdir}/ldb/libtdb_compat.so
%{_libdir}/samba/asq.so
%{_libdir}/samba/ldap.so
%{_libdir}/samba/paged_results.so
%{_libdir}/samba/paged_searches.so
%{_libdir}/samba/rdn_name.so
%{_libdir}/samba/sample.so
%{_libdir}/samba/server_sort.so
%{_libdir}/samba/skel.so
%{_libdir}/samba/tdb.so
%files devel
%defattr(-,root,root)
%{_includedir}/ldb.h
%{_includedir}/ldb_errors.h
%{_includedir}/ldb_handlers.h
%{_includedir}/ldb_module.h
%{_includedir}/ldb_version.h
%{_includedir}/pyldb.h
%{_includedir}/pytalloc.h
%{_libdir}/libldb.so
%{_libdir}/ldb/libldb-cmdline.so
%{_libdir}/libpyldb-util.so
%{_libdir}/pkgconfig/ldb.pc
%{_libdir}/pkgconfig/pyldb-util.pc
%{_libdir}/python%{python_version}/site-packages/ldb.so
%{_libdir}/python%{python_version}/site-packages/_tevent.so
%{_libdir}/python%{python_version}/site-packages/talloc.so
%{_libdir}/python%{python_version}/site-packages/tdb.so
%{_libdir}/python%{python_version}/site-packages/tevent.py
%files -n ldb-tools
%{_bindir}/ldbadd
%{_bindir}/ldbdel
%{_bindir}/ldbedit
%{_bindir}/ldbmodify
%{_bindir}/ldbrename
%{_bindir}/ldbsearch
%{_bindir}/tdbbackup
%{_bindir}/tdbdump
%{_bindir}/tdbrestore
%{_bindir}/tdbtool
%changelog