/[smeserver]/rpms/samba/sme10/samba.spec
ViewVC logotype

Diff of /rpms/samba/sme10/samba.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by vip-ire, Thu Sep 29 08:22:00 2016 UTC Revision 1.3 by unnilennium, Thu Mar 2 16:04:48 2017 UTC
# Line 1  Line 1 
1  # rpmbuild --rebuild --with testsuite --without clustering samba.src.rpm  # rpmbuild --rebuild --with testsuite --without clustering samba.src.rpm
2  #  #
3  # The testsuite is disabled by default. Set --with testsuite or %bcond_without  # The testsuite is disabled by default. Set --with testsuite or bcond_without
4  # to run the Samba torture testsuite.  # to run the Samba torture testsuite.
5  %bcond_with testsuite  %bcond_with testsuite
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 10.2  %define main_release 12
10    
11  %define samba_version 4.2.3  %define samba_version 4.4.4
12  %define talloc_version 2.1.2  %define talloc_version 2.1.6
13  %define ntdb_version 1.0  %define tdb_version 1.3.8
14  %define tdb_version 1.3.4  %define tevent_version 0.9.28
15  %define tevent_version 0.9.24  %define ldb_version 1.1.26
 %define ldb_version 1.1.20  
16  # This should be rc1 or nil  # This should be rc1 or nil
17  %define pre_release %nil  %define pre_release %nil
18    
# Line 23  Line 22 
22  %define samba_release %{main_release}%{?dist}  %define samba_release %{main_release}%{?dist}
23  %endif  %endif
24    
25  # This is a network daemon, do a hardened build.  # This is a network daemon, do a hardened build
26  # Enables PIE and full RELRO protection  # Enables PIE and full RELRO protection
27  %global _hardened_build 1  %global _hardened_build 1
28    
29  %global with_libsmbclient 1  %global with_libsmbclient 1
30  %global with_libwbclient 1  %global with_libwbclient 1
31    
 %global with_pam_smbpass 0  
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
 %global with_internal_ntdb 1  
35  %global with_internal_ldb 0  %global with_internal_ldb 0
36    
37  %global with_profiling 1  %global with_profiling 1
# Line 59  Line 56 
56  %global libwbc_alternatives_suffix -64  %global libwbc_alternatives_suffix -64
57  %endif  %endif
58    
59  %global with_mitkrb5 0  %global with_mitkrb5 1
60  %global with_dc 1  %global with_dc 0
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.
# Line 102  Source0:        samba-%{version}%{pre_re Line 99  Source0:        samba-%{version}%{pre_re
99  # Red Hat specific replacement-files  # Red Hat specific replacement-files
100  Source1: samba.log  Source1: samba.log
101  Source2: samba.xinetd  Source2: samba.xinetd
102  Source4: smb.conf.default  Source3: smb.conf.vendor
103    Source4: smb.conf.example
104  Source5: pam_winbind.conf  Source5: pam_winbind.conf
105  Source6: samba.pamd  Source6: samba.pamd
106    
107  Source200: README.dc  Source200: README.dc
108  Source201: README.downgrade  Source201: README.downgrade
109    
110  Patch0:         samba-4.2-auth-credentials-if-credentials-have-principal-set-t.patch  Patch0:    samba-4.4.5-fix_resolving_trusted_domain_users.patch
111  Patch1:         samba-4.2.3-fix_smbX_segfault.patch  Patch1:    samba-4.4.5-fix_site_aware_net_ads_join_with_krb5.patch
112  Patch2:         samba-4.2.3-fix_dfree_command.patch  Patch2:    samba-4.4.5-accept_empty_realm_for_ad_domains_with_security_domain.patch
113  Patch3:         samba-4.2.3-document_netbios_length.patch  Patch3:    samba-4.4.5-fix_winbind_cached_creds_memleak.patch
114  Patch4:         samba-4.2.3-fix_net_ads_keytab_segfault.patch  Patch4:    CVE-2016-2119-v4-4.patch
115  Patch5:         samba-4.2.3-fix_force_group.patch  Patch5:    samba-4.4.7-fix-ctdb-test-install-dir.patch
116  Patch6:         samba-4.2.3-fix_map_to_guest_bad_uid.patch  Patch6:    samba-4.4.7-fix_ads_krb5_ccname_handling.patch
117  Patch7:         samba-4.2.3-fix_nss_wins.patch  Patch7:    samba-4.4.7-fix_smbclient_cpu_usage_with_unreachable_ip.patch
118    Patch8:    samba-4.4.7-fix_idmap_range_checks.patch
119    Patch9:    samba-4.4.7-fix_smget_auth_callback.patch
120    Patch10:   samba-4.4.6-fix_nss_wins.patch
121    Patch11:   samba-4.4.7-fix_group_substituion_with_ad.patch
122    Patch12:   samba-4.4.6-fix_smbclient_against_apple_and_azure.patch
123    
124  BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)  BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
125    
# Line 126  Requires(preun): systemd Line 129  Requires(preun): systemd
129  Requires(postun): systemd  Requires(postun): systemd
130    
131  Requires(pre): %{name}-common = %{samba_depver}  Requires(pre): %{name}-common = %{samba_depver}
 Requires: %{name}-common = %{samba_depver}  
132  Requires: %{name}-common-libs = %{samba_depver}  Requires: %{name}-common-libs = %{samba_depver}
133  Requires: %{name}-common-tools = %{samba_depver}  Requires: %{name}-common-tools = %{samba_depver}
134  Requires: %{name}-client-libs = %{samba_depver}  Requires: %{name}-client-libs = %{samba_depver}
# Line 141  Provides: samba4 = %{samba_depver} Line 143  Provides: samba4 = %{samba_depver}
143  Obsoletes: samba4 < %{samba_depver}  Obsoletes: samba4 < %{samba_depver}
144    
145  # We don't build it outdated docs anymore  # We don't build it outdated docs anymore
146  Obsoletes: samba-doc  Provides: samba-doc = %{samba_depver}
147    Obsoletes: samba-doc < %{samba_depver}
148    
149  # Is not supported yet  # Is not supported yet
150  Obsoletes: samba-domainjoin-gui  Provides: samba-domainjoin-gui = %{samba_depver}
151    Obsoletes: samba-domainjoin-gui < %{samba_depver}
152    
153  # SWAT been deprecated and removed from samba  # SWAT been deprecated and removed from samba
154  Obsoletes: samba-swat  Provides: samba-swat = %{samba_depver}
155  Obsoletes: samba4-swat  Obsoletes: samba-swat < %{samba_depver}
156    
157    Provides: samba4-swat = %{samba_depver}
158    Obsoletes: samba4-swat < %{samba_depver}
159    
160  BuildRequires: cups-devel  BuildRequires: cups-devel
161  BuildRequires: dbus-devel  BuildRequires: dbus-devel
162  BuildRequires: docbook-style-xsl  BuildRequires: docbook-style-xsl
163  BuildRequires: e2fsprogs-devel  BuildRequires: e2fsprogs-devel
164  BuildRequires: gawk  BuildRequires: gawk
165  BuildRequires: krb5-devel >= 1.10  BuildRequires: krb5-devel >= 1.14
166  BuildRequires: libacl-devel  BuildRequires: libacl-devel
167  BuildRequires: libaio-devel  BuildRequires: libaio-devel
168  BuildRequires: libarchive-devel  BuildRequires: libarchive-devel
# Line 167  BuildRequires: pam-devel Line 176  BuildRequires: pam-devel
176  BuildRequires: perl(ExtUtils::MakeMaker)  BuildRequires: perl(ExtUtils::MakeMaker)
177  BuildRequires: perl(Parse::Yapp)  BuildRequires: perl(Parse::Yapp)
178  BuildRequires: popt-devel  BuildRequires: popt-devel
179    BuildRequires: python
180  BuildRequires: python-devel  BuildRequires: python-devel
181  BuildRequires: python-tevent  BuildRequires: python-tevent
182  BuildRequires: quota-devel  BuildRequires: quota-devel
# Line 175  BuildRequires: sed Line 185  BuildRequires: sed
185  BuildRequires: xfsprogs-devel  BuildRequires: xfsprogs-devel
186  BuildRequires: zlib-devel >= 1.2.3  BuildRequires: zlib-devel >= 1.2.3
187    
 BuildRequires: pkgconfig(libsystemd-daemon)  
188  BuildRequires: pkgconfig(libsystemd)  BuildRequires: pkgconfig(libsystemd)
189    
190  %if %{with_vfs_glusterfs}  %if %{with_vfs_glusterfs}
# Line 185  BuildRequires: glusterfs-devel >= 3.4.0. Line 194  BuildRequires: glusterfs-devel >= 3.4.0.
194  %if %{with_vfs_cephfs}  %if %{with_vfs_cephfs}
195  BuildRequires: libcephfs1-devel  BuildRequires: libcephfs1-devel
196  %endif  %endif
197  %if %{with_dc}  
198  BuildRequires: gnutls-devel  # Allow build with testsuite which uses heimdal
199  %endif  #%if %{with_dc}
200    #BuildRequires: gnutls-devel >= 3.4.7
201    # Required by samba-tool
202    #BuildRequires: python-crypto
203    #%endif
204    
205  # pidl requirements  # pidl requirements
206  BuildRequires: perl(Parse::Yapp)  BuildRequires: perl(Parse::Yapp)
207    
208  %if ! %with_internal_talloc  %if ! %with_internal_talloc
209  %global libtalloc_version 2.1.2  %global libtalloc_version 2.1.6
210    
211  BuildRequires: libtalloc-devel >= %{libtalloc_version}  BuildRequires: libtalloc-devel >= %{libtalloc_version}
212  BuildRequires: pytalloc-devel >= %{libtalloc_version}  BuildRequires: pytalloc-devel >= %{libtalloc_version}
213  %endif  %endif
214    
215  %if ! %with_internal_tevent  %if ! %with_internal_tevent
216  %global libtevent_version 0.9.22  %global libtevent_version 0.9.28
217    
218  BuildRequires: libtevent-devel >= %{libtevent_version}  BuildRequires: libtevent-devel >= %{libtevent_version}
219  BuildRequires: python-tevent >= %{libtevent_version}  BuildRequires: python-tevent >= %{libtevent_version}
220  %endif  %endif
221    
222  %if ! %with_internal_ldb  %if ! %with_internal_ldb
223  %global libldb_version 1.1.20  %global libldb_version 1.1.26
224    
225  BuildRequires: libldb-devel >= %{libldb_version}  BuildRequires: libldb-devel >= %{libldb_version}
226  BuildRequires: pyldb-devel >= %{libldb_version}  BuildRequires: pyldb-devel >= %{libldb_version}
227  %endif  %endif
228    
229  %if ! %with_internal_tdb  %if ! %with_internal_tdb
230  %global libtdb_version 1.3.4  %global libtdb_version 1.3.8
231    
232  BuildRequires: libtdb-devel >= %{libtdb_version}  BuildRequires: libtdb-devel >= %{libtdb_version}
233  BuildRequires: python-tdb >= %{libtdb_version}  BuildRequires: python-tdb >= %{libtdb_version}
# Line 233  BuildRequires: ldb-tools Line 246  BuildRequires: ldb-tools
246    
247  ### SAMBA  ### SAMBA
248  %description  %description
249  Samba is the standard Windows interoperability suite of programs for Linux and Unix.  Samba is the standard Windows interoperability suite of programs for Linux and
250    Unix.
251    
252  ### CLIENT  ### CLIENT
253  %package client  %package client
254  Summary: Samba client programs  Summary: Samba client programs
255  Group: Applications/System  Group: Applications/System
256  Requires(pre): %{name}-common = %{samba_depver}  Requires(pre): %{name}-common = %{samba_depver}
 Requires: %{name}-common = %{samba_depver}  
257  Requires: %{name}-common-libs = %{samba_depver}  Requires: %{name}-common-libs = %{samba_depver}
258  Requires: %{name}-client-libs = %{samba_depver}  Requires: %{name}-client-libs = %{samba_depver}
259  %if %with_libsmbclient  %if %with_libsmbclient
# Line 250  Requires: libsmbclient = %{samba_depver} Line 263  Requires: libsmbclient = %{samba_depver}
263  Provides: samba4-client = %{samba_depver}  Provides: samba4-client = %{samba_depver}
264  Obsoletes: samba4-client < %{samba_depver}  Obsoletes: samba4-client < %{samba_depver}
265    
266    Requires(post): %{_sbindir}/update-alternatives
267    Requires(postun): %{_sbindir}/update-alternatives
268    
269  %description client  %description client
270  The samba4-client package provides some SMB/CIFS clients to complement  The %{name}-client package provides some SMB/CIFS clients to complement
271  the built-in SMB/CIFS filesystem in Linux. These clients allow access  the built-in SMB/CIFS filesystem in Linux. These clients allow access
272  of SMB/CIFS shares and printing to SMB/CIFS printers.  of SMB/CIFS shares and printing to SMB/CIFS printers.
273    
# Line 260  of SMB/CIFS shares and printing to SMB/C Line 276  of SMB/CIFS shares and printing to SMB/C
276  Summary: Samba client libraries  Summary: Samba client libraries
277  Group: Applications/System  Group: Applications/System
278  Requires(pre): %{name}-common = %{samba_depver}  Requires(pre): %{name}-common = %{samba_depver}
 Requires: %{name}-common = %{samba_depver}  
279  %if %with_libwbclient  %if %with_libwbclient
280  Requires: libwbclient = %{samba_depver}  Requires: libwbclient = %{samba_depver}
281  %endif  %endif
# Line 276  Group: Applications/System Line 291  Group: Applications/System
291  BuildArch: noarch  BuildArch: noarch
292    
293  Requires(post): systemd  Requires(post): systemd
 Requires: samba-common-tools = %{samba_depver}  
294    
295  Provides: samba4-common = %{samba_depver}  Provides: samba4-common = %{samba_depver}
296  Obsoletes: samba4-common < %{samba_depver}  Obsoletes: samba4-common < %{samba_depver}
# Line 290  packages of Samba. Line 304  packages of Samba.
304  Summary: Libraries used by both Samba servers and clients  Summary: Libraries used by both Samba servers and clients
305  Group: Applications/System  Group: Applications/System
306  Requires(pre): samba-common = %{samba_depver}  Requires(pre): samba-common = %{samba_depver}
 Requires: samba-common = %{samba_depver}  
307  Requires: %{name}-client-libs = %{samba_depver}  Requires: %{name}-client-libs = %{samba_depver}
308  %if %with_libwbclient  %if %with_libwbclient
309  Requires: libwbclient = %{samba_depver}  Requires: libwbclient = %{samba_depver}
# Line 319  SMB/CIFS clients. Line 332  SMB/CIFS clients.
332  %package dc  %package dc
333  Summary: Samba AD Domain Controller  Summary: Samba AD Domain Controller
334  Group: Applications/System  Group: Applications/System
335    Requires: %{name} = %{samba_depver}
336  Requires: %{name}-libs = %{samba_depver}  Requires: %{name}-libs = %{samba_depver}
337  Requires: %{name}-dc-libs = %{samba_depver}  Requires: %{name}-dc-libs = %{samba_depver}
338  Requires: %{name}-python = %{samba_depver}  Requires: %{name}-python = %{samba_depver}
339    Requires: %{name}-winbind = %{samba_depver}
340    %if %{with_dc}
341    # samba-tool requirements
342    Requires: python-crypto
343    %endif
344    
345  Provides: samba4-dc = %{samba_depver}  Provides: samba4-dc = %{samba_depver}
346  Obsoletes: samba4-dc < %{samba_depver}  Obsoletes: samba4-dc < %{samba_depver}
# Line 340  Provides: samba4-dc-libs = %{samba_depve Line 359  Provides: samba4-dc-libs = %{samba_depve
359  Obsoletes: samba4-dc-libs < %{samba_depver}  Obsoletes: samba4-dc-libs < %{samba_depver}
360    
361  %description dc-libs  %description dc-libs
362  The samba4-dc-libs package contains the libraries needed by the DC to  The %{name}-dc-libs package contains the libraries needed by the DC to
363  link against the SMB, RPC and other protocols.  link against the SMB, RPC and other protocols.
364    
365  ### DEVEL  ### DEVEL
# Line 354  Provides: samba4-devel = %{samba_depver} Line 373  Provides: samba4-devel = %{samba_depver}
373  Obsoletes: samba4-devel < %{samba_depver}  Obsoletes: samba4-devel < %{samba_depver}
374    
375  %description devel  %description devel
376  The samba4-devel package contains the header files for the libraries  The %{name}-devel package contains the header files for the libraries
377  needed to develop programs that link against the SMB, RPC and other  needed to develop programs that link against the SMB, RPC and other
378  libraries in the Samba suite.  libraries in the Samba suite.
379    
# Line 382  Requires: %{name} = %{samba_depver} Line 401  Requires: %{name} = %{samba_depver}
401  Requires: %{name}-client-libs = %{samba_depver}  Requires: %{name}-client-libs = %{samba_depver}
402  Requires: %{name}-libs = %{samba_depver}  Requires: %{name}-libs = %{samba_depver}
403    
404  Obsoletes: samba-glusterfs  Obsoletes: samba-glusterfs < %{samba_depver}
405  Provides: samba-glusterfs  Provides: samba-glusterfs = %{samba_depver}
406    
407  %description vfs-glusterfs  %description vfs-glusterfs
408  Samba VFS module for GlusterFS integration.  Samba VFS module for GlusterFS integration.
409  %endif  %endif
410    
411    ### KRB5-PRINTING
412    %package krb5-printing
413    Summary: Samba CUPS backend for printing with Kerberos
414    Group: Applications/System
415    Requires(pre): %{name}-client
416    
417    Requires(post): %{_sbindir}/update-alternatives
418    Requires(postun): %{_sbindir}/update-alternatives
419    
420    %description krb5-printing
421    If you need Kerberos for print jobs to a printer connection to cups via the SMB
422    backend, then you need to install that package. It will allow cups to access
423    the Kerberos credentials cache of the user issuing the print job.
424    
425  ### LIBS  ### LIBS
426  %package libs  %package libs
427  Summary: Samba libraries  Summary: Samba libraries
428  Group: Applications/System  Group: Applications/System
429  Requires: krb5-libs >= 1.10  Requires: krb5-libs >= 1.14
 Requires: libldb = %{ldb_version}  
430  Requires: %{name}-client-libs = %{samba_depver}  Requires: %{name}-client-libs = %{samba_depver}
431  %if %with_libwbclient  %if %with_libwbclient
432  Requires: libwbclient = %{samba_depver}  Requires: libwbclient = %{samba_depver}
# Line 404  Provides: samba4-libs = %{samba_depver} Line 436  Provides: samba4-libs = %{samba_depver}
436  Obsoletes: samba4-libs < %{samba_depver}  Obsoletes: samba4-libs < %{samba_depver}
437    
438  %description libs  %description libs
439  The samba4-libs package contains the libraries needed by programs that  The %{name}-libs package contains the libraries needed by programs that link
440  link against the SMB, RPC and other protocols provided by the Samba suite.  against the SMB, RPC and other protocols provided by the Samba suite.
441    
442  ### LIBSMBCLIENT  ### LIBSMBCLIENT
443  %if %with_libsmbclient  %if %with_libsmbclient
# Line 413  link against the SMB, RPC and other prot Line 445  link against the SMB, RPC and other prot
445  Summary: The SMB client library  Summary: The SMB client library
446  Group: Applications/System  Group: Applications/System
447  Requires(pre): %{name}-common = %{samba_depver}  Requires(pre): %{name}-common = %{samba_depver}
 Requires: %{name}-common = %{samba_depver}  
448  Requires: %{name}-client-libs = %{samba_depver}  Requires: %{name}-client-libs = %{samba_depver}
449    
450  %description -n libsmbclient  %description -n libsmbclient
# Line 425  Group: Development/Libraries Line 456  Group: Development/Libraries
456  Requires: libsmbclient = %{samba_depver}  Requires: libsmbclient = %{samba_depver}
457    
458  %description -n libsmbclient-devel  %description -n libsmbclient-devel
459  The libsmbclient-devel package contains the header files and libraries needed to  The libsmbclient-devel package contains the header files and libraries needed
460  develop programs that link against the SMB client library in the Samba suite.  to develop programs that link against the SMB client library in the Samba
461    suite.
462  %endif # with_libsmbclient  %endif # with_libsmbclient
463    
464  ### LIBWBCLIENT  ### LIBWBCLIENT
# Line 437  Group: Applications/System Line 469  Group: Applications/System
469  Requires: %{name}-client-libs = %{samba_depver}  Requires: %{name}-client-libs = %{samba_depver}
470    
471  %description -n libwbclient  %description -n libwbclient
472  The libwbclient package contains the winbind client library from the Samba suite.  The libwbclient package contains the winbind client library from the Samba
473    suite.
474    
475  %package -n libwbclient-devel  %package -n libwbclient-devel
476  Summary: Developer tools for the winbind library  Summary: Developer tools for the winbind library
477  Group: Development/Libraries  Group: Development/Libraries
478  Requires: libwbclient = %{samba_depver}  Requires: libwbclient = %{samba_depver}
479  Obsoletes: samba-winbind-devel  
480  Provides: samba-winbind-devel  Provides: samba-winbind-devel = %{samba_depver}
481    Obsoletes: samba-winbind-devel < %{samba_depver}
482    
483  %description -n libwbclient-devel  %description -n libwbclient-devel
484  The libwbclient-devel package provides developer tools for the wbclient library.  The libwbclient-devel package provides developer tools for the wbclient
485    library.
486  %endif # with_libwbclient  %endif # with_libwbclient
487    
488  ### PYTHON  ### PYTHON
# Line 466  Provides: samba4-python = %{samba_depver Line 501  Provides: samba4-python = %{samba_depver
501  Obsoletes: samba4-python < %{samba_depver}  Obsoletes: samba4-python < %{samba_depver}
502    
503  %description python  %description python
504  The samba4-python package contains the Python libraries needed by programs  The %{name}-python package contains the Python libraries needed by programs
505  that use SMB, RPC and other Samba provided protocols in Python programs.  that use SMB, RPC and other Samba provided protocols in Python programs.
506    
507  ### PIDL  ### PIDL
# Line 515  packages of Samba. Line 550  packages of Samba.
550    
551  ### TEST-LIBS  ### TEST-LIBS
552  %package test-libs  %package test-libs
553  Summary: Libraries need by teh testing tools for Samba servers and clients  Summary: Libraries need by the testing tools for Samba servers and clients
554  Group: Applications/System  Group: Applications/System
555  Requires: %{name}-client-libs = %{samba_depver}  Requires: %{name}-client-libs = %{samba_depver}
556  Requires: %{name}-libs = %{samba_depver}  Requires: %{name}-libs = %{samba_depver}
557    
558    Provides: %{name}-test-devel = %{samba_depver}
559    Obsoletes: %{name}-test-devel < %{samba_depver}
560    
561  %description test-libs  %description test-libs
562  %{name}-test-libs provides libraries required by the testing tools.  %{name}-test-libs provides libraries required by the testing tools.
563    
 ### TEST-DEVEL  
 %package test-devel  
 Summary: Testing devel files for Samba servers and clients  
 Group: Applications/System  
 Requires: %{name}-libs = %{samba_depver}  
 Requires: %{name}-test-libs = %{samba_depver}  
   
 %description test-devel  
 samba-test-devel provides testing devel files for both the server and client  
 packages of Samba.  
   
564  ### WINBIND  ### WINBIND
565  %package winbind  %package winbind
566  Summary: Samba winbind  Summary: Samba winbind
567  Group: Applications/System  Group: Applications/System
568  Requires(pre): %{name}-common = %{samba_depver}  Requires(pre): %{name}-common = %{samba_depver}
 Requires: %{name}-common = %{samba_depver}  
569  Requires: %{name}-common-libs = %{samba_depver}  Requires: %{name}-common-libs = %{samba_depver}
570  Requires: %{name}-common-tools = %{samba_depver}  Requires: %{name}-common-tools = %{samba_depver}
571  Requires: %{name}-client-libs = %{samba_depver}  Requires: %{name}-client-libs = %{samba_depver}
# Line 550  Provides: samba4-winbind = %{samba_depve Line 576  Provides: samba4-winbind = %{samba_depve
576  Obsoletes: samba4-winbind < %{samba_depver}  Obsoletes: samba4-winbind < %{samba_depver}
577    
578  %description winbind  %description winbind
579  The samba-winbind package provides the winbind NSS library, and some  The samba-winbind package provides the winbind NSS library, and some client
580  client tools.  Winbind enables Linux to be a full member in Windows  tools.  Winbind enables Linux to be a full member in Windows domains and to use
581  domains and to use Windows user and group accounts on Linux.  Windows user and group accounts on Linux.
582    
583  ### WINBIND-CLIENTS  ### WINBIND-CLIENTS
584  %package winbind-clients  %package winbind-clients
# Line 613  Requires: libwbclient = %{samba_depver} Line 639  Requires: libwbclient = %{samba_depver}
639  Requires: pam  Requires: pam
640    
641  %description winbind-modules  %description winbind-modules
642  The samba-winbind-modules package provides the NSS library and a PAM  The samba-winbind-modules package provides the NSS library and a PAM module
643  module necessary to communicate to the Winbind Daemon  necessary to communicate to the Winbind Daemon
644    
645  ### CTDB  ### CTDB
646  %if %with_clustering_support  %if %with_clustering_support
# Line 652  projects to store temporary data. If an Line 678  projects to store temporary data. If an
678  temporary data it is very easy to convert that application to be cluster aware  temporary data it is very easy to convert that application to be cluster aware
679  and use CTDB instead.  and use CTDB instead.
680    
 ### CTDB-DEVEL  
 %package -n ctdb-devel  
 Summary: CTDB clustered database development package  
 Group: Development/Libraries  
   
 Requires: ctdb = %{samba_depver}  
 Provides: ctdb-static = %{samba_depver}  
   
 %description -n ctdb-devel  
 Libraries, include files, etc you can use to develop CTDB applications.  
 CTDB is a cluster implementation of the TDB database used by Samba and other  
 projects to store temporary data. If an application is already using TDB for  
 temporary data it is very easy to convert that application to be cluster aware  
 and use CTDB instead.  
   
681  ### CTDB-TEST  ### CTDB-TEST
682  %package -n ctdb-tests  %package -n ctdb-tests
683  Summary: CTDB clustered database test suite  Summary: CTDB clustered database test suite
# Line 677  Requires: samba-client-libs = %{samba_de Line 688  Requires: samba-client-libs = %{samba_de
688  Requires: ctdb = %{samba_depver}  Requires: ctdb = %{samba_depver}
689  Requires: nc  Requires: nc
690    
691    Provides: ctdb-devel = %{samba_depver}
692    Obsoletes: ctdb-devel < %{samba_depver}
693    
694  %description -n ctdb-tests  %description -n ctdb-tests
695  Test suite for CTDB.  Test suite for CTDB.
696  CTDB is a cluster implementation of the TDB database used by Samba and other  CTDB is a cluster implementation of the TDB database used by Samba and other
# Line 690  and use CTDB instead. Line 704  and use CTDB instead.
704  %prep  %prep
705  %setup -q -n samba-%{version}%{pre_release}  %setup -q -n samba-%{version}%{pre_release}
706    
707  %patch0 -p1 -b .samba-4.2-auth-credentials-if-credentials-have-principal-set-t.patch  %patch0 -p1 -b .samba-4.4.5-fix_resolving_trusted_domain_users.patch
708  %patch1 -p1 -b .samba-4.2.3-fix_smbX_segfault.patch  %patch1 -p1 -b .samba-4.4.5-fix_site_aware_net_ads_join_with_krb5.patch
709  %patch2 -p1 -b .samba-4.2.3-fix_dfree_command.patch  %patch2 -p1 -b .samba-4.4.5-accept_empty_realm_for_ad_domains_with_security_domain.patch
710  %patch3 -p1 -b .samba-4.2.3-document_netbios_length.patch  %patch3 -p1 -b .samba-4.4.5-fix_winbind_cached_creds_memleak.patch
711  %patch4 -p1 -b .samba-4.2.3-fix_net_ads_keytab_segfault.patch  %patch4 -p1 -b .CVE-2016-2119-v4-4.patch
712  %patch5 -p1 -b .samba-4.2.3-fix_force_group.patch  %patch5 -p1 -b .samba-4.4.7-fix-ctdb-test-install-dir.patch
713  %patch6 -p1 -b .samba-4.2.3-fix_map_to_guest_bad_uid.patch  %patch6 -p1 -b .samba-4.4.7-fix_ads_krb5_ccname_handling.patch
714  %patch7 -p1 -b .samba-4.2.3-fix_nss_wins.patch  %patch7 -p1 -b .samba-4.4.7-fix_smbclient_cpu_usage_with_unreachable_ip.patch
715    %patch8 -p1 -b .samba-4.4.7-fix_idmap_range_checks.patch
716    %patch9 -p1 -b .samba-4.4.7-fix_smget_auth_callback.patch
717    %patch10 -p1 -b .samba-4.4.6-fix_nss_wins.patch
718    %patch11 -p1 -b .samba-4.4.7-fix_group_substituion_with_ad.patch
719    %patch12 -p1 -b .samba-4.4.6-fix_smbclient_against_apple_and_azure.patch
720    
721  %build  %build
722  %global _talloc_lib ,talloc,pytalloc,pytalloc-util  %global _talloc_lib ,talloc,pytalloc,pytalloc-util
723  %global _tevent_lib ,tevent,pytevent  %global _tevent_lib ,tevent,pytevent
724  %global _tdb_lib ,tdb,pytdb  %global _tdb_lib ,tdb,pytdb
725  %global _ldb_lib ,ldb,pyldb  %global _ldb_lib ,ldb,pyldb,pyldb-util
726    
727  %if ! %{with_internal_talloc}  %if ! %{with_internal_talloc}
728  %global _talloc_lib ,!talloc,!pytalloc,!pytalloc-util  %global _talloc_lib ,!talloc,!pytalloc,!pytalloc-util
# Line 718  and use CTDB instead. Line 737  and use CTDB instead.
737  %endif  %endif
738    
739  %if ! %{with_internal_ldb}  %if ! %{with_internal_ldb}
740  %global _ldb_lib ,!ldb,!pyldb  %global _ldb_lib ,!ldb,!pyldb,!pyldb-util
741  %endif  %endif
742    
743  %global _samba4_libraries heimdal,!zlib,!popt%{_talloc_lib}%{_tevent_lib}%{_tdb_lib}%{_ldb_lib}  %global _samba4_libraries heimdal,!zlib,!popt%{_talloc_lib}%{_tevent_lib}%{_tdb_lib}%{_ldb_lib}
# Line 748  and use CTDB instead. Line 767  and use CTDB instead.
767          --with-sockets-dir=/run/samba \          --with-sockets-dir=/run/samba \
768          --with-modulesdir=%{_libdir}/samba \          --with-modulesdir=%{_libdir}/samba \
769          --with-pammodulesdir=%{_libdir}/security \          --with-pammodulesdir=%{_libdir}/security \
770          --with-lockdir=/var/lib/samba \          --with-lockdir=/var/lib/samba/lock \
771            --with-statedir=/var/lib/samba \
772          --with-cachedir=/var/lib/samba \          --with-cachedir=/var/lib/samba \
773          --disable-rpath-install \          --disable-rpath-install \
774          --with-shared-modules=%{_samba4_modules} \          --with-shared-modules=%{_samba4_modules} \
# Line 778  and use CTDB instead. Line 798  and use CTDB instead.
798  %if %{with testsuite}  %if %{with testsuite}
799          --enable-selftest \          --enable-selftest \
800  %endif  %endif
 %if ! %with_pam_smbpass  
         --without-pam_smbpass \  
 %endif  
801          --with-systemd          --with-systemd
802    
803  make %{?_smp_mflags}  make %{?_smp_mflags}
# Line 792  make %{?_smp_mflags} install DESTDIR=%{b Line 809  make %{?_smp_mflags} install DESTDIR=%{b
809  install -d -m 0755 %{buildroot}/usr/{sbin,bin}  install -d -m 0755 %{buildroot}/usr/{sbin,bin}
810  install -d -m 0755 %{buildroot}%{_libdir}/security  install -d -m 0755 %{buildroot}%{_libdir}/security
811  install -d -m 0755 %{buildroot}/var/lib/samba  install -d -m 0755 %{buildroot}/var/lib/samba
812    install -d -m 0755 %{buildroot}/var/lib/samba/drivers
813    install -d -m 0755 %{buildroot}/var/lib/samba/lock
814  install -d -m 0755 %{buildroot}/var/lib/samba/private  install -d -m 0755 %{buildroot}/var/lib/samba/private
 install -d -m 0755 %{buildroot}/var/lib/samba/winbindd_privileged  
815  install -d -m 0755 %{buildroot}/var/lib/samba/scripts  install -d -m 0755 %{buildroot}/var/lib/samba/scripts
816  install -d -m 0755 %{buildroot}/var/lib/samba/sysvol  install -d -m 0755 %{buildroot}/var/lib/samba/sysvol
817    install -d -m 0755 %{buildroot}/var/lib/samba/winbindd_privileged
818  install -d -m 0755 %{buildroot}/var/log/samba/old  install -d -m 0755 %{buildroot}/var/log/samba/old
819  install -d -m 0755 %{buildroot}/var/spool/samba  install -d -m 0755 %{buildroot}/var/spool/samba
820  install -d -m 0755 %{buildroot}/var/run/samba  install -d -m 0755 %{buildroot}/var/run/samba
821  install -d -m 0755 %{buildroot}/var/run/winbindd  install -d -m 0755 %{buildroot}/var/run/winbindd
822  install -d -m 0755 %{buildroot}/%{_libdir}/samba  install -d -m 0755 %{buildroot}/%{_libdir}/samba
823    install -d -m 0755 %{buildroot}/%{_libdir}/samba/ldb
824  install -d -m 0755 %{buildroot}/%{_libdir}/pkgconfig  install -d -m 0755 %{buildroot}/%{_libdir}/pkgconfig
825    
826  # Move libwbclient.so* into private directory, it cannot be just libdir/samba  # Move libwbclient.so* into private directory, it cannot be just libdir/samba
# Line 813  then Line 833  then
833      exit -1      exit -1
834  fi  fi
835    
836    
837    touch %{buildroot}%{_libexecdir}/samba/cups_backend_smb
838    
839  # Install other stuff  # Install other stuff
840  install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d  install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
841  install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/samba  install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/samba
842    
843  install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/samba/smb.conf  install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/samba/smb.conf
844    install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/samba/smb.conf.example
845    
846  install -d -m 0755 %{buildroot}%{_sysconfdir}/security  install -d -m 0755 %{buildroot}%{_sysconfdir}/security
847  install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/security/pam_winbind.conf  install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/security/pam_winbind.conf
# Line 833  install -m644 examples/LDAP/samba.schema Line 857  install -m644 examples/LDAP/samba.schema
857    
858  install -m 0744 packaging/printing/smbprint %{buildroot}%{_bindir}/smbprint  install -m 0744 packaging/printing/smbprint %{buildroot}%{_bindir}/smbprint
859    
860  install -d -m 0755 %{buildroot}%{_prefix}/lib/tmpfiles.d/  install -d -m 0755 %{buildroot}%{_tmpfilesdir}
861  install -m644 packaging/systemd/samba.conf.tmp %{buildroot}%{_prefix}/lib/tmpfiles.d/samba.conf  install -m644 packaging/systemd/samba.conf.tmp %{buildroot}%{_tmpfilesdir}/samba.conf
862  # create /run/samba too.  # create /run/samba too.
863  echo "d /run/samba  755 root root" >> %{buildroot}%{_prefix}/lib/tmpfiles.d/samba.conf  echo "d /run/samba  755 root root" >> %{buildroot}%{_tmpfilesdir}/samba.conf
864  %if %with_clustering_support  %if %with_clustering_support
865  echo "d /run/ctdb 755 root root" >> %{buildroot}%{_tmpfilesdir}/ctdb.conf  echo "d /run/ctdb 755 root root" >> %{buildroot}%{_tmpfilesdir}/ctdb.conf
866  %endif  %endif
# Line 855  install -m 0644 %{SOURCE200} packaging/R Line 879  install -m 0644 %{SOURCE200} packaging/R
879  %endif  %endif
880    
881  install -d -m 0755 %{buildroot}%{_unitdir}  install -d -m 0755 %{buildroot}%{_unitdir}
882  for i in nmb smb winbind samba; do  for i in nmb smb winbind ; do
883      cat packaging/systemd/$i.service | sed -e 's@\[Service\]@[Service]\nEnvironment=KRB5CCNAME=/run/samba/krb5cc_samba@g' >tmp$i.service      cat packaging/systemd/$i.service | sed -e 's@\[Service\]@[Service]\nEnvironment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba@g' >tmp$i.service
884      install -m 0644 tmp$i.service %{buildroot}%{_unitdir}/$i.service      install -m 0644 tmp$i.service %{buildroot}%{_unitdir}/$i.service
885  done  done
886  %if %with_clustering_support  %if %with_clustering_support
# Line 872  install -m 0755 packaging/NetworkManager Line 896  install -m 0755 packaging/NetworkManager
896  install -d -m 0755 %{buildroot}%{_libdir}/krb5/plugins/libkrb5  install -d -m 0755 %{buildroot}%{_libdir}/krb5/plugins/libkrb5
897  touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so  touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so
898    
899    %if ! %with_dc
900    for i in %{_libdir}/samba/libdfs-server-ad-samba4.so \
901            %{_libdir}/samba/libdnsserver-common-samba4.so \
902            %{_mandir}/man8/samba.8 \
903            %{_mandir}/man8/samba-tool.8 \
904            %{_libdir}/samba/ldb/ildap.so \
905            %{_libdir}/samba/ldb/ldbsamba_extensions.so ; do
906            rm -f %{buildroot}$i
907    done
908    %endif
909    
910  # This makes the right links, as rpmlint requires that  # This makes the right links, as rpmlint requires that
911  # the ldconfig-created links be recorded in the RPM.  # the ldconfig-created links be recorded in the RPM.
912  /sbin/ldconfig -N -n %{buildroot}%{_libdir}  /sbin/ldconfig -N -n %{buildroot}%{_libdir}
# Line 895  TDB_NO_FSYNC=1 make %{?_smp_mflags} test Line 930  TDB_NO_FSYNC=1 make %{?_smp_mflags} test
930    
931  %post common  %post common
932  /sbin/ldconfig  /sbin/ldconfig
933  /usr/bin/systemd-tmpfiles --create %{_prefix}/lib/tmpfiles.d/samba.conf  /usr/bin/systemd-tmpfiles --create %{_tmpfilesdir}/samba.conf
934  if [ -d /var/cache/samba ]; then  if [ -d /var/cache/samba ]; then
935      mv /var/cache/samba/netsamlogon_cache.tdb /var/lib/samba/ 2>/dev/null      mv /var/cache/samba/netsamlogon_cache.tdb /var/lib/samba/ 2>/dev/null
936      mv /var/cache/samba/winbindd_cache.tdb /var/lib/samba/ 2>/dev/null      mv /var/cache/samba/winbindd_cache.tdb /var/lib/samba/ 2>/dev/null
# Line 903  if [ -d /var/cache/samba ]; then Line 938  if [ -d /var/cache/samba ]; then
938      ln -sf /var/cache/samba /var/lib/samba/      ln -sf /var/cache/samba /var/lib/samba/
939  fi  fi
940    
941  %postun common -p /sbin/ldconfig  %post client
942    %{_sbindir}/update-alternatives --install %{_libexecdir}/samba/cups_backend_smb \
943        cups_backend_smb \
944        %{_bindir}/smbspool 10
945    
946    %postun client
947    if [ $1 -eq 0 ] ; then
948        %{_sbindir}/update-alternatives --remove cups_backend_smb %{_bindir}/smbspool
949    fi
950    
951    %post client-libs -p /sbin/ldconfig
952    
953    %postun client-libs -p /sbin/ldconfig
954    
955    %post common-libs -p /sbin/ldconfig
956    
957    %postun common-libs -p /sbin/ldconfig
958    
959  %if %with_dc  %if %with_dc
960  %post dc-libs -p /sbin/ldconfig  %post dc-libs -p /sbin/ldconfig
961    
962  %postun dc-libs -p /sbin/ldconfig  %postun dc-libs -p /sbin/ldconfig
963  %endif # with_dc  %endif
964    
965    %post krb5-printing
966    %{_sbindir}/update-alternatives --install %{_libexecdir}/samba/cups_backend_smb \
967            cups_backend_smb \
968            %{_libexecdir}/samba/smbspool_krb5_wrapper 50
969    
970    %postun krb5-printing
971    if [ $1 -eq 0 ] ; then
972            %{_sbindir}/update-alternatives --remove cups_backend_smb %{_libexecdir}/samba/smbspool_krb5_wrapper
973    fi
974    
975  %post libs -p /sbin/ldconfig  %post libs -p /sbin/ldconfig
976    
# Line 919  fi Line 980  fi
980  %post -n libsmbclient -p /sbin/ldconfig  %post -n libsmbclient -p /sbin/ldconfig
981    
982  %postun -n libsmbclient -p /sbin/ldconfig  %postun -n libsmbclient -p /sbin/ldconfig
983  %endif # with_libsmbclient  %endif
984    
985  %if %with_libwbclient  %if %with_libwbclient
986  %posttrans -n libwbclient  %posttrans -n libwbclient
# Line 990  fi Line 1051  fi
1051    
1052  %if %with_clustering_support  %if %with_clustering_support
1053  %post -n ctdb  %post -n ctdb
1054  /usr/bin/systemd-tmpfiles --create %{_prefix}/lib/tmpfiles.d/ctdb.conf  /usr/bin/systemd-tmpfiles --create %{_tmpfilesdir}/ctdb.conf
1055  %systemd_post ctdb.service  %systemd_post ctdb.service
1056    
1057  %preun -n ctdb  %preun -n ctdb
# Line 1024  rm -rf %{buildroot} Line 1085  rm -rf %{buildroot}
1085  %{_libdir}/samba/vfs/acl_xattr.so  %{_libdir}/samba/vfs/acl_xattr.so
1086  %{_libdir}/samba/vfs/aio_fork.so  %{_libdir}/samba/vfs/aio_fork.so
1087  %{_libdir}/samba/vfs/aio_linux.so  %{_libdir}/samba/vfs/aio_linux.so
 %{_libdir}/samba/vfs/aio_posix.so  
1088  %{_libdir}/samba/vfs/aio_pthread.so  %{_libdir}/samba/vfs/aio_pthread.so
1089  %{_libdir}/samba/vfs/audit.so  %{_libdir}/samba/vfs/audit.so
1090  %{_libdir}/samba/vfs/btrfs.so  %{_libdir}/samba/vfs/btrfs.so
# Line 1043  rm -rf %{buildroot} Line 1103  rm -rf %{buildroot}
1103  %{_libdir}/samba/vfs/linux_xfs_sgid.so  %{_libdir}/samba/vfs/linux_xfs_sgid.so
1104  %{_libdir}/samba/vfs/media_harmony.so  %{_libdir}/samba/vfs/media_harmony.so
1105  %{_libdir}/samba/vfs/netatalk.so  %{_libdir}/samba/vfs/netatalk.so
1106    %{_libdir}/samba/vfs/offline.so
1107  %{_libdir}/samba/vfs/preopen.so  %{_libdir}/samba/vfs/preopen.so
1108  %{_libdir}/samba/vfs/readahead.so  %{_libdir}/samba/vfs/readahead.so
1109  %{_libdir}/samba/vfs/readonly.so  %{_libdir}/samba/vfs/readonly.so
1110  %{_libdir}/samba/vfs/recycle.so  %{_libdir}/samba/vfs/recycle.so
 %{_libdir}/samba/vfs/scannedonly.so  
1111  %{_libdir}/samba/vfs/shadow_copy.so  %{_libdir}/samba/vfs/shadow_copy.so
1112  %{_libdir}/samba/vfs/shadow_copy2.so  %{_libdir}/samba/vfs/shadow_copy2.so
1113  %{_libdir}/samba/vfs/smb_traffic_analyzer.so  %{_libdir}/samba/vfs/shell_snap.so
1114  %{_libdir}/samba/vfs/snapper.so  %{_libdir}/samba/vfs/snapper.so
1115  %{_libdir}/samba/vfs/streams_depot.so  %{_libdir}/samba/vfs/streams_depot.so
1116  %{_libdir}/samba/vfs/streams_xattr.so  %{_libdir}/samba/vfs/streams_xattr.so
1117  %{_libdir}/samba/vfs/syncops.so  %{_libdir}/samba/vfs/syncops.so
1118  %{_libdir}/samba/vfs/time_audit.so  %{_libdir}/samba/vfs/time_audit.so
1119    %{_libdir}/samba/vfs/unityed_media.so
1120  %{_libdir}/samba/vfs/worm.so  %{_libdir}/samba/vfs/worm.so
1121  %{_libdir}/samba/vfs/xattr_tdb.so  %{_libdir}/samba/vfs/xattr_tdb.so
1122    
# Line 1063  rm -rf %{buildroot} Line 1124  rm -rf %{buildroot}
1124  %{_unitdir}/smb.service  %{_unitdir}/smb.service
1125  %attr(1777,root,root) %dir /var/spool/samba  %attr(1777,root,root) %dir /var/spool/samba
1126  %dir %{_sysconfdir}/openldap/schema  %dir %{_sysconfdir}/openldap/schema
1127  %{_sysconfdir}/openldap/schema/samba.schema  %config %{_sysconfdir}/openldap/schema/samba.schema
1128  %{_sysconfdir}/pam.d/samba  %config(noreplace) %{_sysconfdir}/pam.d/samba
1129  %{_mandir}/man1/smbstatus.1*  %{_mandir}/man1/smbstatus.1*
1130  %{_mandir}/man8/eventlogadm.8*  %{_mandir}/man8/eventlogadm.8*
1131  %{_mandir}/man8/smbd.8*  %{_mandir}/man8/smbd.8*
1132  %{_mandir}/man8/nmbd.8*  %{_mandir}/man8/nmbd.8*
 #%{_mandir}/man8/vfs_*.8*  
1133  %{_mandir}/man8/vfs_acl_tdb.8*  %{_mandir}/man8/vfs_acl_tdb.8*
1134  %{_mandir}/man8/vfs_acl_xattr.8*  %{_mandir}/man8/vfs_acl_xattr.8*
1135  %{_mandir}/man8/vfs_aio_fork.8*  %{_mandir}/man8/vfs_aio_fork.8*
# Line 1093  rm -rf %{buildroot} Line 1153  rm -rf %{buildroot}
1153  %{_mandir}/man8/vfs_linux_xfs_sgid.8*  %{_mandir}/man8/vfs_linux_xfs_sgid.8*
1154  %{_mandir}/man8/vfs_media_harmony.8*  %{_mandir}/man8/vfs_media_harmony.8*
1155  %{_mandir}/man8/vfs_netatalk.8*  %{_mandir}/man8/vfs_netatalk.8*
1156  %{_mandir}/man8/vfs_notify_fam.8*  %{_mandir}/man8/vfs_offline.8*
1157  %{_mandir}/man8/vfs_prealloc.8*  %{_mandir}/man8/vfs_prealloc.8*
1158  %{_mandir}/man8/vfs_preopen.8*  %{_mandir}/man8/vfs_preopen.8*
1159  %{_mandir}/man8/vfs_readahead.8*  %{_mandir}/man8/vfs_readahead.8*
1160  %{_mandir}/man8/vfs_readonly.8*  %{_mandir}/man8/vfs_readonly.8*
1161  %{_mandir}/man8/vfs_recycle.8*  %{_mandir}/man8/vfs_recycle.8*
 %{_mandir}/man8/vfs_scannedonly.8*  
1162  %{_mandir}/man8/vfs_shadow_copy.8*  %{_mandir}/man8/vfs_shadow_copy.8*
1163  %{_mandir}/man8/vfs_shadow_copy2.8*  %{_mandir}/man8/vfs_shadow_copy2.8*
1164  %{_mandir}/man8/vfs_smb_traffic_analyzer.8*  %{_mandir}/man8/vfs_shell_snap.8*
1165  %{_mandir}/man8/vfs_snapper.8*  %{_mandir}/man8/vfs_snapper.8*
1166  %{_mandir}/man8/vfs_streams_depot.8*  %{_mandir}/man8/vfs_streams_depot.8*
1167  %{_mandir}/man8/vfs_streams_xattr.8*  %{_mandir}/man8/vfs_streams_xattr.8*
1168  %{_mandir}/man8/vfs_syncops.8*  %{_mandir}/man8/vfs_syncops.8*
1169  %{_mandir}/man8/vfs_time_audit.8*  %{_mandir}/man8/vfs_time_audit.8*
1170  %{_mandir}/man8/vfs_tsmsm.8*  %{_mandir}/man8/vfs_tsmsm.8*
1171    %{_mandir}/man8/vfs_unityed_media.8*
1172  %{_mandir}/man8/vfs_worm.8*  %{_mandir}/man8/vfs_worm.8*
1173  %{_mandir}/man8/vfs_xattr_tdb.8*  %{_mandir}/man8/vfs_xattr_tdb.8*
1174    
# Line 1120  rm -rf %{buildroot} Line 1180  rm -rf %{buildroot}
1180  %exclude %{_mandir}/man8/vfs_ceph.8*  %exclude %{_mandir}/man8/vfs_ceph.8*
1181  %endif  %endif
1182    
1183    %dir /var/lib/samba/drivers
1184    %dir /var/lib/samba/lock
1185    
1186  ### CLIENT  ### CLIENT
1187  %files client  %files client
1188  %defattr(-,root,root)  %defattr(-,root,root)
# Line 1138  rm -rf %{buildroot} Line 1201  rm -rf %{buildroot}
1201  %{_bindir}/smbclient  %{_bindir}/smbclient
1202  %{_bindir}/smbcquotas  %{_bindir}/smbcquotas
1203  %{_bindir}/smbget  %{_bindir}/smbget
 #%{_bindir}/smbiconv  
1204  %{_bindir}/smbprint  %{_bindir}/smbprint
1205  %{_bindir}/smbspool  %{_bindir}/smbspool
 %{_bindir}/smbta-util  
1206  %{_bindir}/smbtar  %{_bindir}/smbtar
1207  %{_bindir}/smbtree  %{_bindir}/smbtree
1208    %dir %{_libexecdir}/samba
1209    %ghost %{_libexecdir}/samba/cups_backend_smb
1210  %{_mandir}/man1/dbwrap_tool.1*  %{_mandir}/man1/dbwrap_tool.1*
1211  %{_mandir}/man1/nmblookup.1*  %{_mandir}/man1/nmblookup.1*
1212  %{_mandir}/man1/oLschema2ldif.1*  %{_mandir}/man1/oLschema2ldif.1*
# Line 1159  rm -rf %{buildroot} Line 1222  rm -rf %{buildroot}
1222  %{_mandir}/man1/smbclient.1*  %{_mandir}/man1/smbclient.1*
1223  %{_mandir}/man1/smbcquotas.1*  %{_mandir}/man1/smbcquotas.1*
1224  %{_mandir}/man1/smbget.1*  %{_mandir}/man1/smbget.1*
 %{_mandir}/man3/ntdb.3*  
1225  %{_mandir}/man5/smbgetrc.5*  %{_mandir}/man5/smbgetrc.5*
1226  %{_mandir}/man1/smbtar.1*  %{_mandir}/man1/smbtar.1*
1227  %{_mandir}/man1/smbtree.1*  %{_mandir}/man1/smbtree.1*
1228  %{_mandir}/man8/ntdbbackup.8*  %{_mandir}/man8/cifsdd.8.*
 %{_mandir}/man8/ntdbdump.8*  
 %{_mandir}/man8/ntdbrestore.8*  
 %{_mandir}/man8/ntdbtool.8*  
1229  %{_mandir}/man8/samba-regedit.8*  %{_mandir}/man8/samba-regedit.8*
1230  %{_mandir}/man8/smbspool.8*  %{_mandir}/man8/smbspool.8*
 %{_mandir}/man8/smbta-util.8*  
   
 ## we don't build it for now  
 %if %{with_internal_ntdb}  
 %{_bindir}/ntdbbackup  
 %{_bindir}/ntdbdump  
 %{_bindir}/ntdbrestore  
 %{_bindir}/ntdbtool  
 %endif  
1231    
1232  %if %{with_internal_tdb}  %if %{with_internal_tdb}
1233  %{_bindir}/tdbbackup  %{_bindir}/tdbbackup
# Line 1197  rm -rf %{buildroot} Line 1247  rm -rf %{buildroot}
1247  %{_bindir}/ldbmodify  %{_bindir}/ldbmodify
1248  %{_bindir}/ldbrename  %{_bindir}/ldbrename
1249  %{_bindir}/ldbsearch  %{_bindir}/ldbsearch
1250  %{_libdir}/samba/libldb-cmdline.so  %{_libdir}/samba/libldb-cmdline-samba4.so
 %dir %{_libdir}/samba/ldb  
1251  %{_libdir}/samba/ldb/asq.so  %{_libdir}/samba/ldb/asq.so
1252  %{_libdir}/samba/ldb/paged_results.so  %{_libdir}/samba/ldb/paged_results.so
1253  %{_libdir}/samba/ldb/paged_searches.so  %{_libdir}/samba/ldb/paged_searches.so
# Line 1219  rm -rf %{buildroot} Line 1268  rm -rf %{buildroot}
1268  %files client-libs  %files client-libs
1269  %defattr(-,root,root)  %defattr(-,root,root)
1270  %{_libdir}/libdcerpc-binding.so.*  %{_libdir}/libdcerpc-binding.so.*
 %{_libdir}/libgensec.so.*  
1271  %{_libdir}/libndr.so.*  %{_libdir}/libndr.so.*
1272  %{_libdir}/libndr-krb5pac.so.*  %{_libdir}/libndr-krb5pac.so.*
1273  %{_libdir}/libndr-nbt.so.*  %{_libdir}/libndr-nbt.so.*
1274  %{_libdir}/libndr-standard.so.*  %{_libdir}/libndr-standard.so.*
1275  %{_libdir}/libnetapi.so.*  %{_libdir}/libnetapi.so.*
1276  %{_libdir}/libsamba-credentials.so.*  %{_libdir}/libsamba-credentials.so.*
1277    %{_libdir}/libsamba-errors.so.*
1278  %{_libdir}/libsamba-passdb.so.*  %{_libdir}/libsamba-passdb.so.*
1279  %{_libdir}/libsamba-util.so.*  %{_libdir}/libsamba-util.so.*
1280  %{_libdir}/libsamba-hostconfig.so.*  %{_libdir}/libsamba-hostconfig.so.*
1281  %{_libdir}/libsamdb.so.*  %{_libdir}/libsamdb.so.*
1282  %{_libdir}/libsmbconf.so.*  %{_libdir}/libsmbconf.so.*
 %{_libdir}/libsmbclient-raw.so.*  
1283  %{_libdir}/libsmbldap.so.*  %{_libdir}/libsmbldap.so.*
1284    %{_libdir}/libtevent-unix-util.so.*
1285  %{_libdir}/libtevent-util.so.*  %{_libdir}/libtevent-util.so.*
 %{_libdir}/libregistry.so.*  
1286  %{_libdir}/libdcerpc.so.*  %{_libdir}/libdcerpc.so.*
1287    
1288  %dir %{_libdir}/samba  %dir %{_libdir}/samba
# Line 1245  rm -rf %{buildroot} Line 1293  rm -rf %{buildroot}
1293  %{_libdir}/samba/libauth-sam-reply-samba4.so  %{_libdir}/samba/libauth-sam-reply-samba4.so
1294  %{_libdir}/samba/libauth-samba4.so  %{_libdir}/samba/libauth-samba4.so
1295  %{_libdir}/samba/libauthkrb5-samba4.so  %{_libdir}/samba/libauthkrb5-samba4.so
 %{_libdir}/samba/libccan-samba4.so  
1296  %{_libdir}/samba/libcli-cldap-samba4.so  %{_libdir}/samba/libcli-cldap-samba4.so
1297  %{_libdir}/samba/libcli-ldap-common-samba4.so  %{_libdir}/samba/libcli-ldap-common-samba4.so
1298  %{_libdir}/samba/libcli-ldap-samba4.so  %{_libdir}/samba/libcli-ldap-samba4.so
# Line 1256  rm -rf %{buildroot} Line 1303  rm -rf %{buildroot}
1303  %{_libdir}/samba/libcmdline-credentials-samba4.so  %{_libdir}/samba/libcmdline-credentials-samba4.so
1304  %{_libdir}/samba/libdbwrap-samba4.so  %{_libdir}/samba/libdbwrap-samba4.so
1305  %{_libdir}/samba/libdcerpc-samba-samba4.so  %{_libdir}/samba/libdcerpc-samba-samba4.so
 %{_libdir}/samba/liberrors-samba4.so  
1306  %{_libdir}/samba/libevents-samba4.so  %{_libdir}/samba/libevents-samba4.so
1307  %{_libdir}/samba/libflag-mapping-samba4.so  %{_libdir}/samba/libflag-mapping-samba4.so
1308    %{_libdir}/samba/libgenrand-samba4.so
1309    %{_libdir}/samba/libgensec-samba4.so
1310  %{_libdir}/samba/libgpo-samba4.so  %{_libdir}/samba/libgpo-samba4.so
1311  %{_libdir}/samba/libgse-samba4.so  %{_libdir}/samba/libgse-samba4.so
1312  %{_libdir}/samba/libhttp-samba4.so  %{_libdir}/samba/libhttp-samba4.so
1313  %{_libdir}/samba/libinterfaces-samba4.so  %{_libdir}/samba/libinterfaces-samba4.so
1314    %{_libdir}/samba/libiov-buf-samba4.so
1315  %{_libdir}/samba/libkrb5samba-samba4.so  %{_libdir}/samba/libkrb5samba-samba4.so
1316  %{_libdir}/samba/libldbsamba-samba4.so  %{_libdir}/samba/libldbsamba-samba4.so
1317  %{_libdir}/samba/liblibcli-lsa3-samba4.so  %{_libdir}/samba/liblibcli-lsa3-samba4.so
1318  %{_libdir}/samba/liblibcli-netlogon3-samba4.so  %{_libdir}/samba/liblibcli-netlogon3-samba4.so
1319  %{_libdir}/samba/liblibsmb-samba4.so  %{_libdir}/samba/liblibsmb-samba4.so
1320    %{_libdir}/samba/libmessages-dgm-samba4.so
1321    %{_libdir}/samba/libmessages-util-samba4.so
1322    %{_libdir}/samba/libmsghdr-samba4.so
1323  %{_libdir}/samba/libmsrpc3-samba4.so  %{_libdir}/samba/libmsrpc3-samba4.so
1324  %{_libdir}/samba/libndr-samba-samba4.so  %{_libdir}/samba/libndr-samba-samba4.so
1325  %{_libdir}/samba/libndr-samba4.so  %{_libdir}/samba/libndr-samba4.so
# Line 1276  rm -rf %{buildroot} Line 1328  rm -rf %{buildroot}
1328  %{_libdir}/samba/libnpa-tstream-samba4.so  %{_libdir}/samba/libnpa-tstream-samba4.so
1329  %{_libdir}/samba/libprinting-migrate-samba4.so  %{_libdir}/samba/libprinting-migrate-samba4.so
1330  %{_libdir}/samba/libreplace-samba4.so  %{_libdir}/samba/libreplace-samba4.so
1331    %{_libdir}/samba/libregistry-samba4.so
1332  %{_libdir}/samba/libsamba-cluster-support-samba4.so  %{_libdir}/samba/libsamba-cluster-support-samba4.so
1333  %{_libdir}/samba/libsamba-debug-samba4.so  %{_libdir}/samba/libsamba-debug-samba4.so
1334  %{_libdir}/samba/libsamba-modules-samba4.so  %{_libdir}/samba/libsamba-modules-samba4.so
# Line 1284  rm -rf %{buildroot} Line 1337  rm -rf %{buildroot}
1337  %{_libdir}/samba/libsamba3-util-samba4.so  %{_libdir}/samba/libsamba3-util-samba4.so
1338  %{_libdir}/samba/libsamdb-common-samba4.so  %{_libdir}/samba/libsamdb-common-samba4.so
1339  %{_libdir}/samba/libsecrets3-samba4.so  %{_libdir}/samba/libsecrets3-samba4.so
1340    %{_libdir}/samba/libserver-id-db-samba4.so
1341  %{_libdir}/samba/libserver-role-samba4.so  %{_libdir}/samba/libserver-role-samba4.so
1342  %{_libdir}/samba/libsmb-transport-samba4.so  %{_libdir}/samba/libsmb-transport-samba4.so
1343    %{_libdir}/samba/libsmbclient-raw-samba4.so
1344  %{_libdir}/samba/libsmbd-base-samba4.so  %{_libdir}/samba/libsmbd-base-samba4.so
1345  %{_libdir}/samba/libsmbd-conn-samba4.so  %{_libdir}/samba/libsmbd-conn-samba4.so
1346  %{_libdir}/samba/libsmbd-shim-samba4.so  %{_libdir}/samba/libsmbd-shim-samba4.so
1347  %{_libdir}/samba/libsmbldaphelper-samba4.so  %{_libdir}/samba/libsmbldaphelper-samba4.so
1348  %{_libdir}/samba/libsmbregistry-samba4.so  %{_libdir}/samba/libsmbregistry-samba4.so
1349    %{_libdir}/samba/libsys-rw-samba4.so
1350  %{_libdir}/samba/libsocket-blocking-samba4.so  %{_libdir}/samba/libsocket-blocking-samba4.so
1351    %{_libdir}/samba/libtalloc-report-samba4.so
1352  %{_libdir}/samba/libtdb-wrap-samba4.so  %{_libdir}/samba/libtdb-wrap-samba4.so
1353    %{_libdir}/samba/libtime-basic-samba4.so
1354    %{_libdir}/samba/libtorture-samba4.so
1355  %{_libdir}/samba/libtrusts-util-samba4.so  %{_libdir}/samba/libtrusts-util-samba4.so
1356  %{_libdir}/samba/libutil-cmdline-samba4.so  %{_libdir}/samba/libutil-cmdline-samba4.so
 %{_libdir}/samba/libutil-ntdb-samba4.so  
1357  %{_libdir}/samba/libutil-reg-samba4.so  %{_libdir}/samba/libutil-reg-samba4.so
1358  %{_libdir}/samba/libutil-setid-samba4.so  %{_libdir}/samba/libutil-setid-samba4.so
1359  %{_libdir}/samba/libutil-tdb-samba4.so  %{_libdir}/samba/libutil-tdb-samba4.so
# Line 1310  rm -rf %{buildroot} Line 1368  rm -rf %{buildroot}
1368  %{_mandir}/man7/libsmbclient.7*  %{_mandir}/man7/libsmbclient.7*
1369  %endif # ! with_libsmbclient  %endif # ! with_libsmbclient
1370    
 %if %{with_internal_ntdb}  
 %{_libdir}/samba/libntdb.so.1  
 %{_libdir}/samba/libntdb.so.%{ntdb_version}  
 %endif  
   
1371  %if %{with_internal_talloc}  %if %{with_internal_talloc}
1372  %{_libdir}/samba/libtalloc.so.2  %{_libdir}/samba/libtalloc.so.2
1373  %{_libdir}/samba/libtalloc.so.%{talloc_version}  %{_libdir}/samba/libtalloc.so.%{talloc_version}
# Line 1336  rm -rf %{buildroot} Line 1389  rm -rf %{buildroot}
1389  %if %{with_internal_ldb}  %if %{with_internal_ldb}
1390  %{_libdir}/samba/libldb.so.1  %{_libdir}/samba/libldb.so.1
1391  %{_libdir}/samba/libldb.so.%{ldb_version}  %{_libdir}/samba/libldb.so.%{ldb_version}
1392    %{_libdir}/samba/libpyldb-util.so.1
1393    %{_libdir}/samba/libpyldb-util.so.%{ldb_version}
1394  %{_mandir}/man3/ldb.3.gz  %{_mandir}/man3/ldb.3.gz
1395  %endif  %endif
1396    
1397  ### COMMON  ### COMMON
1398  %files common  %files common
1399  %defattr(-,root,root)  %defattr(-,root,root)
1400  %{_prefix}/lib/tmpfiles.d/samba.conf  %{_tmpfilesdir}/samba.conf
 %{_datadir}/samba/codepages  
1401  %dir %{_sysconfdir}/logrotate.d/  %dir %{_sysconfdir}/logrotate.d/
1402  %config(noreplace) %{_sysconfdir}/logrotate.d/samba  %config(noreplace) %{_sysconfdir}/logrotate.d/samba
1403  %attr(0700,root,root) %dir /var/log/samba  %attr(0700,root,root) %dir /var/log/samba
1404  %attr(0700,root,root) %dir /var/log/samba/old  %attr(0700,root,root) %dir /var/log/samba/old
1405  %ghost %dir /var/run/samba  %ghost %dir /var/run/samba
1406  %ghost %dir /var/run/winbindd  %ghost %dir /var/run/winbindd
1407    %dir /var/lib/samba
1408  %attr(700,root,root) %dir /var/lib/samba/private  %attr(700,root,root) %dir /var/lib/samba/private
1409  %attr(755,root,root) %dir %{_sysconfdir}/samba  %attr(755,root,root) %dir %{_sysconfdir}/samba
1410  %config(noreplace) %{_sysconfdir}/samba/smb.conf  %config(noreplace) %{_sysconfdir}/samba/smb.conf
1411    %{_sysconfdir}/samba/smb.conf.example
1412  %config(noreplace) %{_sysconfdir}/samba/lmhosts  %config(noreplace) %{_sysconfdir}/samba/lmhosts
1413  %config(noreplace) %{_sysconfdir}/sysconfig/samba  %config(noreplace) %{_sysconfdir}/sysconfig/samba
1414  %{_mandir}/man5/lmhosts.5*  %{_mandir}/man5/lmhosts.5*
# Line 1366  rm -rf %{buildroot} Line 1422  rm -rf %{buildroot}
1422  # common libraries  # common libraries
1423  %{_libdir}/samba/libpopt-samba3-samba4.so  %{_libdir}/samba/libpopt-samba3-samba4.so
1424    
1425    # We need this directory here because the net tool is looking
1426    # for it.
1427    %dir %{_libdir}/samba/ldb
1428    
1429  %dir %{_libdir}/samba/pdb  %dir %{_libdir}/samba/pdb
1430  %{_libdir}/samba/pdb/ldapsam.so  %{_libdir}/samba/pdb/ldapsam.so
1431  %{_libdir}/samba/pdb/smbpasswd.so  %{_libdir}/samba/pdb/smbpasswd.so
1432  %{_libdir}/samba/pdb/tdbsam.so  %{_libdir}/samba/pdb/tdbsam.so
1433  %{_libdir}/samba/pdb/wbc_sam.so  %{_libdir}/samba/pdb/wbc_sam.so
1434    
 %if %with_pam_smbpass  
 %{_libdir}/security/pam_smbpass.so  
 %endif  
   
1435  %files common-tools  %files common-tools
1436  %defattr(-,root,root)  %defattr(-,root,root)
1437  %{_bindir}/net  %{_bindir}/net
# Line 1402  rm -rf %{buildroot} Line 1458  rm -rf %{buildroot}
1458  %{_sbindir}/samba_dnsupdate  %{_sbindir}/samba_dnsupdate
1459  %{_sbindir}/samba_spnupdate  %{_sbindir}/samba_spnupdate
1460  %{_sbindir}/samba_upgradedns  %{_sbindir}/samba_upgradedns
 %{_libdir}/mit_samba.so  
1461  %{_libdir}/samba/auth/samba4.so  %{_libdir}/samba/auth/samba4.so
1462  %{_libdir}/samba/bind9/dlz_bind9.so  %{_libdir}/samba/bind9/dlz_bind9.so
1463  %{_libdir}/samba/bind9/dlz_bind9_10.so  %{_libdir}/samba/bind9/dlz_bind9_10.so
# Line 1418  rm -rf %{buildroot} Line 1473  rm -rf %{buildroot}
1473  %{_libdir}/samba/ldb/anr.so  %{_libdir}/samba/ldb/anr.so
1474  %{_libdir}/samba/ldb/descriptor.so  %{_libdir}/samba/ldb/descriptor.so
1475  %{_libdir}/samba/ldb/dirsync.so  %{_libdir}/samba/ldb/dirsync.so
1476    %{_libdir}/samba/ldb/dns_notify.so
1477  %{_libdir}/samba/ldb/extended_dn_in.so  %{_libdir}/samba/ldb/extended_dn_in.so
1478  %{_libdir}/samba/ldb/extended_dn_out.so  %{_libdir}/samba/ldb/extended_dn_out.so
1479  %{_libdir}/samba/ldb/extended_dn_store.so  %{_libdir}/samba/ldb/extended_dn_store.so
# Line 1451  rm -rf %{buildroot} Line 1507  rm -rf %{buildroot}
1507  %{_libdir}/samba/ldb/simple_ldap_map.so  %{_libdir}/samba/ldb/simple_ldap_map.so
1508  %{_libdir}/samba/ldb/subtree_delete.so  %{_libdir}/samba/ldb/subtree_delete.so
1509  %{_libdir}/samba/ldb/subtree_rename.so  %{_libdir}/samba/ldb/subtree_rename.so
1510    %{_libdir}/samba/ldb/tombstone_reanimate.so
1511  %{_libdir}/samba/ldb/update_keytab.so  %{_libdir}/samba/ldb/update_keytab.so
1512  %{_libdir}/samba/ldb/wins_ldb.so  %{_libdir}/samba/ldb/wins_ldb.so
1513  %{_libdir}/samba/vfs/posix_eadb.so  %{_libdir}/samba/vfs/posix_eadb.so
# Line 1458  rm -rf %{buildroot} Line 1515  rm -rf %{buildroot}
1515  %{_datadir}/samba/setup  %{_datadir}/samba/setup
1516  %{_mandir}/man8/samba.8*  %{_mandir}/man8/samba.8*
1517  %{_mandir}/man8/samba-tool.8*  %{_mandir}/man8/samba-tool.8*
 %{_unitdir}/samba.service  
1518  %else # with_dc  %else # with_dc
1519  %doc packaging/README.dc  %doc packaging/README.dc
 %exclude %{_mandir}/man8/samba.8*  
 %exclude %{_mandir}/man8/samba-tool.8*  
 %exclude %{_libdir}/samba/ldb/ildap.so  
 %exclude %{_libdir}/samba/ldb/ldbsamba_extensions.so  
   
1520  %endif # with_dc  %endif # with_dc
1521    
1522  ### DC-LIBS  ### DC-LIBS
# Line 1475  rm -rf %{buildroot} Line 1526  rm -rf %{buildroot}
1526  %{_libdir}/samba/libprocess-model-samba4.so  %{_libdir}/samba/libprocess-model-samba4.so
1527  %{_libdir}/samba/libservice-samba4.so  %{_libdir}/samba/libservice-samba4.so
1528  %dir %{_libdir}/samba/process_model  %dir %{_libdir}/samba/process_model
 %{_libdir}/samba/process_model/onefork.so  
 %{_libdir}/samba/process_model/prefork.so  
1529  %{_libdir}/samba/process_model/standard.so  %{_libdir}/samba/process_model/standard.so
1530  %dir %{_libdir}/samba/service  %dir %{_libdir}/samba/service
1531  %{_libdir}/samba/service/cldap.so  %{_libdir}/samba/service/cldap.so
# Line 1490  rm -rf %{buildroot} Line 1539  rm -rf %{buildroot}
1539  %{_libdir}/samba/service/nbtd.so  %{_libdir}/samba/service/nbtd.so
1540  %{_libdir}/samba/service/ntp_signd.so  %{_libdir}/samba/service/ntp_signd.so
1541  %{_libdir}/samba/service/s3fs.so  %{_libdir}/samba/service/s3fs.so
 %{_libdir}/samba/service/smb.so  
1542  %{_libdir}/samba/service/web.so  %{_libdir}/samba/service/web.so
 %{_libdir}/samba/service/winbind.so  
1543  %{_libdir}/samba/service/winbindd.so  %{_libdir}/samba/service/winbindd.so
1544  %{_libdir}/samba/service/wrepl.so  %{_libdir}/samba/service/wrepl.so
1545  %{_libdir}/libdcerpc-server.so.*  %{_libdir}/libdcerpc-server.so.*
# Line 1504  rm -rf %{buildroot} Line 1551  rm -rf %{buildroot}
1551  %{_libdir}/samba/bind9/dlz_bind9_9.so  %{_libdir}/samba/bind9/dlz_bind9_9.so
1552  %else  %else
1553  %doc packaging/README.dc-libs  %doc packaging/README.dc-libs
 %exclude %{_libdir}/samba/libdfs-server-ad-samba4.so  
 %exclude %{_libdir}/samba/libdnsserver-common-samba4.so  
1554  %endif # with_dc  %endif # with_dc
1555    
1556  ### DEVEL  ### DEVEL
# Line 1519  rm -rf %{buildroot} Line 1564  rm -rf %{buildroot}
1564  %{_includedir}/samba-4.0/core/werror.h  %{_includedir}/samba-4.0/core/werror.h
1565  %{_includedir}/samba-4.0/credentials.h  %{_includedir}/samba-4.0/credentials.h
1566  %{_includedir}/samba-4.0/dcerpc.h  %{_includedir}/samba-4.0/dcerpc.h
 %{_includedir}/samba-4.0/dlinklist.h  
1567  %{_includedir}/samba-4.0/domain_credentials.h  %{_includedir}/samba-4.0/domain_credentials.h
1568  %{_includedir}/samba-4.0/gen_ndr/atsvc.h  %{_includedir}/samba-4.0/gen_ndr/atsvc.h
1569  %{_includedir}/samba-4.0/gen_ndr/auth.h  %{_includedir}/samba-4.0/gen_ndr/auth.h
1570  %{_includedir}/samba-4.0/gen_ndr/dcerpc.h  %{_includedir}/samba-4.0/gen_ndr/dcerpc.h
 %{_includedir}/samba-4.0/gen_ndr/epmapper.h  
1571  %{_includedir}/samba-4.0/gen_ndr/krb5pac.h  %{_includedir}/samba-4.0/gen_ndr/krb5pac.h
1572  %{_includedir}/samba-4.0/gen_ndr/lsa.h  %{_includedir}/samba-4.0/gen_ndr/lsa.h
 %{_includedir}/samba-4.0/gen_ndr/mgmt.h  
1573  %{_includedir}/samba-4.0/gen_ndr/misc.h  %{_includedir}/samba-4.0/gen_ndr/misc.h
1574  %{_includedir}/samba-4.0/gen_ndr/nbt.h  %{_includedir}/samba-4.0/gen_ndr/nbt.h
1575  %{_includedir}/samba-4.0/gen_ndr/drsblobs.h  %{_includedir}/samba-4.0/gen_ndr/drsblobs.h
# Line 1535  rm -rf %{buildroot} Line 1577  rm -rf %{buildroot}
1577  %{_includedir}/samba-4.0/gen_ndr/ndr_drsblobs.h  %{_includedir}/samba-4.0/gen_ndr/ndr_drsblobs.h
1578  %{_includedir}/samba-4.0/gen_ndr/ndr_drsuapi.h  %{_includedir}/samba-4.0/gen_ndr/ndr_drsuapi.h
1579  %{_includedir}/samba-4.0/gen_ndr/ndr_atsvc.h  %{_includedir}/samba-4.0/gen_ndr/ndr_atsvc.h
 %{_includedir}/samba-4.0/gen_ndr/ndr_atsvc_c.h  
1580  %{_includedir}/samba-4.0/gen_ndr/ndr_dcerpc.h  %{_includedir}/samba-4.0/gen_ndr/ndr_dcerpc.h
 %{_includedir}/samba-4.0/gen_ndr/ndr_epmapper.h  
 %{_includedir}/samba-4.0/gen_ndr/ndr_epmapper_c.h  
1581  %{_includedir}/samba-4.0/gen_ndr/ndr_krb5pac.h  %{_includedir}/samba-4.0/gen_ndr/ndr_krb5pac.h
 %{_includedir}/samba-4.0/gen_ndr/ndr_mgmt.h  
 %{_includedir}/samba-4.0/gen_ndr/ndr_mgmt_c.h  
1582  %{_includedir}/samba-4.0/gen_ndr/ndr_misc.h  %{_includedir}/samba-4.0/gen_ndr/ndr_misc.h
1583  %{_includedir}/samba-4.0/gen_ndr/ndr_nbt.h  %{_includedir}/samba-4.0/gen_ndr/ndr_nbt.h
1584  %{_includedir}/samba-4.0/gen_ndr/ndr_samr.h  %{_includedir}/samba-4.0/gen_ndr/ndr_samr.h
# Line 1553  rm -rf %{buildroot} Line 1590  rm -rf %{buildroot}
1590  %{_includedir}/samba-4.0/gen_ndr/security.h  %{_includedir}/samba-4.0/gen_ndr/security.h
1591  %{_includedir}/samba-4.0/gen_ndr/server_id.h  %{_includedir}/samba-4.0/gen_ndr/server_id.h
1592  %{_includedir}/samba-4.0/gen_ndr/svcctl.h  %{_includedir}/samba-4.0/gen_ndr/svcctl.h
 %{_includedir}/samba-4.0/gensec.h  
 %{_includedir}/samba-4.0/ldap-util.h  
 %{_includedir}/samba-4.0/ldap_errors.h  
 %{_includedir}/samba-4.0/ldap_message.h  
 %{_includedir}/samba-4.0/ldap_ndr.h  
1593  %{_includedir}/samba-4.0/ldb_wrap.h  %{_includedir}/samba-4.0/ldb_wrap.h
1594  %{_includedir}/samba-4.0/lookup_sid.h  %{_includedir}/samba-4.0/lookup_sid.h
1595  %{_includedir}/samba-4.0/machine_sid.h  %{_includedir}/samba-4.0/machine_sid.h
# Line 1572  rm -rf %{buildroot} Line 1604  rm -rf %{buildroot}
1604  %{_includedir}/samba-4.0/param.h  %{_includedir}/samba-4.0/param.h
1605  %{_includedir}/samba-4.0/passdb.h  %{_includedir}/samba-4.0/passdb.h
1606  %{_includedir}/samba-4.0/policy.h  %{_includedir}/samba-4.0/policy.h
 %{_includedir}/samba-4.0/read_smb.h  
 %{_includedir}/samba-4.0/registry.h  
 %{_includedir}/samba-4.0/roles.h  
1607  %{_includedir}/samba-4.0/rpc_common.h  %{_includedir}/samba-4.0/rpc_common.h
1608  %{_includedir}/samba-4.0/samba/session.h  %{_includedir}/samba-4.0/samba/session.h
1609  %{_includedir}/samba-4.0/samba/version.h  %{_includedir}/samba-4.0/samba/version.h
1610  %{_includedir}/samba-4.0/share.h  %{_includedir}/samba-4.0/share.h
 %{_includedir}/samba-4.0/smb2.h  
 %{_includedir}/samba-4.0/smb2_constants.h  
 %{_includedir}/samba-4.0/smb2_create_blob.h  
 %{_includedir}/samba-4.0/smb2_lease.h  
1611  %{_includedir}/samba-4.0/smb2_lease_struct.h  %{_includedir}/samba-4.0/smb2_lease_struct.h
 %{_includedir}/samba-4.0/smb2_signing.h  
 %{_includedir}/samba-4.0/smb_cli.h  
 %{_includedir}/samba-4.0/smb_cliraw.h  
 %{_includedir}/samba-4.0/smb_common.h  
 %{_includedir}/samba-4.0/smb_composite.h  
1612  %{_includedir}/samba-4.0/smbconf.h  %{_includedir}/samba-4.0/smbconf.h
 %{_includedir}/samba-4.0/smb_constants.h  
1613  %{_includedir}/samba-4.0/smb_ldap.h  %{_includedir}/samba-4.0/smb_ldap.h
1614  %{_includedir}/samba-4.0/smbldap.h  %{_includedir}/samba-4.0/smbldap.h
 %{_includedir}/samba-4.0/smb_raw.h  
 %{_includedir}/samba-4.0/smb_raw_interfaces.h  
 %{_includedir}/samba-4.0/smb_raw_signing.h  
 %{_includedir}/samba-4.0/smb_raw_trans2.h  
 %{_includedir}/samba-4.0/smb_request.h  
 %{_includedir}/samba-4.0/smb_seal.h  
 %{_includedir}/samba-4.0/smb_signing.h  
 %{_includedir}/samba-4.0/smb_unix_ext.h  
 %{_includedir}/samba-4.0/smb_util.h  
1615  %{_includedir}/samba-4.0/tdr.h  %{_includedir}/samba-4.0/tdr.h
1616  %{_includedir}/samba-4.0/tsocket.h  %{_includedir}/samba-4.0/tsocket.h
1617  %{_includedir}/samba-4.0/tsocket_internal.h  %{_includedir}/samba-4.0/tsocket_internal.h
 %{_includedir}/samba-4.0/tstream_smbXcli_np.h  
 %{_includedir}/samba-4.0/samba_util.h  
1618  %dir %{_includedir}/samba-4.0/util  %dir %{_includedir}/samba-4.0/util
1619  %{_includedir}/samba-4.0/util/attr.h  %{_includedir}/samba-4.0/util/attr.h
1620  %{_includedir}/samba-4.0/util/blocking.h  %{_includedir}/samba-4.0/util/blocking.h
# Line 1614  rm -rf %{buildroot} Line 1622  rm -rf %{buildroot}
1622  %{_includedir}/samba-4.0/util/data_blob.h  %{_includedir}/samba-4.0/util/data_blob.h
1623  %{_includedir}/samba-4.0/util/debug.h  %{_includedir}/samba-4.0/util/debug.h
1624  %{_includedir}/samba-4.0/util/fault.h  %{_includedir}/samba-4.0/util/fault.h
1625    %{_includedir}/samba-4.0/util/genrand.h
1626  %{_includedir}/samba-4.0/util/idtree.h  %{_includedir}/samba-4.0/util/idtree.h
1627  %{_includedir}/samba-4.0/util/idtree_random.h  %{_includedir}/samba-4.0/util/idtree_random.h
1628  %{_includedir}/samba-4.0/util/memory.h  %{_includedir}/samba-4.0/util/memory.h
# Line 1628  rm -rf %{buildroot} Line 1637  rm -rf %{buildroot}
1637  %{_includedir}/samba-4.0/util/time.h  %{_includedir}/samba-4.0/util/time.h
1638  %{_includedir}/samba-4.0/util/xfile.h  %{_includedir}/samba-4.0/util/xfile.h
1639  %{_includedir}/samba-4.0/util_ldb.h  %{_includedir}/samba-4.0/util_ldb.h
 %{_libdir}/libdcerpc-atsvc.so  
1640  %{_libdir}/libdcerpc-binding.so  %{_libdir}/libdcerpc-binding.so
1641  %{_libdir}/libdcerpc-samr.so  %{_libdir}/libdcerpc-samr.so
1642  %{_libdir}/libdcerpc.so  %{_libdir}/libdcerpc.so
 %{_libdir}/libgensec.so  
1643  %{_libdir}/libndr-krb5pac.so  %{_libdir}/libndr-krb5pac.so
1644  %{_libdir}/libndr-nbt.so  %{_libdir}/libndr-nbt.so
1645  %{_libdir}/libndr-standard.so  %{_libdir}/libndr-standard.so
1646  %{_libdir}/libndr.so  %{_libdir}/libndr.so
1647  %{_libdir}/libnetapi.so  %{_libdir}/libnetapi.so
 %{_libdir}/libregistry.so  
1648  %{_libdir}/libsamba-credentials.so  %{_libdir}/libsamba-credentials.so
1649    %{_libdir}/libsamba-errors.so
1650  %{_libdir}/libsamba-hostconfig.so  %{_libdir}/libsamba-hostconfig.so
1651  %{_libdir}/libsamba-policy.so  %{_libdir}/libsamba-policy.so
1652  %{_libdir}/libsamba-util.so  %{_libdir}/libsamba-util.so
1653  %{_libdir}/libsamdb.so  %{_libdir}/libsamdb.so
 %{_libdir}/libsmbclient-raw.so  
1654  %{_libdir}/libsmbconf.so  %{_libdir}/libsmbconf.so
1655    %{_libdir}/libtevent-unix-util.so
1656  %{_libdir}/libtevent-util.so  %{_libdir}/libtevent-util.so
1657  %{_libdir}/pkgconfig/dcerpc.pc  %{_libdir}/pkgconfig/dcerpc.pc
 %{_libdir}/pkgconfig/dcerpc_atsvc.pc  
1658  %{_libdir}/pkgconfig/dcerpc_samr.pc  %{_libdir}/pkgconfig/dcerpc_samr.pc
 %{_libdir}/pkgconfig/gensec.pc  
1659  %{_libdir}/pkgconfig/ndr.pc  %{_libdir}/pkgconfig/ndr.pc
1660  %{_libdir}/pkgconfig/ndr_krb5pac.pc  %{_libdir}/pkgconfig/ndr_krb5pac.pc
1661  %{_libdir}/pkgconfig/ndr_nbt.pc  %{_libdir}/pkgconfig/ndr_nbt.pc
1662  %{_libdir}/pkgconfig/ndr_standard.pc  %{_libdir}/pkgconfig/ndr_standard.pc
1663  %{_libdir}/pkgconfig/netapi.pc  %{_libdir}/pkgconfig/netapi.pc
 %{_libdir}/pkgconfig/registry.pc  
1664  %{_libdir}/pkgconfig/samba-credentials.pc  %{_libdir}/pkgconfig/samba-credentials.pc
1665  %{_libdir}/pkgconfig/samba-hostconfig.pc  %{_libdir}/pkgconfig/samba-hostconfig.pc
1666  %{_libdir}/pkgconfig/samba-policy.pc  %{_libdir}/pkgconfig/samba-policy.pc
1667  %{_libdir}/pkgconfig/samba-util.pc  %{_libdir}/pkgconfig/samba-util.pc
1668  %{_libdir}/pkgconfig/samdb.pc  %{_libdir}/pkgconfig/samdb.pc
 %{_libdir}/pkgconfig/smbclient-raw.pc  
1669  %{_libdir}/libsamba-passdb.so  %{_libdir}/libsamba-passdb.so
1670  %{_libdir}/libsmbldap.so  %{_libdir}/libsmbldap.so
1671    
# Line 1672  rm -rf %{buildroot} Line 1675  rm -rf %{buildroot}
1675  %{_libdir}/pkgconfig/dcerpc_server.pc  %{_libdir}/pkgconfig/dcerpc_server.pc
1676  %endif  %endif
1677    
 %if %with_internal_talloc  
 %{_includedir}/samba-4.0/pytalloc.h  
 %endif  
   
1678  %if ! %with_libsmbclient  %if ! %with_libsmbclient
1679  %{_includedir}/samba-4.0/libsmbclient.h  %{_includedir}/samba-4.0/libsmbclient.h
1680  %endif # ! with_libsmbclient  %endif # ! with_libsmbclient
# Line 1698  rm -rf %{buildroot} Line 1697  rm -rf %{buildroot}
1697  %{_mandir}/man8/vfs_glusterfs.8*  %{_mandir}/man8/vfs_glusterfs.8*
1698  %endif  %endif
1699    
1700    ### KRB5-PRINTING
1701    %files krb5-printing
1702    %defattr(-,root,root)
1703    %attr(0700,root,root) %{_libexecdir}/samba/smbspool_krb5_wrapper
1704    %{_mandir}/man8/smbspool_krb5_wrapper.8*
1705    
1706  ### LIBS  ### LIBS
1707  %files libs  %files libs
1708  %defattr(-,root,root)  %defattr(-,root,root)
 %{_libdir}/libdcerpc-atsvc.so.*  
1709  %{_libdir}/libdcerpc-samr.so.*  %{_libdir}/libdcerpc-samr.so.*
1710  %{_libdir}/libsamba-policy.so.*  %{_libdir}/libsamba-policy.so.*
1711    
# Line 1717  rm -rf %{buildroot} Line 1721  rm -rf %{buildroot}
1721  %{_libdir}/samba/libsamba-python-samba4.so  %{_libdir}/samba/libsamba-python-samba4.so
1722  %{_libdir}/samba/libshares-samba4.so  %{_libdir}/samba/libshares-samba4.so
1723  %{_libdir}/samba/libsmbpasswdparser-samba4.so  %{_libdir}/samba/libsmbpasswdparser-samba4.so
 %{_libdir}/samba/libtdb-compat-samba4.so  
1724  %{_libdir}/samba/libxattr-tdb-samba4.so  %{_libdir}/samba/libxattr-tdb-samba4.so
1725    
1726  %if %with_dc  %if %with_dc
# Line 1725  rm -rf %{buildroot} Line 1728  rm -rf %{buildroot}
1728  %{_libdir}/samba/libHDB-SAMBA4-samba4.so  %{_libdir}/samba/libHDB-SAMBA4-samba4.so
1729  %{_libdir}/samba/libasn1-samba4.so.8  %{_libdir}/samba/libasn1-samba4.so.8
1730  %{_libdir}/samba/libasn1-samba4.so.8.0.0  %{_libdir}/samba/libasn1-samba4.so.8.0.0
1731  #%{_libdir}/samba/libdfs_server_ad.so  %{_libdir}/samba/libcom_err-samba4.so.0
1732    %{_libdir}/samba/libcom_err-samba4.so.0.25
1733  %{_libdir}/samba/libgssapi-samba4.so.2  %{_libdir}/samba/libgssapi-samba4.so.2
1734  %{_libdir}/samba/libgssapi-samba4.so.2.0.0  %{_libdir}/samba/libgssapi-samba4.so.2.0.0
1735  %{_libdir}/samba/libhcrypto-samba4.so.5  %{_libdir}/samba/libhcrypto-samba4.so.5
# Line 1843  rm -rf %{buildroot} Line 1847  rm -rf %{buildroot}
1847  ### TEST-LIBS  ### TEST-LIBS
1848  %files test-libs  %files test-libs
1849  %defattr(-,root,root)  %defattr(-,root,root)
 %{_libdir}/libtorture.so.*  
 %{_libdir}/samba/libsubunit-samba4.so  
1850  %if %with_dc  %if %with_dc
1851  %{_libdir}/samba/libdlz-bind9-for-torture-samba4.so  %{_libdir}/samba/libdlz-bind9-for-torture-samba4.so
1852  %else  %else
1853  %{_libdir}/samba/libdsdb-module-samba4.so  %{_libdir}/samba/libdsdb-module-samba4.so
1854  %endif  %endif
1855    
 ### TEST-DEVEL  
 %files test-devel  
 %defattr(-,root,root)  
 %{_includedir}/samba-4.0/torture.h  
 %{_libdir}/libtorture.so  
 %{_libdir}/pkgconfig/torture.pc  
   
1856  ### WINBIND  ### WINBIND
1857  %files winbind  %files winbind
1858  %defattr(-,root,root)  %defattr(-,root,root)
 #%{_bindir}/wbinfo3  
1859  %{_libdir}/samba/idmap  %{_libdir}/samba/idmap
1860  %{_libdir}/samba/nss_info  %{_libdir}/samba/nss_info
1861  %{_libdir}/samba/libnss-info-samba4.so  %{_libdir}/samba/libnss-info-samba4.so
# Line 1903  rm -rf %{buildroot} Line 1897  rm -rf %{buildroot}
1897  %defattr(-,root,root)  %defattr(-,root,root)
1898  %doc ctdb/README  %doc ctdb/README
1899  %config(noreplace) %{_sysconfdir}/sysconfig/ctdb  %config(noreplace) %{_sysconfdir}/sysconfig/ctdb
1900  %config(noreplace) %{_sysconfdir}/ctdb/notify.sh  %{_sysconfdir}/ctdb/notify.sh
1901  %config(noreplace) %{_sysconfdir}/ctdb/debug-hung-script.sh  %{_sysconfdir}/ctdb/debug-hung-script.sh
1902  %config(noreplace) %{_sysconfdir}/ctdb/ctdb-crash-cleanup.sh  %{_sysconfdir}/ctdb/ctdb-crash-cleanup.sh
1903  %config(noreplace) %{_sysconfdir}/ctdb/gcore_trace.sh  %{_sysconfdir}/ctdb/gcore_trace.sh
1904  %config(noreplace) %{_sysconfdir}/ctdb/functions  %{_sysconfdir}/ctdb/functions
1905  %config(noreplace) %{_sysconfdir}/ctdb/debug_locks.sh  %{_sysconfdir}/ctdb/debug_locks.sh
1906  %dir %{_localstatedir}/lib/ctdb/  %dir %{_localstatedir}/lib/ctdb/
 %{_tmpfilesdir}/%{name}.conf  
1907    
1908  %{_unitdir}/ctdb.service  %{_unitdir}/ctdb.service
1909    
1910  %dir %{_sysconfdir}/ctdb  %dir %{_sysconfdir}/ctdb
1911  %{_sysconfdir}/ctdb/statd-callout  %{_sysconfdir}/ctdb/statd-callout
1912  %dir %{_sysconfdir}/ctdb/nfs-rpc-checks.d  # CTDB scripts, no config files
1913  %{_sysconfdir}/ctdb/nfs-rpc-checks.d/10.statd.check  # script with executable bit means activated
1914  %{_sysconfdir}/ctdb/nfs-rpc-checks.d/20.nfsd.check  %dir %{_sysconfdir}/ctdb/nfs-checks.d
1915  %{_sysconfdir}/ctdb/nfs-rpc-checks.d/30.lockd.check  %{_sysconfdir}/ctdb/nfs-checks.d/00.portmapper.check
1916  %{_sysconfdir}/ctdb/nfs-rpc-checks.d/40.mountd.check  %{_sysconfdir}/ctdb/nfs-checks.d/10.status.check
1917  %{_sysconfdir}/ctdb/nfs-rpc-checks.d/50.rquotad.check  %{_sysconfdir}/ctdb/nfs-checks.d/20.nfs.check
1918  %{_sysconfdir}/sudoers.d/ctdb  %{_sysconfdir}/ctdb/nfs-checks.d/30.nlockmgr.check
1919  %{_sysconfdir}/ctdb/events.d/  %{_sysconfdir}/ctdb/nfs-checks.d/40.mountd.check
1920    %{_sysconfdir}/ctdb/nfs-checks.d/50.rquotad.check
1921    %{_sysconfdir}/ctdb/nfs-checks.d/README
1922    %{_sysconfdir}/ctdb/nfs-linux-kernel-callout
1923    %config %{_sysconfdir}/sudoers.d/ctdb
1924    # CTDB scripts, no config files
1925    # script with executable bit means activated
1926    %dir %{_sysconfdir}/ctdb/events.d
1927    %{_sysconfdir}/ctdb/events.d/00.ctdb
1928    %{_sysconfdir}/ctdb/events.d/01.reclock
1929    %{_sysconfdir}/ctdb/events.d/05.system
1930    %{_sysconfdir}/ctdb/events.d/10.external
1931    %{_sysconfdir}/ctdb/events.d/10.interface
1932    %{_sysconfdir}/ctdb/events.d/11.natgw
1933    %{_sysconfdir}/ctdb/events.d/11.routing
1934    %{_sysconfdir}/ctdb/events.d/13.per_ip_routing
1935    %{_sysconfdir}/ctdb/events.d/20.multipathd
1936    %{_sysconfdir}/ctdb/events.d/31.clamd
1937    %{_sysconfdir}/ctdb/events.d/40.vsftpd
1938    %{_sysconfdir}/ctdb/events.d/41.httpd
1939    %{_sysconfdir}/ctdb/events.d/49.winbind
1940    %{_sysconfdir}/ctdb/events.d/50.samba
1941    %{_sysconfdir}/ctdb/events.d/60.nfs
1942    %{_sysconfdir}/ctdb/events.d/70.iscsi
1943    %{_sysconfdir}/ctdb/events.d/91.lvs
1944    %{_sysconfdir}/ctdb/events.d/99.timeout
1945    %{_sysconfdir}/ctdb/events.d/README
1946  %dir %{_sysconfdir}/ctdb/notify.d  %dir %{_sysconfdir}/ctdb/notify.d
1947  %{_sysconfdir}/ctdb/notify.d/README  %{_sysconfdir}/ctdb/notify.d/README
1948  %{_prefix}/lib/tmpfiles.d/ctdb.conf  %{_tmpfilesdir}/ctdb.conf
1949  %{_sbindir}/ctdbd  %{_sbindir}/ctdbd
1950  %{_sbindir}/ctdbd_wrapper  %{_sbindir}/ctdbd_wrapper
1951  %{_bindir}/ctdb  %{_bindir}/ctdb
 %{_bindir}/smnotify  
1952  %{_bindir}/ping_pong  %{_bindir}/ping_pong
1953  %{_bindir}/ltdbtool  %{_bindir}/ltdbtool
1954  %{_bindir}/ctdb_diagnostics  %{_bindir}/ctdb_diagnostics
1955  %{_bindir}/onnode  %{_bindir}/onnode
1956  %{_bindir}/ctdb_lock_helper  %dir %{_libexecdir}/ctdb
1957  %{_bindir}/ctdb_event_helper  %{_libexecdir}/ctdb/ctdb_natgw
1958    %{_libexecdir}/ctdb/ctdb_recovery_helper
1959    %{_libexecdir}/ctdb/smnotify
1960    %{_libexecdir}/ctdb/ctdb_lock_helper
1961    %{_libexecdir}/ctdb/ctdb_event_helper
1962    
1963  %{_mandir}/man1/ctdb.1.gz  %{_mandir}/man1/ctdb.1.gz
1964  %{_mandir}/man1/ctdbd.1.gz  %{_mandir}/man1/ctdbd.1.gz
# Line 1949  rm -rf %{buildroot} Line 1971  rm -rf %{buildroot}
1971  %{_mandir}/man7/ctdb-tunables.7.gz  %{_mandir}/man7/ctdb-tunables.7.gz
1972  %{_mandir}/man7/ctdb-statistics.7.gz  %{_mandir}/man7/ctdb-statistics.7.gz
1973    
 %files -n ctdb-devel  
 %defattr(-,root,root)  
 %{_includedir}/samba-4.0/ctdb.h  
 %{_includedir}/samba-4.0/ctdb_client.h  
 %{_includedir}/samba-4.0/ctdb_protocol.h  
 %{_includedir}/samba-4.0/ctdb_private.h  
 %{_includedir}/samba-4.0/ctdb_typesafe_cb.h  
 %{_includedir}/samba-4.0/ctdb_version.h  
 %{_libdir}/pkgconfig/ctdb.pc  
   
1974  %files -n ctdb-tests  %files -n ctdb-tests
1975  %defattr(-,root,root)  %defattr(-,root,root)
1976  %dir %{_libdir}/ctdb-tests  %dir %{_libexecdir}/ctdb/tests
1977  %{_libdir}/ctdb-tests/ctdb_bench  %{_libexecdir}/ctdb/tests/comm_client_test
1978  %{_libdir}/ctdb-tests/ctdb_fetch  %{_libexecdir}/ctdb/tests/comm_server_test
1979  %{_libdir}/ctdb-tests/ctdb_fetch_one  %{_libexecdir}/ctdb/tests/comm_test
1980  %{_libdir}/ctdb-tests/ctdb_fetch_readonly_loop  %{_libexecdir}/ctdb/tests/ctdb_bench
1981  %{_libdir}/ctdb-tests/ctdb_fetch_readonly_once  %{_libexecdir}/ctdb/tests/ctdb_fetch
1982  %{_libdir}/ctdb-tests/ctdb_functest  %{_libexecdir}/ctdb/tests/ctdb_fetch_one
1983  %{_libdir}/ctdb-tests/ctdb_lock_tdb  %{_libexecdir}/ctdb/tests/ctdb_fetch_readonly_loop
1984  %{_libdir}/ctdb-tests/ctdb_persistent  %{_libexecdir}/ctdb/tests/ctdb_fetch_readonly_once
1985  %{_libdir}/ctdb-tests/ctdb_porting_tests  %{_libexecdir}/ctdb/tests/ctdb_functest
1986  %{_libdir}/ctdb-tests/ctdb_randrec  %{_libexecdir}/ctdb/tests/ctdb_lock_tdb
1987  %{_libdir}/ctdb-tests/ctdb_store  %{_libexecdir}/ctdb/tests/ctdb_persistent
1988  %{_libdir}/ctdb-tests/ctdb_stubtest  %{_libexecdir}/ctdb/tests/ctdb_porting_tests
1989  %{_libdir}/ctdb-tests/ctdb_takeover_tests  %{_libexecdir}/ctdb/tests/ctdb_randrec
1990  %{_libdir}/ctdb-tests/ctdb_trackingdb_test  %{_libexecdir}/ctdb/tests/ctdb_store
1991  %{_libdir}/ctdb-tests/ctdb_transaction  %{_libexecdir}/ctdb/tests/ctdb_stubtest
1992  %{_libdir}/ctdb-tests/ctdb_traverse  %{_libexecdir}/ctdb/tests/ctdb_takeover_tests
1993  %{_libdir}/ctdb-tests/ctdb_update_record  %{_libexecdir}/ctdb/tests/ctdb_trackingdb_test
1994  %{_libdir}/ctdb-tests/ctdb_update_record_persistent  %{_libexecdir}/ctdb/tests/ctdb_transaction
1995  %{_libdir}/ctdb-tests/rb_test  %{_libexecdir}/ctdb/tests/ctdb_traverse
1996    %{_libexecdir}/ctdb/tests/ctdb_update_record
1997    %{_libexecdir}/ctdb/tests/ctdb_update_record_persistent
1998    %{_libexecdir}/ctdb/tests/db_hash_test
1999    %{_libexecdir}/ctdb/tests/pkt_read_test
2000    %{_libexecdir}/ctdb/tests/pkt_write_test
2001    %{_libexecdir}/ctdb/tests/protocol_client_test
2002    %{_libexecdir}/ctdb/tests/protocol_types_test
2003    %{_libexecdir}/ctdb/tests/rb_test
2004    %{_libexecdir}/ctdb/tests/reqid_test
2005    %{_libexecdir}/ctdb/tests/srvid_test
2006  %{_bindir}/ctdb_run_tests  %{_bindir}/ctdb_run_tests
2007  %{_bindir}/ctdb_run_cluster_tests  %{_bindir}/ctdb_run_cluster_tests
2008  %dir %{_datadir}/ctdb-tests  %dir %{_datadir}/ctdb-tests/eventscripts
2009  %{_datadir}/ctdb-tests/eventscripts/etc-ctdb/events.d  %{_datadir}/ctdb-tests/eventscripts/etc-ctdb/events.d
2010  %{_datadir}/ctdb-tests/eventscripts/etc-ctdb/functions  %{_datadir}/ctdb-tests/eventscripts/etc-ctdb/functions
2011  %{_datadir}/ctdb-tests/eventscripts/etc-ctdb/nfs-rpc-checks.d  %{_datadir}/ctdb-tests/eventscripts/etc-ctdb/nfs-checks.d
2012    %{_datadir}/ctdb-tests/eventscripts/etc-ctdb/nfs-linux-kernel-callout
2013  %{_datadir}/ctdb-tests/eventscripts/etc-ctdb/statd-callout  %{_datadir}/ctdb-tests/eventscripts/etc-ctdb/statd-callout
2014    %dir %{_datadir}/ctdb-tests/onnode
2015    %{_datadir}/ctdb-tests/onnode/functions
2016    %dir %{_datadir}/ctdb-tests/scripts
2017  %{_datadir}/ctdb-tests/scripts/common.sh  %{_datadir}/ctdb-tests/scripts/common.sh
2018  %{_datadir}/ctdb-tests/scripts/integration.bash  %{_datadir}/ctdb-tests/scripts/integration.bash
2019  %{_datadir}/ctdb-tests/scripts/test_wrap  %{_datadir}/ctdb-tests/scripts/test_wrap
2020  %{_datadir}/ctdb-tests/scripts/unit.sh  %{_datadir}/ctdb-tests/scripts/unit.sh
2021    %dir %{_datadir}/ctdb-tests/simple
2022    %{_datadir}/ctdb-tests/simple/functions
2023    %{_datadir}/ctdb-tests/simple/nodes
2024  %doc ctdb/tests/README  %doc ctdb/tests/README
2025  %endif # with_clustering_support  %endif # with_clustering_support
2026    
2027  %changelog  %changelog
2028  * Wed Sep 28 2016 Greg Zartman <gzartman@koozali.org> - 4.2.3-11.sme  * Tue Nov 15 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-11
2029  - Build for SME 10 [SME: 9751]  - related: #1393051 - Fix return code if ip not defined in gethostbyname
2030    
2031    * Wed Nov 09 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-11
2032    - related: #1393048 - Add missing patch to patchset
2033    
2034  * Wed Dec 02 2015 - ClearFoundation <developer@clearfoundation.com> - 4.2.3-10.clear  * Tue Nov 08 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-10
2035  - enable DC support for integration work  - resolves: #1393050 - Fix linking nss_wins with libreplace
2036    - resolves: #1393051 - Fix nss_wins function definitions for gethostbyname*
2037    - resolves: #1393048 - Fix %G substitution in AD case
2038    - resolves: #1393052 - Fix regression of smbclient unable to connect to
2039                           Apple and Azure
2040    
2041    * Wed Aug 31 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-9
2042    - related: #1365479 - Fix idmap range check
2043    
2044    * Fri Aug 26 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-8
2045    - related: #1193493 - Fix smbget url credentials parsing
2046    
2047    * Tue Aug 23 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-7
2048    - resolves: #1365479 - Fix idmap range checks for ad and hash backend
2049    
2050    * Tue Aug 16 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-6
2051    - resolves: #1367316 - Increase required Kerbersion version number
2052    - resolves: #1366477 - Fix using the right krb5 ccache in libads
2053    - resolves: #1356501 - Fix high CPU usage with smbclient connection to
2054                           non-reachable IP
2055    
2056    * Wed Aug 03 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-5
2057    - resolves: #1359091 - Package /usr/lib/samba/ldb in the common-libs package
2058    - resolves: #1360788 - Fix multilib issue with ctdb-tests package
2059    - resolves: #1362385 - Fix Samba ignoring supplementary groups
2060    - resolves: #1364051 - Fix smbd panic with stale ctdb entries
2061    
2062    * Mon Jul 04 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-4
2063    - resolves: #1351655 - Fix winbind meomory leak with each cached credentials
2064                           login
2065    - resolves: #1351961 - Fix CVE-2016-2119
2066    
2067    * Thu Jun 23 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-3
2068    - related: #1260214 - Correctly warn about missing realm for ad domains
2069                          with 'security=domain'
2070    
2071    * Tue Jun 21 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-2
2072    - resolves: #1348223 - Fix sasl wrapped ldap connections
2073    
2074    * Wed Jun 08 2016 Andreas Schneider <asn@redhat.com> - 4.4.4-1
2075    - resolves: #1303076 - Rebase Samba to version 4.4.4
2076    - resolves: #1314673 - Fix CVE-2015-7560
2077    - resolves: #1263322 - Add '--no-dns-updates' option to 'net ads join'
2078    - resolves: #1264433 - Fix segfault in pam_winbind.so with invalid config
2079                           options
2080    - resolves: #1193504 - Fix smbget to retrieve files recursively
2081    - resolves: #1193502 - Fix smbget to use command line credentials
2082    - resolves: #1193493 - Fix smbget url credentials parsing
2083    - resolves: #1273999 - Support printing with Kerberos credentials on newer
2084                           CUPS versions
2085    - resolves: #1296821 - Define /etc/pam.d/samba as a non replaceable config
2086    - resolves: #1261107 - Fix memory leak because of missing talloc stackframe
2087    - resolves: #1333562 - Fix memory leak after smbc_free_context()
2088    - resolves: #1315422 - Fix regression from CVE-2015-5252
2089    - resolves: #1316899 - Fixed idmap_hash module issues when used with others
2090    - resolves: #1322691 - Fix badlock related bugs
2091    - Fix CVE-2015-5370
2092    - Fix CVE-2016-2110
2093    - Fix CVE-2016-2111
2094    - Fix CVE-2016-2112
2095    - Fix CVE-2016-2113
2096    - Fix CVE-2016-2114
2097    - Fix CVE-2016-2115
2098    - Fix CVE-2016-2118
2099    - resolves: #1327951 - Fix regression with anonymous connections from OS X
2100    - resolves: #1327845 - Fix pcap_cache_reload() with spoolssd
2101    - resolves: #1289640 - Fix ctdb selinux issue with read only tracking dbs
2102    - resolves: #1341208 - Fix enumerating groups over NSS with idmap_ad
2103    - resolves: #1345827 - Fix resolving trusted domain users on domain member
2104    - resolves: #1346334 - Fix typo in smb.conf.example
2105    - resolves: #1335292 - Fix site-aware 'net ads join -k'
2106    - resolves: #1260214 - Accept empty realm for ad domains with 'security=domain'
2107    
2108    * Tue May 24 2016 Guenther Deschner <gdeschner@redhat.com> - 4.2.10-8
2109    - Fix krb5 encryption type setup during join (as admin and non-admin user)
2110    - resolves: #1312109
2111    
2112    * Mon May 02 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-7
2113    - Fix regressions introduced with security tightening as part of Badlock release
2114    - resolves: #1330199
2115    
2116    * Tue Apr 12 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-6
2117    - Fix domain member winbind not being able to talk to trusted domains' DCs
2118    - relates: #1322691
2119    
2120    * Mon Apr 11 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-5
2121    - Fix crash in smb.conf processing
2122    - relates: #1322691
2123    
2124    * Fri Apr 08 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-4
2125    - Fix LDAP SASL bind with arcfour-hmac-md5
2126    - resolves: #1322691
2127    
2128    * Thu Apr 07 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-3
2129    - Make sure the package owns /var/lib/samba and uses it for cache purposes
2130    - resolves: #1322691
2131    
2132    * Wed Apr 06 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-2
2133    - Remove ldb modules and internal libraries for DC when not packaging DC build
2134    - resolves: #1322691
2135    
2136    * Mon Apr 04 2016 Alexander Bokovoy <abokovoy@redhat.com> - 4.2.10-1
2137    - resolves: #1322691
2138    
2139    * Fri Mar 04 2016 Andreas Schneider <asn@redhat.com> - 4.2.3-12
2140    - resolves: #1314673 - Fix CVE-2015-7560
2141    
2142    * Fri Dec 11 2015 Guenther Deschner <gdeschner@redhat.com> - 4.2.3-11
2143    - resolves: #1290711
2144    - CVE-2015-3223 Remote DoS in Samba (AD) LDAP server
2145    - CVE-2015-5299 Missing access control check in shadow copy code
2146    - CVE-2015-5252 Insufficient symlink verification in smbd
2147    - CVE-2015-5296 Samba client requesting encryption vulnerable to
2148                    downgrade attack
2149    
2150  * Tue Oct 27 2015 Andreas Schneider <asn@redhat.com> - 4.2.3-10  * Tue Oct 27 2015 Andreas Schneider <asn@redhat.com> - 4.2.3-10
2151  - related: #1273393 - Fix use after free with nss_wins module loaded  - related: #1273393 - Fix use after free with nss_wins module loaded


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed