- Cleanup BuildRequires and spec file in general.

- BuildRequire libtalloc2-devel >= 2.0.7.
- BuildRequire libtalloc2-devel, libtdb1-devel, and libtevent0-devel.
- Adjust license string.
- Require libldb1 = %{version} from the devel package.
- Initial independent libldb1 package.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=2
This commit is contained in:
Lars Müller 2012-05-25 11:13:14 +00:00 committed by Git OBS Bridge
parent 8decf56742
commit e1ba914827
2 changed files with 5 additions and 49 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 25 11:12:36 UTC 2012 - lmuelle@suse.com
- Cleanup BuildRequires and spec file in general.
-------------------------------------------------------------------
Thu May 17 12:44:28 UTC 2012 - lmuelle@suse.com

View File

@ -20,28 +20,6 @@
#%{!?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
@ -50,9 +28,6 @@ BuildRequires: pkgconfig
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
@ -68,28 +43,6 @@ 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
@ -131,8 +84,6 @@ Tools to manipulate ldb files
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 \
"