SHA256
1
0
forked from pool/samba

Followup to r484 for conditional libarchive

Else SLE 11, Fedora, CentOS, and RedHat fails to built.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/samba?expand=0&rev=485
This commit is contained in:
Lars Müller
2015-09-08 16:16:04 +00:00
committed by Git OBS Bridge
parent 6da8c5f58c
commit 7d3c1b7ba8
3 changed files with 9 additions and 6 deletions

View File

@@ -144,7 +144,7 @@ BuildRequires: systemd-devel
%else
%define build_make_smp_mflags %{?jobs:-j%jobs}
%endif
%define SOURCE_TIMESTAMP 3463
%define SOURCE_TIMESTAMP 3464
%define BRANCH %{version}.SLE12_SP1
%global with_mitkrb5 1
%global with_dc 0
@@ -1143,6 +1143,9 @@ export CFLAGS="%{optflags} -D_GNU_SOURCE ${OPTIMIZATION} -D_LARGEFILE64_SOURCE -
%if 0%{?suse_version} && 0%{?suse_version} < 1141
%{?suse_update_config:%{suse_update_config -f}}
%endif
%if 0%{?suse_version} < 1111
bundled_libraries_extra="libarchive"
%endif
CONFIGURE_OPTIONS="\
--prefix=%{_prefix} \
--localstatedir=%{_localstatedir} \
@@ -1183,7 +1186,7 @@ CONFIGURE_OPTIONS="\
%if ! %with_dc
--without-ad-dc \
%endif
--bundled-libraries=NONE,ntdb,nss_wrapper,socket_wrapper,uid_wrapper,subunit \
--bundled-libraries=NONE,ntdb,nss_wrapper,socket_wrapper,uid_wrapper,subunit,${bundled_libraries_extra} \
"
./configure ${CONFIGURE_OPTIONS}
make %{build_make_smp_mflags} \