6 |
# ctdb is enabled by default, you can disable it with: --without clustering |
# ctdb is enabled by default, you can disable it with: --without clustering |
7 |
%bcond_without clustering |
%bcond_without clustering |
8 |
|
|
9 |
%define main_release 12 |
%define main_release 12.6 |
10 |
|
|
11 |
%define samba_version 4.4.4 |
%define samba_version 4.4.4 |
12 |
%define talloc_version 2.1.6 |
%define talloc_version 2.1.6 |
32 |
%global with_internal_talloc 0 |
%global with_internal_talloc 0 |
33 |
%global with_internal_tevent 0 |
%global with_internal_tevent 0 |
34 |
%global with_internal_tdb 0 |
%global with_internal_tdb 0 |
35 |
%global with_internal_ldb 0 |
%global with_internal_ldb 1 |
36 |
|
|
37 |
%global with_profiling 1 |
%global with_profiling 1 |
38 |
|
|
56 |
%global libwbc_alternatives_suffix -64 |
%global libwbc_alternatives_suffix -64 |
57 |
%endif |
%endif |
58 |
|
|
59 |
%global with_mitkrb5 1 |
%global with_mitkrb5 0 |
60 |
%global with_dc 0 |
%global with_dc 1 |
61 |
|
|
62 |
%if %{with testsuite} |
%if %{with testsuite} |
63 |
# The testsuite only works with a full build right now. |
# The testsuite only works with a full build right now. |
194 |
%if %{with_vfs_cephfs} |
%if %{with_vfs_cephfs} |
195 |
BuildRequires: libcephfs1-devel |
BuildRequires: libcephfs1-devel |
196 |
%endif |
%endif |
197 |
|
BuildRequires: gnutls-devel |
198 |
# Allow build with testsuite which uses heimdal |
# Allow build with testsuite which uses heimdal |
199 |
#%if %{with_dc} |
#%if %{with_dc} |
200 |
#BuildRequires: gnutls-devel >= 3.4.7 |
#BuildRequires: gnutls-devel >= 3.4.7 |
395 |
%package vfs-glusterfs |
%package vfs-glusterfs |
396 |
Summary: Samba VFS module for GlusterFS |
Summary: Samba VFS module for GlusterFS |
397 |
Group: Applications/System |
Group: Applications/System |
398 |
|
Requires: libldb |
399 |
Requires: glusterfs-api >= 3.4.0.16 |
Requires: glusterfs-api >= 3.4.0.16 |
400 |
Requires: glusterfs >= 3.4.0.16 |
Requires: glusterfs >= 3.4.0.16 |
401 |
Requires: %{name} = %{samba_depver} |
Requires: %{name} = %{samba_depver} |
495 |
Requires: %{name}-libs = %{samba_depver} |
Requires: %{name}-libs = %{samba_depver} |
496 |
Requires: python-tevent |
Requires: python-tevent |
497 |
Requires: python-tdb |
Requires: python-tdb |
498 |
Requires: pyldb |
#Requires: pyldb |
499 |
Requires: pytalloc |
Requires: pytalloc |
500 |
|
|
501 |
Provides: samba4-python = %{samba_depver} |
Provides: samba4-python = %{samba_depver} |
880 |
%endif |
%endif |
881 |
|
|
882 |
install -d -m 0755 %{buildroot}%{_unitdir} |
install -d -m 0755 %{buildroot}%{_unitdir} |
883 |
for i in nmb smb winbind ; do |
for i in nmb smb winbind samba; do |
884 |
cat packaging/systemd/$i.service | sed -e 's@\[Service\]@[Service]\nEnvironment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba@g' >tmp$i.service |
cat packaging/systemd/$i.service | sed -e 's@\[Service\]@[Service]\nEnvironment=KRB5CCNAME=/run/samba/krb5cc_samba@g' >tmp$i.service |
885 |
install -m 0644 tmp$i.service %{buildroot}%{_unitdir}/$i.service |
install -m 0644 tmp$i.service %{buildroot}%{_unitdir}/$i.service |
886 |
done |
done |
887 |
%if %with_clustering_support |
%if %with_clustering_support |
1495 |
%{_libdir}/samba/ldb/repl_meta_data.so |
%{_libdir}/samba/ldb/repl_meta_data.so |
1496 |
%{_libdir}/samba/ldb/resolve_oids.so |
%{_libdir}/samba/ldb/resolve_oids.so |
1497 |
%{_libdir}/samba/ldb/rootdse.so |
%{_libdir}/samba/ldb/rootdse.so |
1498 |
|
%{_unitdir}/samba.service |
1499 |
%{_libdir}/samba/ldb/samba3sam.so |
%{_libdir}/samba/ldb/samba3sam.so |
1500 |
%{_libdir}/samba/ldb/samba3sid.so |
%{_libdir}/samba/ldb/samba3sid.so |
1501 |
%{_libdir}/samba/ldb/samba_dsdb.so |
%{_libdir}/samba/ldb/samba_dsdb.so |
2027 |
%endif # with_clustering_support |
%endif # with_clustering_support |
2028 |
|
|
2029 |
%changelog |
%changelog |
2030 |
* Tue Nov 15 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-11 |
* Thu Mar 02 2017 Jean-Philipe Pialasse <tests@pialasse.com> 4.4.4-12.6.sme |
2031 |
|
- added DC support thanks to Greg Zartman work [SME: 9817] |
2032 |
|
- added Buildrequires gnutls-devel |
2033 |
|
|
2034 |
|
* Tue Nov 15 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-12 |
2035 |
- related: #1393051 - Fix return code if ip not defined in gethostbyname |
- related: #1393051 - Fix return code if ip not defined in gethostbyname |
2036 |
|
|
2037 |
* Wed Nov 09 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-11 |
* Wed Nov 09 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-11 |