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

  ViewVC Help
Powered by ViewVC 1.1.26