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