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