%bcond_without ldap # without LDAP support
%bcond_without avahi
%bcond_with merged_build # without samba3+samba4 merge
+%bcond_without system_libtevent
%bcond_without system_libtalloc
%bcond_without system_libtdb
# http://wiki.samba.org/index.php/Franky
%undefine with_ads
%endif
+%if %{with system_libtevent}
+%define libtevent_ver 0.9.11
+%else
+%define libtevent_ver %{epoch}:%{version}-%{release}
+%endif
+
%if %{with system_libtalloc}
%define libtalloc_ver 2.0.1
%else
%endif
%if %{with system_libtdb}
-%define libtdb_ver 2:1.2.9
+%define libtdb_ver 2:1.2.9
%else
-%define libtdb_ver %{epoch}:%{version}-%{release}
+%define libtdb_ver %{epoch}:%{version}-%{release}
%endif
%define virusfilter_version 0.1.3
Summary(uk.UTF-8): SMB клієнт та сервер
Summary(zh_CN.UTF-8): Samba 客户端和服务器
Name: samba
-Version: 3.6.13
+Version: 3.6.17
Release: 1
Epoch: 1
License: GPL v3
Group: Networking/Daemons
Source0: http://www.samba.org/samba/ftp/stable/%{name}-%{version}.tar.gz
-# Source0-md5: b9fe8413cbb6fa4b970a159968db2fb4
+# Source0-md5: c67c3330545c8f1f7ee26e017c28439b
Source1: smb.init
Source2: %{name}.pamd
Source3: swat.inetd
Source7: winbind.init
Source8: winbind.sysconfig
Source9: %{name}-rfc3454.txt
-Source10: https://github.com/downloads/fumiyas/samba-virusfilter/samba-virusfilter-%{virusfilter_version}.tar.bz2
+Source10: https://github.com/downloads/fumiyas/samba-virusfilter/%{name}-virusfilter-%{virusfilter_version}.tar.bz2
# Source10-md5: a3a30d5fbf309d356e8c5833db680c17
Patch0: %{name}-smbwrapper.patch
Patch1: %{name}-c++-nofail.patch
BuildRequires: readline-devel >= 4.2
BuildRequires: rpmbuild(macros) >= 1.304
BuildRequires: sed >= 4.0
+%{?with_system_libtevent:BuildRequires: tevent-devel >= %{libtevent_ver}}
%{?with_system_libtalloc:BuildRequires: talloc-devel >= %{libtalloc_ver}}
%{?with_system_libtdb:BuildRequires: tdb-devel >= %{libtdb_ver}}
BuildRequires: xfsprogs-devel
Requires: %{name}-common = %{epoch}:%{version}-%{release}
%{?with_kerberos5:Requires: heimdal-libs}
Requires: libsmbclient = %{epoch}:%{version}-%{release}
-Obsoletes: smbfs
Suggests: cifs-utils
+Obsoletes: smbfs
%description client
Samba-client provides some SMB clients, which complement the build-in
Summary(ru.UTF-8): Файлы, используемые как сервером, так и клиентом Samba
Summary(uk.UTF-8): Файли, що використовуються як сервером, так і клієнтом Samba
Group: Networking/Daemons
+Requires: tevent >= %{libtevent_ver}
Requires: talloc >= %{libtalloc_ver}
Requires: tdb >= %{libtdb_ver}
Group: Networking/Daemons
Requires(post,postun): sed >= 4.0
Requires: openldap-servers
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description -n openldap-schema-samba
This package contains samba.schema for openldap.
%package -n python-samba
Summary: Samba Module for Python
Group: Development/Languages/Python
-%pyrequires_eq python
Requires: %{name}-common = %{epoch}:%{version}-%{release}
+Requires: python
%description -n python-samba
Samba Module for Python.
--with-syslog \
--with-utmp \
--with-fhs \
+%if %{with system_libtevent}
+ --with-libtevent=no \
+ --enable-external-libtevent=yes \
+%endif
%if %{with system_libtalloc}
--with-libtalloc=no \
--enable-external-libtalloc=yes \