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