]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without ads # ActiveDirectory support | |
4 | %bcond_without cups # CUPS support | |
5 | %bcond_without ldap # LDAP support | |
6 | %bcond_without avahi # Avahi support | |
7 | %bcond_without system_libs # system libraries (talloc,tdb,tevent,ldb,ntdb) | |
8 | ||
9 | %if %{with system_libs} | |
10 | %define talloc_ver 2.0.7 | |
11 | %define tdb_ver 2:1.2.11 | |
12 | %define ldb_ver 1.1.16 | |
13 | %define tevent_ver 0.9.18 | |
14 | %define ntdb_ver 0.9 | |
15 | %endif | |
16 | ||
17 | %include /usr/lib/rpm/macros.perl | |
18 | ||
19 | %define virusfilter_version 0.1.3 | |
20 | Summary: Samba Active Directory and SMB server | |
21 | Summary(pl.UTF-8): Serwer Samba Active Directory i SMB | |
22 | Name: samba | |
23 | Version: 4.1.4 | |
24 | Release: 2 | |
25 | Epoch: 1 | |
26 | License: GPL v3 | |
27 | Group: Networking/Daemons | |
28 | Source0: http://www.samba.org/samba/ftp/stable/samba-%{version}.tar.gz | |
29 | # Source0-md5: c7871012ac40b8c74afff42bbd873bd7 | |
30 | Source1: smb.init | |
31 | Source2: samba.pamd | |
32 | Source4: samba.sysconfig | |
33 | Source5: samba.logrotate | |
34 | Source6: smb.conf | |
35 | Source7: winbind.init | |
36 | Source8: winbind.sysconfig | |
37 | Source9: samba.init | |
38 | Source10: https://github.com/downloads/fumiyas/samba-virusfilter/samba-virusfilter-%{virusfilter_version}.tar.bz2 | |
39 | # Source10-md5: a3a30d5fbf309d356e8c5833db680c17 | |
40 | Patch0: system-heimdal.patch | |
41 | Patch1: samba-c++-nofail.patch | |
42 | Patch4: samba-lprng-no-dot-printers.patch | |
43 | Patch5: systemd-pid-dir.patch | |
44 | Patch6: unicodePwd-nthash-values-over-LDAP.patch | |
45 | Patch7: link.patch | |
46 | URL: http://www.samba.org/ | |
47 | BuildRequires: acl-devel | |
48 | BuildRequires: autoconf | |
49 | BuildRequires: automake | |
50 | %{?with_avahi:BuildRequires: avahi-devel} | |
51 | BuildRequires: ceph-devel >= 0.73 | |
52 | BuildRequires: ctdb-devel | |
53 | %{?with_cups:BuildRequires: cups-devel >= 1:1.2.0} | |
54 | BuildRequires: dmapi-devel | |
55 | BuildRequires: docbook-style-xsl | |
56 | BuildRequires: gamin-devel | |
57 | BuildRequires: gdbm-devel | |
58 | BuildRequires: gettext-devel | |
59 | BuildRequires: glusterfs-devel | |
60 | BuildRequires: gnutls-devel | |
61 | BuildRequires: heimdal-devel >= 1.5.3-1 | |
62 | BuildRequires: iconv | |
63 | BuildRequires: keyutils-devel | |
64 | BuildRequires: libaio-devel | |
65 | BuildRequires: libcom_err-devel | |
66 | BuildRequires: libmagic-devel | |
67 | BuildRequires: libnscd-devel | |
68 | BuildRequires: libtool >= 2:1.4d | |
69 | BuildRequires: make >= 3.81 | |
70 | BuildRequires: ncurses-devel >= 5.2 | |
71 | BuildRequires: ncurses-ext-devel >= 5.2 | |
72 | %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} | |
73 | BuildRequires: pam-devel >= 0.99.8.1 | |
74 | BuildRequires: perl-ExtUtils-MakeMaker | |
75 | BuildRequires: perl-Parse-Yapp | |
76 | BuildRequires: pkgconfig | |
77 | BuildRequires: popt-devel | |
78 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
79 | BuildRequires: python-devel | |
80 | BuildRequires: python-dns | |
81 | BuildRequires: python-modules | |
82 | BuildRequires: python-testtools | |
83 | BuildRequires: readline-devel >= 4.2 | |
84 | BuildRequires: rpm-perlprov | |
85 | BuildRequires: rpm-pythonprov | |
86 | BuildRequires: rpmbuild(macros) >= 1.647 | |
87 | BuildRequires: sed >= 4.0 | |
88 | %if %{with system_libs} | |
89 | BuildRequires: ldb-devel >= %{ldb_ver} | |
90 | BuildRequires: ntdb-devel >= %{ntdb_ver} | |
91 | BuildRequires: python-ntdb >= %{ntdb_ver} | |
92 | BuildRequires: python-ldb-devel >= %{ldb_ver} | |
93 | BuildRequires: python-talloc-devel >= %{talloc_ver} | |
94 | BuildRequires: python-tevent >= %{tevent_ver} | |
95 | BuildRequires: talloc-devel >= %{talloc_ver} | |
96 | BuildRequires: tdb-devel >= %{tdb_ver} | |
97 | BuildRequires: tevent-devel >= %{tevent_ver} | |
98 | %endif | |
99 | BuildRequires: xfsprogs-devel | |
100 | BuildConflicts: libbsd-devel | |
101 | Requires(post,preun): /sbin/chkconfig | |
102 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
103 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
104 | Requires: python-samba = %{epoch}:%{version}-%{release} | |
105 | Requires: logrotate >= 3.7-4 | |
106 | Requires: pam >= 0.99.8.1 | |
107 | Requires: rc-scripts >= 0.4.0.12 | |
108 | Requires: setup >= 2.4.6-7 | |
109 | Requires: systemd-units >= 38 | |
110 | # smbd links with libcups | |
111 | %{?with_cups:Requires: cups-lib >= 1:1.2.0} | |
112 | Obsoletes: samba-doc-html | |
113 | Obsoletes: samba-doc-pdf | |
114 | Obsoletes: samba-pdb-xml | |
115 | Obsoletes: samba-vfs-block | |
116 | Obsoletes: samba-vfs-audit | |
117 | Obsoletes: samba-vfs-cap | |
118 | Obsoletes: samba-vfs-catia | |
119 | Obsoletes: samba-vfs-default_quota | |
120 | Obsoletes: samba-vfs-expand_msdfs | |
121 | Obsoletes: samba-vfs-fake_perms | |
122 | Obsoletes: samba-vfs-netatalk | |
123 | Obsoletes: samba-vfs-recycle | |
124 | Obsoletes: samba-vfs-readahead | |
125 | Obsoletes: samba-vfs-readonly | |
126 | Obsoletes: samba-vfs-scannedonly | |
127 | Obsoletes: samba-vfs-shadow_copy | |
128 | Obsoletes: samba3-server | |
129 | Obsoletes: samba3-vfs-audit | |
130 | Obsoletes: samba3-vfs-cap | |
131 | Obsoletes: samba3-vfs-catia | |
132 | Obsoletes: samba3-vfs-default_quota | |
133 | Obsoletes: samba3-vfs-expand_msdfs | |
134 | Obsoletes: samba3-vfs-fake_perms | |
135 | Obsoletes: samba3-vfs-netatalk | |
136 | Obsoletes: samba3-vfs-recycle | |
137 | Obsoletes: samba3-vfs-readahead | |
138 | Obsoletes: samba3-vfs-readonly | |
139 | Obsoletes: samba3-vfs-scannedonly | |
140 | Obsoletes: samba3-vfs-shadow_copy | |
141 | Obsoletes: samba4-common-server | |
142 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
143 | ||
144 | %define _sambahome /home/services/samba | |
145 | %if %{with cups} | |
146 | %define cups_serverbin %{_prefix}/lib/cups | |
147 | %endif | |
148 | %define schemadir /usr/share/openldap/schema | |
149 | ||
150 | # CFLAGS modified (the second ./configure) | |
151 | %undefine configure_cache | |
152 | ||
153 | %description | |
154 | Samba provides an SMB server which can be used to provide network | |
155 | services to SMB (sometimes called "Lan Manager") clients, including | |
156 | various versions of MS Windows, OS/2, and other Linux machines. Samba | |
157 | also provides some SMB clients, which complement the built-in SMB | |
158 | filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols | |
159 | and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol. | |
160 | ||
161 | %description -l pl.UTF-8 | |
162 | Samba udostępnia serwer SMB, który może być użyty w celu dostarczenia | |
163 | usług sieciowych (potocznie zwanych "Lan Manager"), dla klientów | |
164 | takich jak MS Windows, OS/2 a także maszyn linuksowych. W pakiecie | |
165 | znajduje się również oprogramowanie klienckie. Samba używa protokołu | |
166 | NetBIOS po TCP/IP (NetBT) i nie wymaga protokołu NetBEUI. Ta wersja ma | |
167 | pełne wsparcie dla blokowania plików, a także wsparcie dla kodowania | |
168 | haseł w standardzie MS i zarządzania bazą WINS. | |
169 | ||
170 | %package client | |
171 | Summary: Samba client programs | |
172 | Summary(pl.UTF-8): Klienci serwera Samba | |
173 | Group: Applications/Networking | |
174 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
175 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
176 | Requires: python-samba = %{epoch}:%{version}-%{release} | |
177 | Requires: libsmbclient = %{epoch}:%{version}-%{release} | |
178 | Requires: heimdal-libs >= 1.5.3-1 | |
179 | Suggests: cifs-utils | |
180 | Obsoletes: samba3-client | |
181 | Obsoletes: smbfs | |
182 | ||
183 | %description client | |
184 | Samba-client provides some SMB clients, which complement the build-in | |
185 | SMB filesystem in Linux. These allow accessing of SMB shares and | |
186 | printing to SMB printers. | |
187 | ||
188 | %description client -l pl.UTF-8 | |
189 | Samba-client dostarcza programy uzupełniające obsługę systemu plików | |
190 | SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i | |
191 | drukowanie w sieci SMB. | |
192 | ||
193 | %package common | |
194 | Summary: Files used by both Samba servers and clients | |
195 | Summary(pl.UTF-8): Pliki używane przez serwer i klientów Samby | |
196 | Group: Networking/Daemons | |
197 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
198 | Requires: python-samba = %{epoch}:%{version}-%{release} | |
199 | Obsoletes: samba3-common | |
200 | ||
201 | %description common | |
202 | Samba-common provides files necessary for both the server and client | |
203 | packages of Samba. | |
204 | ||
205 | %description common -l pl.UTF-8 | |
206 | Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i | |
207 | klientów Samby. | |
208 | ||
209 | %package libs | |
210 | Summary: Samba shared libraries | |
211 | Summary(pl.UTF-8): Biblioteki dzieloe Samby | |
212 | Group: Libraries | |
213 | %if %{with system_libs} | |
214 | Requires: ldb >= %{ldb_ver} | |
215 | Requires: ntdb >= %{ntdb_ver} | |
216 | Requires: talloc >= %{talloc_ver} | |
217 | Requires: tdb >= %{tdb_ver} | |
218 | Requires: tevent >= %{tevent_ver} | |
219 | %endif | |
220 | ||
221 | %description libs | |
222 | Samba shared libraries. | |
223 | ||
224 | %description libs -l pl.UTF-8 | |
225 | Biblioteki dzieloe Samby. | |
226 | ||
227 | %package winbind | |
228 | Summary: Samba-winbind daemon, utilities and documentation | |
229 | Summary(pl.UTF-8): Demon samba-winbind, narzędzia i dokumentacja | |
230 | Group: Networking/Daemons | |
231 | Requires(post,preun): /sbin/chkconfig | |
232 | Requires(post,preun,postun): systemd-units >= 38 | |
233 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
234 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
235 | Requires: systemd-units >= 38 | |
236 | Obsoletes: samba3-winbind | |
237 | ||
238 | %description winbind | |
239 | Provides the winbind daemon and testing tools to allow authentication | |
240 | and group/user enumeration from a Windows or Samba domain controller. | |
241 | ||
242 | %description winbind -l pl.UTF-8 | |
243 | Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia | |
244 | uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny | |
245 | Windows lub Samba. | |
246 | ||
247 | %package devel | |
248 | Summary: Header files for Samba | |
249 | Summary(pl.UTF-8): Pliki nagłówkowe Samby | |
250 | Group: Development/Libraries | |
251 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
252 | Obsoletes: samba3-devel | |
253 | ||
254 | %description devel | |
255 | Header files for Samba. | |
256 | ||
257 | %description devel -l pl.UTF-8 | |
258 | Pliki nagłówkowe Samby. | |
259 | ||
260 | %package -n pam-pam_smbpass | |
261 | Summary: PAM Samba Password Module | |
262 | Summary(pl.UTF-8): Moduł PAM smbpass | |
263 | Group: Base | |
264 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
265 | Obsoletes: pam_smbpass | |
266 | Obsoletes: pam-pam_smbpass3 | |
267 | ||
268 | %description -n pam-pam_smbpass | |
269 | PAM module which can be used on conforming systems to keep the | |
270 | smbpasswd (Samba password) database in sync with the Unix password | |
271 | file. | |
272 | ||
273 | %description -n pam-pam_smbpass -l pl.UTF-8 | |
274 | Moduł PAM, który może być używany do trzymania pliku smbpasswd (hasła | |
275 | Samby) zsynchronizowanego z hasłami uniksowymi. | |
276 | ||
277 | %package pidl | |
278 | Summary: Perl IDL compiler | |
279 | Summary(pl.UTF-8): Kompilator IDL w Perlu | |
280 | Group: Development/Tools | |
281 | #Requires: perl-Parse-Yapp | |
282 | ||
283 | %description pidl | |
284 | The samba-pidl package contains the Perl IDL compiler used by Samba | |
285 | and Wireshark to parse IDL and similar protocols. | |
286 | ||
287 | %description pidl -l pl.UTF-8 | |
288 | Ten pakiet zawiera kompilator IDL napisany w Perlu, używany przez | |
289 | Sambę oraz Wiresharka to analizy IDL i podobnych protokołów. | |
290 | ||
291 | %package -n python-samba | |
292 | Summary: Samba Module for Python | |
293 | Summary(pl.UTF-8): Moduł Samba dla Pythona | |
294 | Group: Development/Languages/Python | |
295 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
296 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
297 | Requires: python | |
298 | Requires: python-dns | |
299 | Requires: python-modules | |
300 | %if %{with system_libs} | |
301 | Requires: python-ldb >= %{ldb_ver} | |
302 | Requires: python-ntdb >= %{ntdb_ver} | |
303 | Requires: python-talloc >= %{talloc_ver} | |
304 | Requires: python-tevent >= %{tevent_ver} | |
305 | %endif | |
306 | Obsoletes: python-samba4 | |
307 | ||
308 | %description -n python-samba | |
309 | Samba Module for Python. | |
310 | ||
311 | %description -n python-samba -l pl.UTF-8 | |
312 | Moduł Samba dla Pythona. | |
313 | ||
314 | %package test | |
315 | Summary: Testing tools for Samba servers and clients | |
316 | Summary(pl.UTF-8): Narzędzia testowe dla serwerów i klientów Samby | |
317 | Group: Applications/System | |
318 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
319 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
320 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
321 | Requires: %{name}-winbind = %{epoch}:%{version}-%{release} | |
322 | ||
323 | %description test | |
324 | samba-test provides testing tools for both the server and client | |
325 | packages of Samba. | |
326 | ||
327 | %description test -l pl.UTF-8 | |
328 | Narzędzia testowe dla serwerów i klientów Samby. | |
329 | ||
330 | %package test-devel | |
331 | Summary: Testing development files for Samba servers and clients | |
332 | Summary(pl.UTF-8): Pliki programistyczne narzędzi testowych dla serwerów i klientów Samby | |
333 | Group: Applications/System | |
334 | Requires: %{name}-test = %{epoch}:%{version}-%{release} | |
335 | ||
336 | %description test-devel | |
337 | samba-test-devel provides development files for the library used by | |
338 | testing tools for both the server and client packages of Samba. | |
339 | ||
340 | %description test-devel -l pl.UTF-8 | |
341 | Ten pakiet zawiera pliki programistyczne biblioteki wykorzystywanej | |
342 | przez narzędzia testowe dla serwerów i klientów Samby. | |
343 | ||
344 | %package -n samba-vfs-ceph | |
345 | Summary: VFS module host shares on Ceph file system | |
346 | Summary(pl.UTF-8): Moduł VFS do serwowania zasobów z systemu plików Ceph | |
347 | Group: Networking/Daemons | |
348 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
349 | ||
350 | %description -n samba-vfs-ceph | |
351 | VFS module host shares on Ceph file system. | |
352 | ||
353 | This module only works with the libceph.so user-space client. It is | |
354 | not needed if you are using the kernel client or the FUSE client. | |
355 | ||
356 | %description -n samba-vfs-ceph -l pl.UTF-8 | |
357 | Moduł VFS do serwowania zasobów z systemu plików Ceph | |
358 | ||
359 | Ten moduł działa jednynie z klientem libceph.so. Jest zbędny w | |
360 | przypadku używania klienta dostarczanego przez jądro lub FUSE. | |
361 | ||
362 | %package -n samba-vfs-glusterfs | |
363 | Summary: VFS module to host shares on GlusterFS file system | |
364 | Summary(pl.UTF-8): Moduł VFS do serwowania zasobów z systemu plików GlusterFS | |
365 | Group: Networking/Daemons | |
366 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
367 | ||
368 | %description -n samba-vfs-glusterfs | |
369 | VFS module to host shares on GlusterFS file system. | |
370 | ||
371 | %description -n samba-vfs-glusterfs -l pl.UTF-8 | |
372 | Moduł VFS do serwowania zasobów z systemu plików GlusterFS. | |
373 | ||
374 | %package -n samba-vfs-notify_fam | |
375 | Summary: VFS module to implement file change notifications | |
376 | Summary(pl.UTF-8): Moduł VFS implementujący informowanie o zmianach w plikach | |
377 | Group: Networking/Daemons | |
378 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
379 | Obsoletes: samba3-vfs-notify_fam | |
380 | ||
381 | %description -n samba-vfs-notify_fam | |
382 | The vfs_notify_fam module makes use of the system FAM (File Alteration | |
383 | Monitor) daemon to implement file change notifications for Windows | |
384 | clients. | |
385 | ||
386 | %description -n samba-vfs-notify_fam -l pl.UTF-8 | |
387 | Ten moduł używa demona FAM (File Alteration Monitor) do implementacji | |
388 | informowania o zmianach w plikach dla klientów Windows. | |
389 | ||
390 | %package -n smbget | |
391 | Summary: A utility for retrieving files using the SMB protocol | |
392 | Summary(pl.UTF-8): Narzędzie do pobierania plików protokołem SMB | |
393 | Group: Applications/Networking | |
394 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
395 | Obsoletes: smbget3 | |
396 | ||
397 | %description -n smbget | |
398 | wget-like utility for downloading files over SMB. | |
399 | ||
400 | %description -n smbget -l pl.UTF-8 | |
401 | Narzędzie podobne do wgeta do pobierania plików protokołem SMB | |
402 | używanym w sieciach MS Windows. | |
403 | ||
404 | %package -n cups-backend-smb | |
405 | Summary: CUPS backend for printing to SMB printers | |
406 | Summary(pl.UTF-8): Backend CUPS-a drukujący na drukarkach SMB | |
407 | Group: Applications/Printing | |
408 | Requires: %{name}-client = %{epoch}:%{version}-%{release} | |
409 | Requires: cups >= 1:1.2.0 | |
410 | Obsoletes: cups-backend-smb3 | |
411 | ||
412 | %description -n cups-backend-smb | |
413 | CUPS backend for printing to SMB printers. | |
414 | ||
415 | %description -n cups-backend-smb -l pl.UTF-8 | |
416 | Backend CUPS-a drukujący na drukarkach SMB. | |
417 | ||
418 | %package -n nss_wins | |
419 | Summary: Name Service Switch service for WINS | |
420 | Summary(pl.UTF-8): Usługa Name Service Switch dla WINS | |
421 | Group: Base | |
422 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
423 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
424 | Obsoletes: nss_wins3 | |
425 | ||
426 | %description -n nss_wins | |
427 | Provides the libnss_wins shared library which resolves NetBIOS names | |
428 | to IP addresses. | |
429 | ||
430 | %description -n nss_wins -l pl.UTF-8 | |
431 | Biblioteka dzielona libnss_wins rozwiązująca nazwy NetBIOS na adresy | |
432 | IP. | |
433 | ||
434 | %package -n libsmbclient | |
435 | Summary: libsmbclient and libwbclient - Samba client libraries | |
436 | Summary(pl.UTF-8): libsmbclient i libwbclient - biblioteki klienckie Samby | |
437 | Group: Libraries | |
438 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
439 | Obsoletes: samba3-libsmbclient | |
440 | ||
441 | %description -n libsmbclient | |
442 | libsmbclient and libwbclient - libraries that allow to use Samba | |
443 | client functions. | |
444 | ||
445 | %description -n libsmbclient -l pl.UTF-8 | |
446 | libsmbclient i libwbclient - biblioteki pozwalające korzystać z funcji | |
447 | klienta Samby. | |
448 | ||
449 | %package -n libsmbclient-devel | |
450 | Summary: Development files for Samba client libraries | |
451 | Summary(pl.UTF-8): Pliki programistyczne bibliotek klienta Samby | |
452 | Group: Development/Libraries | |
453 | Requires: libsmbclient = %{epoch}:%{version}-%{release} | |
454 | Obsoletes: libsmbclient-static | |
455 | Obsoletes: samba3-libsmbclient-devel | |
456 | ||
457 | %description -n libsmbclient-devel | |
458 | Header files for libsmbclient and libwbclient libraries. | |
459 | ||
460 | %description -n libsmbclient-devel -l pl.UTF-8 | |
461 | Pliki nagłówkowe bibliotek libsmbclient i libwbclient. | |
462 | ||
463 | %package -n openldap-schema-samba | |
464 | Summary: Samba LDAP schema | |
465 | Summary(pl.UTF-8): Schemat LDAP dla Samby | |
466 | Group: Networking/Daemons | |
467 | Requires(post,postun): sed >= 4.0 | |
468 | Requires: openldap-servers | |
469 | Obsoletes: openldap-schema-samba3 | |
470 | ||
471 | %description -n openldap-schema-samba | |
472 | This package contains samba.schema for OpenLDAP. | |
473 | ||
474 | %description -n openldap-schema-samba -l pl.UTF-8 | |
475 | Ten pakiet zawiera schemat Samby (samba.schema) dla OpenLDAP-a. | |
476 | ||
477 | %prep | |
478 | %setup -q -n samba-%{version} | |
479 | %patch0 -p1 | |
480 | %patch1 -p1 | |
481 | %patch4 -p1 | |
482 | %patch5 -p1 | |
483 | %patch6 -p1 | |
484 | %patch7 -p1 | |
485 | ||
486 | sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/python|' source4/scripting/bin/samba* | |
487 | sed -i -e 's|#!/usr/bin/env perl|#!/usr/bin/perl|' pidl/pidl | |
488 | ||
489 | %build | |
490 | LDFLAGS="${LDFLAGS:-%rpmldflags}" \ | |
491 | CFLAGS="${CFLAGS:-%rpmcflags}" \ | |
492 | CXXFLAGS="${CXXFLAGS:-%rpmcxxflags}" \ | |
493 | FFLAGS="${FFLAGS:-%rpmcflags}" \ | |
494 | FCFLAGS="${FCFLAGS:-%rpmcflags}" \ | |
495 | CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \ | |
496 | %{?__cc:CC="%{__cc}"} \ | |
497 | %{?__cxx:CXX="%{__cxx}"} \ | |
498 | ./configure \ | |
499 | --enable-fhs \ | |
500 | --prefix=%{_prefix} \ | |
501 | --exec-prefix=%{_exec_prefix} \ | |
502 | --bindir=%{_bindir} \ | |
503 | --sbindir=%{_sbindir} \ | |
504 | --sysconfdir=%{_sysconfdir} \ | |
505 | --datadir=%{_datadir} \ | |
506 | --includedir=%{_includedir} \ | |
507 | --libdir=%{_libdir} \ | |
508 | --libexecdir=%{_libexecdir} \ | |
509 | --localstatedir=%{_localstatedir} \ | |
510 | --sharedstatedir=%{_sharedstatedir} \ | |
511 | --mandir=%{_mandir} \ | |
512 | --infodir=%{_infodir} \ | |
513 | --with-privatelibdir=%{_libdir}/samba \ | |
514 | --with-modulesdir=%{_libdir}/samba \ | |
515 | --with-pammodulesdir=/%{_lib}/security \ | |
516 | --with-lockdir=/var/lib/samba \ | |
517 | --with-privatedir=%{_sysconfdir}/samba \ | |
518 | --disable-rpath-install \ | |
519 | --builtin-libraries=replace,ccan \ | |
520 | --bundled-libraries=NONE,subunit,iniparser,%{!?with_system_libs:talloc,tdb,ldb,ntdb,tevent,pytalloc,pytalloc-util,pytdb,pytevent,pyldb,pyldb-util} \ | |
521 | --with-shared-modules=idmap_ad,idmap_adex,idmap_hash,idmap_ldap,idmap_rid,idmap_tdb2,auth_samba4,vfs_dfs_samba4 \ | |
522 | --with-acl-support \ | |
523 | --with%{!?with_ads:out}-ads \ | |
524 | --with-aio-support \ | |
525 | --with-automount \ | |
526 | --with-dmapi \ | |
527 | --with-dnsupdate \ | |
528 | --with-iconv \ | |
529 | --with%{!?with_ldap:out}-ldap \ | |
530 | --with-pam \ | |
531 | --with-pam_smbpass \ | |
532 | --with-quotas \ | |
533 | --with-regedit \ | |
534 | --with-sendfile-support \ | |
535 | --with-syslog \ | |
536 | --with-utmp \ | |
537 | --with-winbind \ | |
538 | --%{?with_avahi:en}%{!?with_avahi:dis}able-avahi \ | |
539 | --enable-cups \ | |
540 | --enable-iprint | |
541 | ||
542 | %{__make} | |
543 | ||
544 | # Build PIDL for installation into vendor directories before | |
545 | # 'make proto' gets to it. | |
546 | cd pidl | |
547 | %{__perl} Makefile.PL \ | |
548 | INSTALLDIRS=vendor | |
549 | ||
550 | %install | |
551 | rm -rf $RPM_BUILD_ROOT | |
552 | install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd,ld.so.conf.d,env.d} \ | |
553 | $RPM_BUILD_ROOT{/var/{log/archive,spool}/samba,/var/lib/samba/printing} \ | |
554 | $RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \ | |
555 | $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_libdir}/samba/vfs,%{_includedir},%{_sambahome},%{schemadir}} \ | |
556 | $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir}} | |
557 | ||
558 | %{__make} install \ | |
559 | DESTDIR=$RPM_BUILD_ROOT \ | |
560 | CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba | |
561 | ||
562 | # Undo the PIDL install, we want to try again with the right options. | |
563 | %{__rm} -r $RPM_BUILD_ROOT/%{_datadir}/perl5 | |
564 | ||
565 | # Install PIDL | |
566 | cd pidl | |
567 | %{__make} install \ | |
568 | PERL_INSTALL_ROOT=$RPM_BUILD_ROOT | |
569 | cd .. | |
570 | ||
571 | # Clean out crap left behind by the PIDL install | |
572 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/wscript_build | |
573 | %{__rm} -r $RPM_BUILD_ROOT%{perl_vendorlib}/Parse/Yapp | |
574 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Parse/Pidl/.packlist | |
575 | ||
576 | # not ready for production, and no MIT kerberos in PLD | |
577 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/mit_samba.so | |
578 | ||
579 | install -p source3/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir} | |
580 | ||
581 | install packaging/systemd/samba.conf.tmp $RPM_BUILD_ROOT%{systemdtmpfilesdir}/samba.conf | |
582 | install packaging/systemd/nmb.service $RPM_BUILD_ROOT%{systemdunitdir} | |
583 | install packaging/systemd/samba.service $RPM_BUILD_ROOT%{systemdunitdir} | |
584 | install packaging/systemd/smb.service $RPM_BUILD_ROOT%{systemdunitdir} | |
585 | install packaging/systemd/winbind.service $RPM_BUILD_ROOT%{systemdunitdir} | |
586 | ||
587 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb | |
588 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba | |
589 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba | |
590 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba | |
591 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf | |
592 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind | |
593 | cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/winbind | |
594 | install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/samba | |
595 | ||
596 | echo "LDB_MODULES_PATH=%{_libdir}/samba/ldb" > $RPM_BUILD_ROOT/etc/env.d/LDB_MODULES_PATH | |
597 | ||
598 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libnss_winbind.so* $RPM_BUILD_ROOT/%{_lib} | |
599 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libnss_wins.so* $RPM_BUILD_ROOT/%{_lib} | |
600 | install -p bin/vfstest $RPM_BUILD_ROOT%{_bindir} | |
601 | ||
602 | touch $RPM_BUILD_ROOT/var/lib/samba/{wins.dat,browse.dat} | |
603 | ||
604 | echo '127.0.0.1 localhost' > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts | |
605 | ||
606 | %if "%{_lib}" == "lib64" | |
607 | echo "%{_libdir}/samba" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/samba64.conf | |
608 | %else | |
609 | echo "%{_libdir}/samba" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/samba.conf | |
610 | %endif | |
611 | ||
612 | %if %{with cups} | |
613 | install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend | |
614 | ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb | |
615 | %endif | |
616 | ||
617 | > $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers | |
618 | > $RPM_BUILD_ROOT/etc/security/blacklist.samba | |
619 | ||
620 | %if %{with ldap} | |
621 | install examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir} | |
622 | %endif | |
623 | ||
624 | # remove man pages for not installed commands | |
625 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/log2pcap.1* | |
626 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_cacheprime.8* | |
627 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_gpfs.8* | |
628 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_prealloc.8* | |
629 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_tsmsm.8* | |
630 | ||
631 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
632 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
633 | %py_postclean | |
634 | ||
635 | %clean | |
636 | rm -rf $RPM_BUILD_ROOT | |
637 | ||
638 | %post | |
639 | /sbin/chkconfig --add samba | |
640 | /sbin/chkconfig --add smb | |
641 | %service samba restart "Samba AD daemon" | |
642 | %service smb restart "Samba SMB daemons" | |
643 | %systemd_post samba.service | |
644 | %systemd_post smb.service nmb.service | |
645 | ||
646 | %preun | |
647 | if [ "$1" = "0" ]; then | |
648 | %service samba stop | |
649 | %service smb stop | |
650 | /sbin/chkconfig --del samba | |
651 | /sbin/chkconfig --del smb | |
652 | fi | |
653 | %systemd_preun samba.service | |
654 | %systemd_preun smb.service nmb.service | |
655 | ||
656 | %postun | |
657 | %systemd_reload | |
658 | ||
659 | %triggerpostun -- samba3 | |
660 | /sbin/chkconfig --add smb | |
661 | %service smb restart "Samba SMB daemons" | |
662 | %systemd_post smb.service nmb.service | |
663 | ||
664 | %triggerpostun -- samba4 | |
665 | /sbin/chkconfig --add samba | |
666 | %service samba restart "Samba AD daemons" | |
667 | %systemd_post samba.service | |
668 | ||
669 | %post libs -p /sbin/ldconfig | |
670 | %postun libs -p /sbin/ldconfig | |
671 | ||
672 | %post -n python-samba -p /sbin/ldconfig | |
673 | %postun -n python-samba -p /sbin/ldconfig | |
674 | ||
675 | %post winbind | |
676 | /sbin/ldconfig | |
677 | /sbin/chkconfig --add winbind | |
678 | %service winbind restart "Winbind daemon" | |
679 | %systemd_post winbind.service | |
680 | ||
681 | %preun winbind | |
682 | if [ "$1" = "0" ]; then | |
683 | %service winbind stop | |
684 | /sbin/chkconfig --del winbind | |
685 | fi | |
686 | %systemd_preun winbind.service | |
687 | ||
688 | %postun winbind | |
689 | /sbin/ldconfig | |
690 | %systemd_reload | |
691 | ||
692 | %triggerpostun winbind -- samba3-winbind | |
693 | /sbin/chkconfig --add winbind | |
694 | %service winbind restart "Winbind daemon" | |
695 | %systemd_post winbind.service | |
696 | ||
697 | %post -n libsmbclient -p /sbin/ldconfig | |
698 | %postun -n libsmbclient -p /sbin/ldconfig | |
699 | ||
700 | %post -n openldap-schema-samba | |
701 | # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber) | |
702 | %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis | |
703 | %service -q ldap restart | |
704 | ||
705 | %postun -n openldap-schema-samba | |
706 | if [ "$1" = "0" ]; then | |
707 | %openldap_schema_unregister %{schemadir}/samba.schema | |
708 | %service -q ldap restart | |
709 | fi | |
710 | ||
711 | %triggerpostun -n openldap-schema-samba -- openldap-schema-samba3 < 1:4.1.4-3 | |
712 | # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber) | |
713 | %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis | |
714 | %service -q ldap restart | |
715 | ||
716 | %files | |
717 | %defattr(644,root,root,755) | |
718 | %{?with_ldap:%doc examples/LDAP} | |
719 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smbusers | |
720 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/samba | |
721 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/samba | |
722 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.samba | |
723 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba | |
724 | %config(noreplace) %verify(not md5 mtime size) /etc/env.d/LDB_MODULES_PATH | |
725 | %attr(754,root,root) /etc/rc.d/init.d/samba | |
726 | %attr(754,root,root) /etc/rc.d/init.d/smb | |
727 | %{systemdunitdir}/nmb.service | |
728 | %{systemdunitdir}/smb.service | |
729 | %{systemdunitdir}/samba.service | |
730 | %{systemdtmpfilesdir}/samba.conf | |
731 | %attr(755,root,root) %{_bindir}/eventlogadm | |
732 | %attr(755,root,root) %{_bindir}/oLschema2ldif | |
733 | %attr(755,root,root) %{_bindir}/pdbedit | |
734 | %attr(755,root,root) %{_bindir}/profiles | |
735 | %attr(755,root,root) %{_bindir}/sharesec | |
736 | %attr(755,root,root) %{_bindir}/smbcontrol | |
737 | %attr(755,root,root) %{_bindir}/smbstatus | |
738 | %attr(755,root,root) %{_bindir}/smbta-util | |
739 | %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh | |
740 | %attr(755,root,root) %{_sbindir}/nmbd | |
741 | %attr(755,root,root) %{_sbindir}/samba | |
742 | %attr(755,root,root) %{_sbindir}/samba_dnsupdate | |
743 | %attr(755,root,root) %{_sbindir}/samba_kcc | |
744 | %attr(755,root,root) %{_sbindir}/samba_spnupdate | |
745 | %attr(755,root,root) %{_sbindir}/samba_upgradedns | |
746 | %attr(755,root,root) %{_sbindir}/smbd | |
747 | %dir %{_libdir}/samba/bind9 | |
748 | %attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9.so | |
749 | %attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_9.so | |
750 | %dir %{_libdir}/samba/hdb | |
751 | %attr(755,root,root) %{_libdir}/samba/hdb/hdb_samba4.so | |
752 | %dir %{_libdir}/samba/gensec | |
753 | %attr(755,root,root) %{_libdir}/samba/gensec/krb5.so | |
754 | %dir %{_libdir}/samba/ldb | |
755 | %attr(755,root,root) %{_libdir}/samba/ldb/aclread.so | |
756 | %attr(755,root,root) %{_libdir}/samba/ldb/acl.so | |
757 | %attr(755,root,root) %{_libdir}/samba/ldb/anr.so | |
758 | %attr(755,root,root) %{_libdir}/samba/ldb/descriptor.so | |
759 | %attr(755,root,root) %{_libdir}/samba/ldb/dirsync.so | |
760 | %attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_in.so | |
761 | %attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_out.so | |
762 | %attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_store.so | |
763 | %attr(755,root,root) %{_libdir}/samba/ldb/ildap.so | |
764 | %attr(755,root,root) %{_libdir}/samba/ldb/instancetype.so | |
765 | %attr(755,root,root) %{_libdir}/samba/ldb/lazy_commit.so | |
766 | %attr(755,root,root) %{_libdir}/samba/ldb/ldbsamba_extensions.so | |
767 | %attr(755,root,root) %{_libdir}/samba/ldb/linked_attributes.so | |
768 | %attr(755,root,root) %{_libdir}/samba/ldb/local_password.so | |
769 | %attr(755,root,root) %{_libdir}/samba/ldb/new_partition.so | |
770 | %attr(755,root,root) %{_libdir}/samba/ldb/objectclass_attrs.so | |
771 | %attr(755,root,root) %{_libdir}/samba/ldb/objectclass.so | |
772 | %attr(755,root,root) %{_libdir}/samba/ldb/objectguid.so | |
773 | %attr(755,root,root) %{_libdir}/samba/ldb/operational.so | |
774 | %attr(755,root,root) %{_libdir}/samba/ldb/partition.so | |
775 | %attr(755,root,root) %{_libdir}/samba/ldb/password_hash.so | |
776 | %attr(755,root,root) %{_libdir}/samba/ldb/ranged_results.so | |
777 | %attr(755,root,root) %{_libdir}/samba/ldb/repl_meta_data.so | |
778 | %attr(755,root,root) %{_libdir}/samba/ldb/resolve_oids.so | |
779 | %attr(755,root,root) %{_libdir}/samba/ldb/rootdse.so | |
780 | %attr(755,root,root) %{_libdir}/samba/ldb/samba3sam.so | |
781 | %attr(755,root,root) %{_libdir}/samba/ldb/samba3sid.so | |
782 | %attr(755,root,root) %{_libdir}/samba/ldb/samba_dsdb.so | |
783 | %attr(755,root,root) %{_libdir}/samba/ldb/samba_secrets.so | |
784 | %attr(755,root,root) %{_libdir}/samba/ldb/samldb.so | |
785 | %attr(755,root,root) %{_libdir}/samba/ldb/schema_data.so | |
786 | %attr(755,root,root) %{_libdir}/samba/ldb/schema_load.so | |
787 | %attr(755,root,root) %{_libdir}/samba/ldb/secrets_tdb_sync.so | |
788 | %attr(755,root,root) %{_libdir}/samba/ldb/show_deleted.so | |
789 | %attr(755,root,root) %{_libdir}/samba/ldb/simple_dn.so | |
790 | %attr(755,root,root) %{_libdir}/samba/ldb/simple_ldap_map.so | |
791 | %attr(755,root,root) %{_libdir}/samba/ldb/subtree_delete.so | |
792 | %attr(755,root,root) %{_libdir}/samba/ldb/subtree_rename.so | |
793 | %attr(755,root,root) %{_libdir}/samba/ldb/update_keytab.so | |
794 | %attr(755,root,root) %{_libdir}/samba/ldb/wins_ldb.so | |
795 | %dir %{_libdir}/samba/process_model | |
796 | %attr(755,root,root) %{_libdir}/samba/process_model/onefork.so | |
797 | %attr(755,root,root) %{_libdir}/samba/process_model/prefork.so | |
798 | %attr(755,root,root) %{_libdir}/samba/process_model/standard.so | |
799 | %dir %{_libdir}/samba/service | |
800 | %attr(755,root,root) %{_libdir}/samba/service/cldap.so | |
801 | %attr(755,root,root) %{_libdir}/samba/service/dcerpc.so | |
802 | %attr(755,root,root) %{_libdir}/samba/service/dns.so | |
803 | %attr(755,root,root) %{_libdir}/samba/service/dns_update.so | |
804 | %attr(755,root,root) %{_libdir}/samba/service/drepl.so | |
805 | %attr(755,root,root) %{_libdir}/samba/service/kcc.so | |
806 | %attr(755,root,root) %{_libdir}/samba/service/kdc.so | |
807 | %attr(755,root,root) %{_libdir}/samba/service/ldap.so | |
808 | %attr(755,root,root) %{_libdir}/samba/service/nbtd.so | |
809 | %attr(755,root,root) %{_libdir}/samba/service/ntp_signd.so | |
810 | %attr(755,root,root) %{_libdir}/samba/service/s3fs.so | |
811 | %attr(755,root,root) %{_libdir}/samba/service/smb.so | |
812 | %attr(755,root,root) %{_libdir}/samba/service/web.so | |
813 | %attr(755,root,root) %{_libdir}/samba/service/winbind.so | |
814 | %attr(755,root,root) %{_libdir}/samba/service/wrepl.so | |
815 | %dir %{_libdir}/samba/vfs | |
816 | %attr(755,root,root) %{_libdir}/samba/vfs/acl_tdb.so | |
817 | %attr(755,root,root) %{_libdir}/samba/vfs/acl_xattr.so | |
818 | %attr(755,root,root) %{_libdir}/samba/vfs/aio_fork.so | |
819 | %attr(755,root,root) %{_libdir}/samba/vfs/aio_linux.so | |
820 | %attr(755,root,root) %{_libdir}/samba/vfs/aio_posix.so | |
821 | %attr(755,root,root) %{_libdir}/samba/vfs/aio_pthread.so | |
822 | %attr(755,root,root) %{_libdir}/samba/vfs/audit.so | |
823 | %attr(755,root,root) %{_libdir}/samba/vfs/btrfs.so | |
824 | %attr(755,root,root) %{_libdir}/samba/vfs/cap.so | |
825 | %attr(755,root,root) %{_libdir}/samba/vfs/catia.so | |
826 | %attr(755,root,root) %{_libdir}/samba/vfs/commit.so | |
827 | %attr(755,root,root) %{_libdir}/samba/vfs/crossrename.so | |
828 | %attr(755,root,root) %{_libdir}/samba/vfs/default_quota.so | |
829 | %attr(755,root,root) %{_libdir}/samba/vfs/dfs_samba4.so | |
830 | %attr(755,root,root) %{_libdir}/samba/vfs/dirsort.so | |
831 | %attr(755,root,root) %{_libdir}/samba/vfs/expand_msdfs.so | |
832 | %attr(755,root,root) %{_libdir}/samba/vfs/extd_audit.so | |
833 | %attr(755,root,root) %{_libdir}/samba/vfs/fake_perms.so | |
834 | %attr(755,root,root) %{_libdir}/samba/vfs/fileid.so | |
835 | %attr(755,root,root) %{_libdir}/samba/vfs/full_audit.so | |
836 | %attr(755,root,root) %{_libdir}/samba/vfs/linux_xfs_sgid.so | |
837 | %attr(755,root,root) %{_libdir}/samba/vfs/media_harmony.so | |
838 | %attr(755,root,root) %{_libdir}/samba/vfs/netatalk.so | |
839 | %attr(755,root,root) %{_libdir}/samba/vfs/posix_eadb.so | |
840 | %attr(755,root,root) %{_libdir}/samba/vfs/preopen.so | |
841 | %attr(755,root,root) %{_libdir}/samba/vfs/readahead.so | |
842 | %attr(755,root,root) %{_libdir}/samba/vfs/readonly.so | |
843 | %attr(755,root,root) %{_libdir}/samba/vfs/recycle.so | |
844 | %attr(755,root,root) %{_libdir}/samba/vfs/scannedonly.so | |
845 | %attr(755,root,root) %{_libdir}/samba/vfs/shadow_copy2.so | |
846 | %attr(755,root,root) %{_libdir}/samba/vfs/shadow_copy.so | |
847 | %attr(755,root,root) %{_libdir}/samba/vfs/smb_traffic_analyzer.so | |
848 | %attr(755,root,root) %{_libdir}/samba/vfs/streams_depot.so | |
849 | %attr(755,root,root) %{_libdir}/samba/vfs/streams_xattr.so | |
850 | %attr(755,root,root) %{_libdir}/samba/vfs/syncops.so | |
851 | %attr(755,root,root) %{_libdir}/samba/vfs/time_audit.so | |
852 | %attr(755,root,root) %{_libdir}/samba/vfs/xattr_tdb.so | |
853 | %{_datadir}/samba/setup | |
854 | %{_mandir}/man1/oLschema2ldif.1* | |
855 | %{_mandir}/man1/profiles.1* | |
856 | %{_mandir}/man1/sharesec.1* | |
857 | %{_mandir}/man1/smbcontrol.1* | |
858 | %{_mandir}/man1/smbstatus.1* | |
859 | %{_mandir}/man8/eventlogadm.8* | |
860 | %{_mandir}/man8/nmbd.8* | |
861 | %{_mandir}/man8/pdbedit.8* | |
862 | %{_mandir}/man8/samba.8* | |
863 | %{_mandir}/man8/smbd.8* | |
864 | %{_mandir}/man8/smbpasswd.8* | |
865 | %{_mandir}/man8/smbta-util.8* | |
866 | %{_mandir}/man8/vfs_acl_tdb.8* | |
867 | %{_mandir}/man8/vfs_acl_xattr.8* | |
868 | %{_mandir}/man8/vfs_aio_fork.8* | |
869 | %{_mandir}/man8/vfs_aio_linux.8* | |
870 | %{_mandir}/man8/vfs_aio_pthread.8* | |
871 | %{_mandir}/man8/vfs_audit.8* | |
872 | %{_mandir}/man8/vfs_btrfs.8* | |
873 | %{_mandir}/man8/vfs_cap.8* | |
874 | %{_mandir}/man8/vfs_catia.8* | |
875 | %{_mandir}/man8/vfs_commit.8* | |
876 | %{_mandir}/man8/vfs_crossrename.8* | |
877 | %{_mandir}/man8/vfs_default_quota.8* | |
878 | %{_mandir}/man8/vfs_dirsort.8* | |
879 | %{_mandir}/man8/vfs_extd_audit.8* | |
880 | %{_mandir}/man8/vfs_fake_perms.8* | |
881 | %{_mandir}/man8/vfs_fileid.8* | |
882 | %{_mandir}/man8/vfs_full_audit.8* | |
883 | %{_mandir}/man8/vfs_linux_xfs_sgid.8* | |
884 | %{_mandir}/man8/vfs_media_harmony.8* | |
885 | %{_mandir}/man8/vfs_netatalk.8* | |
886 | %{_mandir}/man8/vfs_preopen.8* | |
887 | %{_mandir}/man8/vfs_readahead.8* | |
888 | %{_mandir}/man8/vfs_readonly.8* | |
889 | %{_mandir}/man8/vfs_recycle.8* | |
890 | %{_mandir}/man8/vfs_scannedonly.8* | |
891 | %{_mandir}/man8/vfs_shadow_copy2.8* | |
892 | %{_mandir}/man8/vfs_shadow_copy.8* | |
893 | %{_mandir}/man8/vfs_smb_traffic_analyzer.8* | |
894 | %{_mandir}/man8/vfs_streams_depot.8* | |
895 | %{_mandir}/man8/vfs_streams_xattr.8* | |
896 | %{_mandir}/man8/vfs_syncops.8* | |
897 | %{_mandir}/man8/vfs_time_audit.8* | |
898 | %{_mandir}/man8/vfs_xattr_tdb.8* | |
899 | ||
900 | %dir %{_sambahome} | |
901 | %dir /var/lib/samba | |
902 | %ghost /var/lib/samba/*.dat | |
903 | %dir /var/lib/samba/printing | |
904 | ||
905 | %attr(750,root,root) %dir /var/log/samba | |
906 | %attr(750,root,root) %dir /var/log/samba/cores | |
907 | %attr(750,root,root) %dir /var/log/samba/cores/smbd | |
908 | %attr(750,root,root) %dir /var/log/samba/cores/nmbd | |
909 | %attr(750,root,root) %dir /var/log/archive/samba | |
910 | %attr(1777,root,root) %dir /var/spool/samba | |
911 | ||
912 | %files client | |
913 | %defattr(644,root,root,755) | |
914 | %attr(755,root,root) %{_bindir}/cifsdd | |
915 | %attr(755,root,root) %{_bindir}/rpcclient | |
916 | %attr(755,root,root) %{_bindir}/smbcacls | |
917 | %attr(755,root,root) %{_bindir}/smbclient | |
918 | %attr(755,root,root) %{_bindir}/smbclient4 | |
919 | %attr(755,root,root) %{_bindir}/smbcquotas | |
920 | %attr(755,root,root) %{_bindir}/smbtar | |
921 | %attr(755,root,root) %{_bindir}/smbtree | |
922 | %{_mandir}/man1/findsmb.1* | |
923 | %{_mandir}/man1/rpcclient.1* | |
924 | %{_mandir}/man1/smbcacls.1* | |
925 | %{_mandir}/man1/smbclient.1* | |
926 | %{_mandir}/man1/smbcquotas.1* | |
927 | %{_mandir}/man1/smbtar.1* | |
928 | %{_mandir}/man1/smbtree.1* | |
929 | ||
930 | %files common | |
931 | %defattr(644,root,root,755) | |
932 | %doc README WHATSNEW.txt Roadmap | |
933 | %dir %{_sysconfdir}/samba | |
934 | %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf | |
935 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts | |
936 | %attr(755,root,root) %{_bindir}/dbwrap_tool | |
937 | %attr(755,root,root) %{_bindir}/net | |
938 | %attr(755,root,root) %{_bindir}/nmblookup | |
939 | %attr(755,root,root) %{_bindir}/nmblookup4 | |
940 | %attr(755,root,root) %{_bindir}/reg* | |
941 | %attr(755,root,root) %{_bindir}/samba-regedit | |
942 | %attr(755,root,root) %{_bindir}/samba-tool | |
943 | %attr(755,root,root) %{_bindir}/smbpasswd | |
944 | %attr(755,root,root) %{_bindir}/testparm | |
945 | %attr(755,root,root) %{_bindir}/vfstest | |
946 | %dir %{_libdir}/samba/auth | |
947 | %attr(755,root,root) %{_libdir}/samba/auth/script.so | |
948 | %attr(755,root,root) %{_libdir}/samba/auth/samba4.so | |
949 | %dir %{_datadir}/samba | |
950 | %dir %{_datadir}/samba/codepages | |
951 | %{_datadir}/samba/codepages/lowcase.dat | |
952 | %{_datadir}/samba/codepages/upcase.dat | |
953 | %{_datadir}/samba/codepages/valid.dat | |
954 | %{_mandir}/man1/dbwrap_tool.1* | |
955 | %{_mandir}/man1/nmblookup.1* | |
956 | %{_mandir}/man1/nmblookup4.1* | |
957 | %{_mandir}/man1/reg*.1* | |
958 | %{_mandir}/man1/testparm.1* | |
959 | %{_mandir}/man1/vfstest.1* | |
960 | %{_mandir}/man5/lmhosts.5* | |
961 | %{_mandir}/man5/smb.conf.5* | |
962 | %{_mandir}/man5/smbpasswd.5* | |
963 | %{_mandir}/man7/samba.7* | |
964 | %{_mandir}/man8/net.8* | |
965 | %{_mandir}/man8/samba-regedit.8* | |
966 | %{_mandir}/man8/samba-tool.8* | |
967 | ||
968 | %if %{without system_libs} | |
969 | %attr(755,root,root) %{_bindir}/ntdbbackup | |
970 | %attr(755,root,root) %{_bindir}/ntdbdump | |
971 | %attr(755,root,root) %{_bindir}/ntdbrestore | |
972 | %attr(755,root,root) %{_bindir}/ntdbtool | |
973 | %attr(755,root,root) %{_bindir}/tdbbackup | |
974 | %attr(755,root,root) %{_bindir}/tdbdump | |
975 | %attr(755,root,root) %{_bindir}/tdbtool | |
976 | %attr(755,root,root) %{_libdir}/samba/libntdb.so.* | |
977 | %attr(755,root,root) %{_libdir}/samba/libtalloc.so.* | |
978 | %attr(755,root,root) %{_libdir}/samba/libtdb.so.* | |
979 | %{_mandir}/man8/ntdbbackup.8* | |
980 | %{_mandir}/man8/ntdbdump.8* | |
981 | %{_mandir}/man8/ntdbrestore.8* | |
982 | %{_mandir}/man8/ntdbtool.8* | |
983 | %{_mandir}/man8/tdbbackup.8* | |
984 | %{_mandir}/man8/tdbdump.8* | |
985 | %{_mandir}/man8/tdbtool.8* | |
986 | %endif | |
987 | ||
988 | %files libs | |
989 | %defattr(644,root,root,755) | |
990 | %if "%{_lib}" == "lib64" | |
991 | /etc/ld.so.conf.d/samba64.conf | |
992 | %else | |
993 | /etc/ld.so.conf.d/samba.conf | |
994 | %endif | |
995 | %attr(755,root,root) %{_libdir}/libdcerpc-atsvc.so.*.*.* | |
996 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc-atsvc.so.0 | |
997 | %attr(755,root,root) %{_libdir}/libdcerpc-binding.so.*.*.* | |
998 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc-binding.so.0 | |
999 | %attr(755,root,root) %{_libdir}/libdcerpc-samr.so.*.*.* | |
1000 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc-samr.so.0 | |
1001 | %attr(755,root,root) %{_libdir}/libdcerpc-server.so.*.*.* | |
1002 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc-server.so.0 | |
1003 | %attr(755,root,root) %{_libdir}/libdcerpc.so.*.*.* | |
1004 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc.so.0 | |
1005 | %attr(755,root,root) %{_libdir}/libgensec.so.*.*.* | |
1006 | %attr(755,root,root) %ghost %{_libdir}/libgensec.so.0 | |
1007 | %attr(755,root,root) %{_libdir}/libndr-krb5pac.so.*.*.* | |
1008 | %attr(755,root,root) %ghost %{_libdir}/libndr-krb5pac.so.0 | |
1009 | %attr(755,root,root) %{_libdir}/libndr-nbt.so.*.*.* | |
1010 | %attr(755,root,root) %ghost %{_libdir}/libndr-nbt.so.0 | |
1011 | %attr(755,root,root) %{_libdir}/libndr.so.*.*.* | |
1012 | %attr(755,root,root) %ghost %{_libdir}/libndr.so.0 | |
1013 | %attr(755,root,root) %{_libdir}/libndr-standard.so.*.*.* | |
1014 | %attr(755,root,root) %ghost %{_libdir}/libndr-standard.so.0 | |
1015 | %attr(755,root,root) %{_libdir}/libregistry.so.*.*.* | |
1016 | %attr(755,root,root) %ghost %{_libdir}/libregistry.so.0 | |
1017 | %attr(755,root,root) %{_libdir}/libsamba-credentials.so.*.*.* | |
1018 | %attr(755,root,root) %ghost %{_libdir}/libsamba-credentials.so.0 | |
1019 | %attr(755,root,root) %{_libdir}/libsamba-hostconfig.so.*.*.* | |
1020 | %attr(755,root,root) %ghost %{_libdir}/libsamba-hostconfig.so.0 | |
1021 | %attr(755,root,root) %{_libdir}/libsamba-policy.so.*.*.* | |
1022 | %attr(755,root,root) %ghost %{_libdir}/libsamba-policy.so.0 | |
1023 | %attr(755,root,root) %{_libdir}/libsamba-util.so.*.*.* | |
1024 | %attr(755,root,root) %ghost %{_libdir}/libsamba-util.so.0 | |
1025 | %attr(755,root,root) %{_libdir}/libsamdb.so.*.*.* | |
1026 | %attr(755,root,root) %ghost %{_libdir}/libsamdb.so.0 | |
1027 | %attr(755,root,root) %{_libdir}/libsmbclient-raw.so.*.*.* | |
1028 | %attr(755,root,root) %ghost %{_libdir}/libsmbclient-raw.so.0 | |
1029 | %attr(755,root,root) %{_libdir}/libtevent-util.so.*.*.* | |
1030 | %attr(755,root,root) %ghost %{_libdir}/libtevent-util.so.0 | |
1031 | %attr(755,root,root) %{_libdir}/libnetapi.so.0 | |
1032 | %attr(755,root,root) %{_libdir}/libpdb.so.0 | |
1033 | %attr(755,root,root) %{_libdir}/libsmbconf.so.0 | |
1034 | %attr(755,root,root) %{_libdir}/libsmbldap.so.0 | |
1035 | %attr(755,root,root) %{_libdir}/libsmbsharemodes.so.0 | |
1036 | %dir %{_libdir}/samba | |
1037 | %attr(755,root,root) %{_libdir}/samba/libaddns.so | |
1038 | %attr(755,root,root) %{_libdir}/samba/libads.so | |
1039 | %attr(755,root,root) %{_libdir}/samba/libasn1util.so | |
1040 | %attr(755,root,root) %{_libdir}/samba/libauth4.so | |
1041 | %attr(755,root,root) %{_libdir}/samba/libauthkrb5.so | |
1042 | %attr(755,root,root) %{_libdir}/samba/libauth_sam_reply.so | |
1043 | %attr(755,root,root) %{_libdir}/samba/libauth.so | |
1044 | %attr(755,root,root) %{_libdir}/samba/libauth_unix_token.so | |
1045 | %attr(755,root,root) %{_libdir}/samba/libCHARSET3.so | |
1046 | %attr(755,root,root) %{_libdir}/samba/libcliauth.so | |
1047 | %attr(755,root,root) %{_libdir}/samba/libcli_cldap.so | |
1048 | %attr(755,root,root) %{_libdir}/samba/libcli-ldap-common.so | |
1049 | %attr(755,root,root) %{_libdir}/samba/libcli-ldap.so | |
1050 | %attr(755,root,root) %{_libdir}/samba/libcli-nbt.so | |
1051 | %attr(755,root,root) %{_libdir}/samba/libcli_smb_common.so | |
1052 | %attr(755,root,root) %{_libdir}/samba/libcli_spoolss.so | |
1053 | %attr(755,root,root) %{_libdir}/samba/libcluster.so | |
1054 | %attr(755,root,root) %{_libdir}/samba/libcmdline-credentials.so | |
1055 | %attr(755,root,root) %{_libdir}/samba/libdb-glue.so | |
1056 | %attr(755,root,root) %{_libdir}/samba/libdbwrap.so | |
1057 | %attr(755,root,root) %{_libdir}/samba/libdcerpc-samba4.so | |
1058 | %attr(755,root,root) %{_libdir}/samba/libdcerpc-samba.so | |
1059 | %attr(755,root,root) %{_libdir}/samba/libdfs_server_ad.so | |
1060 | %attr(755,root,root) %{_libdir}/samba/libdsdb-module.so | |
1061 | %attr(755,root,root) %{_libdir}/samba/liberrors.so | |
1062 | %attr(755,root,root) %{_libdir}/samba/libevents.so | |
1063 | %attr(755,root,root) %{_libdir}/samba/libflag_mapping.so | |
1064 | %attr(755,root,root) %{_libdir}/samba/libgpo.so | |
1065 | %attr(755,root,root) %{_libdir}/samba/libgse.so | |
1066 | %attr(755,root,root) %{_libdir}/samba/libHDB_SAMBA4.so | |
1067 | %attr(755,root,root) %{_libdir}/samba/libinterfaces.so | |
1068 | %attr(755,root,root) %{_libdir}/samba/libkrb5samba.so | |
1069 | %attr(755,root,root) %{_libdir}/samba/libldb-cmdline.so | |
1070 | %attr(755,root,root) %{_libdir}/samba/libldbsamba.so | |
1071 | %attr(755,root,root) %{_libdir}/samba/liblibcli_lsa3.so | |
1072 | %attr(755,root,root) %{_libdir}/samba/liblibcli_netlogon3.so | |
1073 | %attr(755,root,root) %{_libdir}/samba/liblibsmb.so | |
1074 | %attr(755,root,root) %{_libdir}/samba/libLIBWBCLIENT_OLD.so | |
1075 | %attr(755,root,root) %{_libdir}/samba/libMESSAGING.so | |
1076 | %attr(755,root,root) %{_libdir}/samba/libmsrpc3.so | |
1077 | %attr(755,root,root) %{_libdir}/samba/libndr-samba4.so | |
1078 | %attr(755,root,root) %{_libdir}/samba/libndr-samba.so | |
1079 | %attr(755,root,root) %{_libdir}/samba/libnetif.so | |
1080 | %attr(755,root,root) %{_libdir}/samba/libnet_keytab.so | |
1081 | %attr(755,root,root) %{_libdir}/samba/libnon_posix_acls.so | |
1082 | %attr(755,root,root) %{_libdir}/samba/libnpa_tstream.so | |
1083 | %attr(755,root,root) %{_libdir}/samba/libntvfs.so | |
1084 | %attr(755,root,root) %{_libdir}/samba/libpac.so | |
1085 | %attr(755,root,root) %{_libdir}/samba/libpopt_samba3.so | |
1086 | %attr(755,root,root) %{_libdir}/samba/libposix_eadb.so | |
1087 | %attr(755,root,root) %{_libdir}/samba/libprinting_migrate.so | |
1088 | %attr(755,root,root) %{_libdir}/samba/libprocess_model.so | |
1089 | %attr(755,root,root) %{_libdir}/samba/libsamba3-util.so | |
1090 | %attr(755,root,root) %{_libdir}/samba/libsamba-modules.so | |
1091 | %attr(755,root,root) %{_libdir}/samba/libsamba-net.so | |
1092 | %attr(755,root,root) %{_libdir}/samba/libsamba_python.so | |
1093 | %attr(755,root,root) %{_libdir}/samba/libsamba-security.so | |
1094 | %attr(755,root,root) %{_libdir}/samba/libsamba-sockets.so | |
1095 | %attr(755,root,root) %{_libdir}/samba/libsamdb-common.so | |
1096 | %attr(755,root,root) %{_libdir}/samba/libsecrets3.so | |
1097 | %attr(755,root,root) %{_libdir}/samba/libserver-role.so | |
1098 | %attr(755,root,root) %{_libdir}/samba/libservice.so | |
1099 | %attr(755,root,root) %{_libdir}/samba/libshares.so | |
1100 | %attr(755,root,root) %{_libdir}/samba/libsmbd_base.so | |
1101 | %attr(755,root,root) %{_libdir}/samba/libsmbd_conn.so | |
1102 | %attr(755,root,root) %{_libdir}/samba/libsmbd_shim.so | |
1103 | %attr(755,root,root) %{_libdir}/samba/libsmbldaphelper.so | |
1104 | %attr(755,root,root) %{_libdir}/samba/libsmbpasswdparser.so | |
1105 | %attr(755,root,root) %{_libdir}/samba/libsmbregistry.so | |
1106 | %attr(755,root,root) %{_libdir}/samba/libsmb_transport.so | |
1107 | %attr(755,root,root) %{_libdir}/samba/libtdb_compat.so | |
1108 | %attr(755,root,root) %{_libdir}/samba/libtdb-wrap.so | |
1109 | %attr(755,root,root) %{_libdir}/samba/libtrusts_util.so | |
1110 | %attr(755,root,root) %{_libdir}/samba/libutil_cmdline.so | |
1111 | %attr(755,root,root) %{_libdir}/samba/libutil_ntdb.so | |
1112 | %attr(755,root,root) %{_libdir}/samba/libutil_reg.so | |
1113 | %attr(755,root,root) %{_libdir}/samba/libutil_setid.so | |
1114 | %attr(755,root,root) %{_libdir}/samba/libutil_tdb.so | |
1115 | %attr(755,root,root) %{_libdir}/samba/libxattr_tdb.so | |
1116 | ||
1117 | %files winbind | |
1118 | %defattr(644,root,root,755) | |
1119 | %attr(754,root,root) /etc/rc.d/init.d/winbind | |
1120 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/winbind | |
1121 | %{systemdunitdir}/winbind.service | |
1122 | %attr(755,root,root) %{_bindir}/ntlm_auth | |
1123 | %attr(755,root,root) %{_bindir}/wbinfo | |
1124 | %attr(755,root,root) %{_sbindir}/winbindd | |
1125 | %attr(755,root,root) /%{_lib}/security/pam_winbind* | |
1126 | %attr(755,root,root) /%{_lib}/libnss_winbind* | |
1127 | %attr(755,root,root) %{_libdir}/winbind_krb5_locator.so | |
1128 | %attr(755,root,root) %{_libdir}/samba/libidmap.so | |
1129 | %attr(755,root,root) %{_libdir}/samba/libnss_info.so | |
1130 | %attr(755,root,root) %{_libdir}/samba/libiniparser.so | |
1131 | %dir %{_libdir}/samba/idmap | |
1132 | %attr(755,root,root) %{_libdir}/samba/idmap/ad.so | |
1133 | %attr(755,root,root) %{_libdir}/samba/idmap/autorid.so | |
1134 | %attr(755,root,root) %{_libdir}/samba/idmap/hash.so | |
1135 | %attr(755,root,root) %{_libdir}/samba/idmap/ldap.so | |
1136 | %attr(755,root,root) %{_libdir}/samba/idmap/rfc2307.so | |
1137 | %attr(755,root,root) %{_libdir}/samba/idmap/rid.so | |
1138 | %attr(755,root,root) %{_libdir}/samba/idmap/tdb2.so | |
1139 | %dir %{_libdir}/samba/nss_info | |
1140 | %attr(755,root,root) %{_libdir}/samba/nss_info/hash.so | |
1141 | %attr(755,root,root) %{_libdir}/samba/nss_info/rfc2307.so | |
1142 | %attr(755,root,root) %{_libdir}/samba/nss_info/sfu20.so | |
1143 | %attr(755,root,root) %{_libdir}/samba/nss_info/sfu.so | |
1144 | %{_mandir}/man1/ntlm_auth.1* | |
1145 | %{_mandir}/man1/wbinfo*.1* | |
1146 | %{_mandir}/man5/pam_winbind.conf.5* | |
1147 | %{_mandir}/man7/winbind_krb5_locator.7* | |
1148 | %{_mandir}/man8/idmap_ad.8* | |
1149 | %{_mandir}/man8/idmap_autorid.8* | |
1150 | %{_mandir}/man8/idmap_hash.8* | |
1151 | %{_mandir}/man8/idmap_ldap.8* | |
1152 | %{_mandir}/man8/idmap_nss.8* | |
1153 | %{_mandir}/man8/idmap_rfc2307.8* | |
1154 | %{_mandir}/man8/idmap_rid.8* | |
1155 | %{_mandir}/man8/idmap_tdb2.8* | |
1156 | %{_mandir}/man8/idmap_tdb.8* | |
1157 | %{_mandir}/man8/pam_winbind.8* | |
1158 | %{_mandir}/man8/winbindd*.8* | |
1159 | ||
1160 | %files devel | |
1161 | %defattr(644,root,root,755) | |
1162 | %{_includedir}/samba-4.0/charset.h | |
1163 | %dir %{_includedir}/samba-4.0/core | |
1164 | %{_includedir}/samba-4.0/core/doserr.h | |
1165 | %{_includedir}/samba-4.0/core/error.h | |
1166 | %{_includedir}/samba-4.0/core/ntstatus.h | |
1167 | %{_includedir}/samba-4.0/core/werror.h | |
1168 | %{_includedir}/samba-4.0/credentials.h | |
1169 | %{_includedir}/samba-4.0/dcerpc.h | |
1170 | %{_includedir}/samba-4.0/dcerpc_server.h | |
1171 | %{_includedir}/samba-4.0/dlinklist.h | |
1172 | %{_includedir}/samba-4.0/domain_credentials.h | |
1173 | %dir %{_includedir}/samba-4.0/gen_ndr | |
1174 | %{_includedir}/samba-4.0/gen_ndr/atsvc.h | |
1175 | %{_includedir}/samba-4.0/gen_ndr/auth.h | |
1176 | %{_includedir}/samba-4.0/gen_ndr/dcerpc.h | |
1177 | %{_includedir}/samba-4.0/gen_ndr/drsblobs.h | |
1178 | %{_includedir}/samba-4.0/gen_ndr/drsuapi.h | |
1179 | %{_includedir}/samba-4.0/gen_ndr/epmapper.h | |
1180 | %{_includedir}/samba-4.0/gen_ndr/krb5pac.h | |
1181 | %{_includedir}/samba-4.0/gen_ndr/lsa.h | |
1182 | %{_includedir}/samba-4.0/gen_ndr/mgmt.h | |
1183 | %{_includedir}/samba-4.0/gen_ndr/misc.h | |
1184 | %{_includedir}/samba-4.0/gen_ndr/nbt.h | |
1185 | %{_includedir}/samba-4.0/gen_ndr/ndr_atsvc.h | |
1186 | %{_includedir}/samba-4.0/gen_ndr/ndr_atsvc_c.h | |
1187 | %{_includedir}/samba-4.0/gen_ndr/ndr_dcerpc.h | |
1188 | %{_includedir}/samba-4.0/gen_ndr/ndr_drsblobs.h | |
1189 | %{_includedir}/samba-4.0/gen_ndr/ndr_drsuapi.h | |
1190 | %{_includedir}/samba-4.0/gen_ndr/ndr_epmapper.h | |
1191 | %{_includedir}/samba-4.0/gen_ndr/ndr_epmapper_c.h | |
1192 | %{_includedir}/samba-4.0/gen_ndr/ndr_krb5pac.h | |
1193 | %{_includedir}/samba-4.0/gen_ndr/ndr_mgmt.h | |
1194 | %{_includedir}/samba-4.0/gen_ndr/ndr_mgmt_c.h | |
1195 | %{_includedir}/samba-4.0/gen_ndr/ndr_misc.h | |
1196 | %{_includedir}/samba-4.0/gen_ndr/ndr_nbt.h | |
1197 | %{_includedir}/samba-4.0/gen_ndr/ndr_samr.h | |
1198 | %{_includedir}/samba-4.0/gen_ndr/ndr_samr_c.h | |
1199 | %{_includedir}/samba-4.0/gen_ndr/ndr_svcctl.h | |
1200 | %{_includedir}/samba-4.0/gen_ndr/ndr_svcctl_c.h | |
1201 | %{_includedir}/samba-4.0/gen_ndr/netlogon.h | |
1202 | %{_includedir}/samba-4.0/gen_ndr/samr.h | |
1203 | %{_includedir}/samba-4.0/gen_ndr/security.h | |
1204 | %{_includedir}/samba-4.0/gen_ndr/server_id.h | |
1205 | %{_includedir}/samba-4.0/gen_ndr/svcctl.h | |
1206 | %{_includedir}/samba-4.0/gensec.h | |
1207 | %{_includedir}/samba-4.0/ldap-util.h | |
1208 | %{_includedir}/samba-4.0/ldap_errors.h | |
1209 | %{_includedir}/samba-4.0/ldap_message.h | |
1210 | %{_includedir}/samba-4.0/ldap_ndr.h | |
1211 | %{_includedir}/samba-4.0/ldb_wrap.h | |
1212 | %{_includedir}/samba-4.0/ndr.h | |
1213 | %dir %{_includedir}/samba-4.0/ndr | |
1214 | %{_includedir}/samba-4.0/ndr/ndr_drsblobs.h | |
1215 | %{_includedir}/samba-4.0/ndr/ndr_drsuapi.h | |
1216 | %{_includedir}/samba-4.0/ndr/ndr_nbt.h | |
1217 | %{_includedir}/samba-4.0/ndr/ndr_svcctl.h | |
1218 | %{_includedir}/samba-4.0/param.h | |
1219 | %{_includedir}/samba-4.0/policy.h | |
1220 | %{_includedir}/samba-4.0/read_smb.h | |
1221 | %{_includedir}/samba-4.0/registry.h | |
1222 | %{_includedir}/samba-4.0/roles.h | |
1223 | %{_includedir}/samba-4.0/rpc_common.h | |
1224 | %dir %{_includedir}/samba-4.0/samba | |
1225 | %{_includedir}/samba-4.0/samba/session.h | |
1226 | %{_includedir}/samba-4.0/samba/version.h | |
1227 | %{_includedir}/samba-4.0/samba_util.h | |
1228 | %{_includedir}/samba-4.0/share.h | |
1229 | %{_includedir}/samba-4.0/smb2.h | |
1230 | %{_includedir}/samba-4.0/smb2_constants.h | |
1231 | %{_includedir}/samba-4.0/smb2_create_blob.h | |
1232 | %{_includedir}/samba-4.0/smb2_lease.h | |
1233 | %{_includedir}/samba-4.0/smb2_signing.h | |
1234 | %{_includedir}/samba-4.0/smb_cli.h | |
1235 | %{_includedir}/samba-4.0/smb_cliraw.h | |
1236 | %{_includedir}/samba-4.0/smb_common.h | |
1237 | %{_includedir}/samba-4.0/smb_composite.h | |
1238 | %{_includedir}/samba-4.0/smb_constants.h | |
1239 | %{_includedir}/samba-4.0/smb_raw.h | |
1240 | %{_includedir}/samba-4.0/smb_raw_interfaces.h | |
1241 | %{_includedir}/samba-4.0/smb_raw_signing.h | |
1242 | %{_includedir}/samba-4.0/smb_raw_trans2.h | |
1243 | %{_includedir}/samba-4.0/smb_request.h | |
1244 | %{_includedir}/samba-4.0/smb_seal.h | |
1245 | %{_includedir}/samba-4.0/smb_signing.h | |
1246 | %{_includedir}/samba-4.0/smb_unix_ext.h | |
1247 | %{_includedir}/samba-4.0/smb_util.h | |
1248 | %{_includedir}/samba-4.0/tdr.h | |
1249 | %{_includedir}/samba-4.0/tsocket.h | |
1250 | %{_includedir}/samba-4.0/tsocket_internal.h | |
1251 | %dir %{_includedir}/samba-4.0/util | |
1252 | %{_includedir}/samba-4.0/util/attr.h | |
1253 | %{_includedir}/samba-4.0/util/byteorder.h | |
1254 | %{_includedir}/samba-4.0/util/data_blob.h | |
1255 | %{_includedir}/samba-4.0/util/debug.h | |
1256 | %{_includedir}/samba-4.0/util/memory.h | |
1257 | %{_includedir}/samba-4.0/util/safe_string.h | |
1258 | %{_includedir}/samba-4.0/util/string_wrappers.h | |
1259 | %{_includedir}/samba-4.0/util/talloc_stack.h | |
1260 | %{_includedir}/samba-4.0/util/tevent_ntstatus.h | |
1261 | %{_includedir}/samba-4.0/util/tevent_unix.h | |
1262 | %{_includedir}/samba-4.0/util/tevent_werror.h | |
1263 | %{_includedir}/samba-4.0/util/time.h | |
1264 | %{_includedir}/samba-4.0/util/xfile.h | |
1265 | %{_includedir}/samba-4.0/util_ldb.h | |
1266 | %{_includedir}/samba-4.0/lookup_sid.h | |
1267 | %{_includedir}/samba-4.0/machine_sid.h | |
1268 | %{_includedir}/samba-4.0/netapi.h | |
1269 | %{_includedir}/samba-4.0/passdb.h | |
1270 | %{_includedir}/samba-4.0/smbconf.h | |
1271 | %{_includedir}/samba-4.0/smb_ldap.h | |
1272 | %{_includedir}/samba-4.0/smbldap.h | |
1273 | %{_includedir}/samba-4.0/smb_share_modes.h | |
1274 | %attr(755,root,root) %{_libdir}/libdcerpc-atsvc.so | |
1275 | %attr(755,root,root) %{_libdir}/libdcerpc-binding.so | |
1276 | %attr(755,root,root) %{_libdir}/libdcerpc-samr.so | |
1277 | %attr(755,root,root) %{_libdir}/libdcerpc-server.so | |
1278 | %attr(755,root,root) %{_libdir}/libdcerpc.so | |
1279 | %attr(755,root,root) %{_libdir}/libgensec.so | |
1280 | %attr(755,root,root) %{_libdir}/libndr-krb5pac.so | |
1281 | %attr(755,root,root) %{_libdir}/libndr-nbt.so | |
1282 | %attr(755,root,root) %{_libdir}/libndr.so | |
1283 | %attr(755,root,root) %{_libdir}/libndr-standard.so | |
1284 | %attr(755,root,root) %{_libdir}/libnetapi.so | |
1285 | %attr(755,root,root) %{_libdir}/libpdb.so | |
1286 | %attr(755,root,root) %{_libdir}/libregistry.so | |
1287 | %attr(755,root,root) %{_libdir}/libsamba-credentials.so | |
1288 | %attr(755,root,root) %{_libdir}/libsamba-hostconfig.so | |
1289 | %attr(755,root,root) %{_libdir}/libsamba-policy.so | |
1290 | %attr(755,root,root) %{_libdir}/libsamba-util.so | |
1291 | %attr(755,root,root) %{_libdir}/libsamdb.so | |
1292 | %attr(755,root,root) %{_libdir}/libsmbsharemodes.so | |
1293 | %attr(755,root,root) %{_libdir}/libsmbclient-raw.so | |
1294 | %attr(755,root,root) %{_libdir}/libsmbconf.so | |
1295 | %attr(755,root,root) %{_libdir}/libsmbldap.so | |
1296 | %attr(755,root,root) %{_libdir}/libtevent-util.so | |
1297 | %{_pkgconfigdir}/dcerpc.pc | |
1298 | %{_pkgconfigdir}/dcerpc_atsvc.pc | |
1299 | %{_pkgconfigdir}/dcerpc_samr.pc | |
1300 | %{_pkgconfigdir}/dcerpc_server.pc | |
1301 | %{_pkgconfigdir}/gensec.pc | |
1302 | %{_pkgconfigdir}/ndr.pc | |
1303 | %{_pkgconfigdir}/ndr_krb5pac.pc | |
1304 | %{_pkgconfigdir}/ndr_nbt.pc | |
1305 | %{_pkgconfigdir}/ndr_standard.pc | |
1306 | %{_pkgconfigdir}/netapi.pc | |
1307 | %{_pkgconfigdir}/registry.pc | |
1308 | %{_pkgconfigdir}/samba-credentials.pc | |
1309 | %{_pkgconfigdir}/samba-hostconfig.pc | |
1310 | %{_pkgconfigdir}/samba-policy.pc | |
1311 | %{_pkgconfigdir}/samba-util.pc | |
1312 | %{_pkgconfigdir}/samdb.pc | |
1313 | %{_pkgconfigdir}/smbsharemodes.pc | |
1314 | %{_pkgconfigdir}/smbclient-raw.pc | |
1315 | %if %{without system_libs} | |
1316 | %{_mandir}/man3/ntdb.3* | |
1317 | %endif | |
1318 | ||
1319 | %files -n pam-pam_smbpass | |
1320 | %defattr(644,root,root,755) | |
1321 | %doc source3/pam_smbpass/{CHAN*,README,TODO} source3/pam_smbpass/samples | |
1322 | %attr(755,root,root) /%{_lib}/security/pam_smbpass.so | |
1323 | ||
1324 | %files pidl | |
1325 | %defattr(644,root,root,755) | |
1326 | %attr(755,root,root) %{_bindir}/pidl | |
1327 | %{_mandir}/man1/pidl.1* | |
1328 | %{_mandir}/man3/Parse::Pidl*.3* | |
1329 | %{perl_vendorlib}/Parse/Pidl* | |
1330 | ||
1331 | %files -n python-samba | |
1332 | %defattr(644,root,root,755) | |
1333 | %dir %{py_sitedir}/samba | |
1334 | %attr(755,root,root) %{py_sitedir}/samba/*.so | |
1335 | %{py_sitedir}/samba/*.py[co] | |
1336 | %dir %{py_sitedir}/samba/dcerpc | |
1337 | %{py_sitedir}/samba/dcerpc/*.py[co] | |
1338 | %attr(755,root,root) %{py_sitedir}/samba/dcerpc/*.so | |
1339 | %dir %{py_sitedir}/samba/external | |
1340 | %{py_sitedir}/samba/external/*.py[co] | |
1341 | %dir %{py_sitedir}/samba/external/subunit | |
1342 | %{py_sitedir}/samba/external/subunit/*.py[co] | |
1343 | %dir %{py_sitedir}/samba/external/subunit/tests | |
1344 | %{py_sitedir}/samba/external/subunit/tests/*.py[co] | |
1345 | %dir %{py_sitedir}/samba/netcmd | |
1346 | %{py_sitedir}/samba/netcmd/*.py[co] | |
1347 | %dir %{py_sitedir}/samba/provision | |
1348 | %{py_sitedir}/samba/provision/*.py[co] | |
1349 | %dir %{py_sitedir}/samba/samba3 | |
1350 | %attr(755,root,root) %{py_sitedir}/samba/samba3/*.so | |
1351 | %{py_sitedir}/samba/samba3/*.py[co] | |
1352 | %dir %{py_sitedir}/samba/tests | |
1353 | %{py_sitedir}/samba/tests/*.py[co] | |
1354 | %dir %{py_sitedir}/samba/tests/blackbox | |
1355 | %{py_sitedir}/samba/tests/blackbox/*.py[co] | |
1356 | %dir %{py_sitedir}/samba/tests/samba_tool | |
1357 | %{py_sitedir}/samba/tests/samba_tool/*.py[co] | |
1358 | %dir %{py_sitedir}/samba/tests/dcerpc | |
1359 | %{py_sitedir}/samba/tests/dcerpc/*.py[co] | |
1360 | %dir %{py_sitedir}/samba/web_server | |
1361 | %{py_sitedir}/samba/web_server/*.py[co] | |
1362 | %if %{without system_libs} | |
1363 | %attr(755,root,root) %{py_sitedir}/ldb.so | |
1364 | %attr(755,root,root) %{py_sitedir}/ntdb.so | |
1365 | %attr(755,root,root) %{py_sitedir}/talloc.so | |
1366 | %attr(755,root,root) %{py_sitedir}/tdb.so | |
1367 | %attr(755,root,root) %{py_sitedir}/_tevent.so | |
1368 | %{py_sitedir}/tevent.py[co] | |
1369 | %endif | |
1370 | ||
1371 | %files test | |
1372 | %defattr(644,root,root,755) | |
1373 | %attr(755,root,root) %{_bindir}/gentest | |
1374 | %attr(755,root,root) %{_bindir}/locktest | |
1375 | %attr(755,root,root) %{_bindir}/masktest | |
1376 | %attr(755,root,root) %{_bindir}/ndrdump | |
1377 | %attr(755,root,root) %{_bindir}/smbtorture | |
1378 | %attr(755,root,root) %{_libdir}/libtorture.so.*.*.* | |
1379 | %attr(755,root,root) %ghost %{_libdir}/libtorture.so.0 | |
1380 | %attr(755,root,root) %{_libdir}/samba/libsubunit.so | |
1381 | %attr(755,root,root) %{_libdir}/samba/libdlz_bind9_for_torture.so | |
1382 | %{_mandir}/man1/gentest.1* | |
1383 | %{_mandir}/man1/locktest.1* | |
1384 | %{_mandir}/man1/masktest.1* | |
1385 | %{_mandir}/man1/ndrdump.1* | |
1386 | %{_mandir}/man1/smbtorture.1* | |
1387 | ||
1388 | %files test-devel | |
1389 | %defattr(644,root,root,755) | |
1390 | %attr(755,root,root) %{_libdir}/libtorture.so | |
1391 | %{_includedir}/samba-4.0/torture.h | |
1392 | %{_pkgconfigdir}/torture.pc | |
1393 | ||
1394 | %files -n samba-vfs-ceph | |
1395 | %defattr(644,root,root,755) | |
1396 | %attr(755,root,root) %{_libdir}/samba/vfs/ceph.so | |
1397 | ||
1398 | %files -n samba-vfs-glusterfs | |
1399 | %defattr(644,root,root,755) | |
1400 | %attr(755,root,root) %{_libdir}/samba/vfs/glusterfs.so | |
1401 | ||
1402 | %files -n samba-vfs-notify_fam | |
1403 | %defattr(644,root,root,755) | |
1404 | %attr(755,root,root) %{_libdir}/samba/vfs/notify_fam.so | |
1405 | %{_mandir}/man8/vfs_notify_fam.8* | |
1406 | ||
1407 | %files -n smbget | |
1408 | %defattr(644,root,root,755) | |
1409 | %attr(755,root,root) %{_bindir}/smbget | |
1410 | %{_mandir}/man1/smbget.1* | |
1411 | %{_mandir}/man5/smbgetrc.5* | |
1412 | ||
1413 | %if %{with cups} | |
1414 | %files -n cups-backend-smb | |
1415 | %defattr(644,root,root,755) | |
1416 | %attr(755,root,root) %{cups_serverbin}/backend/smb | |
1417 | %attr(755,root,root) %{_bindir}/smbspool | |
1418 | %{_mandir}/man8/smbspool.8* | |
1419 | %endif | |
1420 | ||
1421 | %files -n nss_wins | |
1422 | %defattr(644,root,root,755) | |
1423 | %attr(755,root,root) /%{_lib}/libnss_wins* | |
1424 | ||
1425 | %files -n libsmbclient | |
1426 | %defattr(644,root,root,755) | |
1427 | %attr(755,root,root) %{_libdir}/libsmbclient.so.* | |
1428 | %attr(755,root,root) %{_libdir}/libwbclient.so.* | |
1429 | %attr(755,root,root) %{_libdir}/samba/libwinbind-client.so | |
1430 | %{_mandir}/man7/libsmbclient.7* | |
1431 | ||
1432 | %files -n libsmbclient-devel | |
1433 | %defattr(644,root,root,755) | |
1434 | %attr(755,root,root) %{_libdir}/libsmbclient.so | |
1435 | %attr(755,root,root) %{_libdir}/libwbclient.so | |
1436 | %dir %{_includedir}/samba-4.0 | |
1437 | %{_includedir}/samba-4.0/libsmbclient.h | |
1438 | %{_includedir}/samba-4.0/wbclient.h | |
1439 | %{_pkgconfigdir}/smbclient.pc | |
1440 | %{_pkgconfigdir}/wbclient.pc | |
1441 | ||
1442 | %if %{with ldap} | |
1443 | %files -n openldap-schema-samba | |
1444 | %defattr(644,root,root,755) | |
1445 | %{schemadir}/samba.schema | |
1446 | %endif |