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