%bcond_without ldap # without LDAP support
%bcond_without avahi
%bcond_without merged_build # without samba3+samba4 merge
+%bcond_without system_libtalloc
# http://wiki.samba.org/index.php/Franky
%bcond_with mks # with vfs-mks (mksd dependency not distributale)
%bcond_with vscan
%undefine with_ads
%endif
+%define libtalloc_ver 2.0.1
+
%define vscan_version 0.3.6c-beta5
Summary: SMB server
Summary(cs.UTF-8): Server SMB
BuildRequires: keyutils-devel
BuildRequires: libmagic-devel
BuildRequires: libnscd-devel
+%{?with_system_talloc:BuildRequires: libtalloc-devel >= %{libtalloc_ver}}
BuildRequires: libtool >= 2:1.4d
BuildRequires: make >= 3.81
BuildRequires: ncurses-devel >= 5.2
Summary(ru.UTF-8): Файлы, используемые как сервером, так и клиентом Samba
Summary(uk.UTF-8): Файли, що використовуються як сервером, так і клієнтом Samba
Group: Networking/Daemons
+%if %{with system_libtalloc}
Requires: libtalloc >= %{epoch}:%{version}-%{release}
+%else
+Requires: libtalloc >= %{libtalloc_ver}
+%endif
Requires: tdb >= %{epoch}:%{version}-%{release}
%description common
--with-syslog \
--with-utmp \
--with-fhs \
+%if %{with system_libtalloc}
+ --with-libtalloc=no \
+ --enable-external-libtalloc=yes \
+%endif
--without-included-popt \
--%{?with_merged_build:en}%{!?with_merged_build:dis}able-merged-build \
--enable-automatic-dependencies \
%{_includedir}/libsmbclient.h
%{_includedir}/wbclient.h
+%if %{without system_libtalloc}
%files -n libtalloc
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libtalloc.so.*
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libtalloc.so
%{_includedir}/talloc.h
+%endif
%files -n tdb
%defattr(644,root,root,755)