]> git.pld-linux.org Git - packages/samba4.git/blob - samba4.spec
ee8b6afd27e063d261ef4e047fa9c1cae2f4d058
[packages/samba4.git] / samba4.spec
1 #
2 # Conditional build:
3 %bcond_without  ads             # without ActiveDirectory support
4 %bcond_without  cups            # without CUPS support
5 %bcond_without  kerberos5       # without Kerberos V support
6 %bcond_without  ldap            # without LDAP support
7 %bcond_without  avahi
8 %bcond_without  system_libs
9
10 # ADS requires kerberos5 and LDAP
11 %if %{without kerberos5} || %{without ldap}
12 %undefine       with_ads
13 %endif
14
15 %if %{with system_libs}
16 %define         talloc_ver      2.0.7
17 %define         tdb_ver         2:1.2.10
18 %define         ldb_ver         1.1.12
19 %define         tevent_ver      0.9.17
20 %endif
21
22 %define         virusfilter_version 0.1.3
23 Summary:        SMB server
24 Summary(cs.UTF-8):      Server SMB
25 Summary(da.UTF-8):      SMB server
26 Summary(de.UTF-8):      SMB-Server
27 Summary(es.UTF-8):      El servidor SMB
28 Summary(fi.UTF-8):      SMB-palvelin
29 Summary(fr.UTF-8):      Serveur SMB
30 Summary(it.UTF-8):      Server SMB
31 Summary(ja.UTF-8):      Samba SMB サーバー
32 Summary(ko.UTF-8):      삼바 SMB 서버
33 Summary(pl.UTF-8):      Serwer SMB
34 Summary(pt_BR.UTF-8):   Cliente e servidor SMB
35 Summary(ru.UTF-8):      SMB клиент и сервер
36 Summary(tr.UTF-8):      SMB sunucusu
37 Summary(uk.UTF-8):      SMB клієнт та сервер
38 Summary(zh_CN.UTF-8):   Samba 客户端和服务器
39 Name:           samba4
40 Version:        4.0.0
41 Release:        0.1
42 License:        GPL v3
43 Group:          Networking/Daemons
44 Source0:        http://www.samba.org/samba/ftp/stable/samba-%{version}.tar.gz
45 # Source0-md5:  93e9aad40893ba48d08e1b28e7efff72
46 Source1:        smb.init
47 Source2:        samba.pamd
48 Source3:        swat.inetd
49 Source4:        samba.sysconfig
50 Source5:        samba.logrotate
51 Source6:        smb.conf
52 Source7:        winbind.init
53 Source8:        winbind.sysconfig
54 Source10:       https://github.com/downloads/fumiyas/samba-virusfilter/samba-virusfilter-%{virusfilter_version}.tar.bz2
55 # Source10-md5: a3a30d5fbf309d356e8c5833db680c17
56 Patch0:         system-heimdal.patch
57 Patch1:         samba-c++-nofail.patch
58 Patch3:         samba-nscd.patch
59 Patch4:         samba-lprng-no-dot-printers.patch
60 Patch5:         samba-passdb-smbpasswd.patch
61 URL:            http://www.samba.org/
62 BuildRequires:  acl-devel
63 BuildRequires:  autoconf
64 BuildRequires:  automake
65 %{?with_avahi:BuildRequires:    avahi-devel}
66 BuildRequires:  ctdb-devel
67 %{?with_cups:BuildRequires:     cups-devel >= 1:1.2.0}
68 BuildRequires:  dmapi-devel
69 BuildRequires:  gamin-devel
70 BuildRequires:  gdbm-devel
71 BuildRequires:  gettext-devel
72 %{?with_kerberos5:BuildRequires:        heimdal-devel >= 1.5.3-1}
73 BuildRequires:  iconv
74 BuildRequires:  keyutils-devel
75 BuildRequires:  libcom_err-devel
76 BuildRequires:  libmagic-devel
77 BuildRequires:  libnscd-devel
78 BuildRequires:  libtool >= 2:1.4d
79 BuildRequires:  make >= 3.81
80 BuildRequires:  ncurses-devel >= 5.2
81 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
82 BuildRequires:  openssl-devel >= 0.9.7d
83 BuildRequires:  pam-devel >= 0.99.8.1
84 BuildRequires:  pkgconfig
85 BuildRequires:  popt-devel
86 %{?with_pgsql:BuildRequires:    postgresql-devel}
87 BuildRequires:  python-devel
88 BuildRequires:  python-modules
89 BuildRequires:  readline-devel >= 4.2
90 BuildRequires:  rpmbuild(macros) >= 1.304
91 BuildRequires:  sed >= 4.0
92 %if %{with system_libs}
93 BuildRequires:  talloc-devel >= %{talloc_ver}
94 BuildRequires:  tdb-devel >= %{tdb_ver}
95 BuildRequires:  tevent-devel >= %{tevent_ver}
96 BuildRequires:  ldb-devel >= %{ldb_ver}
97 BuildRequires:  python-ldb-devel >= %{ldb_ver}
98 BuildRequires:  python-talloc-devel >= %{talloc_ver}
99 BuildRequires:  python-tevent >= %{tevent_ver}
100 %endif
101 BuildRequires:  xfsprogs-devel
102 BuildConflicts: libbsd-devel
103 Requires(post,preun):   /sbin/chkconfig
104 Requires:       %{name}-common = %{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 # smbd links with libcups
110 %{?with_cups:Requires:  cups-lib >= 1:1.2.0}
111 Obsoletes:      samba-pdb-xml
112 Obsoletes:      samba-vfs-block
113 Obsoletes:      samba-doc-html
114 Obsoletes:      samba-doc-pdf
115 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
116
117 %define         _sambahome      /home/services/samba
118 %if %{with cups}
119 %define         cups_serverbin  %{_prefix}/lib/cups
120 %endif
121 %define         schemadir       /usr/share/openldap/schema
122
123 # CFLAGS modified (the second ./configure)
124 %undefine       configure_cache
125
126 %description
127 Samba provides an SMB server which can be used to provide network
128 services to SMB (sometimes called "Lan Manager") clients, including
129 various versions of MS Windows, OS/2, and other Linux machines. Samba
130 also provides some SMB clients, which complement the built-in SMB
131 filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
132 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol.
133
134 This release is known as the "Locking Update" and has full support for
135 Opportunistic File Locking. In addition this update includes native
136 support for Microsoft encrypted passwords, improved browse list and
137 WINS database management.
138
139 Please refer to the WHATSNEW.txt document for fixup information. This
140 binary release includes encrypted password support. Please read the
141 smb.conf file for implementation details.
142
143 %description -l cs.UTF-8
144 Samba poskytuje server SMB, který lze použít pro poskytování síťových
145 služeb klientům SMB (někdy nazývaných klienti "LAN manažer") včetně
146 klientů různých verzí MS Windows, OS/2 a dalších linuxových strojů.
147 Samba též poskytuje některé klienty SMB, kteří komplementují vestavěný
148 souborový systém SMB v Linuxu. Samba používá protokoly NetBIOS přes
149 TCP/IP (NetBT) a NEpotřebuje protokol NetBEUI (neformátovaný rámec
150 NetBIOS od společnosti Microsoft.
151
152 %description -l da.UTF-8
153 Samba tilbyder en SMB server som kan bruges til at tilbyde netværk
154 services til SMB (også kaldet "Lan Manager") klienter, incl.
155 forskellige versioner af MS Windows, OS/2, og andre Linux maskiner.
156 Samba tilbyder også SMB klienter, som udbygger det indbyggede SMB
157 filsystem i Linux. Samba benytter NetBIOS over TCP/IP (NetBT)
158 protocolen og kræver ikke NetBEUI (Microsoft Raw NetBIOS frame)
159 protokollen.
160
161 %description -l de.UTF-8
162 Samba stellt einen SMB-Server zum Anbieten von Netzwerkdiensten für
163 SMB-Clients (auch "Lan Manager" genannt) zur Verfügung, darunter
164 verschiedenen Versionen von MS Windows-, OS/2- und anderen
165 Linux-Rechnern. Samba enthält außerdem einige SMB-Clients, die das in
166 Linux integrierte SMB-Dateisystem ergänzen. Samba benutzt
167 NetBIOS-über-TCP/IP (NetBT)-Protokolle und benötigt KEIN NetBEUI
168 (Microsoft Raw NetBIOS frame)-Protokoll.
169
170 %description -l es.UTF-8
171 Samba provee un servidor SMB que se puede usar para ofrecer servicios
172 de red a clientes SMB (algunas veces se le llama de "Lan Manager"),
173 incluyendo varias versiones de MS Windows, OS/2, y otras máquinas
174 Linux. Samba también ofrece algunos clientes SMB, que complementan el
175 sistema de archivos SMB de Linux. Samba usa el protocolo NetBIOS sobre
176 TCP/IP (NetBT) y no necesita del protocolo NetBEUI (Microsoft Raw
177 NetBIOS frame).
178
179 %description -l fi.UTF-8
180 Samba on SMB-palvelin, jota voidaan käyttää SMB-asiakasohjelmien
181 verkkopalvelujen tarjoajana. SMB-protokollaa kutsutaan joskus "Lan
182 Manager" protokollaksi ja asiakasohjelmat toimivat dosissa,
183 Windowseissa, OS/2:ssa ja toisissa Linux-koneissa. Samban mukana on
184 myös joitakin SMB-asiakasohjelmia, jotka täydentävät Linuxin
185 kernelissä olevaa SMB-tiedostojärjestelmän tukea. Samba vaatii NetBIOS
186 over TCP/IP (NetBT) protokollaa eikä tarvitse tai pysty käyttämään
187 NetBEUI-protokollaa.
188
189 %description -l it.UTF-8
190 Samba fornisce un server SMB che puo` essere usato per fornire servizi
191 di rete ai client SMB, incluse le versioni MS Windows, OS/2 e per
192 altre macchine Linux. Samba fornisce anche i client SMB. Samba usa
193 NetBIOS sopra TCP/IP e non ha bisogno del protocollo NetBEUI.
194
195 %description -l ja.UTF-8
196 Samba は MS Windows の様々なバージョン、OS/2 そして他の Linux マシン
197 を含む SMB (たまに "Lan Manager" と呼ばれる)
198 クライアントにネットワーク サービスを提供するために使用される SMB
199 サーバを提供します。Samba は NetBIOS over TCP/IP (NetBT)
200 プロトコルを使用し、 NetBEUI(Microsoft Raw NetBIOS frame)
201 プロトコルは必要ありません。
202
203 Samba ほとんど動作する NT ドメインコントロールの機能を特徴とし、
204 好きなブラウザを使って samba の smb.conf ファイルをリモート管理する
205 新しい SWAT (Samba Web Administration Tool) を含みます。
206 目下のところこれは inetd を通して TCP ポート 901 で有効になります。
207
208 %description -l ko.UTF-8
209 삼바는 MS Windows, OS/2, 혹은 다른 리눅스 머신을 포함하는 SMB(혹은
210 "Lan Manager"라고도 불림) 클라이언트를 네트워크 서비스 위해 사용할 수
211 있는 SMB 서버를 제공한다. 삼바는 TCP/IP 프로토콜을 통해 NetBIOS를
212 사용하고 NetBEUI (Microsoft Raw NetBIOS 프레임) 프로토콜은 필요하지
213 않다.
214
215 삼바-2.2 의 특징은 NT 도메인 컨트롤의 성능으로 작업을 하고, 새로운
216 SWAT(Samba Web Administration Tool)로 웹브라우저를 사용하여 원격지에서
217 삼바의 smb.conf 파일을 관리하도록 한다. 이러한 경우 inetd 데몬을 통해
218 TCP 901 포트를 사용하게 된다.
219
220 최근 정보로 WHATSNEW.txt 파일의 문서를 참고하도록 한다. 바이너리의
221 릴리즈는 암호화된 패스워드를 제공한다.
222
223 %description -l pl.UTF-8
224 Samba udostępnia serwer SMB, który może być użyty w celu dostarczenia
225 usług sieciowych (potocznie zwanych "Lan Manager"), dla klientów
226 takich jak MS Windows, OS/2 a także maszyn linuksowych. W pakiecie
227 znajduje się również oprogramowanie klienckie. Samba używa protokołu
228 NetBIOS po TCP/IP (NetBT) i nie wymaga protokołu NetBEUI. Ta wersja ma
229 pełne wsparcie dla blokowania plików, a także wsparcie dla kodowania
230 haseł w standardzie MS i zarządzania bazą WINS.
231
232 %description -l pt_BR.UTF-8
233 O Samba provê um servidor SMB que pode ser usado para oferecer
234 serviços de rede a clientes SMB (algumas vezes chamado de "Lan
235 Manager"), incluindo várias versões de MS Windows, OS/2, e outras
236 máquinas Linux. O Samba também fornece alguns clientes SMB, que
237 complementam o sistema de arquivos SMB do Linux. O Samba usa o
238 protocolo NetBIOS sobre TCP/IP (NetBT) e não necessita do protocolo
239 NetBEUI (Microsoft Raw NetBIOS frame).
240
241 O Samba inclui a maioria das características de um servidor de
242 Controle de Domínios NT e o SWAT (Samba Web Administration Tool), que
243 permite que o arquivo smb.conf seja gerenciado remotamente através de
244 um navegador. Atualmente isto está sendo habilitado na porta TCP 901
245 via inetd.
246
247 %description -l ru.UTF-8
248 Samba предоставляет SMB-сервер, который может быть использован для
249 предоставления сетевых сервисов SMB (иногда называемым "Lan Manager")
250 клиентам, включая разнообразные версии MS Windows, OS/2, и другие
251 Linux-машины. Samba также предоставляет SMB-клиентов, которые работают
252 со встроенной в Linux файловой системой SMB.
253
254 Samba использует протокол NetBIOS over TCP/IP (NetBT) и не нуждается в
255 протоколе NetBEUI (Microsoft Raw NetBIOS frame).
256
257 Samba содержит практически работающую реализацию NT Domain Control и
258 включает новый SWAT (Samba Web Administration Tool), который позволяет
259 удаленно управлять конфигурационным файлом smb.conf при помощи вашего
260 любимого WEB-броузера. Пока что он разрешен через inetd на TCP-порту
261 901.
262
263 %description -l uk.UTF-8
264 Samba надає SMB-сервер, що може бути використаний для надання
265 мережевих сервісів SMB (що їх іноді називають "Lan Manager") клієнтам,
266 включаючи різноманітні версії MS Windows, OS/2, та інші Linux-машини.
267 Samba також надає SMB-клієнтів, що працюють з вбудованою в Linux
268 файловою системою SMB.
269
270 Samba використовує протокол NetBIOS over TCP/IP (NetBT) та не потребує
271 протоколу NetBEUI (Microsoft Raw NetBIOS frame).
272
273 Samba містить майже працюючу реализацію NT Domain Control та новый
274 SWAT (Samba Web Administration Tool), котрий дозволяє віддалено
275 керувати конфігураційним файлом smb.conf за допомогою вашого
276 улюбленого WEB-броузера. Поки що він дозволений через inetd на
277 TCP-порту 901.
278
279 %package swat
280 Summary:        Samba Web Administration Tool
281 Summary(pl.UTF-8):      Narzędzie administracyjne serwisu Samba
282 Summary(pt_BR.UTF-8):   Samba SWAT e documentação Web
283 Summary(ru.UTF-8):      Программа конфигурации SMB-сервера Samba
284 Summary(uk.UTF-8):      Програма конфигурації SMB-сервера Samba
285 Group:          Networking/Admin
286 Requires:       %{name} = %{version}-%{release}
287 Requires:       inetdaemon
288 Requires:       rc-inetd >= 0.8.2
289 Obsoletes:      swat
290
291 %description swat
292 swat allows a Samba administrator to configure the complex smb.conf
293 file via a Web browser. In addition, a swat configuration page has
294 help links to all the configurable options in the smb.conf file
295 allowing an administrator to easily look up the effects of any change.
296
297 %description swat -l pl.UTF-8
298 swat pozwala na kompleksową konfigurację smb.conf przy pomocy
299 przeglądarki WWW.
300
301 %description swat -l pt_BR.UTF-8
302 SWAT - ferramentada Web de configuração do Samba.
303
304 %description swat -l ru.UTF-8
305 Пакет samba-swat включает новый SWAT (Samba Web Administration Tool),
306 для удаленного администрирования файла smb.conf при помощи вашего
307 любимого Web-браузера.
308
309 %description swat -l uk.UTF-8
310 Пакет samba-swat містить новий SWAT (Samba Web Administration Tool),
311 для дистанційного адміністрування файлу smb.conf за допомогою вашого
312 улюбленого Web-браузеру.
313
314 %package client
315 Summary:        Samba client programs
316 Summary(es.UTF-8):      Cliente SMB de Samba
317 Summary(ja.UTF-8):      Samba (SMB) クライアントプログラム
318 Summary(pl.UTF-8):      Klienci serwera Samba
319 Summary(pt_BR.UTF-8):   Cliente SMB do samba
320 Summary(ru.UTF-8):      Клиентские программы Samba (SMB)
321 Summary(uk.UTF-8):      Клієнтські програми Samba (SMB)
322 Group:          Applications/Networking
323 Requires:       %{name}-common = %{version}-%{release}
324 %{?with_kerberos5:Requires:     heimdal-libs >= 1.5.3-1}
325 Requires:       libsmbclient = %{version}-%{release}
326 Obsoletes:      smbfs
327 Suggests:       cifs-utils
328
329 %description client
330 Samba-client provides some SMB clients, which complement the build-in
331 SMB filesystem in Linux. These allow accessing of SMB shares and
332 printing to SMB printers.
333
334 %description client -l es.UTF-8
335 Cliente SMB de Samba.
336
337 %description client -l ja.UTF-8
338 Samba-client は Linux 上に含まれている SMB ファイルシステムを補う SMB
339 クライアントを提供します。これらは SMB 共有のアクセスと SMB
340 プリンタへの印刷を許可します。
341
342 %description client -l pl.UTF-8
343 Samba-client dostarcza programy uzupełniające obsługę systemu plików
344 SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i
345 drukowanie w sieci SMB.
346
347 %description client -l pt_BR.UTF-8
348 O pacote samba-clientes prove alguns clientes SMB, que complementam o
349 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
350 e também, à impressoras SMB.
351
352 %description client -l ru.UTF-8
353 Пакет samba-client предоставляет некоторые клиенты SMB для работы со
354 встроенной файловой системой SMB в Linux. Эти клиенты позволяют
355 получать доступ к разделяемым каталогам SMB и печать на SMB-принтеры.
356
357 %description client -l uk.UTF-8
358 Пакет samba-client надає деякі клієнти SMB для роботи зі вбудованою
359 файловою системою SMB в Linux. Ці клієнти дозволяють отримувати доступ
360 до каталогів спільного використання SMB та друк на SMB-прінтери.
361
362 %package common
363 Summary:        Files used by both Samba servers and clients
364 Summary(ja.UTF-8):      Samba サーバーとクライアントで使用されるプログラム
365 Summary(pl.UTF-8):      Pliki używane przez serwer i klientów Samba
366 Summary(pt_BR.UTF-8):   Arquivos em comum entre samba e samba-clients
367 Summary(ru.UTF-8):      Файлы, используемые как сервером, так и клиентом Samba
368 Summary(uk.UTF-8):      Файли, що використовуються як сервером, так і клієнтом Samba
369 Group:          Networking/Daemons
370 Requires:       talloc >= %{talloc_ver}
371 Requires:       tdb >= %{tdb_ver}
372
373 %description common
374 Samba-common provides files necessary for both the server and client
375 packages of Samba.
376
377 %description common -l ja.UTF-8
378 Samba-common は Samba のサーバとクライアントの両方のパッケージで
379 使用されるファイルを提供します。
380
381 %description common -l pl.UTF-8
382 Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i
383 klientów Samba.
384
385 %description common -l pt_BR.UTF-8
386 Arquivos em comum entre os pacotes samba e samba-clients.
387
388 %description common -l ru.UTF-8
389 Samba-common содержит файлы, необходимые для работы как клиента, так и
390 сервера Samba.
391
392 %description common -l uk.UTF-8
393 Samba-common містить файли, необхідні для роботи як клієнта, так і
394 сервера Samba.
395
396 %package winbind
397 Summary:        Samba-winbind daemon, utilities and documentation
398 Summary(pl.UTF-8):      Demon samba-winbind, narzędzia i dokumentacja
399 Group:          Networking/Daemons
400 Requires(post,preun):   /sbin/chkconfig
401 Requires:       %{name}-common = %{version}-%{release}
402
403 %description winbind
404 Provides the winbind daemon and testing tools to allow authentication
405 and group/user enumeration from a Windows or Samba domain controller.
406
407 %description winbind -l pl.UTF-8
408 Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia
409 uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny
410 Windows lub Samba.
411
412 %package -n nss_wins
413 Summary:        Name Service Switch service for WINS
414 Summary(pl.UTF-8):      Usługa Name Service Switch dla WINS
415 Group:          Base
416 Requires:       %{name}-common = %{version}-%{release}
417
418 %description -n nss_wins
419 Provides the libnss_wins shared library which resolves NetBIOS names
420 to IP addresses.
421
422 %description -n nss_wins -l pl.UTF-8
423 Biblioteka dzielona libnss_wins rozwiązująca nazwy NetBIOS na adresy
424 IP.
425
426 %package -n pam-pam_smbpass
427 Summary:        PAM Samba Password Module
428 Summary(pl.UTF-8):      Moduł PAM smbpass
429 Group:          Base
430 Obsoletes:      pam_smbpass
431
432 %description -n pam-pam_smbpass
433 PAM module which can be used on conforming systems to keep the
434 smbpasswd (Samba password) database in sync with the Unix password
435 file.
436
437 %description -n pam-pam_smbpass -l pl.UTF-8
438 Moduł PAM, który może być używany do trzymania pliku smbpasswd (hasła
439 Samby) zsynchronizowanego z hasłami uniksowymi.
440
441 %package -n libsmbclient
442 Summary:        libsmbclient - samba client library
443 Summary(pl.UTF-8):      libsmbclient - biblioteka klienta samby
444 Group:          Libraries
445
446 %description -n libsmbclient
447 libsmbclient - library that allows to use samba clients functions.
448
449 %description -n libsmbclient -l pl.UTF-8
450 libsmbclient - biblioteka pozwalająca korzystać z funcji klienta
451 samby.
452
453 %package -n libsmbclient-devel
454 Summary:        libsmbclient - samba client library
455 Summary(pl.UTF-8):      libsmbclient - biblioteka klienta samby
456 Summary(pt_BR.UTF-8):   Ferramentas de desenvolvimento para clientes samba
457 Group:          Development/Libraries
458 Requires:       libsmbclient = %{version}-%{release}
459 Obsoletes:      libsmbclient-static
460
461 %description -n libsmbclient-devel
462 Header files for libsmbclient.
463
464 %description -n libsmbclient-devel -l pl.UTF-8
465 Pliki nagłówkowe dla libsmbclient.
466
467 %description -n libsmbclient-devel -l pt_BR.UTF-8
468 Arquivos de inclusão, bibliotecas e documentação necessários para
469 desenvolver aplicativos clientes para o samba.
470
471 %package devel
472 Summary:        Header files for Samba
473 Summary(pl.UTF-8):      Pliki nagłówkowe Samby
474 Group:          Development/Libraries
475
476 %description devel
477 Header files for Samba.
478
479 %description devel -l pl.UTF-8
480 Pliki nagłówkowe Samby.
481
482 %package -n smbget
483 Summary:        A utility for retrieving files using the SMB protocol
484 Summary(pl.UTF-8):      Narzędzie do pobierania plików protokołem SMB
485 Group:          Applications/Networking
486
487 %description -n smbget
488 wget-like utility for download files over SMB.
489
490 %description -n smbget -l pl.UTF-8
491 Narzędzie podobne do wgeta do pobierania plików protokołem SMB
492 używanym w sieciach MS Windows.
493
494 %package -n cups-backend-smb
495 Summary:        CUPS backend for printing to SMB printers
496 Summary(pl.UTF-8):      Backend CUPS-a drukujący na drukarkach SMB
497 Group:          Applications/Printing
498 Requires:       %{name}-client = %{version}-%{release}
499 Requires:       cups >= 1:1.2.0
500
501 %description -n cups-backend-smb
502 CUPS backend for printing to SMB printers.
503
504 %description -n cups-backend-smb -l pl.UTF-8
505 Backend CUPS-a drukujący na drukarkach SMB.
506
507 %package vfs-audit
508 Summary:        VFS module to audit file access
509 Summary(pl.UTF-8):      Moduł VFS do monitorowania operacji na plikach
510 Group:          Networking/Daemons
511 Requires:       %{name} = %{version}-%{release}
512
513 %description vfs-audit
514 A simple module to audit file access to the syslog facility. The
515 following operations are logged:
516  - share connect/disconnect,
517  - directory opens/create/remove,
518  - file open/close/rename/unlink/chmod.
519
520 %description vfs-audit -l pl.UTF-8
521 Proste moduły do monitorowania dostępu do plików na serwerze samba do
522 do sysloga. Monitorowane są następujące operacje:
523  - podłączenie do/odłączenie od zasobu,
524  - otwarcie/utworzenie/zmiana nazwy katalogu,
525  - otwarcie/zamknięcie/zmiana nazwy/skasowanie/zmiana praw plików.
526
527 Zawiera moduły audit, extd_audit i full_audit.
528
529 %package vfs-cap
530 Summary:        VFS module for CAP and samba compatibility
531 Summary(pl.UTF-8):      Moduł VFS zgodności z CAP (Columbia AppleTalk Program)
532 Group:          Networking/Daemons
533 Requires:       %{name} = %{version}-%{release}
534
535 %description vfs-cap
536 Convert an incoming Shift-JIS character to the 3 byte hex
537 representation used by the Columbia AppleTalk Program (CAP), i.e. :AB.
538 This is used for compatibility between Samba and CAP.
539
540 %description vfs-cap -l pl.UTF-8
541 Zamienia znaki kodowane Shift-JIS do trzybajowej szestnastkowej
542 reprezentacji używanej przez program Columbia AppleTalk Program (CAP).
543
544 %package vfs-default_quota
545 Summary:        VFS module to store default quotas in a specified quota record
546 Summary(pl.UTF-8):      Moduł VFS do zapisywania domyślnych limitów w określonym rekordzie
547 Group:          Networking/Daemons
548 Requires:       %{name} = %{version}-%{release}
549
550 %description vfs-default_quota
551 This VFS modules stores default quotas in a specified quota record.
552
553 %description vfs-default_quota -l pl.UTF-8
554 Ten moduł VFS zapisuje domyślne limity (quoty) w określonym rekordzie
555 limitów.
556
557 %package vfs-expand_msdfs
558 Summary:        VFS module for hosting a Microsoft Distributed File System Tree
559 Summary(pl.UTF-8):      Moduł VFS obsługi Microsoft Distributed File System
560 Group:          Networking/Daemons
561 Requires:       %{name} = %{version}-%{release}
562
563 %description vfs-expand_msdfs
564 A VFS module for hosting a Microsoft Distributed File System Tree.
565
566 The Distributed File System (DFS) provides a means of separating the
567 logical view of files and directories that users see from the actual
568 physical locations of these resources on the network. It allows for
569 higher availability, smoother storage expansion, load balancing, and
570 so on.
571
572 %description vfs-expand_msdfs -l pl.UTF-8
573 Moduł VFS do udostępniania drzewa systemu plików Microsoft Distributed
574 File System.
575
576 Distributed File System (DFS) umożliwia rozdzielanie logicznego widoku
577 plików i katalogów widocznych przez użytkowników z fizycznego
578 umiejscowienia tych zasobów w sieci. Pozwala to na wyższą dostępność,
579 płynniejsze powiększanie przestrzeni, rozdzielanie obciążenia itp.
580
581 %package vfs-fake_perms
582 Summary:        VFS module to report read-only fires as writable
583 Summary(pl.UTF-8):      Moduł VFS udający, że pliki tylko do odczytu są zapisywalne
584 Group:          Networking/Daemons
585 Requires:       %{name} = %{version}-%{release}
586
587 %description vfs-fake_perms
588 This module allow Roaming Profile files and directories to be set (on
589 the Samba server under UNIX) as read only. This module will, if
590 installed on the Profiles share, report to the client that the Profile
591 files and directories are writeable. This satisfies the client even
592 though the files will never be overwritten as the client logs out or
593 shuts down.
594
595 %description vfs-fake_perms -l pl.UTF-8
596 Ten moduł pozwala na ustawienie plików i katalogów z wędrujących
597 profili (Roaming Profiles) jako tylko do odczytu. Moduł ten w
598 przypadku zainstalowania na udziale z profilami będzie zgłaszał
599 klientom, że pliki i katalogi z profilu są zapisywane. To wystarczy
600 klientom pomimo, że pliki nie zostaną nigdy nadpisane przy logowaniu
601 lub wylogowywaniu klienta.
602
603 %package vfs-notify_fam
604 Summary:        VFS module to implement file change notifications
605 Summary(pl.UTF-8):      Moduł VFS implementujący informowanie o zmianach w plikach
606 Group:          Networking/Daemons
607 Requires:       %{name} = %{version}-%{release}
608
609 %description vfs-notify_fam
610 The vfs_notify_fam module makes use of the system FAM (File Alteration
611 Monitor) daemon to implement file change notifications for Windows
612 clients.
613
614 %description vfs-notify_fam -l pl.UTF-8
615 Ten moduł używa demona FAM (File Alteration Monitor) do implementacji
616 informowania o zmianach w plikach dla klientów Windows.
617
618 %package vfs-netatalk
619 Summary:        VFS module for ease co-existence of samba and netatalk
620 Summary(pl.UTF-8):      Moduł VFS ułatwiający współpracę serwisów samba i netatalk
621 Group:          Networking/Daemons
622 Requires:       %{name} = %{version}-%{release}
623
624 %description vfs-netatalk
625 Package contains a netatalk VFS module for ease co-existence of Samba
626 and netatalk file sharing services.
627
628 %description vfs-netatalk -l pl.UTF-8
629 Pakiet zawiera moduł VFS netatalk umożliwiający współpracę usług samba
630 i netatalk przy udostępnianiu zasobów.
631
632 %package vfs-recycle
633 Summary:        VFS module to add recycle bin facility to a samba share
634 Summary(pl.UTF-8):      Moduł VFS dodający możliwość kosza do zasobu samby
635 Group:          Networking/Daemons
636 Requires:       %{name} = %{version}-%{release}
637
638 %description vfs-recycle
639 VFS module to add recycle bin facility to a samba share.
640
641 %description vfs-recycle -l pl.UTF-8
642 Moduł VFS dodający możliwość kosza do zasobu samby.
643
644 %package vfs-readahead
645 Summary:        VFS module for pre-loading the kernel buffer cache
646 Summary(pl.UTF-8):      Moduł VFS do wczesnego odczytu danych do bufora cache jądra
647 Group:          Networking/Daemons
648 Requires:       %{name} = %{version}-%{release}
649
650 %description vfs-readahead
651 This VFS module detects read requests at multiples of a given offset
652 (hex 0x80000 by default) and then tells the kernel via either the
653 readahead system call (on Linux) or the posix_fadvise system call to
654 pre-fetch this data into the buffer cache.
655
656 This module is useful for Windows Vista clients reading data using the
657 Windows Explorer program, which asynchronously does multiple file read
658 requests at offset boundaries of 0x80000 bytes.
659
660 %description vfs-readahead -l pl.UTF-8
661 Ten moduł VFS wykrywa żądania odczytu spod wielokrotności podanych
662 pozycji (domyślnie 0x80000 szesnastkowo) i instruuje jądro poprzez
663 wywołanie systemowe readahead (pod Linuksem) lub posix_fadvise do
664 wczesnego odczytu tych danych do bufora cache.
665
666 Ten moduł jest przydatny dla klientów Windows Vista odczytujących dane
667 przy użyciu programu Windows Explorer, który asynchronicznie wykonuje
668 wiele żądań odczytu plików spod pozycji o wielokrotnościach 0x80000
669 bajtów.
670
671 %package vfs-readonly
672 Summary:        VFS module for read-only limitation for specified share
673 Summary(pl.UTF-8):      Moduł VFS do ograniczania określonego udziału tylko do odczytu
674 Group:          Networking/Daemons
675 Requires:       %{name} = %{version}-%{release}
676
677 %description vfs-readonly
678 This module performs a read-only limitation for specified share (or
679 all of them if it is loaded in a [global] section) based on period
680 definition in smb.conf.
681
682 %description vfs-readonly -l pl.UTF-8
683 Ten moduł wprowadza ograniczenie tylko do odczytu dla określonego
684 udziału (lub wszystkich, jeśli jest wczytywany w sekcji [global]) w
685 oparciu o definicje okresów w smb.conf.
686
687 %package vfs-shadow_copy
688 Summary:        VFS module to make automatic copy of data in samba share
689 Summary(pl.UTF-8):      Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby
690 Group:          Networking/Daemons
691 Requires:       %{name} = %{version}-%{release}
692
693 %description vfs-shadow_copy
694 VFS module to make automatic copy of data in samba share.
695
696 %description vfs-shadow_copy -l pl.UTF-8
697 Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby.
698
699 %package vfs-catia
700 Summary:        VFS module to fix Catia CAD filenames
701 Group:          Networking/Daemons
702 Requires:       %{name} = %{version}-%{release}
703
704 %description vfs-catia
705 The Catia CAD package commonly creates filenames that use characters
706 that are illegal in CIFS filenames. The vfs_catia VFS module
707 implements a fixed character mapping so that these files can be shared
708 with CIFS clients.
709
710 %package vfs-scannedonly
711 Summary:        Anti-virus solution as VFS module
712 Group:          Networking/Daemons
713 Requires:       %{name} = %{version}-%{release}
714
715 %description vfs-scannedonly
716 The vfs_scannedonly VFS module ensures that only files that have been
717 scanned for viruses are visible and accessible to the end user. If
718 non-scanned files are found an anti-virus scanning daemon is notified.
719
720 %package -n openldap-schema-samba
721 Summary:        Samba LDAP schema
722 Summary(pl.UTF-8):      Schemat LDAP dla samby
723 Group:          Networking/Daemons
724 Requires(post,postun):  sed >= 4.0
725 Requires:       openldap-servers
726
727 %description -n openldap-schema-samba
728 This package contains samba.schema for openldap.
729
730 %description -n openldap-schema-samba -l pl.UTF-8
731 Ten pakiet zawiera schemat samby dla openldap-a.
732
733 %package -n python-samba4
734 Summary:        Samba Module for Python
735 Group:          Development/Languages/Python
736 %pyrequires_eq  python
737 Requires:       %{name}-common = %{version}-%{release}
738
739 %description -n python-samba4
740 Samba Module for Python.
741
742 %prep
743 %setup -q -n samba-%{version}
744 %patch0 -p1
745 %patch1 -p1
746 %patch3 -p1
747 %patch4 -p1
748
749 %build
750 LDFLAGS="${LDFLAGS:-%rpmldflags}" \
751 CFLAGS="${CFLAGS:-%rpmcflags}" \
752 CXXFLAGS="${CXXFLAGS:-%rpmcxxflags}" \
753 FFLAGS="${FFLAGS:-%rpmcflags}" \
754 FCFLAGS="${FCFLAGS:-%rpmcflags}" \
755 CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \
756 %{?__cc:CC="%{__cc}"} \
757 %{?__cxx:CXX="%{__cxx}"} \
758 ./configure \
759         --enable-fhs \
760         --prefix=%{_prefix} \
761         --exec-prefix=%{_exec_prefix} \
762         --bindir=%{_bindir} \
763         --sbindir=%{_sbindir} \
764         --sysconfdir=%{_sysconfdir} \
765         --datadir=%{_datadir} \
766         --includedir=%{_includedir} \
767         --libdir=%{_libdir} \
768         --libexecdir=%{_libexecdir} \
769         --localstatedir=%{_localstatedir} \
770         --sharedstatedir=%{_sharedstatedir} \
771         --mandir=%{_mandir} \
772         --infodir=%{_infodir} \
773         --with-privatelibdir=%{_libdir}/samba \
774         --with-modulesdir=%{_libdir}/samba \
775         --with-pammodulesdir=/%{_lib}/security \
776         --with-lockdir=/var/lib/samba \
777         --with-privatedir=%{_sysconfdir}/samba \
778         --disable-gnutls \
779         --disable-rpath-install \
780         --builtin-libraries=ccan \
781         --bundled-libraries=NONE,subunit,iniparser,%{!?with_system_libs:talloc,tdb,ldb,tevent,pytalloc,pytalloc-util,pytdb,pytevent,pyldb,pyldb-util} \
782         --private-libraries=smbclient,smbsharemodes,wbclient \
783         --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2,pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4,auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4 \
784         --with-acl-support \
785         --with%{!?with_ads:out}-ads \
786         --with-aio-support \
787         --with-automount \
788         --with-dmapi \
789         --with-dnsupdate \
790         --with-iconv \
791         --with%{!?with_ldap:out}-ldap \
792         --with-pam \
793         --with-pam_smbpass \
794         --with-quotas \
795         --with-sendfile-support \
796         --with-swat \
797         --with-syslog \
798         --with-utmp \
799         --with-winbind \
800         --%{?with_avahi:en}%{!?with_avahi:dis}able-avahi \
801         --enable-cups \
802         --enable-iprint
803
804 %{__make}
805
806 %install
807 rm -rf $RPM_BUILD_ROOT
808 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
809         $RPM_BUILD_ROOT{/var/{log/archive,spool}/samba,/var/lib/samba/printing} \
810         $RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \
811         $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_libdir}/samba/vfs,%{_includedir},%{_sambahome},%{schemadir}} \
812         $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir}}
813
814 %{__make} install \
815         DESTDIR=$RPM_BUILD_ROOT \
816         CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba
817
818 install -p source3/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
819
820 install packaging/systemd/samba.conf.tmp $RPM_BUILD_ROOT%{systemdtmpfilesdir}/samba.conf
821 install packaging/systemd/nmb.service $RPM_BUILD_ROOT%{systemdunitdir}
822 install packaging/systemd/samba.service $RPM_BUILD_ROOT%{systemdunitdir}
823 install packaging/systemd/smb.service $RPM_BUILD_ROOT%{systemdunitdir}
824 install packaging/systemd/winbind.service $RPM_BUILD_ROOT%{systemdunitdir}
825
826 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
827 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
828 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
829 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
830 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
831 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
832 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
833 cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/winbind
834
835 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libnss_winbind.so* $RPM_BUILD_ROOT/%{_lib}
836 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libnss_wins.so* $RPM_BUILD_ROOT/%{_lib}
837 install -p bin/vfstest $RPM_BUILD_ROOT%{_bindir}
838
839 # these are needed to build samba-pdbsql
840 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/nsswitch
841 cp -a source3/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
842 cp -a nsswitch/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/nsswitch
843 %if %{without system_libtdb}
844 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
845 cp -a lib/tdb/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
846 %endif
847
848 touch $RPM_BUILD_ROOT/var/lib/samba/{wins.dat,browse.dat}
849
850 echo '127.0.0.1 localhost' > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
851
852 %if %{with cups}
853 install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend
854 ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb
855 %endif
856
857 > $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
858 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
859
860 %if %{with ldap}
861 install examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir}
862 %endif
863
864 %if %{with system_libtdb}
865 # remove manuals of tdb if system lib used
866 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/tdbbackup.8*
867 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/tdbdump.8*
868 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/tdbtool.8*
869 %endif
870
871 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
872 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
873 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" -o -name "*.a" -o -name "*.la" | xargs rm -f
874
875 %clean
876 rm -rf $RPM_BUILD_ROOT
877
878 %post
879 /sbin/chkconfig --add smb
880 if [ -f /var/lock/samba/connections.tdb -a ! -f /var/lib/samba/connections.tdb ]; then
881         echo >&2 "Moving old /var/lock/samba contents to /var/lib/samba"
882         /sbin/service smb stop >&2
883         mv -f /var/lock/samba/*.tdb /var/lib/samba 2>/dev/null || :
884         mv -f /var/lock/samba/*.dat /var/lib/samba 2>/dev/null || :
885         if [ -d /var/lock/samba/printing ]; then
886                 mv -f /var/lock/samba/printing/*.tdb /var/lib/samba/printing 2>/dev/null || :
887         fi
888         /sbin/service smb start >&2
889 else
890         %service smb restart "Samba daemons"
891 fi
892
893 %preun
894 if [ "$1" = "0" ]; then
895         %service smb stop
896         /sbin/chkconfig --del smb
897 fi
898
899 %post winbind
900 /sbin/chkconfig --add winbind
901 %service winbind restart "Winbind daemon"
902
903 %preun winbind
904 if [ "$1" = "0" ]; then
905         %service winbind stop
906         /sbin/chkconfig --del winbind
907 fi
908
909 %post swat
910 %service -q rc-inetd reload
911
912 %postun swat
913 if [ "$1" = 0 ]; then
914         %service -q rc-inetd reload
915 fi
916
917 %post -n openldap-schema-samba
918 # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
919 %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis
920 %service -q ldap restart
921
922 %postun -n openldap-schema-samba
923 if [ "$1" = "0" ]; then
924         %openldap_schema_unregister %{schemadir}/samba.schema
925         %service -q ldap restart
926 fi
927
928 %files
929 %defattr(644,root,root,755)
930 %attr(755,root,root) %{_sbindir}/nmbd
931 %attr(755,root,root) %{_sbindir}/smbd
932 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
933 %attr(755,root,root) %{_bindir}/reg*
934 %attr(755,root,root) %{_bindir}/smbstatus
935 %attr(755,root,root) %{_bindir}/smbpasswd
936 %attr(755,root,root) %{_bindir}/smbta-util
937 %attr(755,root,root) %{_bindir}/smbcontrol
938
939 %dir %{_libdir}/samba/idmap
940 %attr(755,root,root)  %{_libdir}/samba/idmap/autorid.so
941 %{_mandir}/man8/idmap_autorid.8*
942 %dir %{_libdir}/samba/pdb
943 %dir %{_libdir}/samba/vfs
944 %attr(755,root,root) %{_libdir}/samba/vfs/acl_tdb.so
945 %attr(755,root,root) %{_libdir}/samba/vfs/acl_xattr.so
946 %attr(755,root,root) %{_libdir}/samba/vfs/aio_fork.so
947 %attr(755,root,root) %{_libdir}/samba/vfs/crossrename.so
948 %attr(755,root,root) %{_libdir}/samba/vfs/dirsort.so
949 %attr(755,root,root) %{_libdir}/samba/vfs/fileid.so
950 %attr(755,root,root) %{_libdir}/samba/vfs/linux_xfs_sgid.so
951 %attr(755,root,root) %{_libdir}/samba/vfs/preopen.so
952 %attr(755,root,root) %{_libdir}/samba/vfs/shadow_copy2.so
953 %attr(755,root,root) %{_libdir}/samba/vfs/smb_traffic_analyzer.so
954 %attr(755,root,root) %{_libdir}/samba/vfs/streams_depot.so
955 %attr(755,root,root) %{_libdir}/samba/vfs/streams_xattr.so
956 %attr(755,root,root) %{_libdir}/samba/vfs/syncops.so
957 %attr(755,root,root) %{_libdir}/samba/vfs/time_audit.so
958 %attr(755,root,root) %{_libdir}/samba/vfs/xattr_tdb.so
959 %{_datadir}/samba/setup
960 %{_mandir}/man8/vfs_acl_tdb.8*
961 %{_mandir}/man8/vfs_acl_xattr.8*
962 %{_mandir}/man8/vfs_crossrename.8*
963 %{_mandir}/man8/vfs_dirsort.8*
964 %{_mandir}/man8/vfs_fileid.8*
965 %{_mandir}/man8/vfs_preopen.8*
966 %{_mandir}/man8/vfs_shadow_copy2.8*
967 %{_mandir}/man8/vfs_smb_traffic_analyzer.8*
968 %{_mandir}/man8/vfs_streams_xattr.8*
969 %{_mandir}/man8/vfs_streams_depot.8*
970 %{_mandir}/man8/vfs_time_audit.8*
971 %{_mandir}/man8/vfs_xattr_tdb.8*
972
973
974 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smbusers
975 %attr(754,root,root) /etc/rc.d/init.d/smb
976 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/samba
977 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba
978 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/samba
979 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.samba
980 %{_mandir}/man1/log2pcap.1*
981 %{_mandir}/man1/smbstatus.1*
982 %{_mandir}/man1/smbcontrol.1*
983 %{_mandir}/man5/smbpasswd.5*
984 %{_mandir}/man7/samba.7*
985 %{_mandir}/man8/nmbd.8*
986 %{_mandir}/man8/smbd.8*
987 %{_mandir}/man8/smbpasswd.8*
988
989 %dir %{_sambahome}
990 %dir /var/lib/samba
991 %ghost /var/lib/samba/*.dat
992 %dir /var/lib/samba/printing
993
994 %attr(750,root,root) %dir /var/log/samba
995 %attr(750,root,root) %dir /var/log/samba/cores
996 %attr(750,root,root) %dir /var/log/samba/cores/smbd
997 %attr(750,root,root) %dir /var/log/samba/cores/nmbd
998 %attr(750,root,root) %dir /var/log/archive/samba
999 %attr(1777,root,root) %dir /var/spool/samba
1000 %if %{with ldap}
1001 %doc examples/LDAP
1002 %endif
1003
1004 %files winbind
1005 %defattr(644,root,root,755)
1006 %attr(755,root,root) %{_sbindir}/winbindd
1007 %attr(755,root,root) %{_bindir}/wbinfo
1008 #%attr(755,root,root) %{_bindir}/wbinfo4
1009 %attr(755,root,root) /%{_lib}/security/pam_winbind*
1010 %attr(755,root,root) /%{_lib}/libnss_winbind*
1011 %attr(754,root,root) /etc/rc.d/init.d/winbind
1012 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/winbind
1013 %{_mandir}/man1/wbinfo*.1*
1014 %{_mandir}/man5/pam_winbind.conf.5*
1015 %{_mandir}/man8/pam_winbind.8*
1016 %{_mandir}/man8/winbindd*.8*
1017
1018 %files -n nss_wins
1019 %defattr(644,root,root,755)
1020 %attr(755,root,root) /%{_lib}/libnss_wins*
1021
1022 %files client
1023 %defattr(644,root,root,755)
1024 %attr(755,root,root) %{_bindir}/nmblookup4
1025 %attr(755,root,root) %{_bindir}/smbclient4
1026 %attr(755,root,root) %{_bindir}/net
1027 %attr(755,root,root) %{_bindir}/nmblookup
1028 %attr(755,root,root) %{_bindir}/rpcclient
1029 %attr(755,root,root) %{_bindir}/sharesec
1030 %attr(755,root,root) %{_bindir}/smbcacls
1031 %attr(755,root,root) %{_bindir}/smbclient
1032 %attr(755,root,root) %{_bindir}/smbtree
1033 %{_mandir}/man1/findsmb.1*
1034 %{_mandir}/man1/nmblookup.1*
1035 %{_mandir}/man1/rpcclient.1*
1036 %{_mandir}/man1/sharesec.1*
1037 %{_mandir}/man1/smbcacls.1*
1038 %{_mandir}/man1/smbclient.1*
1039 %{_mandir}/man1/smbtar.1*
1040 %{_mandir}/man1/smbtree.1*
1041 %{_mandir}/man8/net.8*
1042
1043 %files common
1044 %defattr(644,root,root,755)
1045 %doc README WHATSNEW.txt Roadmap
1046 %dir %{_sysconfdir}/samba
1047 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf
1048 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts
1049 %attr(755,root,root) %{_bindir}/eventlogadm
1050 %attr(755,root,root) %{_bindir}/ntlm_auth
1051 %attr(755,root,root) %{_bindir}/pdbedit
1052 %attr(755,root,root) %{_bindir}/profiles
1053 %attr(755,root,root) %{_bindir}/smbcquotas
1054 %attr(755,root,root) %{_bindir}/testparm
1055 %attr(755,root,root) %{_bindir}/vfstest
1056 %dir %{_libdir}/samba
1057 %dir %{_libdir}/samba/auth
1058 %attr(755,root,root) %{_libdir}/samba/auth/script.so
1059 %{_datadir}/samba/codepages/lowcase.dat
1060 %{_datadir}/samba/codepages/upcase.dat
1061 %{_datadir}/samba/codepages/valid.dat
1062 %{_mandir}/man1/ntlm_auth.1*
1063 %{_mandir}/man1/profiles.1*
1064 %{_mandir}/man1/smbcquotas.1*
1065 %{_mandir}/man1/testparm.1*
1066 %{_mandir}/man1/vfstest.1*
1067 #%{_mandir}/man1/log2pcap.1*
1068 %{_mandir}/man5/lmhosts.5*
1069 %{_mandir}/man5/smb.conf.5*
1070 %{_mandir}/man8/pdbedit.8*
1071 %{_mandir}/man8/eventlogadm.8*
1072 %{_mandir}/man8/idmap_ad.8*
1073 %{_mandir}/man8/idmap_hash.8*
1074 %{_mandir}/man8/idmap_ldap.8*
1075 %{_mandir}/man8/idmap_nss.8*
1076 %{_mandir}/man8/idmap_rid.8*
1077 %{_mandir}/man8/idmap_tdb.8*
1078 %{_mandir}/man8/idmap_tdb2.8*
1079 %if %{without system_libs}
1080 %attr(755,root,root) %{_bindir}/tdbbackup
1081 %attr(755,root,root) %{_bindir}/tdbdump
1082 %attr(755,root,root) %{_bindir}/tdbtool
1083 %attr(755,root,root) %{_libdir}/samba/libtalloc.so.*
1084 %attr(755,root,root) %{_libdir}/samba/libtdb.so.*
1085 %{_mandir}/man8/tdbbackup.8*
1086 %{_mandir}/man8/tdbdump.8*
1087 %{_mandir}/man8/tdbtool.8*
1088 %endif
1089
1090 %files swat
1091 %defattr(644,root,root,755)
1092 #%doc swat/README* swat/help/*
1093 %doc swat/help/*
1094 %attr(755,root,root) %{_sbindir}/swat
1095 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/swat
1096 %dir %{_datadir}/samba/swat
1097 %{_datadir}/samba/swat/help
1098 %{_datadir}/samba/swat/images
1099 %{_datadir}/samba/swat/include
1100 %dir %{_datadir}/samba/swat/lang
1101 %lang(ja) %{_datadir}/samba/swat/lang/ja
1102 %lang(tr) %{_datadir}/samba/swat/lang/tr
1103 %lang(de) %{_datadir}/samba/codepages/de.msg
1104 %{_datadir}/samba/codepages/en.msg
1105 %lang(fi) %{_datadir}/samba/codepages/fi.msg
1106 %lang(fr) %{_datadir}/samba/codepages/fr.msg
1107 %lang(it) %{_datadir}/samba/codepages/it.msg
1108 %lang(ja) %{_datadir}/samba/codepages/ja.msg
1109 %lang(nl) %{_datadir}/samba/codepages/nl.msg
1110 %lang(pl) %{_datadir}/samba/codepages/pl.msg
1111 %lang(ru) %{_datadir}/samba/codepages/ru*
1112 %lang(tr) %{_datadir}/samba/codepages/tr.msg
1113 %{_mandir}/man8/swat.8*
1114
1115 %files -n pam-pam_smbpass
1116 %defattr(644,root,root,755)
1117 %doc source3/pam_smbpass/{CHAN*,README,TODO} source3/pam_smbpass/samples
1118 %attr(755,root,root) /%{_lib}/security/pam_smbpass.so
1119
1120 %files -n libsmbclient
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) %{_libdir}/samba/libsmbclient.so.*
1123 %attr(755,root,root) %{_libdir}/samba/libwbclient.so.*
1124 %{_mandir}/man7/libsmbclient.7*
1125
1126 %files -n libsmbclient-devel
1127 %defattr(644,root,root,755)
1128 #%attr(755,root,root) %{_libdir}/samba/libsmbclient.so
1129 #%attr(755,root,root) %{_libdir}/samba/libwbclient.so
1130 #%{_includedir}/libsmbclient.h
1131 #%{_includedir}/wbclient.h
1132
1133 %files devel
1134 %defattr(644,root,root,755)
1135 %{_includedir}/%{name}
1136 %{_includedir}/samba-4.0
1137
1138 %files -n smbget
1139 %defattr(644,root,root,755)
1140 %attr(755,root,root) %{_bindir}/smbget
1141 %{_mandir}/man1/smbget.1*
1142 %{_mandir}/man5/smbgetrc.5*
1143
1144 %if %{with cups}
1145 %files -n cups-backend-smb
1146 %defattr(644,root,root,755)
1147 %attr(755,root,root) %{_bindir}/smbspool
1148 %attr(755,root,root) %{cups_serverbin}/backend/smb
1149 %{_mandir}/man8/smbspool.8*
1150 %endif
1151
1152 %files vfs-audit
1153 %defattr(644,root,root,755)
1154 %attr(755,root,root) %{_libdir}/samba/vfs/audit.so
1155 %attr(755,root,root) %{_libdir}/samba/vfs/extd_audit.so
1156 %attr(755,root,root) %{_libdir}/samba/vfs/full_audit.so
1157 %{_mandir}/man8/vfs_audit.8*
1158 %{_mandir}/man8/vfs_extd_audit.8*
1159 %{_mandir}/man8/vfs_full_audit.8*
1160
1161 %files vfs-cap
1162 %defattr(644,root,root,755)
1163 %attr(755,root,root) %{_libdir}/samba/vfs/cap.so
1164 %{_mandir}/man8/vfs_cap.8*
1165
1166 %files vfs-default_quota
1167 %defattr(644,root,root,755)
1168 %attr(755,root,root) %{_libdir}/samba/vfs/default_quota.so
1169 %{_mandir}/man8/vfs_default_quota.8*
1170
1171 %files vfs-expand_msdfs
1172 %defattr(644,root,root,755)
1173 %attr(755,root,root) %{_libdir}/samba/vfs/expand_msdfs.so
1174
1175 %files vfs-fake_perms
1176 %defattr(644,root,root,755)
1177 %attr(755,root,root) %{_libdir}/samba/vfs/fake_perms.so
1178 %{_mandir}/man8/vfs_fake_perms.8*
1179
1180 #%files vfs-notify_fam
1181 #%defattr(644,root,root,755)
1182 #%attr(755,root,root) %{_libdir}/samba/vfs/notify_fam.so
1183 #%{_mandir}/man8/vfs_notify_fam.8*
1184
1185 %files vfs-netatalk
1186 %defattr(644,root,root,755)
1187 %attr(755,root,root) %{_libdir}/samba/vfs/netatalk.so
1188 %{_mandir}/man8/vfs_netatalk.8*
1189
1190 %files vfs-readahead
1191 %defattr(644,root,root,755)
1192 %attr(755,root,root) %{_libdir}/samba/vfs/readahead.so
1193 %{_mandir}/man8/vfs_readahead.8*
1194
1195 %files vfs-readonly
1196 %defattr(644,root,root,755)
1197 %attr(755,root,root) %{_libdir}/samba/vfs/readonly.so
1198 %{_mandir}/man8/vfs_readonly.8*
1199
1200 %files vfs-recycle
1201 %defattr(644,root,root,755)
1202 %attr(755,root,root) %{_libdir}/samba/vfs/recycle.so
1203 %{_mandir}/man8/vfs_recycle.8*
1204
1205 %files vfs-shadow_copy
1206 %defattr(644,root,root,755)
1207 %attr(755,root,root) %{_libdir}/samba/vfs/shadow_copy.so
1208 %{_mandir}/man8/vfs_shadow_copy.8*
1209
1210 %files vfs-catia
1211 %defattr(644,root,root,755)
1212 %attr(755,root,root) %{_libdir}/samba/vfs/catia.so
1213 %{_mandir}/man8/vfs_catia.8*
1214
1215 %files vfs-scannedonly
1216 %defattr(644,root,root,755)
1217 %attr(755,root,root) %{_libdir}/samba/vfs/scannedonly.so
1218 %{_mandir}/man8/vfs_scannedonly.8*
1219
1220 %if %{with ldap}
1221 %files -n openldap-schema-samba
1222 %defattr(644,root,root,755)
1223 %{schemadir}/*.schema
1224 %endif
1225
1226 %files -n python-samba4
1227 %defattr(644,root,root,755)
1228 %dir %{py_sitedir}/samba
1229 %attr(755,root,root) %{py_sitedir}/samba/*.so
1230 %{py_sitedir}/samba/*.py[co]
1231 %dir %{py_sitedir}/samba/dcerpc
1232 %{py_sitedir}/samba/dcerpc/*.py[co]
1233 %attr(755,root,root) %{py_sitedir}/samba/dcerpc/*.so
1234 %dir %{py_sitedir}/samba/external
1235 %{py_sitedir}/samba/external/*.py[co]
1236 %dir %{py_sitedir}/samba/external/subunit
1237 %{py_sitedir}/samba/external/subunit/*.py[co]
1238 %dir %{py_sitedir}/samba/external/subunit/tests
1239 %{py_sitedir}/samba/external/subunit/tests/*.py[co]
1240 %dir %{py_sitedir}/samba/external/testtools
1241 %{py_sitedir}/samba/external/testtools/*.py[co]
1242 %dir %{py_sitedir}/samba/external/testtools/testresult
1243 %{py_sitedir}/samba/external/testtools/testresult/*.py[co]
1244 %dir %{py_sitedir}/samba/external/testtools/tests
1245 %{py_sitedir}/samba/external/testtools/tests/*.py[co]
1246 %dir %{py_sitedir}/samba/netcmd
1247 %{py_sitedir}/samba/netcmd/*.py[co]
1248 %dir %{py_sitedir}/samba/provision
1249 %{py_sitedir}/samba/provision/*.py[co]
1250 %dir %{py_sitedir}/samba/samba3
1251 %attr(755,root,root) %{py_sitedir}/samba/samba3/*.so
1252 %{py_sitedir}/samba/samba3/*.py[co]
1253 %dir %{py_sitedir}/samba/tests
1254 %{py_sitedir}/samba/tests/*.py[co]
1255 %dir %{py_sitedir}/samba/tests/blackbox
1256 %{py_sitedir}/samba/tests/blackbox/*.py[co]
1257 %dir %{py_sitedir}/samba/tests/samba_tool
1258 %{py_sitedir}/samba/tests/samba_tool/*.py[co]
1259 %dir %{py_sitedir}/samba/tests/dcerpc
1260 %{py_sitedir}/samba/tests/dcerpc/*.py[co]
1261 %dir %{py_sitedir}/samba/web_server
1262 %{py_sitedir}/samba/web_server/*.py[co]
1263 %if %{without system_libs}
1264 %attr(755,root,root) %{py_sitedir}/*.so
1265 %{py_sitedir}/tevent.py[co]
1266 %endif
This page took 0.412272 seconds and 2 git commands to generate.