/[packages]/cauldron/samba/current/SPECS/samba.spec
ViewVC logotype

Contents of /cauldron/samba/current/SPECS/samba.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1379167 - (show annotations) (download)
Wed Mar 20 11:09:26 2019 UTC (5 years, 1 month ago) by luigiwalser
File size: 55361 byte(s)
4.10.0
1 # rpmbuild --rebuild --with testsuite --without clustering samba.src.rpm
2 #
3 # The testsuite is disabled by default. Set --with testsuite or bcond_without
4 # to run the Samba torture testsuite.
5 %bcond_with testsuite
6 # ctdb is enabled by default, you can disable it with: --without clustering
7 %bcond_without clustering
8
9 %define _disable_ld_no_undefined %{nil}
10
11 %define nssmajor 2
12
13 %define major 1
14 %define libname %mklibname %{name} %{major}
15 %define develname %mklibname %{name} -d
16
17 %define wbclientmajor 0
18 %define libwbclient %mklibname wbclient %{wbclientmajor}
19 %define wbclientdevel %mklibname wbclient -d
20
21 %define smbclientmajor 0
22 %define libsmbclient %mklibname smbclient %{smbclientmajor}
23 %define smbclientdevel %mklibname smbclient -d
24
25 %define testmajor 0
26 %define libtest %mklibname %{name}-test %{testmajor}
27 %define testdevel %mklibname %{name}-test -d
28
29 %define dcmajor 0
30 %define libsdc %mklibname %{name}-dc %{dcmajor}
31
32 %define kdcmajor 2
33 %define libkdc %mklibname kdc-samba4_ %{kdcmajor}
34
35 %define heimntlmmajor 1
36 %define libheimntlm %mklibname heimntlm-samba4_ %{heimntlmmajor}
37
38 # filter out some bogues devel() requires
39 %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}devel\\(lib.*-samba4
40
41 # filter out some bogus requires/provides
42 %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libdir}/libnss_win.*\\.so
43 %global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_libdir}/libnss_win.*\\.so
44
45 # more filtering
46 %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}lib.*samba4.so\\(
47 %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}lib.*samba4.so\\(
48
49 # filter out perl requirements pulled in from examples in the docdir.
50 %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_docdir}
51 %global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_docdir}/\[^/\]*/\[^M\]
52 %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(VMS|^perl\\(Win32|^perl\\(DB\\)|^perl\\(UNIVERSAL\\)
53 %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(VMS|^perl\\(Win32
54
55 %define rel 1
56
57 %define talloc_version 2.1.15
58 %define ntdb_version 1.0
59 %define tdb_version 1.3.17
60 %define tevent_version 0.9.38
61 %define ldb_version 1.5.2
62 # This should be rc1 or %%nil
63 %define pre_release %nil
64
65 %if "x%{?pre_release}" != "x"
66 %define tardir rc
67 %define samba_release 0.%{pre_release}.%{rel}
68 %else
69 %define tardir stable
70 %define samba_release %{rel}
71 %endif
72
73 %global with_libsmbclient 1
74 %global with_libwbclient 1
75
76 %global with_internal_talloc 0
77 %global with_internal_tevent 0
78 %global with_internal_tdb 0
79 %global with_internal_ntdb 0
80 %global with_internal_ldb 0
81
82 %global with_profiling 1
83
84 %global with_vfs_cephfs 0
85
86 %global with_vfs_glusterfs 0
87
88
89 %global with_mitkrb5 0
90 %global with_dc 1
91
92 %if %{with testsuite}
93 # The testsuite only works with a full build right now.
94 %global with_mitkrb5 0
95 %global with_dc 1
96 %endif
97
98 %global with_clustering_support 0
99
100 %if %{with clustering}
101 %global with_clustering_support 1
102 %endif
103
104 Name: samba
105 Version: 4.10.0
106 Release: %mkrel %{samba_release}
107
108 Summary: Server and Client software to interoperate with Windows machines
109 License: GPLv3+ and LGPLv3+
110 Group: System/Servers
111 URL: http://www.samba.org/
112 Source0: https://download.samba.org/pub/samba/%{tardir}/samba-%{version}%{pre_release}.tar.gz
113
114 # Red Hat specific replacement-files
115 Source1: samba.log
116 Source2: samba.xinetd
117 # For classic NT4-style domains
118 Source4: smb.conf.default
119 Source5: pam_winbind.conf
120 Source6: samba.pamd
121
122 Source200: README.dc
123 Source201: README.downgrade
124
125 Requires(pre): rpm-helper >= %{rpmhelper_required_version}
126 Requires(post): rpm-helper >= %{rpmhelper_required_version}
127 Requires(preun): rpm-helper >= %{rpmhelper_required_version}
128 Requires(postun): rpm-helper >= %{rpmhelper_required_version}
129
130
131 Requires(pre): %{name}-common = %{version}-%{release}
132 Requires: %{libname} = %{version}-%{release}
133 %if %{with_libwbclient}
134 Requires: %{libwbclient} = %{version}-%{release}
135 %endif
136
137 Requires: pam
138
139 Obsoletes: %{name}-server < 4.0.0
140 Provides: %{name}-server = %{version}-%{release}
141
142 # We don't build it outdated docs anymore
143 Obsoletes: samba-doc
144 # Is not supported yet
145 Obsoletes: samba-domainjoin-gui
146 # SWAT been deprecated and removed from samba
147 Obsoletes: samba-swat
148 Obsoletes: samba4-swat
149
150 BuildRequires: cups-devel
151 BuildRequires: pkgconfig(dbus-1)
152 BuildRequires: docbook-style-xsl
153 BuildRequires: e2fsprogs-devel
154 BuildRequires: gawk
155 BuildRequires: krb5-devel >= 1.10
156 BuildRequires: libacl-devel
157 BuildRequires: libaio-devel
158 BuildRequires: pkgconfig(libarchive)
159 BuildRequires: pkgconfig(libattr)
160 BuildRequires: pkgconfig(libcap)
161 BuildRequires: pkgconfig(uuid)
162 BuildRequires: pkgconfig(libxslt)
163 BuildRequires: lmdb-devel
164 BuildRequires: pkgconfig(ncurses)
165 BuildRequires: openldap-devel
166 BuildRequires: pam-devel
167 BuildRequires: perl(ExtUtils::MakeMaker)
168 BuildRequires: perl(Parse::Yapp)
169 BuildRequires: pkgconfig(popt)
170 BuildRequires: pkgconfig(python2)
171 BuildRequires: pkgconfig(python3)
172 BuildRequires: python2-tevent
173 BuildRequires: python3-tevent
174 BuildRequires: quota-devel
175 BuildRequires: readline-devel
176 BuildRequires: sed
177 BuildRequires: pkgconfig(zlib) >= 1.2.3
178 BuildRequires: xsltproc
179 BuildRequires: libgpgme-devel
180 BuildRequires: pkgconfig(systemd)
181 BuildRequires: pkgconfig(cmocka)
182 BuildRequires: pkgconfig(jansson)
183
184 %if %{with_vfs_glusterfs}
185 BuildRequires: pkgconfig(glusterfs-api)
186 %endif
187 %if %{with_vfs_cephfs}
188 BuildRequires: libcephfs1-devel
189 %endif
190 %if %{with_dc}
191 BuildRequires: pkgconfig(gnutls)
192 %endif
193
194 # pidl requirements
195 BuildRequires: perl(Parse::Yapp)
196
197 %if ! %{with_internal_talloc}
198 BuildRequires: pkgconfig(talloc) >= %{talloc_version}
199 BuildRequires: pytalloc-util-devel >= %{talloc_version}
200 BuildRequires: python3-talloc >= %{talloc_version}
201 %endif
202
203 %if ! %{with_internal_tevent}
204 BuildRequires: pkgconfig(tevent) >= %{tevent_version}
205 BuildRequires: python2-tevent >= %{tevent_version}
206 BuildRequires: python3-tevent >= %{tevent_version}
207 %endif
208
209 %if ! %{with_internal_ldb}
210 BuildRequires: pkgconfig(ldb) >= %ldb_version
211 BuildRequires: pyldb-util-devel >= %{ldb_version}
212 BuildRequires: python2-ldb >= %{ldb_version}
213 BuildRequires: python3-ldb >= %{ldb_version}
214 %endif
215
216 %if ! %{with_internal_tdb}
217 BuildRequires: pkgconfig(tdb) >= %{tdb_version}
218 BuildRequires: python2-tdb >= %{tdb_version}
219 BuildRequires: python3-tdb >= %{tdb_version}
220 %endif
221
222 %if %{with testsuite}
223 BuildRequires: ldb-tools
224 %endif
225
226 ### SAMBA
227 %description
228 Samba is the standard Windows interoperability suite of programs
229 for Linux and Unix.
230
231 ### CLIENT
232 %package client
233 Summary: Samba client programs
234 Group: Networking/Other
235 Requires: %{name}-common = %{version}-%{release}
236 Requires: %{libname} = %{version}-%{release}
237 %if %{with_libsmbclient}
238 Requires: %{libsmbclient} = %{version}-%{release}
239 %endif
240 # virtual provides for drakxtools-backend
241 Provides: smb-client = %{version}-%{release}
242
243 Requires(post): chkconfig
244 Requires(postun): chkconfig
245
246 %description client
247 The samba4-client package provides some SMB/CIFS clients to complement
248 the built-in SMB/CIFS filesystem in Linux. These clients allow access
249 of SMB/CIFS shares and printing to SMB/CIFS printers.
250
251 ### COMMON
252 %package common
253 Summary: Files used by both Samba servers and clients
254 Group: System/Servers
255 Requires: %{libname} = %{version}-%{release}
256 Requires: %{libsdc} = %{version}-%{release}
257 %if %{with_libwbclient}
258 Requires: %{libwbclient} = %{version}-%{release}
259 %endif
260
261 %description common
262 samba-common provides files necessary for both the server and client
263 packages of Samba.
264
265 ### DC
266 %package dc
267 Summary: Samba AD Domain Controller
268 Group: System/Servers
269 Requires: %{libname} = %{version}-%{release}
270 Requires: %{libsdc} = %{version}-%{release}
271 Requires: python3-samba = %{version}-%{release}
272 Conflicts: %{name} < 4.10.0
273 # libpac-samba4.so moved to lib(64)samba-dc0
274 Conflicts: %{libsdc} < 4.4.4-2
275
276 %description dc
277 The samba-dc package provides AD Domain Controller functionality
278
279 ### DC-LIBS
280 %package -n %{libsdc}
281 Summary: Samba AD Domain Controller Libraries
282 Group: System/Servers
283 Requires: %{name}-common = %{version}-%{release}
284 Requires: %{libname} = %{version}-%{release}
285 Obsoletes: %{_lib}samba4-dc0 < 4.1.17-12
286 # libpac-samba4.so moved from samba-dc
287 Conflicts: %{name}-dc < 4.4.4-2
288
289 %description -n %{libsdc}
290 The samba4-dc-libs package contains the libraries needed by the DC to
291 link against the SMB, RPC and other protocols.
292
293 %if %{with_dc}
294 %package -n %{libkdc}
295 Summary: Samba AD Domain Controller KDC Libraries
296 Group: System/Libraries
297 Conflicts: samba-dc < 4.3.4-3
298
299 %description -n %{libkdc}
300 This package contains Kerberos KDC libraries for Samba.
301
302 %package -n %{libheimntlm}
303 Summary: Samba AD Domain controller NTLM Libraries
304 Group: System/Libraries
305 Conflicts: samba-dc < 4.10.0-0.rc1.4
306
307 %description -n %{libheimntlm}
308 This package contains NTLM libraries for Samba.
309 %endif
310
311 ### DEVEL
312 %package -n %{develname}
313 Summary: Developer tools for Samba libraries
314 Group: Development/C
315 Requires: %{libname} = %{version}-%{release}
316 Provides: libsamba-devel = %{version}-%{release}
317 Provides: samba-devel = %{version}-%{release}
318 Conflicts: python3-samba < 4.10.0-0.rc1.2
319 Conflicts: %{_lib}samba1 < 4.10.0-0.rc1.3
320 Obsoletes: %{_lib}samba4-devel < 4.1.17-11
321
322 %description -n %{develname}
323 The samba4-devel package contains the header files for the libraries
324 needed to develop programs that link against the SMB, RPC and other
325 libraries in the Samba suite.
326
327 ### CEPH
328 %if %{with_vfs_cephfs}
329 %package vfs-cephfs
330 Summary: Samba VFS module for Ceph distributed storage system
331 Group: Applications/System
332 Requires: libcephfs1
333 Requires: %{name} = %{version}-%{release}
334 Requires: %{libname} = %{version}-%{release}
335
336 %description vfs-cephfs
337 Samba VFS module for Ceph distributed storage system integration.
338 %endif
339
340 ### GLUSTER
341 %if %{with_vfs_glusterfs}
342 %package vfs-glusterfs
343 Summary: Samba VFS module for GlusterFS
344 Group: System/Libraries
345 Requires: glusterfs-api >= 3.4.0.16
346 Requires: glusterfs >= 3.4.0.16
347 Requires: %{name} = %{version}-%{release}
348 Requires: %{libname} = %{version}-%{release}
349
350
351 %description vfs-glusterfs
352 Samba VFS module for GlusterFS integration.
353 %endif
354
355 ### KRB5-PRINTING
356 %package krb5-printing
357 Summary: Samba CUPS backend for printing with Kerberos
358 Group: Networking/Remote access
359 Requires(pre): %{name}-client
360
361 Requires(post): chkconfig
362 Requires(postun): chkconfig
363
364 %description krb5-printing
365 If you need Kerberos for print jobs to a printer connection to cups via the SMB
366 backend, then you need to install that package. It will allow cups to access
367 the Kerberos credentials cache of the user issuing the print job.
368
369 ### LIBS
370 %package -n %{libname}
371 Summary: Samba libraries
372 Group: System/Libraries
373 Requires: krb5-libs >= 1.10
374 %if %{with_libwbclient}
375 Requires: %{libwbclient} = %{version}-%{release}
376 %endif
377 Conflicts: python3-samba < 4.10.0-0.rc1.2
378 Obsoletes: %{_lib}samba41 < 4.1.17-11
379 # libnetapi.so.0 was in a separate pkg in mga5
380 Obsoletes: %{_lib}netapi0 < 3.6.25-3
381
382 %description -n %{libname}
383 The samba4-libs package contains the libraries needed by programs that
384 link against the SMB, RPC and other protocols provided by the Samba suite.
385
386 ### LIBSMBCLIENT
387 %if %{with_libsmbclient}
388 %package -n %{libsmbclient}
389 Summary: The SMB client library
390 Group: System/Libraries
391 Requires: %{name}-common = %{version}-%{release}
392 Requires: %{libname} = %{version}-%{release}
393 Obsoletes: %{_lib}samba4-smbclient0 < 4.1.17-12
394 # for gnome-vfs2
395 Provides: libsmbclient = %{version}-%{release}
396
397 %description -n %{libsmbclient}
398 The libsmbclient contains the SMB client library from the Samba suite.
399
400 %package -n %{smbclientdevel}
401 Summary: Developer tools for the SMB client library
402 Group: Development/C
403 Requires: %{libsmbclient} = %{version}-%{release}
404 Provides: libsmbclient-devel = %{version}-%{release}
405 Provides: smbclient-devel = %{version}-%{release}
406 Obsoletes: %{_lib}samba4-smbclient-devel < 4.1.17-12
407
408 %description -n %{smbclientdevel}
409 The libsmbclient-devel package contains the header files and libraries needed to
410 develop programs that link against the SMB client library in the Samba suite.
411 %endif # with_libsmbclient
412
413 ### LIBWBCLIENT
414 %if %{with_libwbclient}
415 %package -n %{libwbclient}
416 Summary: The winbind client library
417 Group: System/Libraries
418 Requires: %{libname} = %{version}-%{release}
419 Obsoletes: %{_lib}samba4-wbclient0 < 4.1.17-11
420
421 %description -n %{libwbclient}
422 The libwbclient package contains the winbind client library
423 from the Samba suite.
424
425 %package -n %{wbclientdevel}
426 Summary: Developer tools for the winbind library
427 Group: Development/C
428 Requires: %{libwbclient} = %{version}-%{release}
429 Provides: libwbclient-devel = %{version}-%{release}
430 Provides: wbclient-devel = %{version}-%{release}
431 Obsoletes: %{_lib}samba4-wbclient-devel < 4.1.17-11
432
433 %description -n %{wbclientdevel}
434 The libwbclient-devel package provides developer tools for
435 the wbclient library.
436 %endif # with_libwbclient
437
438 ### PYTHON
439 %package -n python2-samba
440 Summary: Samba Python libraries
441 Group: System/Libraries
442 Requires: %{name} = %{version}-%{release}
443 Requires: %{libname} = %{version}-%{release}
444 Requires: python-tevent
445 Requires: python-tdb
446 Requires: python-ldb
447 Requires: python-talloc
448 Provides: python-%{name} = %{version}-%{release}
449 Provides: %{name}-python = %{version}-%{release}
450 # temp cauldron fix:
451 Obsoletes: python-samba4 < 4.2.3
452 Obsoletes: samba4-python < 4.1.17-11
453 Provides: samba4-python = %{version}-%{release}
454
455 %description -n python2-samba
456 The samba4-python package contains the Python libraries needed by programs
457 that use SMB, RPC and other Samba provided protocols in Python programs.
458
459 %package -n python3-samba
460 Summary: Samba Python libraries
461 Group: System/Libraries
462 Requires: %{name} = %{version}-%{release}
463 Requires: %{libname} = %{version}-%{release}
464 Requires: python3-tevent
465 Requires: python3-tdb
466 Requires: python3-ldb
467 Requires: python3-talloc
468
469 %description -n python3-samba
470 The samba4-python package contains the Python libraries needed by programs
471 that use SMB, RPC and other Samba provided protocols in Python programs.
472
473 ### PIDL
474 %package pidl
475 Summary: Perl IDL compiler
476 Group: Development/Tools
477 Requires: perl(Parse::Yapp)
478 BuildArch: noarch
479
480
481 %description pidl
482 The %{name}-pidl package contains the Perl IDL compiler used by Samba
483 and Wireshark to parse IDL and similar protocols
484
485 ### TEST
486 %package test
487 Summary: Testing tools for Samba servers and clients
488 Group: Networking/Other
489 Requires: %{name} = %{version}-%{release}
490 Requires: %{name}-common = %{version}-%{release}
491 Requires: %{name}-winbind = %{version}-%{release}
492 Requires: %{libname} = %{version}-%{release}
493
494 %if %{with_dc}
495 Requires: %{libsdc} = %{version}-%{release}
496 %endif
497
498 %if %{with_libsmbclient}
499 Requires: %{libsmbclient} = %{version}-%{release}
500 %endif
501
502 %if %{with_libwbclient}
503 Requires: %{libwbclient} = %{version}-%{release}
504 %endif
505
506 %description test
507 %{name}-test provides testing tools for both the server and client
508 packages of Samba.
509
510 ### TEST-LIBS
511 %package -n %{libtest}
512 Summary: Libraries need by teh testing tools for Samba servers and clients
513 Group: Networking/Remote access
514 Requires: %{libname} = %{version}-%{release}
515 Obsoletes: %{_lib}samba4-test0 < 4.1.17-11
516
517 %description -n %{libtest}
518 %{name}-test-libs provides libraries required by the testing tools.
519
520 ### TEST-DEVEL
521 %package -n %{testdevel}
522 Summary: Testing devel files for Samba servers and clients
523 Group: Development/C
524 Requires: %{libtest} = %{version}-%{release}
525 Obsoletes: %{_lib}samba4-test-devel < 4.1.17-11
526
527 %description -n %{testdevel}
528 samba-test-devel provides testing devel files for both the server and client
529 packages of Samba.
530
531 ### WINBIND
532 %package winbind
533 Summary: Samba winbind
534 Group: System/Libraries
535 Requires: %{name}-common = %{version}-%{release}
536 Requires: %{libname} = %{version}-%{release}
537 Requires: %{name}-winbind-modules = %{version}-%{release}
538 Obsoletes: samba4-winbind < 4.1.17-11
539 Provides: samba4-winbind = %{version}-%{release}
540 Obsoletes: nss_wins < 4.0.0
541 Provides: nss_wins = %{version}-%{release}
542
543 %description winbind
544 The samba-winbind package provides the winbind NSS library, and some
545 client tools. Winbind enables Linux to be a full member in Windows
546 domains and to use Windows user and group accounts on Linux.
547
548 ### WINBIND-CLIENTS
549 %package winbind-clients
550 Summary: Samba winbind clients
551 Group: System/Libraries
552 Requires: %{name}-common = %{version}-%{release}
553 Requires: %{libname} = %{version}-%{release}
554 Requires: %{name}-winbind = %{version}-%{release}
555 %if %{with_libwbclient}
556 Requires: %{libwbclient} = %{version}-%{release}
557 %endif
558
559 Provides: samba4-winbind-clients = %{version}-%{release}
560 Obsoletes: samba4-winbind-clients < %{version}-%{release}
561
562 %description winbind-clients
563 The samba-winbind-clients package provides the wbinfo and ntlm_auth
564 tool.
565
566 ### WINBIND-KRB5-LOCATOR
567 %package winbind-krb5-locator
568 Summary: Samba winbind krb5 locator
569 Group: Networking/Remote access
570 %if %{with_libwbclient}
571 Requires: %{libwbclient} = %{version}-%{release}
572 Requires: %{name}-winbind = %{version}-%{release}
573 %else
574 Requires: %{libname} = %{version}-%{release}
575 %endif
576 Provides: samba4-winbind-krb5-locator = %{version}-%{release}
577
578 # Handle winbind_krb5_locator.so as alternatives to allow
579 # IPA AD trusts case where it should not be used by libkrb5
580 # The plugin will be diverted to /dev/null by the FreeIPA
581 # freeipa-server-trust-ad subpackage due to higher priority
582 # and restored to the proper one on uninstall
583 Requires(post): chkconfig
584 Requires(postun): chkconfig
585 Requires(preun): chkconfig
586
587 %description winbind-krb5-locator
588 The winbind krb5 locator is a plugin for the system kerberos library to allow
589 the local kerberos library to use the same KDC as samba and winbind use
590
591 ### WINBIND-MODULES
592 %package winbind-modules
593 Summary: Samba winbind modules
594 Group: System/Libraries
595 Requires: %{libname} = %{version}-%{release}
596 %if %{with_libwbclient}
597 Requires: %{libwbclient} = %{version}-%{release}
598 %endif
599 Requires: pam
600
601 %description winbind-modules
602 The samba-winbind-modules package provides the NSS library and a PAM
603 module necessary to communicate to the Winbind Daemon
604
605 ### CTDB
606 %if %{with_clustering_support}
607 %package -n ctdb
608 Summary: A Clustered Database based on Samba's Trivial Database (TDB)
609 Group: System/Cluster
610
611 Requires: coreutils
612 #Requires: fileutils
613 # for ps and killall
614 Requires: psmisc
615 Requires: sed
616 Requires: tdb-utils
617 Requires: gawk
618 # for pkill and pidof:
619 Requires: procps-ng
620 # for netstat:
621 Requires: net-tools
622 Requires: ethtool
623 # for ip:
624 Requires: iproute2
625 Requires: iptables
626 # for flock, getopt, kill:
627 Requires: util-linux
628
629 Requires(post): systemd-units
630 Requires(preun): systemd-units
631 Requires(postun): systemd-units
632
633 %description -n ctdb
634 CTDB is a cluster implementation of the TDB database used by Samba and other
635 projects to store temporary data. If an application is already using TDB for
636 temporary data it is very easy to convert that application to be cluster aware
637 and use CTDB instead.
638
639 ### CTDB-DEVEL
640 %package -n ctdb-devel
641 Summary: CTDB clustered database development package
642 Group: Development/Other
643
644 Requires: ctdb = %{version}-%{release}
645
646 %description -n ctdb-devel
647 Libraries, include files, etc you can use to develop CTDB applications.
648 CTDB is a cluster implementation of the TDB database used by Samba and other
649 projects to store temporary data. If an application is already using TDB for
650 temporary data it is very easy to convert that application to be cluster aware
651 and use CTDB instead.
652
653 ### CTDB-TEST
654 %package -n ctdb-tests
655 Summary: CTDB clustered database test suite
656 Group: Development/Other
657
658 Requires: ctdb = %{version}-%{release}
659 Requires: nmap
660
661 %description -n ctdb-tests
662 Test suite for CTDB.
663 CTDB is a cluster implementation of the TDB database used by Samba and other
664 projects to store temporary data. If an application is already using TDB for
665 temporary data it is very easy to convert that application to be cluster aware
666 and use CTDB instead.
667 %endif # with_clustering_support
668
669 %prep
670 %autosetup -p1 -n samba-%{version}%{pre_release}
671
672 %build
673 %serverbuild
674
675 %global _talloc_lib ,talloc,pytalloc,pytalloc-util
676 %global _tevent_lib ,tevent,pytevent
677 %global _tdb_lib ,tdb,pytdb
678 %global _ldb_lib ,ldb,pyldb,pyldb-util
679
680 %if ! %{with_internal_talloc}
681 %global _talloc_lib ,!talloc,!pytalloc,!pytalloc-util
682 %endif
683
684 %if ! %{with_internal_tevent}
685 %global _tevent_lib ,!tevent,!pytevent
686 %endif
687
688 %if ! %{with_internal_tdb}
689 %global _tdb_lib ,!tdb,!pytdb
690 %endif
691
692 %if ! %{with_internal_ldb}
693 %global _ldb_lib ,!ldb,!pyldb
694 %endif
695
696 %global _samba_libraries heimdal,!zlib,!popt%{_talloc_lib}%{_tevent_lib}%{_tdb_lib}%{_ldb_lib}
697
698 %global _samba4_idmap_modules idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2
699 %global _samba4_pdb_modules pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4
700 %global _samba4_auth_modules auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4
701
702 %global _samba_modules %{_samba4_idmap_modules},%{_samba4_pdb_modules},%{_samba4_auth_modules}
703
704 %global _libsmbclient %nil
705 %global _libwbclient %nil
706
707 %if ! %{with_libsmbclient}
708 %global _libsmbclient smbclient,
709 %endif
710
711 %if ! %{with_libwbclient}
712 %global _libwbclient wbclient,
713 %endif
714
715 %global _samba_private_libraries %{_libsmbclient}%{_libwbclient}
716
717 %configure2_5x \
718 --enable-fhs \
719 --sysconfdir=%{_sysconfdir} \
720 --prefix=%{_prefix} \
721 --localstatedir=%{_localstatedir} \
722 --with-piddir=/run \
723 --with-sockets-dir=/run/samba \
724 --with-modulesdir=%{_libdir}/samba \
725 --with-pammodulesdir=%{_libdir}/security \
726 --with-lockdir=/var/lib/samba/lock \
727 --with-cachedir=/var/lib/samba \
728 --disable-rpath-install \
729 --with-shared-modules=%{_samba_modules} \
730 --bundled-libraries=%{_samba_libraries} \
731 --with-pam \
732 --with-pie \
733 --with-relro \
734 --without-fam \
735 %if (! %{with_libsmbclient}) || (! %{with_libwbclient})
736 --private-libraries=%{_samba_private_libraries} \
737 %endif
738 %if %{with_mitkrb5}
739 --with-system-mitkrb5 \
740 %if %{with_dc}
741 --with-experimental-mit-ad-dc \
742 %endif
743 %endif
744 %if ! %{with_dc}
745 --without-ad-dc \
746 %endif
747 %if ! %{with_vfs_glusterfs}
748 --disable-glusterfs \
749 %endif
750 %if %{with_clustering_support}
751 --with-cluster-support \
752 %endif
753 %if %{with_profiling}
754 --with-profiling-data \
755 %endif
756 %if %{with testsuite}
757 --enable-selftest \
758 %endif
759 --with-systemd \
760 --systemd-install-services \
761 --extra-python=%{__python2}
762
763 %make_build
764
765 %install
766 %make_install
767
768 install -d -m 0755 %{buildroot}/usr/{sbin,bin}
769 install -d -m 0755 %{buildroot}%{_libdir}/security
770 install -d -m 0755 %{buildroot}/var/lib/samba
771 install -d -m 0755 %{buildroot}/var/lib/samba/lock
772 install -d -m 0755 %{buildroot}/var/lib/samba/private
773 install -d -m 0755 %{buildroot}/var/lib/samba/winbindd_privileged
774 install -d -m 0755 %{buildroot}/var/lib/samba/scripts
775 install -d -m 0755 %{buildroot}/var/lib/samba/sysvol
776 install -d -m 0755 %{buildroot}/var/log/samba/old
777 install -d -m 0755 %{buildroot}/var/spool/samba
778 install -d -m 0755 %{buildroot}/run/samba
779 install -d -m 0755 %{buildroot}/run/winbindd
780 install -d -m 0755 %{buildroot}/%{_libdir}/samba
781 install -d -m 0755 %{buildroot}/%{_libdir}/samba/ldb
782 install -d -m 0755 %{buildroot}/%{_libdir}/pkgconfig
783
784 # Move smbspool_krb5_wrapper
785 #install -d -m 0755 %{buildroot}%{_libexecdir}/samba
786 #mv %{buildroot}%{_bindir}/smbspool_krb5_wrapper %{buildroot}%{_libexecdir}/samba
787
788 # Install other stuff
789 install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
790 install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/samba
791
792 install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/samba/smb.conf
793
794 install -d -m 0755 %{buildroot}%{_sysconfdir}/security
795 install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/security/pam_winbind.conf
796
797 install -d -m 0755 %{buildroot}%{_sysconfdir}/pam.d
798 install -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/pam.d/samba
799
800 echo 127.0.0.1 localhost > %{buildroot}%{_sysconfdir}/samba/lmhosts
801
802 # openLDAP database schema
803 install -d -m 0755 %{buildroot}%{_sysconfdir}/openldap/schema
804 install -m644 examples/LDAP/samba.schema %{buildroot}%{_sysconfdir}/openldap/schema/samba.schema
805
806 install -m 0744 packaging/printing/smbprint %{buildroot}%{_bindir}/smbprint
807
808 install -d -m 0755 %{buildroot}%{_tmpfilesdir}/
809 echo "d /run/samba 755 root root" >> %{buildroot}%{_tmpfilesdir}/samba.conf
810 %if %{with_clustering_support}
811 echo "d /run/ctdb 755 root root" >> %{buildroot}%{_tmpfilesdir}/ctdb.conf
812 %endif
813
814 %if %{with_clustering_support}
815 #install -m 0644 ctdb/config/ctdb.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/ctdb
816 %endif
817
818 install -m 0644 %{SOURCE201} packaging/README.downgrade
819
820 %if ! %{with_dc}
821 install -m 0644 %{SOURCE200} packaging/README.dc
822 install -m 0644 %{SOURCE200} packaging/README.dc-libs
823 %endif
824
825 # Fix systemd daemon
826 sed -i "s:'systemd-daemon':'systemd':g" -i lib/util/wscript_configure
827
828 %if %{with_clustering_support}
829 install -m 0644 ctdb/config/ctdb.service %{buildroot}%{_unitdir}
830 %endif
831
832 # NetworkManager online/offline script
833 #%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/
834 #%{__install} -m 0755 packaging/NetworkManager/30-winbind-systemd \
835 # %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/30-winbind
836
837 # winbind krb5 locator
838 install -d -m 0755 %{buildroot}%{_libdir}/krb5/plugins/libkrb5
839 touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so
840
841 mkdir -p %{buildroot}/var/lib/samba/msg
842
843 %if %{with testsuite}
844 %check
845 TDB_NO_FSYNC=1 %make test
846 %endif
847
848 %pre
849 %_pre_useradd %{name} /dev/null /bin/false
850
851 %post
852 %_post_service smb
853 %_post_service nmb
854
855 %post dc
856 %_post_service samba
857
858 %preun
859 %_preun_service smb
860 %_preun_service nmb
861
862 %preun dc
863 %_preun_service samba
864
865 %postun
866 %_postun_userdel %{name}
867 %_postun_service smb
868 %_postun_service nmb
869
870 %postun dc
871 %_postun_service samba
872
873 %post common
874 %_tmpfilescreate %{name}
875 if [ -d /var/cache/samba ]; then
876 mv /var/cache/samba/netsamlogon_cache.tdb /var/lib/samba/ 2>/dev/null
877 mv /var/cache/samba/winbindd_cache.tdb /var/lib/samba/ 2>/dev/null
878 rm -rf /var/cache/samba/
879 ln -sf /var/cache/samba /var/lib/samba/
880 fi
881
882 ### CLIENT
883 %post client
884 %{_sbindir}/update-alternatives --install %{_libexecdir}/samba/cups_backend_smb \
885 cups_backend_smb \
886 %{_bindir}/smbspool 10
887
888 %postun client
889 if [ $1 -eq 0 ] ; then
890 %{_sbindir}/update-alternatives --remove cups_backend_smb %{_libexecdir}/samba/smbspool
891 fi
892
893 ### KRB5-PRINTING
894 %post krb5-printing
895 %{_sbindir}/update-alternatives --install %{_libexecdir}/samba/cups_backend_smb \
896 cups_backend_smb \
897 %{_libexecdir}/samba/smbspool_krb5_wrapper 50
898
899 %postun krb5-printing
900 if [ $1 -eq 0 ] ; then
901 %{_sbindir}/update-alternatives --remove cups_backend_smb %{_libexecdir}/samba/smbspool_krb5_wrapper
902 fi
903
904 %pre winbind
905 %_pre_groupadd wbpriv
906
907 %postun winbind
908 %_postun_groupdel wbpriv
909
910
911 ### SAMBA
912 %files
913 %doc COPYING README.md WHATSNEW.txt
914 %doc examples/autofs examples/LDAP examples/misc
915 %doc examples/printer-accounting examples/printing
916 %doc packaging/README.downgrade
917 %{_bindir}/smbstatus
918 %{_sbindir}/eventlogadm
919 %{_bindir}/findsmb
920 %{_sbindir}/nmbd
921 %{_sbindir}/smbd
922 %dir %{_libdir}/samba/auth
923 %{_libdir}/samba/auth/script.so
924 %{_libdir}/samba/auth/unix.so
925 #{_libdir}/samba/auth/wbc.so
926 %dir %{_libdir}/samba/vfs
927 %{_libdir}/samba/vfs/acl_tdb.so
928 %{_libdir}/samba/vfs/acl_xattr.so
929 %{_libdir}/samba/vfs/aio_fork.so
930 #{_libdir}/samba/vfs/aio_linux.so
931 %{_libdir}/samba/vfs/aio_pthread.so
932 %{_libdir}/samba/vfs/audit.so
933 %{_libdir}/samba/vfs/btrfs.so
934 %{_libdir}/samba/vfs/cap.so
935 %{_libdir}/samba/vfs/catia.so
936 %{_libdir}/samba/vfs/commit.so
937 %{_libdir}/samba/vfs/crossrename.so
938 %{_libdir}/samba/vfs/default_quota.so
939 %{_libdir}/samba/vfs/dirsort.so
940 %{_libdir}/samba/vfs/expand_msdfs.so
941 %{_libdir}/samba/vfs/extd_audit.so
942 %{_libdir}/samba/vfs/fake_perms.so
943 %{_libdir}/samba/vfs/fileid.so
944 %{_libdir}/samba/vfs/fruit.so
945 %{_libdir}/samba/vfs/full_audit.so
946 %{_libdir}/samba/vfs/glusterfs_fuse.so
947 %{_libdir}/samba/vfs/linux_xfs_sgid.so
948 %{_libdir}/samba/vfs/media_harmony.so
949 %{_libdir}/samba/vfs/netatalk.so
950 %{_libdir}/samba/vfs/offline.so
951 %{_libdir}/samba/vfs/preopen.so
952 %{_libdir}/samba/vfs/readahead.so
953 %{_libdir}/samba/vfs/readonly.so
954 %{_libdir}/samba/vfs/recycle.so
955 %{_libdir}/samba/vfs/shadow_copy.so
956 %{_libdir}/samba/vfs/shadow_copy2.so
957 %{_libdir}/samba/vfs/snapper.so
958 %{_libdir}/samba/vfs/streams_depot.so
959 %{_libdir}/samba/vfs/streams_xattr.so
960 %{_libdir}/samba/vfs/syncops.so
961 %{_libdir}/samba/vfs/time_audit.so
962 %{_libdir}/samba/vfs/virusfilter.so
963 %{_libdir}/samba/vfs/worm.so
964 %{_libdir}/samba/vfs/xattr_tdb.so
965
966 %{_unitdir}/nmb.service
967 %{_unitdir}/smb.service
968 %attr(1777,root,root) %dir /var/spool/samba
969 %dir %{_sysconfdir}/openldap/schema
970 %{_sysconfdir}/openldap/schema/samba.schema
971 %{_sysconfdir}/pam.d/samba
972 %{_mandir}/man1/smbstatus.1*
973 %{_mandir}/man8/eventlogadm.8*
974 %{_mandir}/man8/smbd.8*
975 %{_mandir}/man8/nmbd.8*
976 %{_mandir}/man8/vfs_acl_tdb.8*
977 %{_mandir}/man8/vfs_acl_xattr.8*
978 %{_mandir}/man8/vfs_aio_fork.8*
979 %{_mandir}/man8/vfs_aio_pthread.8*
980 %{_mandir}/man8/vfs_audit.8*
981 %{_mandir}/man8/vfs_btrfs.8*
982 %{_mandir}/man8/vfs_cap.8*
983 %{_mandir}/man8/vfs_catia.8*
984 %{_mandir}/man8/vfs_commit.8*
985 %{_mandir}/man8/vfs_crossrename.8*
986 %{_mandir}/man8/vfs_default_quota.8*
987 %{_mandir}/man8/vfs_dirsort.8*
988 %{_mandir}/man8/vfs_extd_audit.8*
989 %{_mandir}/man8/vfs_fake_perms.8*
990 %{_mandir}/man8/vfs_fileid.8*
991 %{_mandir}/man8/vfs_fruit.8*
992 %{_mandir}/man8/vfs_full_audit.8*
993 %{_mandir}/man8/vfs_glusterfs_fuse.8*
994 %{_mandir}/man8/vfs_linux_xfs_sgid.8*
995 %{_mandir}/man8/vfs_media_harmony.8*
996 %{_mandir}/man8/vfs_netatalk.8*
997 %{_mandir}/man8/vfs_preopen.8*
998 %{_mandir}/man8/vfs_readahead.8*
999 %{_mandir}/man8/vfs_readonly.8*
1000 %{_mandir}/man8/vfs_recycle.8*
1001 %{_mandir}/man8/vfs_shadow_copy.8*
1002 %{_mandir}/man8/vfs_shadow_copy2.8*
1003 %{_mandir}/man8/vfs_snapper.8*
1004 %{_mandir}/man8/vfs_streams_depot.8*
1005 %{_mandir}/man8/vfs_streams_xattr.8*
1006 %{_mandir}/man8/vfs_syncops.8*
1007 %{_mandir}/man8/vfs_time_audit.8*
1008 %{_mandir}/man8/vfs_virusfilter.8*
1009 %{_mandir}/man8/vfs_worm.8*
1010 %{_mandir}/man8/vfs_xattr_tdb.8*
1011
1012 ### CLIENT
1013 %files client
1014 %{_bindir}/cifsdd
1015 %{_bindir}/mvxattr
1016 %{_bindir}/dbwrap_tool
1017 %{_bindir}/nmblookup
1018 %{_bindir}/oLschema2ldif
1019 %{_bindir}/regdiff
1020 %{_bindir}/regpatch
1021 %{_bindir}/regshell
1022 %{_bindir}/regtree
1023 %{_bindir}/rpcclient
1024 %{_bindir}/samba-regedit
1025 %{_bindir}/sharesec
1026 %{_bindir}/smbcacls
1027 %{_bindir}/smbclient
1028 %{_bindir}/smbcquotas
1029 %{_bindir}/smbget
1030 %{_bindir}/smbprint
1031 %{_bindir}/smbspool
1032 %{_bindir}/smbtar
1033 %{_bindir}/smbtree
1034 %dir %{_libexecdir}/samba
1035 %ghost %{_libexecdir}/samba/cups_backend_smb
1036 %{_mandir}/man1/mvxattr.1*
1037 %{_mandir}/man1/dbwrap_tool.1*
1038 %{_mandir}/man1/nmblookup.1*
1039 %{_mandir}/man1/oLschema2ldif.1*
1040 %{_mandir}/man1/regdiff.1*
1041 %{_mandir}/man1/regpatch.1*
1042 %{_mandir}/man1/regshell.1*
1043 %{_mandir}/man1/regtree.1*
1044 %exclude %{_mandir}/man1/findsmb.1*
1045 %{_mandir}/man1/log2pcap.1*
1046 %{_mandir}/man1/rpcclient.1*
1047 %{_mandir}/man1/sharesec.1*
1048 %{_mandir}/man1/smbcacls.1*
1049 %{_mandir}/man1/smbclient.1*
1050 %{_mandir}/man1/smbcquotas.1*
1051 %{_mandir}/man1/smbget.1*
1052 ## we don't build it for now
1053 %if %{with_internal_ntdb}
1054 %{_mandir}/man3/ntdb.3*
1055 %{_mandir}/man8/ntdbbackup.8*
1056 %{_mandir}/man8/ntdbdump.8*
1057 %{_mandir}/man8/ntdbrestore.8*
1058 %{_mandir}/man8/ntdbtool.8*
1059 %endif
1060 %{_mandir}/man5/smbgetrc.5*
1061 %{_mandir}/man1/smbtar.1*
1062 %{_mandir}/man1/smbtree.1*
1063 %{_mandir}/man8/samba-regedit.8*
1064 %{_mandir}/man8/smbspool.8*
1065 %{_mandir}/man8/cifsdd.8*
1066 %{_mandir}/man8/vfs_offline.8*
1067
1068 ## we don't build it for now
1069 %if %{with_internal_ntdb}
1070 %{_bindir}/ntdbbackup
1071 %{_bindir}/ntdbdump
1072 %{_bindir}/ntdbrestore
1073 %{_bindir}/ntdbtool
1074 %endif
1075
1076 %if %{with_internal_tdb}
1077 %{_bindir}/tdbbackup
1078 %{_bindir}/tdbdump
1079 %{_bindir}/tdbrestore
1080 %{_bindir}/tdbtool
1081 %{_mandir}/man8/tdbbackup.8*
1082 %{_mandir}/man8/tdbdump.8*
1083 %{_mandir}/man8/tdbrestore.8*
1084 %{_mandir}/man8/tdbtool.8*
1085 %endif
1086
1087 %if %{with_internal_ldb}
1088 %{_bindir}/ldbadd
1089 %{_bindir}/ldbdel
1090 %{_bindir}/ldbedit
1091 %{_bindir}/ldbmodify
1092 %{_bindir}/ldbrename
1093 %{_bindir}/ldbsearch
1094 %{_libdir}/samba/libldb-cmdline-samba4.so
1095 %dir %{_libdir}/samba/ldb
1096 %{_libdir}/samba/ldb/asq.so
1097 %{_libdir}/samba/ldb/dsdb_notification.so
1098 %{_libdir}/samba/ldb/paged_results.so
1099 %{_libdir}/samba/ldb/paged_searches.so
1100 %{_libdir}/samba/ldb/rdn_name.so
1101 %{_libdir}/samba/ldb/sample.so
1102 %{_libdir}/samba/ldb/server_sort.so
1103 %{_libdir}/samba/ldb/skel.so
1104 %{_libdir}/samba/ldb/tdb.so
1105 %{_libdir}/samba/ldb/vlv.so
1106 %{_mandir}/man1/ldbadd.1.xz
1107 %{_mandir}/man1/ldbdel.1.xz
1108 %{_mandir}/man1/ldbedit.1.xz
1109 %{_mandir}/man1/ldbmodify.1.xz
1110 %{_mandir}/man1/ldbrename.1.xz
1111 %{_mandir}/man1/ldbsearch.1.xz
1112 %endif
1113
1114 ### COMMON
1115 %files common
1116 %{_tmpfilesdir}/samba.conf
1117 %dir %{_sysconfdir}/logrotate.d/
1118 %config(noreplace) %{_sysconfdir}/logrotate.d/samba
1119 %attr(0700,root,root) %dir /var/log/samba
1120 %attr(0700,root,root) %dir /var/log/samba/old
1121 %ghost %dir /run/samba
1122 %ghost %dir /run/winbindd
1123 %dir /var/lib/samba
1124 %attr(700,root,root) %dir /var/lib/samba/private
1125 %attr(755,root,root) %dir /var/lib/samba/msg
1126 %dir /var/lib/samba/lock
1127 %attr(755,root,root) %dir %{_sysconfdir}/samba
1128 %config(noreplace) %{_sysconfdir}/samba/smb.conf
1129 %config(noreplace) %{_sysconfdir}/samba/lmhosts
1130 %config(noreplace) %{_sysconfdir}/sysconfig/samba
1131 %{_bindir}/net
1132 %{_bindir}/pdbedit
1133 %{_bindir}/profiles
1134 %{_bindir}/smbcontrol
1135 %{_bindir}/smbpasswd
1136 %{_bindir}/testparm
1137 %{_mandir}/man1/profiles.1*
1138 %{_mandir}/man1/smbcontrol.1*
1139 %{_mandir}/man1/testparm.1*
1140 %{_mandir}/man5/lmhosts.5*
1141 %{_mandir}/man5/smb.conf.5*
1142 %{_mandir}/man5/smbpasswd.5*
1143 %{_mandir}/man7/samba.7*
1144 %{_mandir}/man7/traffic*.7*
1145 %{_mandir}/man8/net.8*
1146 %{_mandir}/man8/pdbedit.8*
1147 %{_mandir}/man8/smbpasswd.8*
1148
1149 # common libraries
1150 %{_libdir}/samba/libpopt-samba3-samba4.so
1151 %{_libdir}/samba/libpopt-samba3-cmdline-samba4.so
1152
1153 %dir %{_libdir}/samba/pdb
1154 %{_libdir}/samba/pdb/ldapsam.so
1155 %{_libdir}/samba/pdb/smbpasswd.so
1156 %{_libdir}/samba/pdb/tdbsam.so
1157 #{_libdir}/samba/pdb/wbc_sam.so
1158
1159 ### DC
1160 %files dc
1161
1162 %if %{with_dc}
1163 %{_unitdir}/samba.service
1164 %{_bindir}/samba-tool
1165 %{_sbindir}/samba
1166 %{_sbindir}/samba_kcc
1167 %{_sbindir}/samba_dnsupdate
1168 %{_sbindir}/samba_spnupdate
1169 %{_sbindir}/samba_upgradedns
1170 %{_sbindir}/samba-gpupdate
1171 %{_libdir}/samba/auth/samba4.so
1172 %{_libdir}/samba/bind9/dlz_bind9.so
1173 %{_libdir}/samba/bind9/dlz_bind9_10.so
1174 %{_libdir}/samba/bind9/dlz_bind9_11.so
1175 %{_libdir}/samba/bind9/dlz_bind9_12.so
1176 %dir %{_libdir}/samba/gensec
1177 %{_libdir}/samba/gensec/krb5.so
1178 %{_libdir}/samba/ldb/acl.so
1179 %{_libdir}/samba/ldb/aclread.so
1180 %{_libdir}/samba/ldb/anr.so
1181 %{_libdir}/samba/ldb/audit_log.so
1182 %{_libdir}/samba/ldb/descriptor.so
1183 %{_libdir}/samba/ldb/dirsync.so
1184 %{_libdir}/samba/ldb/dsdb_notification.so
1185 %{_libdir}/samba/ldb/encrypted_secrets.so
1186 %{_libdir}/samba/ldb/extended_dn_in.so
1187 %{_libdir}/samba/ldb/extended_dn_out.so
1188 %{_libdir}/samba/ldb/extended_dn_store.so
1189 %{_libdir}/samba/ldb/group_audit_log.so
1190 %{_libdir}/samba/ldb/ildap.so
1191 %{_libdir}/samba/ldb/instancetype.so
1192 %{_libdir}/samba/ldb/lazy_commit.so
1193 %{_libdir}/samba/ldb/ldbsamba_extensions.so
1194 %{_libdir}/samba/ldb/linked_attributes.so
1195 %{_libdir}/samba/ldb/local_password.so
1196 %{_libdir}/samba/ldb/new_partition.so
1197 %{_libdir}/samba/ldb/objectclass.so
1198 %{_libdir}/samba/ldb/objectclass_attrs.so
1199 %{_libdir}/samba/ldb/objectguid.so
1200 %{_libdir}/samba/ldb/operational.so
1201 %{_libdir}/samba/ldb/paged_results.so
1202 %{_libdir}/samba/ldb/partition.so
1203 %{_libdir}/samba/ldb/password_hash.so
1204 %{_libdir}/samba/ldb/ranged_results.so
1205 %{_libdir}/samba/ldb/repl_meta_data.so
1206 %{_libdir}/samba/ldb/resolve_oids.so
1207 %{_libdir}/samba/ldb/rootdse.so
1208 %{_libdir}/samba/ldb/samba3sam.so
1209 %{_libdir}/samba/ldb/samba3sid.so
1210 %{_libdir}/samba/ldb/samba_dsdb.so
1211 %{_libdir}/samba/ldb/samba_secrets.so
1212 %{_libdir}/samba/ldb/samldb.so
1213 %{_libdir}/samba/ldb/schema_data.so
1214 %{_libdir}/samba/ldb/schema_load.so
1215 %{_libdir}/samba/ldb/secrets_tdb_sync.so
1216 %{_libdir}/samba/ldb/show_deleted.so
1217 %{_libdir}/samba/ldb/simple_dn.so
1218 %{_libdir}/samba/ldb/simple_ldap_map.so
1219 %{_libdir}/samba/ldb/subtree_delete.so
1220 %{_libdir}/samba/ldb/subtree_rename.so
1221 %{_libdir}/samba/ldb/unique_object_sids.so
1222 %{_libdir}/samba/ldb/update_keytab.so
1223 %{_libdir}/samba/ldb/vlv.so
1224 %{_libdir}/samba/ldb/wins_ldb.so
1225 %{_libdir}/samba/ldb/dns_notify.so
1226 %{_libdir}/samba/ldb/tombstone_reanimate.so
1227 %{_libdir}/samba/vfs/posix_eadb.so
1228 %dir /var/lib/samba/sysvol
1229 %{_datadir}/samba/setup
1230 %{_mandir}/man8/samba.8*
1231 %{_mandir}/man8/samba-tool.8*
1232 %{_mandir}/man8/samba-gpupdate.8*
1233 %else # with_dc
1234 %doc packaging/README.dc
1235 %exclude %{_mandir}/man8/samba.8*
1236 %exclude %{_mandir}/man8/samba-tool.8*
1237 %exclude %{_libdir}/samba/ldb/ildap.so
1238 %exclude %{_libdir}/samba/ldb/ldbsamba_extensions.so
1239
1240 %endif # with_dc
1241
1242 ### DC-LIBS
1243 %files -n %{libsdc}
1244
1245 %if %{with_dc}
1246 %{_libdir}/samba/libpac-samba4.so
1247 %{_libdir}/samba/libprocess-model-samba4.so
1248 %{_libdir}/samba/libservice-samba4.so
1249 %dir %{_libdir}/samba/process_model
1250 %{_libdir}/samba/process_model/*.so
1251 %dir %{_libdir}/samba/service
1252 %{_libdir}/samba/service/cldap.so
1253 %{_libdir}/samba/service/dcerpc.so
1254 %{_libdir}/samba/service/dns.so
1255 %{_libdir}/samba/service/dns_update.so
1256 %{_libdir}/samba/service/drepl.so
1257 %{_libdir}/samba/service/kcc.so
1258 %{_libdir}/samba/service/kdc.so
1259 %{_libdir}/samba/service/ldap.so
1260 %{_libdir}/samba/service/nbtd.so
1261 %{_libdir}/samba/service/ntp_signd.so
1262 %{_libdir}/samba/service/s3fs.so
1263 %{_libdir}/samba/service/web.so
1264 %{_libdir}/samba/service/winbindd.so
1265 %{_libdir}/samba/service/wrepl.so
1266 %{_libdir}/libdcerpc-server.so.%{dcmajor}
1267 %{_libdir}/libdcerpc-server.so.%{dcmajor}.*
1268 %{_libdir}/samba/libclidns-samba4.so
1269 %{_libdir}/samba/libdfs-server-ad-samba4.so
1270 %{_libdir}/samba/libdnsserver-common-samba4.so
1271 %{_libdir}/samba/libdsdb-module-samba4.so
1272 %{_libdir}/samba/libposix-eadb-samba4.so
1273 %{_libdir}/samba/bind9/dlz_bind9_9.so
1274 %else
1275 %doc packaging/README.dc-libs
1276 %exclude %{_libdir}/samba/libdfs-server-ad-samba4.so
1277 %exclude %{_libdir}/samba/libdnsserver-common-samba4.so
1278 %endif # with_dc
1279
1280 %if %{with_dc}
1281 %files -n %{libkdc}
1282 %{_libdir}/samba/libkdc-samba4.so.%{kdcmajor}
1283 %{_libdir}/samba/libkdc-samba4.so.%{kdcmajor}.*
1284
1285 %files -n %{libheimntlm}
1286 %{_libdir}/samba/libheimntlm-samba4.so.%{heimntlmmajor}
1287 %{_libdir}/samba/libheimntlm-samba4.so.%{heimntlmmajor}.*
1288 %endif
1289
1290 ### DEVEL
1291 %files -n %{develname}
1292 %{_includedir}/samba-4.0/charset.h
1293 %{_includedir}/samba-4.0/core/doserr.h
1294 %{_includedir}/samba-4.0/core/error.h
1295 %{_includedir}/samba-4.0/core/hresult.h
1296 %{_includedir}/samba-4.0/core/ntstatus.h
1297 %{_includedir}/samba-4.0/core/ntstatus_gen.h
1298 %{_includedir}/samba-4.0/core/werror.h
1299 %{_includedir}/samba-4.0/core/werror_gen.h
1300 %{_includedir}/samba-4.0/credentials.h
1301 %{_includedir}/samba-4.0/dcerpc.h
1302 %{_includedir}/samba-4.0/domain_credentials.h
1303 %{_includedir}/samba-4.0/gen_ndr/atsvc.h
1304 %{_includedir}/samba-4.0/gen_ndr/auth.h
1305 %{_includedir}/samba-4.0/gen_ndr/dcerpc.h
1306 %{_includedir}/samba-4.0/gen_ndr/krb5pac.h
1307 %{_includedir}/samba-4.0/gen_ndr/lsa.h
1308 %{_includedir}/samba-4.0/gen_ndr/misc.h
1309 %{_includedir}/samba-4.0/gen_ndr/nbt.h
1310 %{_includedir}/samba-4.0/gen_ndr/drsblobs.h
1311 %{_includedir}/samba-4.0/gen_ndr/drsuapi.h
1312 %{_includedir}/samba-4.0/gen_ndr/ndr_drsblobs.h
1313 %{_includedir}/samba-4.0/gen_ndr/ndr_drsuapi.h
1314 %{_includedir}/samba-4.0/gen_ndr/ndr_atsvc.h
1315 %{_includedir}/samba-4.0/gen_ndr/ndr_dcerpc.h
1316 %{_includedir}/samba-4.0/gen_ndr/ndr_krb5pac.h
1317 %{_includedir}/samba-4.0/gen_ndr/ndr_misc.h
1318 %{_includedir}/samba-4.0/gen_ndr/ndr_nbt.h
1319 %{_includedir}/samba-4.0/gen_ndr/ndr_samr.h
1320 %{_includedir}/samba-4.0/gen_ndr/ndr_samr_c.h
1321 %{_includedir}/samba-4.0/gen_ndr/ndr_svcctl.h
1322 %{_includedir}/samba-4.0/gen_ndr/ndr_svcctl_c.h
1323 %{_includedir}/samba-4.0/gen_ndr/netlogon.h
1324 %{_includedir}/samba-4.0/gen_ndr/samr.h
1325 %{_includedir}/samba-4.0/gen_ndr/security.h
1326 %{_includedir}/samba-4.0/gen_ndr/server_id.h
1327 %{_includedir}/samba-4.0/gen_ndr/svcctl.h
1328 %{_includedir}/samba-4.0/ldb_wrap.h
1329 %{_includedir}/samba-4.0/lookup_sid.h
1330 %{_includedir}/samba-4.0/machine_sid.h
1331 %{_includedir}/samba-4.0/ndr.h
1332 %dir %{_includedir}/samba-4.0/ndr
1333 %{_includedir}/samba-4.0/ndr/ndr_dcerpc.h
1334 %{_includedir}/samba-4.0/ndr/ndr_drsblobs.h
1335 %{_includedir}/samba-4.0/ndr/ndr_krb5pac.h
1336 %{_includedir}/samba-4.0/ndr/ndr_drsuapi.h
1337 %{_includedir}/samba-4.0/ndr/ndr_svcctl.h
1338 %{_includedir}/samba-4.0/ndr/ndr_nbt.h
1339 %{_includedir}/samba-4.0/netapi.h
1340 %{_includedir}/samba-4.0/param.h
1341 %{_includedir}/samba-4.0/passdb.h
1342 %{_includedir}/samba-4.0/policy.h
1343 %{_includedir}/samba-4.0/rpc_common.h
1344 %{_includedir}/samba-4.0/samba/session.h
1345 %{_includedir}/samba-4.0/samba/version.h
1346 %{_includedir}/samba-4.0/share.h
1347 %{_includedir}/samba-4.0/smbconf.h
1348 %{_includedir}/samba-4.0/smb2_lease_struct.h
1349 %{_includedir}/samba-4.0/smb_ldap.h
1350 %{_includedir}/samba-4.0/smbldap.h
1351 %{_includedir}/samba-4.0/tdr.h
1352 %{_includedir}/samba-4.0/tsocket.h
1353 %{_includedir}/samba-4.0/tsocket_internal.h
1354 %dir %{_includedir}/samba-4.0/util
1355 %{_includedir}/samba-4.0/util/attr.h
1356 %{_includedir}/samba-4.0/util/blocking.h
1357 %{_includedir}/samba-4.0/util/byteorder.h
1358 %{_includedir}/samba-4.0/util/data_blob.h
1359 %{_includedir}/samba-4.0/util/debug.h
1360 %{_includedir}/samba-4.0/util/discard.h
1361 %{_includedir}/samba-4.0/util/fault.h
1362 %{_includedir}/samba-4.0/util/idtree.h
1363 %{_includedir}/samba-4.0/util/idtree_random.h
1364 %{_includedir}/samba-4.0/util/signal.h
1365 %{_includedir}/samba-4.0/util/string_wrappers.h
1366 %{_includedir}/samba-4.0/util/substitute.h
1367 %{_includedir}/samba-4.0/util/tevent_ntstatus.h
1368 %{_includedir}/samba-4.0/util/tevent_unix.h
1369 %{_includedir}/samba-4.0/util/tevent_werror.h
1370 %{_includedir}/samba-4.0/util/tfork.h
1371 %{_includedir}/samba-4.0/util/time.h
1372 %{_includedir}/samba-4.0/util_ldb.h
1373 %{_includedir}/samba-4.0/util/genrand.h
1374 %{_libdir}/libdcerpc-binding.so
1375 %{_libdir}/libdcerpc-samr.so
1376 %{_libdir}/libdcerpc.so
1377 %{_libdir}/libndr-krb5pac.so
1378 %{_libdir}/libndr-nbt.so
1379 %{_libdir}/libndr-standard.so
1380 %{_libdir}/libndr.so
1381 %{_libdir}/libnetapi.so
1382 %{_libdir}/libsamba-credentials.so
1383 %{_libdir}/libsamba-hostconfig.so
1384 %{_libdir}/libsamba-util.so
1385 %{_libdir}/libsamdb.so
1386 %{_libdir}/libsmbconf.so
1387 %{_libdir}/libtevent-util.so
1388 %{_libdir}/pkgconfig/dcerpc.pc
1389 %{_libdir}/pkgconfig/dcerpc_samr.pc
1390 %{_libdir}/pkgconfig/ndr.pc
1391 %{_libdir}/pkgconfig/ndr_krb5pac.pc
1392 %{_libdir}/pkgconfig/ndr_nbt.pc
1393 %{_libdir}/pkgconfig/ndr_standard.pc
1394 %{_libdir}/pkgconfig/netapi.pc
1395 %{_libdir}/pkgconfig/samba-credentials.pc
1396 %{_libdir}/pkgconfig/samba-hostconfig.pc
1397 %{_libdir}/pkgconfig/samba-util.pc
1398 %{_libdir}/pkgconfig/samdb.pc
1399 %{_libdir}/libsamba-passdb.so
1400 %{_libdir}/libsmbldap.so
1401 %{_libdir}/libsamba-errors.so
1402
1403 %if %{with_dc}
1404 %{_includedir}/samba-4.0/dcerpc_server.h
1405 %{_libdir}/libdcerpc-server.so
1406 %{_libdir}/pkgconfig/dcerpc_server.pc
1407
1408 %{_libdir}/libsamba-policy.so
1409 %{_libdir}/libsamba-policy.*.so
1410 %{_libdir}/pkgconfig/samba-policy.pc
1411 %{_libdir}/pkgconfig/samba-policy.*.pc
1412 %endif
1413
1414 %if %{with_internal_talloc}
1415 %{_includedir}/samba-4.0/pytalloc.h
1416 %endif
1417
1418 %if ! %{with_libsmbclient}
1419 %{_includedir}/samba-4.0/libsmbclient.h
1420 %endif # ! with_libsmbclient
1421
1422 %if ! %{with_libwbclient}
1423 %{_includedir}/samba-4.0/wbclient.h
1424 %endif # ! with_libwbclient
1425
1426 ### VFS-CEPHFS
1427 %if %{with_vfs_cephfs}
1428 %files vfs-cephfs
1429 %{_libdir}/samba/vfs/ceph.so
1430 %{_mandir}/man8/vfs_ceph.8*
1431 %endif
1432
1433 ### VFS-GLUSTERFS
1434 %if %{with_vfs_glusterfs}
1435 %files vfs-glusterfs
1436 %{_libdir}/samba/vfs/glusterfs.so
1437 %{_mandir}/man8/vfs_glusterfs.8*
1438 %endif
1439
1440 ### KRB5-PRINTING
1441 %files krb5-printing
1442 %defattr(-,root,root)
1443 %attr(0700,root,root) %{_libexecdir}/samba/smbspool_krb5_wrapper
1444 %{_mandir}/man8/smbspool_krb5_wrapper.8*
1445
1446 ### LIBS
1447 %files -n %{libname}
1448 %{_libdir}/libdcerpc-samr.so.*
1449 %{_libdir}/libsamba-policy.so.*
1450 %{_libdir}/libsamba-policy.*.so.*
1451
1452 # libraries needed by the public libraries
1453 %{_libdir}/samba/libMESSAGING-samba4.so
1454 %{_libdir}/samba/libMESSAGING-SEND-samba4.so
1455 %{_libdir}/samba/libLIBWBCLIENT-OLD-samba4.so
1456 %{_libdir}/samba/libauth4-samba4.so
1457 %{_libdir}/samba/libauth-unix-token-samba4.so
1458 %{_libdir}/samba/libcluster-samba4.so
1459 %{_libdir}/samba/libcommon-auth-samba4.so
1460 %{_libdir}/samba/libdcerpc-samba4.so
1461 %{_libdir}/samba/libnon-posix-acls-samba4.so
1462 %{_libdir}/samba/libsamba-net-samba4.so
1463 %{_libdir}/samba/libsamba-net.*-samba4.so
1464 %{_libdir}/samba/libsamba-python-samba4.so
1465 %{_libdir}/samba/libsamba-python.*-samba4.so
1466 %{_libdir}/samba/libshares-samba4.so
1467 %{_libdir}/samba/libsmbpasswdparser-samba4.so
1468 %{_libdir}/samba/libxattr-tdb-samba4.so
1469
1470 %if %{with_dc}
1471 %{_libdir}/samba/libdb-glue-samba4.so
1472 %{_libdir}/samba/libHDB-SAMBA4-samba4.so
1473 %{_libdir}/samba/libasn1-samba4.so.8
1474 %{_libdir}/samba/libasn1-samba4.so.8.0.0
1475 %{_libdir}/samba/libgssapi-samba4.so.2
1476 %{_libdir}/samba/libgssapi-samba4.so.2.0.0
1477 %{_libdir}/samba/libhcrypto-samba4.so.5
1478 %{_libdir}/samba/libhcrypto-samba4.so.5.0.1
1479 %{_libdir}/samba/libhdb-samba4.so.11
1480 %{_libdir}/samba/libhdb-samba4.so.11.0.2
1481 %{_libdir}/samba/libheimbase-samba4.so.1
1482 %{_libdir}/samba/libheimbase-samba4.so.1.0.0
1483 %{_libdir}/samba/libhx509-samba4.so.5
1484 %{_libdir}/samba/libhx509-samba4.so.5.0.0
1485 %{_libdir}/samba/libkrb5-samba4.so.26
1486 %{_libdir}/samba/libkrb5-samba4.so.26.0.0
1487 %{_libdir}/samba/libroken-samba4.so.19
1488 %{_libdir}/samba/libroken-samba4.so.19.0.1
1489 %{_libdir}/samba/libwind-samba4.so.0
1490 %{_libdir}/samba/libwind-samba4.so.0.0.0
1491 %endif
1492
1493 %{_libdir}/libdcerpc-binding.so.*
1494 %{_libdir}/libndr.so.*
1495 %{_libdir}/libndr-krb5pac.so.*
1496 %{_libdir}/libndr-nbt.so.*
1497 %{_libdir}/libndr-standard.so.*
1498 %{_libdir}/libnetapi.so.*
1499 %{_libdir}/libsamba-credentials.so.*
1500 %{_libdir}/libsamba-passdb.so.*
1501 %{_libdir}/libsamba-util.so.*
1502 %{_libdir}/libsamba-hostconfig.so.*
1503 %{_libdir}/libsamdb.so.*
1504 %{_libdir}/libsmbconf.so.*
1505 %{_libdir}/libsmbldap.so.*
1506 %{_libdir}/libtevent-util.so.*
1507 %{_libdir}/libdcerpc.so.*
1508 %{_libdir}/libsamba-errors.so.*
1509
1510 %dir %{_libdir}/samba
1511 %{_libdir}/samba/libCHARSET3-samba4.so
1512 %{_libdir}/samba/libaddns-samba4.so
1513 %{_libdir}/samba/libads-samba4.so
1514 %{_libdir}/samba/libasn1util-samba4.so
1515 #{_libdir}/samba/libauth-sam-reply-samba4.so
1516 %{_libdir}/samba/libauth-samba4.so
1517 %{_libdir}/samba/libauthkrb5-samba4.so
1518 %{_libdir}/samba/libcli-cldap-samba4.so
1519 %{_libdir}/samba/libcli-ldap-common-samba4.so
1520 %{_libdir}/samba/libcli-ldap-samba4.so
1521 %{_libdir}/samba/libcli-nbt-samba4.so
1522 %{_libdir}/samba/libcli-smb-common-samba4.so
1523 %{_libdir}/samba/libcli-spoolss-samba4.so
1524 %{_libdir}/samba/libcliauth-samba4.so
1525 %{_libdir}/samba/libcmdline-credentials-samba4.so
1526 %{_libdir}/samba/libcmdline-contexts-samba4.so
1527 %{_libdir}/samba/libdbwrap-samba4.so
1528 %{_libdir}/samba/libdcerpc-samba-samba4.so
1529 %{_libdir}/samba/libscavenge-dns-records-samba4.so
1530 %{_libdir}/samba/libdsdb-garbage-collect-tombstones-samba4.so
1531 %{_libdir}/samba/libevents-samba4.so
1532 %{_libdir}/samba/libflag-mapping-samba4.so
1533 %{_libdir}/samba/libgpext-samba4.so
1534 %{_libdir}/samba/libgse-samba4.so
1535 %{_libdir}/samba/libhttp-samba4.so
1536 %{_libdir}/samba/libinterfaces-samba4.so
1537 %{_libdir}/samba/libkrb5samba-samba4.so
1538 %{_libdir}/samba/libldbsamba-samba4.so
1539 %{_libdir}/samba/liblibcli-lsa3-samba4.so
1540 %{_libdir}/samba/liblibcli-netlogon3-samba4.so
1541 %{_libdir}/samba/liblibsmb-samba4.so
1542 %{_libdir}/samba/libmsrpc3-samba4.so
1543 %{_libdir}/samba/libndr-samba-samba4.so
1544 %{_libdir}/samba/libndr-samba4.so
1545 %{_libdir}/samba/libnet-keytab-samba4.so
1546 %{_libdir}/samba/libnetif-samba4.so
1547 %{_libdir}/samba/libnpa-tstream-samba4.so
1548 %{_libdir}/samba/libprinting-migrate-samba4.so
1549 %{_libdir}/samba/libreplace-samba4.so
1550 %{_libdir}/samba/libsamba-cluster-support-samba4.so
1551 %{_libdir}/samba/libsamba-debug-samba4.so
1552 %{_libdir}/samba/libsamba-modules-samba4.so
1553 %{_libdir}/samba/libsamba-security-samba4.so
1554 %{_libdir}/samba/libsamba-sockets-samba4.so
1555 %{_libdir}/samba/libsamba3-util-samba4.so
1556 %{_libdir}/samba/libsamdb-common-samba4.so
1557 %{_libdir}/samba/libsecrets3-samba4.so
1558 %{_libdir}/samba/libserver-role-samba4.so
1559 %{_libdir}/samba/libsmb-transport-samba4.so
1560 %{_libdir}/samba/libsmbd-base-samba4.so
1561 %{_libdir}/samba/libsmbd-conn-samba4.so
1562 %{_libdir}/samba/libsmbd-shim-samba4.so
1563 %{_libdir}/samba/libsmbldaphelper-samba4.so
1564 %{_libdir}/samba/libsocket-blocking-samba4.so
1565 %{_libdir}/samba/libtdb-wrap-samba4.so
1566 %{_libdir}/samba/libtrusts-util-samba4.so
1567 %{_libdir}/samba/libutil-cmdline-samba4.so
1568 %{_libdir}/samba/libutil-reg-samba4.so
1569 %{_libdir}/samba/libutil-setid-samba4.so
1570 %{_libdir}/samba/libutil-tdb-samba4.so
1571 %{_libdir}/samba/libwinbind-client-samba4.so
1572 %{_libdir}/samba/libgenrand-samba4.so
1573 %{_libdir}/samba/libiov-buf-samba4.so
1574 %{_libdir}/samba/libmessages-dgm-samba4.so
1575 %{_libdir}/samba/libmessages-util-samba4.so
1576 %{_libdir}/samba/libmsghdr-samba4.so
1577 %{_libdir}/samba/libserver-id-db-samba4.so
1578 %{_libdir}/samba/libsys-rw-samba4.so
1579 %{_libdir}/samba/libtalloc-report-samba4.so
1580 %{_libdir}/samba/libtime-basic-samba4.so
1581 %{_libdir}/samba/vfs/shell_snap.so
1582 %{_libdir}/samba/vfs/unityed_media.so
1583
1584 %{_libdir}/samba/libcom_err-samba4.so.*
1585 %{_libdir}/samba/libgensec-samba4.so
1586 %{_libdir}/samba/libregistry-samba4.so
1587 %{_libdir}/samba/libsmbclient-raw-samba4.so
1588 %{_libdir}/samba/libtorture-samba4.so
1589
1590 %{_mandir}/man8/vfs_shell_snap.8.*
1591 %{_mandir}/man8/vfs_unityed_media.8.*
1592
1593 %if ! %{with_libwbclient}
1594 %{_libdir}/samba/libwbclient.so.*
1595 %{_libdir}/samba/libwinbind-client-samba4.so
1596 %endif # ! with_libwbclient
1597
1598 %if ! %{with_libsmbclient}
1599 %{_libdir}/samba/libsmbclient.so.*
1600 %{_mandir}/man7/libsmbclient.7*
1601 %endif # ! with_libsmbclient
1602
1603 %if %{with_internal_ntdb}
1604 %{_libdir}/samba/libntdb.so.1
1605 %{_libdir}/samba/libntdb.so.%{ntdb_version}
1606 %endif
1607
1608 %if %{with_internal_talloc}
1609 %{_libdir}/samba/libtalloc.so.2
1610 %{_libdir}/samba/libtalloc.so.%{talloc_version}
1611 %{_libdir}/samba/libpytalloc-util.so.2
1612 %{_libdir}/samba/libpytalloc-util.so.%{talloc_version}
1613 %{_mandir}/man3/talloc.3.xz
1614 %endif
1615
1616 %if %{with_internal_tevent}
1617 %{_libdir}/samba/libtevent.so.0
1618 %{_libdir}/samba/libtevent.so.%{tevent_version}
1619 %endif
1620
1621 %if %{with_internal_tdb}
1622 %{_libdir}/samba/libtdb.so.1
1623 %{_libdir}/samba/libtdb.so.%{tdb_version}
1624 %endif
1625
1626 %if %{with_internal_ldb}
1627 %{_libdir}/samba/libldb.so.1
1628 %{_libdir}/samba/libldb.so.%{ldb_version}
1629 %{_libdir}/samba/ldb.so
1630 %{_libdir}/samba/mdb.so
1631 %{_libdir}/samba/libldb-key-value-samba4.so
1632 %{_libdir}/samba/libldb-mdb-int-samba4.so
1633 %{_mandir}/man3/ldb.3.xz
1634 %endif
1635
1636 ### LIBSMBCLIENT
1637 %if %{with_libsmbclient}
1638 %files -n %{libsmbclient}
1639 %{_libdir}/libsmbclient.so.%{smbclientmajor}
1640 %{_libdir}/libsmbclient.so.%{smbclientmajor}.*
1641
1642
1643 ### LIBSMBCLIENT-DEVEL
1644 %files -n %{smbclientdevel}
1645 %{_includedir}/samba-4.0/libsmbclient.h
1646 %{_libdir}/libsmbclient.so
1647 %{_libdir}/pkgconfig/smbclient.pc
1648 %{_mandir}/man7/libsmbclient.7*
1649 %endif # with_libsmbclient
1650
1651 ### LIBWBCLIENT
1652 %if %{with_libwbclient}
1653 %files -n %{libwbclient}
1654 %{_libdir}/libwbclient.so.%{wbclientmajor}
1655 %{_libdir}/libwbclient.so.%{wbclientmajor}.*
1656 %{_libdir}/samba/libwinbind-client-samba4.so
1657
1658 ### LIBWBCLIENT-DEVEL
1659 %files -n %{wbclientdevel}
1660 %{_includedir}/samba-4.0/wbclient.h
1661 %{_libdir}/libwbclient.so
1662 %{_libdir}/pkgconfig/wbclient.pc
1663 %endif # with_libwbclient
1664
1665 ### PIDL
1666 %files pidl
1667 %attr(755,root,root) %{_bindir}/pidl
1668 %dir %{perl_vendorlib}/Parse
1669 %{perl_vendorlib}/Parse/Pidl.pm
1670 %dir %{perl_vendorlib}/Parse/Pidl
1671 %{perl_vendorlib}/Parse/Pidl/CUtil.pm
1672 %{perl_vendorlib}/Parse/Pidl/Samba4.pm
1673 %{perl_vendorlib}/Parse/Pidl/Expr.pm
1674 %{perl_vendorlib}/Parse/Pidl/ODL.pm
1675 %{perl_vendorlib}/Parse/Pidl/Typelist.pm
1676 %{perl_vendorlib}/Parse/Pidl/IDL.pm
1677 %{perl_vendorlib}/Parse/Pidl/Compat.pm
1678 %dir %{perl_vendorlib}/Parse/Pidl/Wireshark
1679 %{perl_vendorlib}/Parse/Pidl/Wireshark/Conformance.pm
1680 %{perl_vendorlib}/Parse/Pidl/Wireshark/NDR.pm
1681 %{perl_vendorlib}/Parse/Pidl/Dump.pm
1682 %dir %{perl_vendorlib}/Parse/Pidl/Samba3
1683 %{perl_vendorlib}/Parse/Pidl/Samba3/ServerNDR.pm
1684 %{perl_vendorlib}/Parse/Pidl/Samba3/ClientNDR.pm
1685 %dir %{perl_vendorlib}/Parse/Pidl/Samba4
1686 %{perl_vendorlib}/Parse/Pidl/Samba4/Header.pm
1687 %dir %{perl_vendorlib}/Parse/Pidl/Samba4/COM
1688 %{perl_vendorlib}/Parse/Pidl/Samba4/COM/Header.pm
1689 %{perl_vendorlib}/Parse/Pidl/Samba4/COM/Proxy.pm
1690 %{perl_vendorlib}/Parse/Pidl/Samba4/COM/Stub.pm
1691 %{perl_vendorlib}/Parse/Pidl/Samba4/Python.pm
1692 %{perl_vendorlib}/Parse/Pidl/Samba4/Template.pm
1693 %dir %{perl_vendorlib}/Parse/Pidl/Samba4/NDR
1694 %{perl_vendorlib}/Parse/Pidl/Samba4/NDR/Server.pm
1695 %{perl_vendorlib}/Parse/Pidl/Samba4/NDR/Client.pm
1696 %{perl_vendorlib}/Parse/Pidl/Samba4/NDR/Parser.pm
1697 %{perl_vendorlib}/Parse/Pidl/Samba4/TDR.pm
1698 %{perl_vendorlib}/Parse/Pidl/NDR.pm
1699 %{perl_vendorlib}/Parse/Pidl/Util.pm
1700 %{_mandir}/man1/pidl*
1701 %{_mandir}/man3/Parse::Pidl*
1702
1703 ### PYTHON
1704 %files -n python2-samba
1705 %{python2_sitearch}/*
1706
1707 %files -n python3-samba
1708 %{python3_sitearch}/*
1709
1710 ### TEST
1711 %files test
1712 %{_bindir}/gentest
1713 %{_bindir}/locktest
1714 %{_bindir}/masktest
1715 %{_bindir}/ndrdump
1716 %{_bindir}/smbtorture
1717 %{_mandir}/man1/gentest.1*
1718 %{_mandir}/man1/locktest.1*
1719 %{_mandir}/man1/masktest.1*
1720 %{_mandir}/man1/ndrdump.1*
1721 %{_mandir}/man1/smbtorture.1*
1722 %{_mandir}/man1/vfstest.1*
1723
1724 %if %{with testsuite}
1725 # files to ignore in testsuite mode
1726 %{_libdir}/samba/libnss-wrapper.so
1727 %{_libdir}/samba/libsocket-wrapper.so
1728 %{_libdir}/samba/libuid-wrapper.so
1729 %endif
1730
1731 ### TEST-LIBS
1732 %files -n %{libtest}
1733 %if %{with_dc}
1734 %{_libdir}/samba/libdlz-bind9-for-torture-samba4.so
1735 %else
1736 %{_libdir}/samba/libdsdb-module-samba4.so
1737 %endif
1738
1739 ### WINBIND
1740 %files winbind
1741 %{_libdir}/samba/idmap
1742 %{_libdir}/samba/nss_info
1743 %{_libdir}/samba/libnss-info-samba4.so
1744 %{_libdir}/samba/libidmap-samba4.so
1745 %{_sbindir}/winbindd
1746 %attr(750,root,wbpriv) %dir /var/lib/samba/winbindd_privileged
1747 %{_unitdir}/winbind.service
1748 %{_mandir}/man8/winbindd.8*
1749 %{_mandir}/man8/idmap_*.8*
1750
1751 ### WINBIND-CLIENTS
1752 %files winbind-clients
1753
1754 %{_bindir}/ntlm_auth
1755 %{_bindir}/wbinfo
1756 %{_mandir}/man1/ntlm_auth.1.*
1757 %{_mandir}/man1/wbinfo.1*
1758
1759 ### WINBIND-KRB5-LOCATOR
1760 %files winbind-krb5-locator
1761 %ghost %{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so
1762 %{_libdir}/samba/krb5/winbind_krb5_locator.so
1763 %{_mandir}/man8/winbind_krb5_locator.8*
1764
1765 ### WINBIND-MODULES
1766 %files winbind-modules
1767 %{_libdir}/libnss_winbind.so.%{nssmajor}
1768 %{_libdir}/libnss_winbind.so
1769 %{_libdir}/libnss_wins.so.%{nssmajor}
1770 %{_libdir}/libnss_wins.so
1771 %{_libdir}/security/pam_winbind.so
1772 %config(noreplace) %{_sysconfdir}/security/pam_winbind.conf
1773 %{_mandir}/man5/pam_winbind.conf.5*
1774 %{_mandir}/man8/pam_winbind.8*
1775
1776 %if %{with_clustering_support}
1777 %files -n ctdb
1778 %config(noreplace) %{_sysconfdir}/ctdb/*.sh
1779 %config(noreplace) %{_sysconfdir}/ctdb/functions
1780 %dir %{_localstatedir}/lib/ctdb/
1781 %{_tmpfilesdir}/%{name}.conf
1782
1783 %{_unitdir}/ctdb.service
1784
1785 %dir %{_sysconfdir}/ctdb
1786 %{_sysconfdir}/ctdb/statd-callout
1787 %{_sysconfdir}/ctdb/events/notification/README
1788 %dir %{_sysconfdir}/ctdb/nfs-checks.d
1789 %{_sysconfdir}/ctdb/nfs-checks.d/00.portmapper.check
1790 %{_sysconfdir}/ctdb/nfs-checks.d/10.status.check
1791 %{_sysconfdir}/ctdb/nfs-checks.d/20.nfs.check
1792 %{_sysconfdir}/ctdb/nfs-checks.d/30.nlockmgr.check
1793 %{_sysconfdir}/ctdb/nfs-checks.d/40.mountd.check
1794 %{_sysconfdir}/ctdb/nfs-checks.d/50.rquotad.check
1795 %{_sysconfdir}/ctdb/nfs-checks.d/README
1796 %{_sysconfdir}/ctdb/nfs-linux-kernel-callout
1797
1798 %{_sysconfdir}/sudoers.d/ctdb
1799 %{_prefix}/lib/tmpfiles.d/ctdb.conf
1800 %{_sbindir}/ctdbd
1801 %{_sbindir}/ctdbd_wrapper
1802 %{_bindir}/ctdb
1803 %{_bindir}/ping_pong
1804 %{_bindir}/ltdbtool
1805 %{_bindir}/ctdb_diagnostics
1806 %{_bindir}/ctdb_local_daemons
1807 %{_bindir}/onnode
1808
1809 %{_libexecdir}/ctdb/ctdb_*
1810 %{_libexecdir}/ctdb/smnotify
1811 %{_libexecdir}/ctdb/ctdb-*
1812
1813 %{_libdir}/samba/libctdb-event-client-samba4.so
1814
1815 %dir %{_datadir}/ctdb/events
1816 %{_datadir}/ctdb/events/*
1817
1818 %{_mandir}/man1/ctdb*.1*
1819 %{_mandir}/man1/onnode.1*
1820 %{_mandir}/man1/ltdbtool.1*
1821 %{_mandir}/man1/ping_pong.1*
1822 %{_mandir}/man5/ctdb*.5*
1823 %{_mandir}/man7/ctdb*.7*
1824
1825 %files -n ctdb-tests
1826 %doc ctdb/tests/README
1827 %{_bindir}/ctdb_run_tests
1828 %{_bindir}/ctdb_run_cluster_tests
1829 %dir %{_datadir}/ctdb/tests
1830 %{_datadir}/ctdb/tests/*
1831 %dir %{_libexecdir}/ctdb/tests
1832 %{_libexecdir}/ctdb/tests/*
1833
1834 %endif # with_clustering_support

  ViewVC Help
Powered by ViewVC 1.1.30