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