]> git.pld-linux.org Git - packages/samba.git/blame - samba.spec
- add system_heimdal bcond
[packages/samba.git] / samba.spec
CommitLineData
29511e6d 1#
e4bb74d8 2# Conditional build:
a3c4e78e
JB
3%bcond_without ads # ActiveDirectory support
4%bcond_without cups # CUPS support
5%bcond_without ldap # LDAP support
6%bcond_without avahi # Avahi support
52a1c787 7%bcond_without systemd # systemd integration
dbb692ff 8%bcond_with system_heimdal # Use system Heimdal libraries (broken in samba 4.4.x)
a9009cd3 9%bcond_without system_libs # system libraries (talloc,tdb,tevent,ldb,ntdb)
105507bc 10
e71e0470 11%if %{with system_libs}
8d1dd795 12%define ldb_ver 1.1.26
c1740968 13%define ntdb_ver 1.0
8d1dd795
AM
14%define talloc_ver 2:2.1.6
15%define tdb_ver 2:1.3.9
16%define tevent_ver 0.9.28
4ecf4d28
JB
17%endif
18
a3c4e78e
JB
19%include /usr/lib/rpm/macros.perl
20
c38c2d9d 21# NOTE: packages order is: server + additions, common, clients, libs+devel, ldap
e00cc9d3 22%define virusfilter_version 0.1.4
c6a4fcd1
JR
23Summary: Samba Active Directory and SMB server
24Summary(pl.UTF-8): Serwer Samba Active Directory i SMB
c48f10a7 25Name: samba
8d1dd795
AM
26Version: 4.4.2
27Release: 0.1
6646cd44 28Epoch: 1
6bef715a 29License: GPL v3
11d2c190 30Group: Networking/Daemons
3d62e122 31Source0: https://www.samba.org/ftp/samba/samba-%{version}.tar.gz
8d1dd795 32# Source0-md5: 03a65a3adf08ceb1636ad59d234d7f9d
ba850b61 33Source1: smb.init
46c25e95 34Source2: samba.pamd
46c25e95
JR
35Source4: samba.sysconfig
36Source5: samba.logrotate
138aecb0 37Source6: smb.conf
68134596 38Source7: winbind.init
39Source8: winbind.sysconfig
cd86127c 40Source9: samba.init
e00cc9d3
JB
41Source10: https://bitbucket.org/fumiyas/samba-virusfilter/downloads/samba-virusfilter-%{virusfilter_version}.tar.bz2
42# Source10-md5: 4bef017601d87f52f8c82819a3ff56ee
34895621 43Patch0: system-heimdal.patch
7645ba99
JB
44Patch1: %{name}-c++-nofail.patch
45Patch2: %{name}-lprng-no-dot-printers.patch
0d6de682
JR
46Patch3: systemd-pid-dir.patch
47Patch4: unicodePwd-nthash-values-over-LDAP.patch
3d62e122 48Patch5: %{name}-heimdal.patch
0d6de682 49Patch6: server-role.patch
cc54fa40 50Patch7: %{name}-bug-9816.patch
08caf729 51URL: https://www.samba.org/
bd658e80 52BuildRequires: acl-devel
a0d23d1e 53%{?with_avahi:BuildRequires: avahi-devel}
95229e05 54BuildRequires: ceph-devel >= 0.73
aceac5ef 55BuildRequires: ctdb-devel
62dc8910 56%{?with_cups:BuildRequires: cups-devel >= 1:1.2.0}
2dd82018 57BuildRequires: cyrus-sasl-devel >= 2
295b7a55 58BuildRequires: dbus-devel
51bcdd9a 59BuildRequires: dmapi-devel
a3c759b7 60BuildRequires: docbook-style-xsl
2dd82018 61# just FAM API
5b010594 62BuildRequires: gamin-devel
ff01b4ff 63BuildRequires: gdbm-devel
a458c5bb 64BuildRequires: gettext-tools
1ae9cf92 65BuildRequires: glusterfs-devel
c1740968 66BuildRequires: gnutls-devel >= 3.0.0
dbb692ff 67%{?with_system_heimdal:BuildRequires: heimdal-devel >= 1.5.3-1}
9f74dab7 68BuildRequires: iconv
1125cc60 69BuildRequires: keyutils-devel
a3c759b7 70BuildRequires: libaio-devel
c1740968 71BuildRequires: libarchive-devel >= 3.1.2
2dd82018 72BuildRequires: libcap-devel
34895621 73BuildRequires: libcom_err-devel
53ce942a 74BuildRequires: libmagic-devel
4d8c5e20 75BuildRequires: libnscd-devel
40d90f9e 76BuildRequires: make >= 3.81
0f00e211 77BuildRequires: ncurses-devel >= 5.2
e9c7865a 78BuildRequires: ncurses-ext-devel >= 5.2
c1740968 79BuildRequires: nss_wrapper >= 1.0.2
78d04323 80%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
793ad0f8 81BuildRequires: pam-devel >= 0.99.8.1
a3c4e78e 82BuildRequires: perl-ExtUtils-MakeMaker
2dd82018 83BuildRequires: perl-Parse-Yapp >= 1.05
9f74dab7 84BuildRequires: pkgconfig
f092c096 85BuildRequires: popt-devel
16c4fca4 86%{?with_pgsql:BuildRequires: postgresql-devel}
2dd82018 87BuildRequires: python-devel >= 1:2.5.0
190a259b 88BuildRequires: python-dns
2dd82018 89BuildRequires: python-modules >= 1:2.5.0
190a259b 90BuildRequires: python-testtools
f092c096 91BuildRequires: readline-devel >= 4.2
a3c4e78e 92BuildRequires: rpm-perlprov
a3c759b7 93BuildRequires: rpm-pythonprov
6a43f27b 94BuildRequires: rpmbuild(macros) >= 1.647
e155c475 95BuildRequires: sed >= 4.0
baa92be6 96BuildRequires: socket_wrapper >= 1.1.2
52a1c787
JB
97%{?with_systemd:BuildRequires: systemd-devel}
98BuildRequires: xfsprogs-devel
2dd82018 99BuildRequires: zlib-devel >= 1.2.3
e71e0470 100%if %{with system_libs}
e71e0470 101BuildRequires: ldb-devel >= %{ldb_ver}
a9009cd3 102BuildRequires: ntdb-devel >= %{ntdb_ver}
2fe4d181 103BuildRequires: python-ntdb >= %{ntdb_ver}
e71e0470
JR
104BuildRequires: python-ldb-devel >= %{ldb_ver}
105BuildRequires: python-talloc-devel >= %{talloc_ver}
106BuildRequires: python-tevent >= %{tevent_ver}
05913998
JR
107BuildRequires: talloc-devel >= %{talloc_ver}
108BuildRequires: tdb-devel >= %{tdb_ver}
109BuildRequires: tevent-devel >= %{tevent_ver}
e71e0470 110%endif
baa92be6 111BuildRequires: uid_wrapper >= 1.1.0
34895621 112BuildConflicts: libbsd-devel
656b05ab 113Requires(post,preun): /sbin/chkconfig
6646cd44 114Requires: %{name}-common = %{epoch}:%{version}-%{release}
17dffdb7 115Requires: %{name}-libs = %{epoch}:%{version}-%{release}
69a33c0e 116# for samba_{dnsupdate,kcc,spnupdate,upgradedns} scripts
17dffdb7 117Requires: python-samba = %{epoch}:%{version}-%{release}
cd83be60 118Requires: logrotate >= 3.7-4
793ad0f8 119Requires: pam >= 0.99.8.1
8bf54aa6 120Requires: rc-scripts >= 0.4.0.12
27879fe9 121Requires: setup >= 2.4.6-7
dce29ff7 122Requires: systemd-units >= 38
62dc8910 123# smbd links with libcups
ac083993 124%{?with_cups:Requires: cups-lib >= 1:1.2.0}
e765216e
JR
125Obsoletes: samba-doc-html
126Obsoletes: samba-doc-pdf
05913998 127Obsoletes: samba-pdb-xml
c6a4fcd1
JR
128Obsoletes: samba-vfs-block
129Obsoletes: samba-vfs-audit
130Obsoletes: samba-vfs-cap
131Obsoletes: samba-vfs-catia
132Obsoletes: samba-vfs-default_quota
133Obsoletes: samba-vfs-expand_msdfs
134Obsoletes: samba-vfs-fake_perms
135Obsoletes: samba-vfs-netatalk
136Obsoletes: samba-vfs-recycle
137Obsoletes: samba-vfs-readahead
138Obsoletes: samba-vfs-readonly
139Obsoletes: samba-vfs-scannedonly
140Obsoletes: samba-vfs-shadow_copy
c93984f5 141Obsoletes: samba3
c6a4fcd1
JR
142Obsoletes: samba3-server
143Obsoletes: samba3-vfs-audit
144Obsoletes: samba3-vfs-cap
145Obsoletes: samba3-vfs-catia
146Obsoletes: samba3-vfs-default_quota
147Obsoletes: samba3-vfs-expand_msdfs
148Obsoletes: samba3-vfs-fake_perms
149Obsoletes: samba3-vfs-netatalk
150Obsoletes: samba3-vfs-recycle
151Obsoletes: samba3-vfs-readahead
152Obsoletes: samba3-vfs-readonly
153Obsoletes: samba3-vfs-scannedonly
154Obsoletes: samba3-vfs-shadow_copy
c93984f5 155Obsoletes: samba4
c6a4fcd1 156Obsoletes: samba4-common-server
da3dadf3 157BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1925a8b4 158
c10bc67e 159%define _sambahome /home/services/samba
ddea14b0 160%if %{with cups}
478e9eab 161%define cups_serverbin %{_prefix}/lib/cups
fd9d8b85 162%endif
99795f36 163%define schemadir /usr/share/openldap/schema
92c45d25 164
01485082
ER
165# CFLAGS modified (the second ./configure)
166%undefine configure_cache
167
e11c6ca1 168%description
cfa67cf6 169Samba provides an SMB server which can be used to provide network
170services to SMB (sometimes called "Lan Manager") clients, including
171various versions of MS Windows, OS/2, and other Linux machines. Samba
172also provides some SMB clients, which complement the built-in SMB
173filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
174and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol.
e11c6ca1 175
96088f7b
JR
176%description -l pl.UTF-8
177Samba udostępnia serwer SMB, który może być użyty w celu dostarczenia
178usług sieciowych (potocznie zwanych "Lan Manager"), dla klientów
179takich jak MS Windows, OS/2 a także maszyn linuksowych. W pakiecie
180znajduje się również oprogramowanie klienckie. Samba używa protokołu
181NetBIOS po TCP/IP (NetBT) i nie wymaga protokołu NetBEUI. Ta wersja ma
182pełne wsparcie dla blokowania plików, a także wsparcie dla kodowania
183haseł w standardzie MS i zarządzania bazą WINS.
184
c38c2d9d
JB
185%package vfs-ceph
186Summary: VFS module to host shares on Ceph file system
187Summary(pl.UTF-8): Moduł VFS do serwowania zasobów z systemu plików Ceph
188Group: Networking/Daemons
189Requires: %{name} = %{epoch}:%{version}-%{release}
ac6f9d13 190
c38c2d9d
JB
191%description vfs-ceph
192VFS module to host shares on Ceph file system.
ac6f9d13 193
c38c2d9d
JB
194This module only works with the libceph.so user-space client. It is
195not needed if you are using the kernel client or the FUSE client.
196
197%description vfs-ceph -l pl.UTF-8
198Moduł VFS do serwowania zasobów z systemu plików Ceph.
199
200Ten moduł działa jedynie z klientem przestrzeni użytkownika
201libceph.so. Jest zbędny w przypadku używania klienta dostarczanego
202przez jądro lub FUSE.
203
204%package vfs-glusterfs
205Summary: VFS module to host shares on GlusterFS file system
206Summary(pl.UTF-8): Moduł VFS do serwowania zasobów z systemu plików GlusterFS
207Group: Networking/Daemons
208Requires: %{name} = %{epoch}:%{version}-%{release}
209
210%description vfs-glusterfs
211VFS module to host shares on GlusterFS file system.
212
213%description vfs-glusterfs -l pl.UTF-8
214Moduł VFS do serwowania zasobów z systemu plików GlusterFS.
215
216%package vfs-notify_fam
217Summary: VFS module to implement file change notifications
218Summary(pl.UTF-8): Moduł VFS implementujący informowanie o zmianach w plikach
219Group: Networking/Daemons
220Requires: %{name} = %{epoch}:%{version}-%{release}
221Obsoletes: samba3-vfs-notify_fam
222
223%description vfs-notify_fam
224The vfs_notify_fam module makes use of the system FAM (File Alteration
225Monitor) daemon to implement file change notifications for Windows
226clients.
227
228%description vfs-notify_fam -l pl.UTF-8
229Ten moduł używa demona FAM (File Alteration Monitor) do implementacji
230informowania o zmianach w plikach dla klientów Windows.
ac6f9d13
MC
231
232%package common
ea8d81e5 233Summary: Files used by both Samba servers and clients
a3c4e78e 234Summary(pl.UTF-8): Pliki używane przez serwer i klientów Samby
2eedd257 235Group: Networking/Daemons
17dffdb7 236Requires: %{name}-libs = %{epoch}:%{version}-%{release}
69a33c0e 237# for samba-tool script
5a89b1cc 238Requires: python-samba = %{epoch}:%{version}-%{release}
4f12cc62 239Obsoletes: samba3-common
c93984f5 240Obsoletes: samba4-common
ac6f9d13
MC
241
242%description common
243Samba-common provides files necessary for both the server and client
244packages of Samba.
245
96088f7b
JR
246%description common -l pl.UTF-8
247Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i
4ecf4d28 248klientów Samby.
ac6f9d13 249
c38c2d9d
JB
250%package client
251Summary: Samba client programs
252Summary(pl.UTF-8): Klienci serwera Samba
253Group: Applications/Networking
254Requires: %{name}-common = %{epoch}:%{version}-%{release}
255Requires: %{name}-libs = %{epoch}:%{version}-%{release}
256Requires: libsmbclient = %{epoch}:%{version}-%{release}
dbb692ff 257%{?with_system_heimdal:Requires: heimdal-libs >= 1.5.3-1}
c38c2d9d
JB
258Suggests: cifs-utils
259Obsoletes: samba3-client
260Obsoletes: samba4-client
261Obsoletes: smbfs
d7a7a298 262
c38c2d9d
JB
263%description client
264Samba-client provides some SMB clients, which complement the build-in
265SMB filesystem in Linux. These allow accessing of SMB shares and
266printing to SMB printers.
d7a7a298 267
c38c2d9d
JB
268%description client -l pl.UTF-8
269Samba-client dostarcza programy uzupełniające obsługę systemu plików
270SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i
271drukowanie w sieci SMB.
d7a7a298 272
29511e6d 273%package winbind
29511e6d 274Summary: Samba-winbind daemon, utilities and documentation
fa1faeca 275Summary(pl.UTF-8): Demon samba-winbind, narzędzia i dokumentacja
29511e6d 276Group: Networking/Daemons
29511e6d 277Requires(post,preun): /sbin/chkconfig
8ef2303e 278Requires(post,preun,postun): systemd-units >= 38
6646cd44 279Requires: %{name}-common = %{epoch}:%{version}-%{release}
17dffdb7 280Requires: %{name}-libs = %{epoch}:%{version}-%{release}
8ef2303e
JR
281Requires: systemd-units >= 38
282Obsoletes: samba3-winbind
c93984f5 283Obsoletes: samba4-winbind
29511e6d 284
285%description winbind
286Provides the winbind daemon and testing tools to allow authentication
287and group/user enumeration from a Windows or Samba domain controller.
288
96088f7b
JR
289%description winbind -l pl.UTF-8
290Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia
291uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny
4d750758
JB
292Windows lub Samba.
293
c38c2d9d
JB
294%package -n cups-backend-smb
295Summary: CUPS backend for printing to SMB printers
296Summary(pl.UTF-8): Backend CUPS-a drukujący na drukarkach SMB
297Group: Applications/Printing
298Requires: %{name}-client = %{epoch}:%{version}-%{release}
299Requires: cups >= 1:1.2.0
300Obsoletes: cups-backend-smb3
301
302%description -n cups-backend-smb
303CUPS backend for printing to SMB printers.
304
305%description -n cups-backend-smb -l pl.UTF-8
306Backend CUPS-a drukujący na drukarkach SMB.
307
308%package -n nss_wins
309Summary: Name Service Switch service for WINS
310Summary(pl.UTF-8): Usługa Name Service Switch dla WINS
311Group: Base
312Requires: %{name}-common = %{epoch}:%{version}-%{release}
17dffdb7 313Requires: %{name}-libs = %{epoch}:%{version}-%{release}
c38c2d9d 314Obsoletes: nss_wins3
f2b0247b 315
c38c2d9d
JB
316%description -n nss_wins
317Provides the libnss_wins shared library which resolves NetBIOS names
318to IP addresses.
f2b0247b 319
c38c2d9d
JB
320%description -n nss_wins -l pl.UTF-8
321Biblioteka dzielona libnss_wins rozwiązująca nazwy NetBIOS na adresy
322IP.
9c05ac07 323
c38c2d9d
JB
324%package -n smbget
325Summary: A utility for retrieving files using the SMB protocol
326Summary(pl.UTF-8): Narzędzie do pobierania plików protokołem SMB
327Group: Applications/Networking
328Requires: %{name}-libs = %{epoch}:%{version}-%{release}
329Obsoletes: smbget3
330
331%description -n smbget
332wget-like utility for downloading files over SMB.
333
334%description -n smbget -l pl.UTF-8
335Narzędzie podobne do wgeta do pobierania plików protokołem SMB
336używanym w sieciach MS Windows.
337
338%package libs
339Summary: Samba shared libraries
340Summary(pl.UTF-8): Biblioteki współdzielone Samby
341Group: Libraries
c1740968 342Requires: gnutls >= 3.0.0
c38c2d9d
JB
343%if %{with system_libs}
344Requires: ldb >= %{ldb_ver}
345Requires: ntdb >= %{ntdb_ver}
346Requires: talloc >= %{talloc_ver}
347Requires: tdb >= %{tdb_ver}
348Requires: tevent >= %{tevent_ver}
349%endif
350
351%description libs
352Samba shared libraries.
353
354%description libs -l pl.UTF-8
355Biblioteki współdzielone Samby.
356
357%package devel
358Summary: Header files for Samba
359Summary(pl.UTF-8): Pliki nagłówkowe Samby
360Group: Development/Libraries
361Requires: %{name}-libs = %{epoch}:%{version}-%{release}
362Obsoletes: samba3-devel
363Obsoletes: samba4-devel
364
365%description devel
366Header files for Samba.
367
368%description devel -l pl.UTF-8
369Pliki nagłówkowe Samby.
370
382a477a
JR
371%package pidl
372Summary: Perl IDL compiler
a3c4e78e 373Summary(pl.UTF-8): Kompilator IDL w Perlu
382a477a 374Group: Development/Tools
c93984f5 375Obsoletes: samba4-pidl
382a477a
JR
376
377%description pidl
c48f10a7 378The samba-pidl package contains the Perl IDL compiler used by Samba
382a477a
JR
379and Wireshark to parse IDL and similar protocols.
380
a3c4e78e
JB
381%description pidl -l pl.UTF-8
382Ten pakiet zawiera kompilator IDL napisany w Perlu, używany przez
383Sambę oraz Wiresharka to analizy IDL i podobnych protokołów.
384
025a78ca 385%package -n python-samba
69a33c0e
JB
386Summary: Samba modules for Python
387Summary(pl.UTF-8): Moduły Samby dla Pythona
382a477a 388Group: Development/Languages/Python
382a477a 389Requires: %{name}-common = %{epoch}:%{version}-%{release}
17dffdb7 390Requires: %{name}-libs = %{epoch}:%{version}-%{release}
6a43f27b 391Requires: python
b069341b
JR
392Requires: python-dns
393Requires: python-modules
8e43bad6
JR
394%if %{with system_libs}
395Requires: python-ldb >= %{ldb_ver}
a9009cd3 396Requires: python-ntdb >= %{ntdb_ver}
8e43bad6
JR
397Requires: python-talloc >= %{talloc_ver}
398Requires: python-tevent >= %{tevent_ver}
399%endif
025a78ca 400Obsoletes: python-samba4
382a477a 401
025a78ca 402%description -n python-samba
69a33c0e 403Samba modules for Python.
382a477a 404
025a78ca 405%description -n python-samba -l pl.UTF-8
69a33c0e 406Moduły Samby dla Pythona.
a3c4e78e 407
382a477a
JR
408%package test
409Summary: Testing tools for Samba servers and clients
a3c4e78e 410Summary(pl.UTF-8): Narzędzia testowe dla serwerów i klientów Samby
382a477a
JR
411Group: Applications/System
412Requires: %{name} = %{epoch}:%{version}-%{release}
413Requires: %{name}-common = %{epoch}:%{version}-%{release}
17dffdb7 414Requires: %{name}-libs = %{epoch}:%{version}-%{release}
382a477a 415Requires: %{name}-winbind = %{epoch}:%{version}-%{release}
c93984f5 416Obsoletes: samba4-test
382a477a
JR
417
418%description test
c48f10a7 419samba-test provides testing tools for both the server and client
382a477a
JR
420packages of Samba.
421
a3c4e78e
JB
422%description test -l pl.UTF-8
423Narzędzia testowe dla serwerów i klientów Samby.
424
382a477a 425%package test-devel
a3c4e78e
JB
426Summary: Testing development files for Samba servers and clients
427Summary(pl.UTF-8): Pliki programistyczne narzędzi testowych dla serwerów i klientów Samby
382a477a
JR
428Group: Applications/System
429Requires: %{name}-test = %{epoch}:%{version}-%{release}
c93984f5 430Obsoletes: samba4-test-devel
382a477a
JR
431
432%description test-devel
a3c4e78e
JB
433samba-test-devel provides development files for the library used by
434testing tools for both the server and client packages of Samba.
435
436%description test-devel -l pl.UTF-8
437Ten pakiet zawiera pliki programistyczne biblioteki wykorzystywanej
438przez narzędzia testowe dla serwerów i klientów Samby.
382a477a 439
fe5b5b93 440%package -n libsmbclient
a3c4e78e
JB
441Summary: libsmbclient and libwbclient - Samba client libraries
442Summary(pl.UTF-8): libsmbclient i libwbclient - biblioteki klienckie Samby
382a477a 443Group: Libraries
17dffdb7 444Requires: %{name}-libs = %{epoch}:%{version}-%{release}
fe5b5b93 445Obsoletes: samba3-libsmbclient
382a477a 446
fe5b5b93 447%description -n libsmbclient
a3c4e78e
JB
448libsmbclient and libwbclient - libraries that allow to use Samba
449client functions.
382a477a 450
fe5b5b93 451%description -n libsmbclient -l pl.UTF-8
a3c4e78e
JB
452libsmbclient i libwbclient - biblioteki pozwalające korzystać z funcji
453klienta Samby.
382a477a 454
fe5b5b93 455%package -n libsmbclient-devel
a3c4e78e
JB
456Summary: Development files for Samba client libraries
457Summary(pl.UTF-8): Pliki programistyczne bibliotek klienta Samby
382a477a 458Group: Development/Libraries
fe5b5b93 459Requires: libsmbclient = %{epoch}:%{version}-%{release}
277b5368 460Obsoletes: libsmbclient-static
fe5b5b93 461Obsoletes: samba3-libsmbclient-devel
6646cd44 462
fe5b5b93 463%description -n libsmbclient-devel
a3c4e78e 464Header files for libsmbclient and libwbclient libraries.
6646cd44 465
fe5b5b93 466%description -n libsmbclient-devel -l pl.UTF-8
a3c4e78e 467Pliki nagłówkowe bibliotek libsmbclient i libwbclient.
c083eea8 468
025a78ca 469%package -n openldap-schema-samba
382a477a 470Summary: Samba LDAP schema
a3c4e78e 471Summary(pl.UTF-8): Schemat LDAP dla Samby
ed426448 472Group: Networking/Daemons
382a477a
JR
473Requires(post,postun): sed >= 4.0
474Requires: openldap-servers
025a78ca 475Obsoletes: openldap-schema-samba3
1601e1b5
JR
476%if "%{_rpmversion}" >= "5"
477BuildArch: noarch
478%endif
ed426448 479
025a78ca 480%description -n openldap-schema-samba
a3c4e78e 481This package contains samba.schema for OpenLDAP.
382a477a 482
025a78ca 483%description -n openldap-schema-samba -l pl.UTF-8
a3c4e78e 484Ten pakiet zawiera schemat Samby (samba.schema) dla OpenLDAP-a.
ed426448 485
1925a8b4 486%prep
670da5b0 487%setup -q -n samba-%{version}
dbb692ff 488%{?with_system_heimdal:%patch0 -p1}
8932759c 489%patch1 -p1
0d6de682
JR
490%patch2 -p1
491%patch3 -p1
ce9af3e2 492%patch4 -p1
dbb692ff 493%{?with_system_heimdal:%patch5 -p1}
2aa9f2b6 494%patch6 -p1
cc54fa40 495%patch7 -p1
6fb3721a 496
7645ba99
JB
497%{__sed} -i -e 's|#!/usr/bin/env python|#!/usr/bin/python|' source4/scripting/bin/samba*
498%{__sed} -i -e 's|#!/usr/bin/env perl|#!/usr/bin/perl|' pidl/pidl
7f7b5c36 499
1925a8b4 500%build
34895621
JR
501LDFLAGS="${LDFLAGS:-%rpmldflags}" \
502CFLAGS="${CFLAGS:-%rpmcflags}" \
503CXXFLAGS="${CXXFLAGS:-%rpmcxxflags}" \
504FFLAGS="${FFLAGS:-%rpmcflags}" \
505FCFLAGS="${FCFLAGS:-%rpmcflags}" \
506CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \
507%{?__cc:CC="%{__cc}"} \
508%{?__cxx:CXX="%{__cxx}"} \
509./configure \
510 --enable-fhs \
511 --prefix=%{_prefix} \
512 --exec-prefix=%{_exec_prefix} \
513 --bindir=%{_bindir} \
514 --sbindir=%{_sbindir} \
515 --sysconfdir=%{_sysconfdir} \
516 --datadir=%{_datadir} \
517 --includedir=%{_includedir} \
518 --libdir=%{_libdir} \
519 --libexecdir=%{_libexecdir} \
520 --localstatedir=%{_localstatedir} \
521 --sharedstatedir=%{_sharedstatedir} \
522 --mandir=%{_mandir} \
523 --infodir=%{_infodir} \
2e711b12
JR
524 --with-privatelibdir=%{_libdir}/samba \
525 --with-modulesdir=%{_libdir}/samba \
01485082 526 --with-pammodulesdir=/%{_lib}/security \
34895621
JR
527 --with-lockdir=/var/lib/samba \
528 --with-privatedir=%{_sysconfdir}/samba \
dbb692ff 529 --disable-rpath \
34895621 530 --disable-rpath-install \
dbb692ff
JR
531 --builtin-libraries=replace,ccan,samba-cluster-support \
532 --bundled-libraries=NONE,subunit,iniparser,%{!?with_system_libs:talloc,tdb,ldb,ntdb,tevent,pytalloc,pytalloc-util,pytdb,pytevent,pyldb,pyldb-util},%{!?with_system_heimdal:roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile} \
d7a7a298 533 --with-shared-modules=idmap_ad,idmap_adex,idmap_hash,idmap_ldap,idmap_rid,idmap_tdb2,auth_samba4,vfs_dfs_samba4 \
dbb692ff 534 --with-cluster-support \
f4f0ea2d 535 --with-acl-support \
34895621 536 --with%{!?with_ads:out}-ads \
432ee34d 537 --with-automount \
34895621
JR
538 --with-dmapi \
539 --with-dnsupdate \
540 --with-iconv \
541 --with%{!?with_ldap:out}-ldap \
d1d64cbe 542 --with-pam \
4ef99dd8 543 --with-quotas \
e9c7865a 544 --with-regedit \
34895621 545 --with-sendfile-support \
4ef99dd8 546 --with-syslog \
52a1c787 547 %{!?with_systemd:--without-systemd} \
4ef99dd8 548 --with-utmp \
34895621 549 --with-winbind \
66e5c63e 550 --%{?with_avahi:en}%{!?with_avahi:dis}able-avahi \
34895621
JR
551 --enable-cups \
552 --enable-iprint
1925a8b4 553
dbb692ff 554%{__make} V=1
192f48a8 555
6646cd44
JR
556# Build PIDL for installation into vendor directories before
557# 'make proto' gets to it.
558cd pidl
559%{__perl} Makefile.PL \
560 INSTALLDIRS=vendor
561
1925a8b4 562%install
563rm -rf $RPM_BUILD_ROOT
cd86127c 564install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd,ld.so.conf.d,env.d} \
2e711b12 565 $RPM_BUILD_ROOT{/var/{log/archive,spool}/samba,/var/lib/samba/printing} \
08bf002e 566 $RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \
2e711b12
JR
567 $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_libdir}/samba/vfs,%{_includedir},%{_sambahome},%{schemadir}} \
568 $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir}}
ba850b61 569
34895621 570%{__make} install \
bd658e80 571 DESTDIR=$RPM_BUILD_ROOT \
29511e6d 572 CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba
bd658e80 573
6646cd44 574# Undo the PIDL install, we want to try again with the right options.
9a90ed45 575%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/perl5
6646cd44
JR
576
577# Install PIDL
9a90ed45 578%{__make} -C pidl install \
6646cd44 579 PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
6646cd44
JR
580
581# Clean out crap left behind by the PIDL install
582%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/wscript_build
583%{__rm} -r $RPM_BUILD_ROOT%{perl_vendorlib}/Parse/Yapp
fbf926f3 584%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Parse/Pidl/.packlist
6646cd44 585
42039dcb
JR
586# not ready for production, and no MIT kerberos in PLD
587%{__rm} $RPM_BUILD_ROOT%{_libdir}/mit_samba.so
588
b25f7233 589install -p source3/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
1925a8b4 590
2e711b12
JR
591install packaging/systemd/samba.conf.tmp $RPM_BUILD_ROOT%{systemdtmpfilesdir}/samba.conf
592install packaging/systemd/nmb.service $RPM_BUILD_ROOT%{systemdunitdir}
593install packaging/systemd/samba.service $RPM_BUILD_ROOT%{systemdunitdir}
594install packaging/systemd/smb.service $RPM_BUILD_ROOT%{systemdunitdir}
595install packaging/systemd/winbind.service $RPM_BUILD_ROOT%{systemdunitdir}
596
b25f7233
ER
597install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
598cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
b25f7233
ER
599cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
600cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
3dbf1ce9 601cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
b25f7233
ER
602install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
603cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/winbind
cd86127c
JR
604install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/samba
605
606echo "LDB_MODULES_PATH=%{_libdir}/samba/ldb" > $RPM_BUILD_ROOT/etc/env.d/LDB_MODULES_PATH
29511e6d 607
34895621
JR
608%{__mv} $RPM_BUILD_ROOT%{_libdir}/libnss_winbind.so* $RPM_BUILD_ROOT/%{_lib}
609%{__mv} $RPM_BUILD_ROOT%{_libdir}/libnss_wins.so* $RPM_BUILD_ROOT/%{_lib}
610install -p bin/vfstest $RPM_BUILD_ROOT%{_bindir}
79d8a749 611
6a2e83e0 612touch $RPM_BUILD_ROOT/var/lib/samba/{wins.dat,browse.dat}
1925a8b4 613
01485082 614echo '127.0.0.1 localhost' > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
8b604b68 615
b0c1c6a5 616%if "%{_lib}" == "lib64"
17dffdb7
JR
617echo "%{_libdir}/samba" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/samba64.conf
618%else
b069341b 619echo "%{_libdir}/samba" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/samba.conf
17dffdb7 620%endif
b069341b 621
ddea14b0 622%if %{with cups}
fd9d8b85
JB
623install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend
624ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb
625%endif
9f6f5df1 626
29511e6d 627> $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
8b604b68 628> $RPM_BUILD_ROOT/etc/security/blacklist.samba
11d2c190 629
105507bc 630%if %{with ldap}
99795f36 631install examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir}
105507bc 632%endif
99795f36 633
7a0e596a 634# remove man pages for not installed commands
fbf926f3 635%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/log2pcap.1*
fbf926f3
JR
636%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_cacheprime.8*
637%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_gpfs.8*
638%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_prealloc.8*
639%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_tsmsm.8*
7a0e596a 640
1a8c003b
AM
641%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
642%py_comp $RPM_BUILD_ROOT%{py_sitedir}
f6857f17 643%py_postclean
1a8c003b 644
ea8d81e5
JB
645%clean
646rm -rf $RPM_BUILD_ROOT
9661cd11 647
1925a8b4 648%post
cd86127c 649/sbin/chkconfig --add samba
c6a4fcd1 650/sbin/chkconfig --add smb
cd86127c 651%service samba restart "Samba AD daemon"
c48f10a7 652%service smb restart "Samba SMB daemons"
dce29ff7 653%systemd_post samba.service
c6a4fcd1 654%systemd_post smb.service nmb.service
1925a8b4 655
656%preun
cd86127c
JR
657if [ "$1" = "0" ]; then
658 %service samba stop
c6a4fcd1 659 %service smb stop
cd86127c 660 /sbin/chkconfig --del samba
c6a4fcd1 661 /sbin/chkconfig --del smb
cd86127c 662fi
dce29ff7 663%systemd_preun samba.service
c6a4fcd1 664%systemd_preun smb.service nmb.service
dce29ff7
JR
665
666%postun
667%systemd_reload
11d2c190 668
c48f10a7 669%triggerpostun -- samba3
382a477a 670/sbin/chkconfig --add smb
c48f10a7 671%service smb restart "Samba SMB daemons"
1a90c755 672%systemd_post smb.service nmb.service
382a477a 673
c48f10a7
JR
674%triggerpostun -- samba4
675/sbin/chkconfig --add samba
676%service samba restart "Samba AD daemons"
677%systemd_post samba.service
678
30cb0b6f
JR
679%triggerpostun -- samba4 < 1:4.1.1-1
680# CVE-2013-4476
681[ -e %{_sysconfdir}/samba/tls/key.pem ] || exit 0
682PERMS=$(stat -c %a %{_sysconfdir}/samba/tls/key.pem)
683if [ "$PERMS" != "600" ]; then
684 chmod 600 %{_sysconfdir}/samba/tls/key.pem || :
685 echo "Fixed permissions of private key file %{_sysconfdir}/samba/tls/key.pem from $PERMS to 600"
686 echo "Consider regenerating TLS certificate"
687 echo "Removing all tls .pem files will cause an auto-regeneration with the correct permissions"
688fi
689
c93984f5
JR
690%triggerprein common -- samba4
691cp -a %{_sysconfdir}/samba/smb.conf %{_sysconfdir}/samba/smb.conf.samba4
692
693%triggerpostun common -- samba4
694%{__mv} -f %{_sysconfdir}/samba/smb.conf %{_sysconfdir}/samba/smb.conf.rpmnew
695%{__mv} %{_sysconfdir}/samba/smb.conf.samba4 %{_sysconfdir}/samba/smb.conf
696
697%triggerprein common -- samba3-server
698cp -a %{_sysconfdir}/samba/smb.conf %{_sysconfdir}/samba/smb.conf.samba4
699
700%triggerpostun common -- samba3-server
701%{__mv} -f %{_sysconfdir}/samba/smb.conf %{_sysconfdir}/samba/smb.conf.rpmnew
702%{__mv} %{_sysconfdir}/samba/smb.conf.samba4 %{_sysconfdir}/samba/smb.conf
703
8ef2303e 704%post winbind
a7067ae6 705/sbin/ldconfig
29511e6d 706/sbin/chkconfig --add winbind
27879fe9 707%service winbind restart "Winbind daemon"
dce29ff7 708%systemd_post winbind.service
29511e6d 709
8ef2303e 710%preun winbind
29511e6d 711if [ "$1" = "0" ]; then
27879fe9 712 %service winbind stop
29511e6d 713 /sbin/chkconfig --del winbind
714fi
dce29ff7
JR
715%systemd_preun winbind.service
716
8ef2303e 717%postun winbind
a7067ae6 718/sbin/ldconfig
dce29ff7 719%systemd_reload
29511e6d 720
c48f10a7 721%triggerpostun winbind -- samba3-winbind
00fd225e
JR
722/sbin/chkconfig --add winbind
723%service winbind restart "Winbind daemon"
724%systemd_post winbind.service
725
c38c2d9d
JB
726%post libs -p /sbin/ldconfig
727%postun libs -p /sbin/ldconfig
728
729%post -n python-samba -p /sbin/ldconfig
730%postun -n python-samba -p /sbin/ldconfig
731
0673c853
JB
732%post -n libsmbclient -p /sbin/ldconfig
733%postun -n libsmbclient -p /sbin/ldconfig
a7067ae6 734
025a78ca 735%post -n openldap-schema-samba
c4db757c
ER
736# dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
737%openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis
27879fe9 738%service -q ldap restart
99795f36 739
025a78ca 740%postun -n openldap-schema-samba
99795f36 741if [ "$1" = "0" ]; then
c4db757c 742 %openldap_schema_unregister %{schemadir}/samba.schema
27879fe9 743 %service -q ldap restart
99795f36
ER
744fi
745
025a78ca 746%triggerpostun -n openldap-schema-samba -- openldap-schema-samba3 < 1:4.1.4-3
00fd225e
JR
747# dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
748%openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis
749%service -q ldap restart
750
1925a8b4 751%files
752%defattr(644,root,root,755)
3999f3d9
JR
753%{?with_ldap:%doc examples/LDAP}
754%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smbusers
755%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/samba
756%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/samba
757%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.samba
9ff647f7 758%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba
99fdb0b6 759%config(noreplace) %verify(not md5 mtime size) /etc/env.d/LDB_MODULES_PATH
cd86127c 760%attr(754,root,root) /etc/rc.d/init.d/samba
3999f3d9
JR
761%attr(754,root,root) /etc/rc.d/init.d/smb
762%{systemdunitdir}/nmb.service
763%{systemdunitdir}/smb.service
0b940f4e
JR
764%{systemdunitdir}/samba.service
765%{systemdtmpfilesdir}/samba.conf
ee92e647 766%attr(755,root,root) %{_bindir}/eventlogadm
c083eea8 767%attr(755,root,root) %{_bindir}/oLschema2ldif
ee92e647
JR
768%attr(755,root,root) %{_bindir}/pdbedit
769%attr(755,root,root) %{_bindir}/profiles
3999f3d9
JR
770%attr(755,root,root) %{_bindir}/sharesec
771%attr(755,root,root) %{_bindir}/smbcontrol
772%attr(755,root,root) %{_bindir}/smbstatus
773%attr(755,root,root) %{_bindir}/smbta-util
774%attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
775%attr(755,root,root) %{_sbindir}/nmbd
0b940f4e
JR
776%attr(755,root,root) %{_sbindir}/samba
777%attr(755,root,root) %{_sbindir}/samba_dnsupdate
7f7b5c36 778%attr(755,root,root) %{_sbindir}/samba_kcc
0b940f4e
JR
779%attr(755,root,root) %{_sbindir}/samba_spnupdate
780%attr(755,root,root) %{_sbindir}/samba_upgradedns
3999f3d9 781%attr(755,root,root) %{_sbindir}/smbd
295b7a55 782%attr(755,root,root) %{_libdir}/samba/libdnsserver-common-samba4.so
0b940f4e
JR
783%dir %{_libdir}/samba/bind9
784%attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9.so
785%attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_9.so
0643ad3f 786%attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_10.so
0b940f4e
JR
787%dir %{_libdir}/samba/hdb
788%attr(755,root,root) %{_libdir}/samba/hdb/hdb_samba4.so
0b940f4e
JR
789%dir %{_libdir}/samba/gensec
790%attr(755,root,root) %{_libdir}/samba/gensec/krb5.so
e4310f27 791%dir %{_libdir}/samba/ldb
e4310f27 792%attr(755,root,root) %{_libdir}/samba/ldb/aclread.so
0b940f4e 793%attr(755,root,root) %{_libdir}/samba/ldb/acl.so
e4310f27
JR
794%attr(755,root,root) %{_libdir}/samba/ldb/anr.so
795%attr(755,root,root) %{_libdir}/samba/ldb/descriptor.so
796%attr(755,root,root) %{_libdir}/samba/ldb/dirsync.so
797%attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_in.so
798%attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_out.so
799%attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_store.so
800%attr(755,root,root) %{_libdir}/samba/ldb/ildap.so
801%attr(755,root,root) %{_libdir}/samba/ldb/instancetype.so
802%attr(755,root,root) %{_libdir}/samba/ldb/lazy_commit.so
803%attr(755,root,root) %{_libdir}/samba/ldb/ldbsamba_extensions.so
804%attr(755,root,root) %{_libdir}/samba/ldb/linked_attributes.so
805%attr(755,root,root) %{_libdir}/samba/ldb/local_password.so
806%attr(755,root,root) %{_libdir}/samba/ldb/new_partition.so
e4310f27 807%attr(755,root,root) %{_libdir}/samba/ldb/objectclass_attrs.so
0b940f4e 808%attr(755,root,root) %{_libdir}/samba/ldb/objectclass.so
e4310f27
JR
809%attr(755,root,root) %{_libdir}/samba/ldb/objectguid.so
810%attr(755,root,root) %{_libdir}/samba/ldb/operational.so
811%attr(755,root,root) %{_libdir}/samba/ldb/partition.so
812%attr(755,root,root) %{_libdir}/samba/ldb/password_hash.so
813%attr(755,root,root) %{_libdir}/samba/ldb/ranged_results.so
814%attr(755,root,root) %{_libdir}/samba/ldb/repl_meta_data.so
815%attr(755,root,root) %{_libdir}/samba/ldb/resolve_oids.so
816%attr(755,root,root) %{_libdir}/samba/ldb/rootdse.so
817%attr(755,root,root) %{_libdir}/samba/ldb/samba3sam.so
818%attr(755,root,root) %{_libdir}/samba/ldb/samba3sid.so
819%attr(755,root,root) %{_libdir}/samba/ldb/samba_dsdb.so
820%attr(755,root,root) %{_libdir}/samba/ldb/samba_secrets.so
821%attr(755,root,root) %{_libdir}/samba/ldb/samldb.so
822%attr(755,root,root) %{_libdir}/samba/ldb/schema_data.so
823%attr(755,root,root) %{_libdir}/samba/ldb/schema_load.so
824%attr(755,root,root) %{_libdir}/samba/ldb/secrets_tdb_sync.so
825%attr(755,root,root) %{_libdir}/samba/ldb/show_deleted.so
826%attr(755,root,root) %{_libdir}/samba/ldb/simple_dn.so
827%attr(755,root,root) %{_libdir}/samba/ldb/simple_ldap_map.so
828%attr(755,root,root) %{_libdir}/samba/ldb/subtree_delete.so
829%attr(755,root,root) %{_libdir}/samba/ldb/subtree_rename.so
830%attr(755,root,root) %{_libdir}/samba/ldb/update_keytab.so
831%attr(755,root,root) %{_libdir}/samba/ldb/wins_ldb.so
382a477a
JR
832%dir %{_libdir}/samba/process_model
833%attr(755,root,root) %{_libdir}/samba/process_model/onefork.so
834%attr(755,root,root) %{_libdir}/samba/process_model/prefork.so
835%attr(755,root,root) %{_libdir}/samba/process_model/standard.so
836%dir %{_libdir}/samba/service
837%attr(755,root,root) %{_libdir}/samba/service/cldap.so
838%attr(755,root,root) %{_libdir}/samba/service/dcerpc.so
839%attr(755,root,root) %{_libdir}/samba/service/dns.so
840%attr(755,root,root) %{_libdir}/samba/service/dns_update.so
841%attr(755,root,root) %{_libdir}/samba/service/drepl.so
842%attr(755,root,root) %{_libdir}/samba/service/kcc.so
843%attr(755,root,root) %{_libdir}/samba/service/kdc.so
844%attr(755,root,root) %{_libdir}/samba/service/ldap.so
845%attr(755,root,root) %{_libdir}/samba/service/nbtd.so
846%attr(755,root,root) %{_libdir}/samba/service/ntp_signd.so
847%attr(755,root,root) %{_libdir}/samba/service/s3fs.so
848%attr(755,root,root) %{_libdir}/samba/service/smb.so
849%attr(755,root,root) %{_libdir}/samba/service/web.so
850%attr(755,root,root) %{_libdir}/samba/service/winbind.so
295b7a55 851%attr(755,root,root) %{_libdir}/samba/service/winbindd.so
382a477a 852%attr(755,root,root) %{_libdir}/samba/service/wrepl.so
d7a7a298 853%dir %{_libdir}/samba/vfs
c6a4fcd1 854%attr(755,root,root) %{_libdir}/samba/vfs/acl_tdb.so
d7a7a298 855%attr(755,root,root) %{_libdir}/samba/vfs/acl_xattr.so
c6a4fcd1
JR
856%attr(755,root,root) %{_libdir}/samba/vfs/aio_fork.so
857%attr(755,root,root) %{_libdir}/samba/vfs/aio_linux.so
858%attr(755,root,root) %{_libdir}/samba/vfs/aio_posix.so
859%attr(755,root,root) %{_libdir}/samba/vfs/aio_pthread.so
860%attr(755,root,root) %{_libdir}/samba/vfs/audit.so
d7a7a298 861%attr(755,root,root) %{_libdir}/samba/vfs/btrfs.so
c6a4fcd1
JR
862%attr(755,root,root) %{_libdir}/samba/vfs/cap.so
863%attr(755,root,root) %{_libdir}/samba/vfs/catia.so
864%attr(755,root,root) %{_libdir}/samba/vfs/commit.so
865%attr(755,root,root) %{_libdir}/samba/vfs/crossrename.so
866%attr(755,root,root) %{_libdir}/samba/vfs/default_quota.so
d7a7a298 867%attr(755,root,root) %{_libdir}/samba/vfs/dfs_samba4.so
c6a4fcd1
JR
868%attr(755,root,root) %{_libdir}/samba/vfs/dirsort.so
869%attr(755,root,root) %{_libdir}/samba/vfs/expand_msdfs.so
870%attr(755,root,root) %{_libdir}/samba/vfs/extd_audit.so
871%attr(755,root,root) %{_libdir}/samba/vfs/fake_perms.so
d7a7a298 872%attr(755,root,root) %{_libdir}/samba/vfs/fileid.so
295b7a55 873%attr(755,root,root) %{_libdir}/samba/vfs/fruit.so
c6a4fcd1
JR
874%attr(755,root,root) %{_libdir}/samba/vfs/full_audit.so
875%attr(755,root,root) %{_libdir}/samba/vfs/linux_xfs_sgid.so
876%attr(755,root,root) %{_libdir}/samba/vfs/media_harmony.so
877%attr(755,root,root) %{_libdir}/samba/vfs/netatalk.so
d7a7a298 878%attr(755,root,root) %{_libdir}/samba/vfs/posix_eadb.so
c6a4fcd1
JR
879%attr(755,root,root) %{_libdir}/samba/vfs/preopen.so
880%attr(755,root,root) %{_libdir}/samba/vfs/readahead.so
881%attr(755,root,root) %{_libdir}/samba/vfs/readonly.so
882%attr(755,root,root) %{_libdir}/samba/vfs/recycle.so
883%attr(755,root,root) %{_libdir}/samba/vfs/scannedonly.so
295b7a55 884%attr(755,root,root) %{_libdir}/samba/vfs/snapper.so
c6a4fcd1
JR
885%attr(755,root,root) %{_libdir}/samba/vfs/shadow_copy2.so
886%attr(755,root,root) %{_libdir}/samba/vfs/shadow_copy.so
887%attr(755,root,root) %{_libdir}/samba/vfs/smb_traffic_analyzer.so
888%attr(755,root,root) %{_libdir}/samba/vfs/streams_depot.so
889%attr(755,root,root) %{_libdir}/samba/vfs/streams_xattr.so
890%attr(755,root,root) %{_libdir}/samba/vfs/syncops.so
891%attr(755,root,root) %{_libdir}/samba/vfs/time_audit.so
295b7a55 892%attr(755,root,root) %{_libdir}/samba/vfs/worm.so
d7a7a298 893%attr(755,root,root) %{_libdir}/samba/vfs/xattr_tdb.so
3999f3d9
JR
894%{_datadir}/samba/setup
895%{_mandir}/man1/oLschema2ldif.1*
896%{_mandir}/man1/profiles.1*
ee92e647 897%{_mandir}/man1/sharesec.1*
c6a4fcd1
JR
898%{_mandir}/man1/smbcontrol.1*
899%{_mandir}/man1/smbstatus.1*
3999f3d9 900%{_mandir}/man8/eventlogadm.8*
c6a4fcd1 901%{_mandir}/man8/nmbd.8*
3999f3d9
JR
902%{_mandir}/man8/pdbedit.8*
903%{_mandir}/man8/samba.8*
c6a4fcd1
JR
904%{_mandir}/man8/smbd.8*
905%{_mandir}/man8/smbpasswd.8*
906%{_mandir}/man8/smbta-util.8*
907%{_mandir}/man8/vfs_acl_tdb.8*
d7a7a298 908%{_mandir}/man8/vfs_acl_xattr.8*
c6a4fcd1
JR
909%{_mandir}/man8/vfs_aio_fork.8*
910%{_mandir}/man8/vfs_aio_linux.8*
911%{_mandir}/man8/vfs_aio_pthread.8*
912%{_mandir}/man8/vfs_audit.8*
d7a7a298 913%{_mandir}/man8/vfs_btrfs.8*
c6a4fcd1
JR
914%{_mandir}/man8/vfs_cap.8*
915%{_mandir}/man8/vfs_catia.8*
916%{_mandir}/man8/vfs_commit.8*
917%{_mandir}/man8/vfs_crossrename.8*
918%{_mandir}/man8/vfs_default_quota.8*
919%{_mandir}/man8/vfs_dirsort.8*
920%{_mandir}/man8/vfs_extd_audit.8*
921%{_mandir}/man8/vfs_fake_perms.8*
d7a7a298 922%{_mandir}/man8/vfs_fileid.8*
295b7a55 923%{_mandir}/man8/vfs_fruit.8*
c6a4fcd1
JR
924%{_mandir}/man8/vfs_full_audit.8*
925%{_mandir}/man8/vfs_linux_xfs_sgid.8*
926%{_mandir}/man8/vfs_media_harmony.8*
927%{_mandir}/man8/vfs_netatalk.8*
928%{_mandir}/man8/vfs_preopen.8*
929%{_mandir}/man8/vfs_readahead.8*
930%{_mandir}/man8/vfs_readonly.8*
931%{_mandir}/man8/vfs_recycle.8*
932%{_mandir}/man8/vfs_scannedonly.8*
933%{_mandir}/man8/vfs_shadow_copy2.8*
934%{_mandir}/man8/vfs_shadow_copy.8*
935%{_mandir}/man8/vfs_smb_traffic_analyzer.8*
295b7a55 936%{_mandir}/man8/vfs_snapper.8*
c6a4fcd1
JR
937%{_mandir}/man8/vfs_streams_depot.8*
938%{_mandir}/man8/vfs_streams_xattr.8*
939%{_mandir}/man8/vfs_syncops.8*
940%{_mandir}/man8/vfs_time_audit.8*
295b7a55 941%{_mandir}/man8/vfs_worm.8*
d7a7a298 942%{_mandir}/man8/vfs_xattr_tdb.8*
c6a4fcd1 943
3999f3d9
JR
944%dir %{_sambahome}
945%dir /var/lib/samba
946%ghost /var/lib/samba/*.dat
947%dir /var/lib/samba/printing
948
949%attr(750,root,root) %dir /var/log/samba
950%attr(750,root,root) %dir /var/log/samba/cores
951%attr(750,root,root) %dir /var/log/samba/cores/smbd
952%attr(750,root,root) %dir /var/log/samba/cores/nmbd
953%attr(750,root,root) %dir /var/log/archive/samba
954%attr(1777,root,root) %dir /var/spool/samba
955
c38c2d9d 956%files vfs-ceph
2eedd257 957%defattr(644,root,root,755)
c38c2d9d 958%attr(755,root,root) %{_libdir}/samba/vfs/ceph.so
295b7a55 959%{_mandir}/man8/vfs_ceph.8*
c38c2d9d
JB
960
961%files vfs-glusterfs
962%defattr(644,root,root,755)
963%attr(755,root,root) %{_libdir}/samba/vfs/glusterfs.so
295b7a55 964%{_mandir}/man8/vfs_glusterfs.8*
c38c2d9d
JB
965
966%files vfs-notify_fam
967%defattr(644,root,root,755)
968%attr(755,root,root) %{_libdir}/samba/vfs/notify_fam.so
969%{_mandir}/man8/vfs_notify_fam.8*
ac6f9d13 970
ac6f9d13 971%files common
2eedd257 972%defattr(644,root,root,755)
2e711b12 973%doc README WHATSNEW.txt Roadmap
5a89b1cc
JR
974%dir %{_sysconfdir}/samba
975%attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf
976%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts
ee92e647
JR
977%attr(755,root,root) %{_bindir}/dbwrap_tool
978%attr(755,root,root) %{_bindir}/net
979%attr(755,root,root) %{_bindir}/nmblookup
ee92e647 980%attr(755,root,root) %{_bindir}/reg*
89730013 981%attr(755,root,root) %{_bindir}/samba-regedit
c083eea8 982%attr(755,root,root) %{_bindir}/samba-tool
ee92e647 983%attr(755,root,root) %{_bindir}/smbpasswd
4f12cc62
JR
984%attr(755,root,root) %{_bindir}/testparm
985%attr(755,root,root) %{_bindir}/vfstest
5a89b1cc
JR
986%dir %{_libdir}/samba/auth
987%attr(755,root,root) %{_libdir}/samba/auth/script.so
988%attr(755,root,root) %{_libdir}/samba/auth/samba4.so
d7a7a298
JR
989%dir %{_datadir}/samba
990%dir %{_datadir}/samba/codepages
991%{_datadir}/samba/codepages/lowcase.dat
992%{_datadir}/samba/codepages/upcase.dat
993%{_datadir}/samba/codepages/valid.dat
994%{_mandir}/man1/dbwrap_tool.1*
995%{_mandir}/man1/nmblookup.1*
d7a7a298
JR
996%{_mandir}/man1/reg*.1*
997%{_mandir}/man1/testparm.1*
998%{_mandir}/man1/vfstest.1*
999%{_mandir}/man5/lmhosts.5*
1000%{_mandir}/man5/smb.conf.5*
1001%{_mandir}/man5/smbpasswd.5*
1002%{_mandir}/man7/samba.7*
1003%{_mandir}/man8/net.8*
1004%{_mandir}/man8/samba-regedit.8*
1005%{_mandir}/man8/samba-tool.8*
1006
1007%if %{without system_libs}
1008%attr(755,root,root) %{_bindir}/ntdbbackup
1009%attr(755,root,root) %{_bindir}/ntdbdump
1010%attr(755,root,root) %{_bindir}/ntdbrestore
1011%attr(755,root,root) %{_bindir}/ntdbtool
1012%attr(755,root,root) %{_bindir}/tdbbackup
1013%attr(755,root,root) %{_bindir}/tdbdump
1014%attr(755,root,root) %{_bindir}/tdbtool
1015%attr(755,root,root) %{_libdir}/samba/libntdb.so.*
1016%attr(755,root,root) %{_libdir}/samba/libtalloc.so.*
1017%attr(755,root,root) %{_libdir}/samba/libtdb.so.*
1018%{_mandir}/man8/ntdbbackup.8*
1019%{_mandir}/man8/ntdbdump.8*
1020%{_mandir}/man8/ntdbrestore.8*
1021%{_mandir}/man8/ntdbtool.8*
1022%{_mandir}/man8/tdbbackup.8*
1023%{_mandir}/man8/tdbdump.8*
1024%{_mandir}/man8/tdbtool.8*
1025%endif
1026
c38c2d9d
JB
1027%files client
1028%defattr(644,root,root,755)
1029%attr(755,root,root) %{_bindir}/cifsdd
1030%attr(755,root,root) %{_bindir}/rpcclient
1031%attr(755,root,root) %{_bindir}/smbcacls
1032%attr(755,root,root) %{_bindir}/smbclient
c38c2d9d
JB
1033%attr(755,root,root) %{_bindir}/smbcquotas
1034%attr(755,root,root) %{_bindir}/smbtar
1035%attr(755,root,root) %{_bindir}/smbtree
1036%{_mandir}/man1/findsmb.1*
1037%{_mandir}/man1/rpcclient.1*
1038%{_mandir}/man1/smbcacls.1*
1039%{_mandir}/man1/smbclient.1*
1040%{_mandir}/man1/smbcquotas.1*
1041%{_mandir}/man1/smbtar.1*
1042%{_mandir}/man1/smbtree.1*
1043
1044%files winbind
1045%defattr(644,root,root,755)
1046%attr(754,root,root) /etc/rc.d/init.d/winbind
1047%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/winbind
1048%{systemdunitdir}/winbind.service
1049%attr(755,root,root) %{_bindir}/ntlm_auth
1050%attr(755,root,root) %{_bindir}/wbinfo
1051%attr(755,root,root) %{_sbindir}/winbindd
1052%attr(755,root,root) /%{_lib}/security/pam_winbind.so
1053%attr(755,root,root) /%{_lib}/libnss_winbind.so*
1054%attr(755,root,root) %{_libdir}/winbind_krb5_locator.so
295b7a55
AM
1055%attr(755,root,root) %{_libdir}/samba/libidmap-samba4.so
1056%attr(755,root,root) %{_libdir}/samba/libnss-info-samba4.so
c38c2d9d
JB
1057%dir %{_libdir}/samba/idmap
1058%attr(755,root,root) %{_libdir}/samba/idmap/ad.so
1059%attr(755,root,root) %{_libdir}/samba/idmap/autorid.so
1060%attr(755,root,root) %{_libdir}/samba/idmap/hash.so
1061%attr(755,root,root) %{_libdir}/samba/idmap/ldap.so
1062%attr(755,root,root) %{_libdir}/samba/idmap/rfc2307.so
1063%attr(755,root,root) %{_libdir}/samba/idmap/rid.so
1064%attr(755,root,root) %{_libdir}/samba/idmap/tdb2.so
1065%dir %{_libdir}/samba/nss_info
1066%attr(755,root,root) %{_libdir}/samba/nss_info/hash.so
1067%attr(755,root,root) %{_libdir}/samba/nss_info/rfc2307.so
1068%attr(755,root,root) %{_libdir}/samba/nss_info/sfu20.so
1069%attr(755,root,root) %{_libdir}/samba/nss_info/sfu.so
1070%{_mandir}/man1/ntlm_auth.1*
1071%{_mandir}/man1/wbinfo*.1*
1072%{_mandir}/man5/pam_winbind.conf.5*
1073%{_mandir}/man7/winbind_krb5_locator.7*
1074%{_mandir}/man8/idmap_ad.8*
1075%{_mandir}/man8/idmap_autorid.8*
1076%{_mandir}/man8/idmap_hash.8*
1077%{_mandir}/man8/idmap_ldap.8*
1078%{_mandir}/man8/idmap_nss.8*
1079%{_mandir}/man8/idmap_rfc2307.8*
1080%{_mandir}/man8/idmap_rid.8*
1081%{_mandir}/man8/idmap_tdb2.8*
1082%{_mandir}/man8/idmap_tdb.8*
1083%{_mandir}/man8/pam_winbind.8*
1084%{_mandir}/man8/winbindd*.8*
1085
1086%if %{with cups}
1087%files -n cups-backend-smb
1088%defattr(644,root,root,755)
1089%attr(755,root,root) %{cups_serverbin}/backend/smb
1090%attr(755,root,root) %{_bindir}/smbspool
1091%{_mandir}/man8/smbspool.8*
1092%endif
1093
1094%files -n nss_wins
1095%defattr(644,root,root,755)
1096%attr(755,root,root) /%{_lib}/libnss_wins.so*
1097
c38c2d9d
JB
1098%files -n smbget
1099%defattr(644,root,root,755)
1100%attr(755,root,root) %{_bindir}/smbget
1101%{_mandir}/man1/smbget.1*
1102%{_mandir}/man5/smbgetrc.5*
1103
d7a7a298
JR
1104%files libs
1105%defattr(644,root,root,755)
17dffdb7
JR
1106%if "%{_lib}" == "lib64"
1107/etc/ld.so.conf.d/samba64.conf
1108%else
d7a7a298 1109/etc/ld.so.conf.d/samba.conf
17dffdb7 1110%endif
e4310f27
JR
1111%attr(755,root,root) %{_libdir}/libdcerpc-atsvc.so.*.*.*
1112%attr(755,root,root) %ghost %{_libdir}/libdcerpc-atsvc.so.0
8e43bad6
JR
1113%attr(755,root,root) %{_libdir}/libdcerpc-binding.so.*.*.*
1114%attr(755,root,root) %ghost %{_libdir}/libdcerpc-binding.so.0
0b940f4e
JR
1115%attr(755,root,root) %{_libdir}/libdcerpc-samr.so.*.*.*
1116%attr(755,root,root) %ghost %{_libdir}/libdcerpc-samr.so.0
8e43bad6
JR
1117%attr(755,root,root) %{_libdir}/libdcerpc-server.so.*.*.*
1118%attr(755,root,root) %ghost %{_libdir}/libdcerpc-server.so.0
d7a7a298
JR
1119%attr(755,root,root) %{_libdir}/libdcerpc.so.*.*.*
1120%attr(755,root,root) %ghost %{_libdir}/libdcerpc.so.0
8e43bad6
JR
1121%attr(755,root,root) %{_libdir}/libgensec.so.*.*.*
1122%attr(755,root,root) %ghost %{_libdir}/libgensec.so.0
d7a7a298
JR
1123%attr(755,root,root) %{_libdir}/libndr-krb5pac.so.*.*.*
1124%attr(755,root,root) %ghost %{_libdir}/libndr-krb5pac.so.0
8e43bad6
JR
1125%attr(755,root,root) %{_libdir}/libndr-nbt.so.*.*.*
1126%attr(755,root,root) %ghost %{_libdir}/libndr-nbt.so.0
1127%attr(755,root,root) %{_libdir}/libndr.so.*.*.*
1128%attr(755,root,root) %ghost %{_libdir}/libndr.so.0
8e43bad6
JR
1129%attr(755,root,root) %{_libdir}/libndr-standard.so.*.*.*
1130%attr(755,root,root) %ghost %{_libdir}/libndr-standard.so.0
d7a7a298
JR
1131%attr(755,root,root) %{_libdir}/libregistry.so.*.*.*
1132%attr(755,root,root) %ghost %{_libdir}/libregistry.so.0
8e43bad6
JR
1133%attr(755,root,root) %{_libdir}/libsamba-credentials.so.*.*.*
1134%attr(755,root,root) %ghost %{_libdir}/libsamba-credentials.so.0
1135%attr(755,root,root) %{_libdir}/libsamba-hostconfig.so.*.*.*
1136%attr(755,root,root) %ghost %{_libdir}/libsamba-hostconfig.so.0
295b7a55
AM
1137%attr(755,root,root) %{_libdir}/libsamba-passdb.so.*.*.*
1138%attr(755,root,root) %ghost %{_libdir}/libsamba-passdb.so.0
d7a7a298
JR
1139%attr(755,root,root) %{_libdir}/libsamba-policy.so.*.*.*
1140%attr(755,root,root) %ghost %{_libdir}/libsamba-policy.so.0
4d036a87
JR
1141%attr(755,root,root) %{_libdir}/libsamba-util.so.*.*.*
1142%attr(755,root,root) %ghost %{_libdir}/libsamba-util.so.0
8e43bad6
JR
1143%attr(755,root,root) %{_libdir}/libsamdb.so.*.*.*
1144%attr(755,root,root) %ghost %{_libdir}/libsamdb.so.0
4d036a87
JR
1145%attr(755,root,root) %{_libdir}/libsmbclient-raw.so.*.*.*
1146%attr(755,root,root) %ghost %{_libdir}/libsmbclient-raw.so.0
8e43bad6
JR
1147%attr(755,root,root) %{_libdir}/libtevent-util.so.*.*.*
1148%attr(755,root,root) %ghost %{_libdir}/libtevent-util.so.0
1149%attr(755,root,root) %{_libdir}/libnetapi.so.0
4d036a87 1150%attr(755,root,root) %{_libdir}/libsmbconf.so.0
8e43bad6 1151%attr(755,root,root) %{_libdir}/libsmbldap.so.0
4d036a87 1152%dir %{_libdir}/samba
295b7a55
AM
1153%attr(755,root,root) %{_libdir}/samba/libaddns-samba4.so
1154%attr(755,root,root) %{_libdir}/samba/libads-samba4.so
1155%attr(755,root,root) %{_libdir}/samba/libasn1util-samba4.so
1156%attr(755,root,root) %{_libdir}/samba/libauth4-samba4.so
1157%attr(755,root,root) %{_libdir}/samba/libauthkrb5-samba4.so
1158%attr(755,root,root) %{_libdir}/samba/libauth-sam-reply-samba4.so
1159%attr(755,root,root) %{_libdir}/samba/libauth-samba4.so
1160%attr(755,root,root) %{_libdir}/samba/libauth-unix-token-samba4.so
1161%attr(755,root,root) %{_libdir}/samba/libCHARSET3-samba4.so
1162%attr(755,root,root) %{_libdir}/samba/libcliauth-samba4.so
1163%attr(755,root,root) %{_libdir}/samba/libcli-cldap-samba4.so
1164%attr(755,root,root) %{_libdir}/samba/libcli-ldap-common-samba4.so
1165%attr(755,root,root) %{_libdir}/samba/libcli-ldap-samba4.so
1166%attr(755,root,root) %{_libdir}/samba/libcli-nbt-samba4.so
1167%attr(755,root,root) %{_libdir}/samba/libcli-smb-common-samba4.so
1168%attr(755,root,root) %{_libdir}/samba/libcli-spoolss-samba4.so
1169%attr(755,root,root) %{_libdir}/samba/libcluster-samba4.so
1170%attr(755,root,root) %{_libdir}/samba/libcmdline-credentials-samba4.so
1171%attr(755,root,root) %{_libdir}/samba/libdb-glue-samba4.so
1172%attr(755,root,root) %{_libdir}/samba/libdbwrap-samba4.so
8e43bad6 1173%attr(755,root,root) %{_libdir}/samba/libdcerpc-samba4.so
295b7a55
AM
1174%attr(755,root,root) %{_libdir}/samba/libdcerpc-samba-samba4.so
1175%attr(755,root,root) %{_libdir}/samba/libdfs-server-ad-samba4.so
1176%attr(755,root,root) %{_libdir}/samba/libdsdb-module-samba4.so
1177%attr(755,root,root) %{_libdir}/samba/liberrors-samba4.so
1178%attr(755,root,root) %{_libdir}/samba/libevents-samba4.so
1179%attr(755,root,root) %{_libdir}/samba/libflag-mapping-samba4.so
1180%attr(755,root,root) %{_libdir}/samba/libgpo-samba4.so
1181%attr(755,root,root) %{_libdir}/samba/libgse-samba4.so
1182%attr(755,root,root) %{_libdir}/samba/libHDB-SAMBA4-samba4.so
1183%attr(755,root,root) %{_libdir}/samba/libhttp-samba4.so
1184%attr(755,root,root) %{_libdir}/samba/libinterfaces-samba4.so
1185%attr(755,root,root) %{_libdir}/samba/libkrb5samba-samba4.so
1186%attr(755,root,root) %{_libdir}/samba/libldbsamba-samba4.so
1187%attr(755,root,root) %{_libdir}/samba/liblibcli-lsa3-samba4.so
1188%attr(755,root,root) %{_libdir}/samba/liblibcli-netlogon3-samba4.so
1189%attr(755,root,root) %{_libdir}/samba/liblibsmb-samba4.so
1190%attr(755,root,root) %{_libdir}/samba/libLIBWBCLIENT-OLD-samba4.so
1191%attr(755,root,root) %{_libdir}/samba/libMESSAGING-samba4.so
1192%attr(755,root,root) %{_libdir}/samba/libmsrpc3-samba4.so
8e43bad6 1193%attr(755,root,root) %{_libdir}/samba/libndr-samba4.so
295b7a55
AM
1194%attr(755,root,root) %{_libdir}/samba/libndr-samba-samba4.so
1195%attr(755,root,root) %{_libdir}/samba/libnetif-samba4.so
1196%attr(755,root,root) %{_libdir}/samba/libnet-keytab-samba4.so
1197%attr(755,root,root) %{_libdir}/samba/libnon-posix-acls-samba4.so
1198%attr(755,root,root) %{_libdir}/samba/libnpa-tstream-samba4.so
1199%attr(755,root,root) %{_libdir}/samba/libntvfs-samba4.so
1200%attr(755,root,root) %{_libdir}/samba/libpac-samba4.so
1201%attr(755,root,root) %{_libdir}/samba/libpopt-samba3-samba4.so
1202%attr(755,root,root) %{_libdir}/samba/libposix-eadb-samba4.so
1203%attr(755,root,root) %{_libdir}/samba/libprinting-migrate-samba4.so
1204%attr(755,root,root) %{_libdir}/samba/libprocess-model-samba4.so
1205%attr(755,root,root) %{_libdir}/samba/libsamba3-util-samba4.so
1206%attr(755,root,root) %{_libdir}/samba/libsamba-cluster-support-samba4.so
1207%attr(755,root,root) %{_libdir}/samba/libsamba-debug-samba4.so
1208%attr(755,root,root) %{_libdir}/samba/libsamba-modules-samba4.so
1209%attr(755,root,root) %{_libdir}/samba/libsamba-net-samba4.so
1210%attr(755,root,root) %{_libdir}/samba/libsamba-python-samba4.so
1211%attr(755,root,root) %{_libdir}/samba/libsamba-security-samba4.so
1212%attr(755,root,root) %{_libdir}/samba/libsocket-blocking-samba4.so
1213%attr(755,root,root) %{_libdir}/samba/libsamba-sockets-samba4.so
1214%attr(755,root,root) %{_libdir}/samba/libsamdb-common-samba4.so
1215%attr(755,root,root) %{_libdir}/samba/libsecrets3-samba4.so
1216%attr(755,root,root) %{_libdir}/samba/libserver-role-samba4.so
1217%attr(755,root,root) %{_libdir}/samba/libservice-samba4.so
1218%attr(755,root,root) %{_libdir}/samba/libshares-samba4.so
1219%attr(755,root,root) %{_libdir}/samba/libsmbd-base-samba4.so
1220%attr(755,root,root) %{_libdir}/samba/libsmbd-conn-samba4.so
1221%attr(755,root,root) %{_libdir}/samba/libsmbd-shim-samba4.so
1222%attr(755,root,root) %{_libdir}/samba/libsmbldaphelper-samba4.so
1223%attr(755,root,root) %{_libdir}/samba/libsmbpasswdparser-samba4.so
1224%attr(755,root,root) %{_libdir}/samba/libsmbregistry-samba4.so
1225%attr(755,root,root) %{_libdir}/samba/libsmb-transport-samba4.so
1226%attr(755,root,root) %{_libdir}/samba/libtdb-compat-samba4.so
1227%attr(755,root,root) %{_libdir}/samba/libtdb-wrap-samba4.so
1228%attr(755,root,root) %{_libdir}/samba/libtrusts-util-samba4.so
1229%attr(755,root,root) %{_libdir}/samba/libutil-cmdline-samba4.so
1230%attr(755,root,root) %{_libdir}/samba/libutil-ntdb-samba4.so
1231%attr(755,root,root) %{_libdir}/samba/libutil-reg-samba4.so
1232%attr(755,root,root) %{_libdir}/samba/libutil-setid-samba4.so
1233%attr(755,root,root) %{_libdir}/samba/libutil-tdb-samba4.so
1234%attr(755,root,root) %{_libdir}/samba/libxattr-tdb-samba4.so
e71e0470 1235
f2b0247b
ER
1236%files devel
1237%defattr(644,root,root,755)
f1c7ad61
JR
1238%{_includedir}/samba-4.0/charset.h
1239%dir %{_includedir}/samba-4.0/core
1240%{_includedir}/samba-4.0/core/doserr.h
1241%{_includedir}/samba-4.0/core/error.h
295b7a55 1242%{_includedir}/samba-4.0/core/hresult.h
f1c7ad61
JR
1243%{_includedir}/samba-4.0/core/ntstatus.h
1244%{_includedir}/samba-4.0/core/werror.h
1245%{_includedir}/samba-4.0/credentials.h
1246%{_includedir}/samba-4.0/dcerpc.h
1247%{_includedir}/samba-4.0/dcerpc_server.h
1248%{_includedir}/samba-4.0/dlinklist.h
1249%{_includedir}/samba-4.0/domain_credentials.h
1250%dir %{_includedir}/samba-4.0/gen_ndr
1251%{_includedir}/samba-4.0/gen_ndr/atsvc.h
1252%{_includedir}/samba-4.0/gen_ndr/auth.h
1253%{_includedir}/samba-4.0/gen_ndr/dcerpc.h
8e43bad6
JR
1254%{_includedir}/samba-4.0/gen_ndr/drsblobs.h
1255%{_includedir}/samba-4.0/gen_ndr/drsuapi.h
f1c7ad61
JR
1256%{_includedir}/samba-4.0/gen_ndr/epmapper.h
1257%{_includedir}/samba-4.0/gen_ndr/krb5pac.h
1258%{_includedir}/samba-4.0/gen_ndr/lsa.h
1259%{_includedir}/samba-4.0/gen_ndr/mgmt.h
1260%{_includedir}/samba-4.0/gen_ndr/misc.h
1261%{_includedir}/samba-4.0/gen_ndr/nbt.h
f1c7ad61 1262%{_includedir}/samba-4.0/gen_ndr/ndr_atsvc.h
8e43bad6 1263%{_includedir}/samba-4.0/gen_ndr/ndr_atsvc_c.h
f1c7ad61 1264%{_includedir}/samba-4.0/gen_ndr/ndr_dcerpc.h
8e43bad6
JR
1265%{_includedir}/samba-4.0/gen_ndr/ndr_drsblobs.h
1266%{_includedir}/samba-4.0/gen_ndr/ndr_drsuapi.h
f1c7ad61 1267%{_includedir}/samba-4.0/gen_ndr/ndr_epmapper.h
8e43bad6 1268%{_includedir}/samba-4.0/gen_ndr/ndr_epmapper_c.h
f1c7ad61 1269%{_includedir}/samba-4.0/gen_ndr/ndr_krb5pac.h
f1c7ad61 1270%{_includedir}/samba-4.0/gen_ndr/ndr_mgmt.h
8e43bad6 1271%{_includedir}/samba-4.0/gen_ndr/ndr_mgmt_c.h
f1c7ad61
JR
1272%{_includedir}/samba-4.0/gen_ndr/ndr_misc.h
1273%{_includedir}/samba-4.0/gen_ndr/ndr_nbt.h
f1c7ad61 1274%{_includedir}/samba-4.0/gen_ndr/ndr_samr.h
8e43bad6 1275%{_includedir}/samba-4.0/gen_ndr/ndr_samr_c.h
f1c7ad61 1276%{_includedir}/samba-4.0/gen_ndr/ndr_svcctl.h
8e43bad6 1277%{_includedir}/samba-4.0/gen_ndr/ndr_svcctl_c.h
f1c7ad61
JR
1278%{_includedir}/samba-4.0/gen_ndr/netlogon.h
1279%{_includedir}/samba-4.0/gen_ndr/samr.h
1280%{_includedir}/samba-4.0/gen_ndr/security.h
1281%{_includedir}/samba-4.0/gen_ndr/server_id.h
1282%{_includedir}/samba-4.0/gen_ndr/svcctl.h
1283%{_includedir}/samba-4.0/gensec.h
8e43bad6 1284%{_includedir}/samba-4.0/ldap-util.h
f1c7ad61
JR
1285%{_includedir}/samba-4.0/ldap_errors.h
1286%{_includedir}/samba-4.0/ldap_message.h
1287%{_includedir}/samba-4.0/ldap_ndr.h
f1c7ad61
JR
1288%{_includedir}/samba-4.0/ldb_wrap.h
1289%{_includedir}/samba-4.0/ndr.h
1290%dir %{_includedir}/samba-4.0/ndr
295b7a55 1291%{_includedir}/samba-4.0/ndr/ndr_dcerpc.h
8e43bad6
JR
1292%{_includedir}/samba-4.0/ndr/ndr_drsblobs.h
1293%{_includedir}/samba-4.0/ndr/ndr_drsuapi.h
f1c7ad61
JR
1294%{_includedir}/samba-4.0/ndr/ndr_nbt.h
1295%{_includedir}/samba-4.0/ndr/ndr_svcctl.h
1296%{_includedir}/samba-4.0/param.h
1297%{_includedir}/samba-4.0/policy.h
8e43bad6 1298%{_includedir}/samba-4.0/read_smb.h
f1c7ad61
JR
1299%{_includedir}/samba-4.0/registry.h
1300%{_includedir}/samba-4.0/roles.h
1301%{_includedir}/samba-4.0/rpc_common.h
1302%dir %{_includedir}/samba-4.0/samba
1303%{_includedir}/samba-4.0/samba/session.h
f1c7ad61 1304%{_includedir}/samba-4.0/samba/version.h
8e43bad6 1305%{_includedir}/samba-4.0/samba_util.h
f1c7ad61 1306%{_includedir}/samba-4.0/share.h
8e43bad6
JR
1307%{_includedir}/samba-4.0/smb2.h
1308%{_includedir}/samba-4.0/smb2_constants.h
1309%{_includedir}/samba-4.0/smb2_create_blob.h
89730013 1310%{_includedir}/samba-4.0/smb2_lease.h
295b7a55 1311%{_includedir}/samba-4.0/smb2_lease_struct.h
8e43bad6
JR
1312%{_includedir}/samba-4.0/smb2_signing.h
1313%{_includedir}/samba-4.0/smb_cli.h
1314%{_includedir}/samba-4.0/smb_cliraw.h
1315%{_includedir}/samba-4.0/smb_common.h
1316%{_includedir}/samba-4.0/smb_composite.h
1317%{_includedir}/samba-4.0/smb_constants.h
1318%{_includedir}/samba-4.0/smb_raw.h
1319%{_includedir}/samba-4.0/smb_raw_interfaces.h
1320%{_includedir}/samba-4.0/smb_raw_signing.h
1321%{_includedir}/samba-4.0/smb_raw_trans2.h
1322%{_includedir}/samba-4.0/smb_request.h
1323%{_includedir}/samba-4.0/smb_seal.h
1324%{_includedir}/samba-4.0/smb_signing.h
1325%{_includedir}/samba-4.0/smb_unix_ext.h
1326%{_includedir}/samba-4.0/smb_util.h
f1c7ad61
JR
1327%{_includedir}/samba-4.0/tdr.h
1328%{_includedir}/samba-4.0/tsocket.h
1329%{_includedir}/samba-4.0/tsocket_internal.h
295b7a55 1330%{_includedir}/samba-4.0/tstream_smbXcli_np.h
f1c7ad61
JR
1331%dir %{_includedir}/samba-4.0/util
1332%{_includedir}/samba-4.0/util/attr.h
295b7a55 1333%{_includedir}/samba-4.0/util/blocking.h
f1c7ad61
JR
1334%{_includedir}/samba-4.0/util/byteorder.h
1335%{_includedir}/samba-4.0/util/data_blob.h
1336%{_includedir}/samba-4.0/util/debug.h
295b7a55
AM
1337%{_includedir}/samba-4.0/util/fault.h
1338%{_includedir}/samba-4.0/util/idtree.h
1339%{_includedir}/samba-4.0/util/idtree_random.h
f1c7ad61
JR
1340%{_includedir}/samba-4.0/util/memory.h
1341%{_includedir}/samba-4.0/util/safe_string.h
295b7a55 1342%{_includedir}/samba-4.0/util/signal.h
f1c7ad61 1343%{_includedir}/samba-4.0/util/string_wrappers.h
295b7a55 1344%{_includedir}/samba-4.0/util/substitute.h
f1c7ad61
JR
1345%{_includedir}/samba-4.0/util/talloc_stack.h
1346%{_includedir}/samba-4.0/util/tevent_ntstatus.h
1347%{_includedir}/samba-4.0/util/tevent_unix.h
1348%{_includedir}/samba-4.0/util/tevent_werror.h
1349%{_includedir}/samba-4.0/util/time.h
1350%{_includedir}/samba-4.0/util/xfile.h
8e43bad6 1351%{_includedir}/samba-4.0/util_ldb.h
31de16f4
JR
1352%{_includedir}/samba-4.0/lookup_sid.h
1353%{_includedir}/samba-4.0/machine_sid.h
1354%{_includedir}/samba-4.0/netapi.h
1355%{_includedir}/samba-4.0/passdb.h
1356%{_includedir}/samba-4.0/smbconf.h
1357%{_includedir}/samba-4.0/smb_ldap.h
1358%{_includedir}/samba-4.0/smbldap.h
8e43bad6
JR
1359%attr(755,root,root) %{_libdir}/libdcerpc-atsvc.so
1360%attr(755,root,root) %{_libdir}/libdcerpc-binding.so
1361%attr(755,root,root) %{_libdir}/libdcerpc-samr.so
1362%attr(755,root,root) %{_libdir}/libdcerpc-server.so
1363%attr(755,root,root) %{_libdir}/libdcerpc.so
1364%attr(755,root,root) %{_libdir}/libgensec.so
1365%attr(755,root,root) %{_libdir}/libndr-krb5pac.so
1366%attr(755,root,root) %{_libdir}/libndr-nbt.so
8e43bad6 1367%attr(755,root,root) %{_libdir}/libndr.so
31de16f4
JR
1368%attr(755,root,root) %{_libdir}/libndr-standard.so
1369%attr(755,root,root) %{_libdir}/libnetapi.so
8e43bad6
JR
1370%attr(755,root,root) %{_libdir}/libregistry.so
1371%attr(755,root,root) %{_libdir}/libsamba-credentials.so
1372%attr(755,root,root) %{_libdir}/libsamba-hostconfig.so
295b7a55 1373%attr(755,root,root) %{_libdir}/libsamba-passdb.so
8e43bad6
JR
1374%attr(755,root,root) %{_libdir}/libsamba-policy.so
1375%attr(755,root,root) %{_libdir}/libsamba-util.so
1376%attr(755,root,root) %{_libdir}/libsamdb.so
1377%attr(755,root,root) %{_libdir}/libsmbclient-raw.so
1378%attr(755,root,root) %{_libdir}/libsmbconf.so
31de16f4 1379%attr(755,root,root) %{_libdir}/libsmbldap.so
8e43bad6 1380%attr(755,root,root) %{_libdir}/libtevent-util.so
f1c7ad61 1381%{_pkgconfigdir}/dcerpc.pc
8e43bad6 1382%{_pkgconfigdir}/dcerpc_atsvc.pc
05913998
JR
1383%{_pkgconfigdir}/dcerpc_samr.pc
1384%{_pkgconfigdir}/dcerpc_server.pc
1385%{_pkgconfigdir}/gensec.pc
8e43bad6 1386%{_pkgconfigdir}/ndr.pc
05913998
JR
1387%{_pkgconfigdir}/ndr_krb5pac.pc
1388%{_pkgconfigdir}/ndr_nbt.pc
1389%{_pkgconfigdir}/ndr_standard.pc
31de16f4 1390%{_pkgconfigdir}/netapi.pc
05913998
JR
1391%{_pkgconfigdir}/registry.pc
1392%{_pkgconfigdir}/samba-credentials.pc
1393%{_pkgconfigdir}/samba-hostconfig.pc
1394%{_pkgconfigdir}/samba-policy.pc
1395%{_pkgconfigdir}/samba-util.pc
1396%{_pkgconfigdir}/samdb.pc
4d036a87 1397%{_pkgconfigdir}/smbclient-raw.pc
a9009cd3 1398%if %{without system_libs}
89730013 1399%{_mandir}/man3/ntdb.3*
a9009cd3 1400%endif
4d036a87 1401
382a477a
JR
1402%files pidl
1403%defattr(644,root,root,755)
1404%attr(755,root,root) %{_bindir}/pidl
1405%{_mandir}/man1/pidl.1*
1406%{_mandir}/man3/Parse::Pidl*.3*
1407%{perl_vendorlib}/Parse/Pidl*
29511e6d 1408
025a78ca 1409%files -n python-samba
9f6f5df1 1410%defattr(644,root,root,755)
c083eea8
JR
1411%dir %{py_sitedir}/samba
1412%attr(755,root,root) %{py_sitedir}/samba/*.so
1413%{py_sitedir}/samba/*.py[co]
1414%dir %{py_sitedir}/samba/dcerpc
1415%{py_sitedir}/samba/dcerpc/*.py[co]
1416%attr(755,root,root) %{py_sitedir}/samba/dcerpc/*.so
1417%dir %{py_sitedir}/samba/external
1418%{py_sitedir}/samba/external/*.py[co]
1419%dir %{py_sitedir}/samba/external/subunit
1420%{py_sitedir}/samba/external/subunit/*.py[co]
1421%dir %{py_sitedir}/samba/external/subunit/tests
1422%{py_sitedir}/samba/external/subunit/tests/*.py[co]
1423%dir %{py_sitedir}/samba/netcmd
1424%{py_sitedir}/samba/netcmd/*.py[co]
1425%dir %{py_sitedir}/samba/provision
1426%{py_sitedir}/samba/provision/*.py[co]
6ed8d415
JR
1427%dir %{py_sitedir}/samba/samba3
1428%attr(755,root,root) %{py_sitedir}/samba/samba3/*.so
1429%{py_sitedir}/samba/samba3/*.py[co]
c083eea8
JR
1430%dir %{py_sitedir}/samba/tests
1431%{py_sitedir}/samba/tests/*.py[co]
1432%dir %{py_sitedir}/samba/tests/blackbox
1433%{py_sitedir}/samba/tests/blackbox/*.py[co]
1434%dir %{py_sitedir}/samba/tests/samba_tool
1435%{py_sitedir}/samba/tests/samba_tool/*.py[co]
1436%dir %{py_sitedir}/samba/tests/dcerpc
1437%{py_sitedir}/samba/tests/dcerpc/*.py[co]
1438%dir %{py_sitedir}/samba/web_server
1439%{py_sitedir}/samba/web_server/*.py[co]
1440%if %{without system_libs}
ef67314f 1441%attr(755,root,root) %{py_sitedir}/ldb.so
a9009cd3 1442%attr(755,root,root) %{py_sitedir}/ntdb.so
ef67314f
JB
1443%attr(755,root,root) %{py_sitedir}/talloc.so
1444%attr(755,root,root) %{py_sitedir}/tdb.so
1445%attr(755,root,root) %{py_sitedir}/_tevent.so
c083eea8 1446%{py_sitedir}/tevent.py[co]
fd9d8b85 1447%endif
70ff6d03 1448
c083eea8 1449%files test
d1f5710a 1450%defattr(644,root,root,755)
c083eea8
JR
1451%attr(755,root,root) %{_bindir}/gentest
1452%attr(755,root,root) %{_bindir}/locktest
1453%attr(755,root,root) %{_bindir}/masktest
1454%attr(755,root,root) %{_bindir}/ndrdump
1455%attr(755,root,root) %{_bindir}/smbtorture
1456%attr(755,root,root) %{_libdir}/libtorture.so.*.*.*
1457%attr(755,root,root) %ghost %{_libdir}/libtorture.so.0
295b7a55
AM
1458%attr(755,root,root) %{_libdir}/samba/libsubunit-samba4.so
1459%attr(755,root,root) %{_libdir}/samba/libdlz-bind9-for-torture-samba4.so
c083eea8
JR
1460%{_mandir}/man1/gentest.1*
1461%{_mandir}/man1/locktest.1*
1462%{_mandir}/man1/masktest.1*
1463%{_mandir}/man1/ndrdump.1*
1464%{_mandir}/man1/smbtorture.1*
d1f5710a 1465
c083eea8 1466%files test-devel
4ecf4d28 1467%defattr(644,root,root,755)
c083eea8
JR
1468%attr(755,root,root) %{_libdir}/libtorture.so
1469%{_includedir}/samba-4.0/torture.h
1470%{_pkgconfigdir}/torture.pc
4ecf4d28 1471
fe5b5b93 1472%files -n libsmbclient
382a477a
JR
1473%defattr(644,root,root,755)
1474%attr(755,root,root) %{_libdir}/libsmbclient.so.*
382a477a 1475%attr(755,root,root) %{_libdir}/libwbclient.so.*
295b7a55 1476%attr(755,root,root) %{_libdir}/samba/libwinbind-client-samba4.so
287950f2 1477%{_mandir}/man7/libsmbclient.7*
382a477a 1478
fe5b5b93 1479%files -n libsmbclient-devel
382a477a
JR
1480%defattr(644,root,root,755)
1481%attr(755,root,root) %{_libdir}/libsmbclient.so
382a477a 1482%attr(755,root,root) %{_libdir}/libwbclient.so
5a89b1cc 1483%dir %{_includedir}/samba-4.0
e98238cc
JR
1484%{_includedir}/samba-4.0/libsmbclient.h
1485%{_includedir}/samba-4.0/wbclient.h
1486%{_pkgconfigdir}/smbclient.pc
1487%{_pkgconfigdir}/wbclient.pc
382a477a 1488
382a477a 1489%if %{with ldap}
025a78ca 1490%files -n openldap-schema-samba
382a477a 1491%defattr(644,root,root,755)
a3c4e78e 1492%{schemadir}/samba.schema
382a477a 1493%endif
This page took 0.739972 seconds and 4 git commands to generate.