]> git.pld-linux.org Git - packages/samba.git/blob - samba.spec
- drop bogus es translations
[packages/samba.git] / samba.spec
1 # TODO:
2 # - look into other distro specs for valid %descriptions for samba 3
3 #
4 # Conditional build:
5 %bcond_without  ads             # without ActiveDirectory support
6 %bcond_without  cups            # without CUPS support
7 %bcond_without  krb5            # without Kerberos5/Heimdal support
8 %bcond_without  ldap            # without LDAP support
9 %bcond_without  python          # without python libs/utils
10
11 # ADS requires krb5 and LDAP
12 %if !%{with krb5} || !%{with ldap}
13 %undefine       with_ads
14 %endif
15 %define         vscan_version 0.3.6b
16 Summary:        SMB server
17 Summary(cs.UTF-8):      Server SMB
18 Summary(da.UTF-8):      SMB server
19 Summary(de.UTF-8):      SMB-Server
20 Summary(es.UTF-8):      El servidor SMB
21 Summary(fi.UTF-8):      SMB-palvelin
22 Summary(fr.UTF-8):      Serveur SMB
23 Summary(it.UTF-8):      Server SMB
24 Summary(ja.UTF-8):      Samba SMB サーバー
25 Summary(ko.UTF-8):      삼바 SMB 서버
26 Summary(pl.UTF-8):      Serwer SMB
27 Summary(pt_BR.UTF-8):   Cliente e servidor SMB
28 Summary(ru.UTF-8):      SMB клиент и сервер
29 Summary(tr.UTF-8):      SMB sunucusu
30 Summary(uk.UTF-8):      SMB клієнт та сервер
31 Summary(zh_CN.UTF-8):   Samba 客户端和服务器
32 Name:           samba
33 Version:        3.0.23d
34 Release:        4
35 Epoch:          1
36 License:        GPL v2
37 Group:          Networking/Daemons
38 Source0:        http://us1.samba.org/samba/ftp/%{name}-%{version}.tar.gz
39 # Source0-md5:  afe6923d05fed5b5ccab593c7a407cd1
40 Source1:        smb.init
41 Source2:        %{name}.pamd
42 Source3:        swat.inetd
43 Source4:        %{name}.sysconfig
44 Source5:        %{name}.logrotate
45 Source6:        smb.conf
46 Source7:        http://dl.sourceforge.net/openantivirus/%{name}-vscan-%{vscan_version}.tar.bz2
47 # Source7-md5:  900502ba36b80620229b94e5129bc856
48 Source8:        winbind.init
49 Source9:        winbind.sysconfig
50 Patch0:         %{name}-lib64.patch
51 Patch1:         %{name}-FHS.patch
52 Patch2:         %{name}-c++-nofail.patch
53 Patch3:         %{name}-pthread.patch
54 Patch4:         %{name}-libsmbclient-libnscd_link.patch
55 URL:            http://www.samba.org/
56 BuildRequires:  acl-devel
57 BuildRequires:  autoconf
58 BuildRequires:  automake
59 %{?with_cups:BuildRequires:     cups-devel >= 1:1.2.0}
60 BuildRequires:  dmapi-devel
61 %{?with_krb5:BuildRequires:     heimdal-devel >= 0.7}
62 BuildRequires:  iconv
63 BuildRequires:  libnscd-devel
64 BuildRequires:  libmagic-devel
65 BuildRequires:  libtool >= 2:1.4d
66 BuildRequires:  ncurses-devel >= 5.2
67 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
68 BuildRequires:  openssl-devel >= 0.9.7d
69 BuildRequires:  pam-devel > 0.66
70 BuildRequires:  popt-devel
71 %{?with_pgsql:BuildRequires:    postgresql-devel}
72 %if %{with python}
73 BuildRequires:  python-devel
74 BuildRequires:  rpm-pythonprov
75 %endif
76 BuildRequires:  readline-devel >= 4.2
77 BuildRequires:  rpmbuild(macros) >= 1.304
78 BuildRequires:  xfsprogs-devel
79 Requires(post,preun):   /sbin/chkconfig
80 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
81 Requires:       logrotate
82 Requires:       pam >= 0.66
83 Requires:       rc-scripts
84 Requires:       setup >= 2.4.6-7
85 # smbd links with libcups
86 %{?with_cups:Requires:  cups-lib >= 1:1.2.0}
87 Obsoletes:      samba-pdb-xml
88 Obsoletes:      samba-vfs-block
89 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
90
91 %define         _vfsdir         %{_libdir}/%{name}/vfs
92 %define         _sambahome      /home/services/samba
93 %if %{with cups}
94 %define         cups_serverbin  %{_prefix}/lib/cups
95 %endif
96 %define         schemadir       /usr/share/openldap/schema
97
98 # CFLAGS modified (the second ./configure)
99 %undefine       configure_cache
100
101 %description
102 Samba provides an SMB server which can be used to provide network
103 services to SMB (sometimes called "Lan Manager") clients, including
104 various versions of MS Windows, OS/2, and other Linux machines. Samba
105 also provides some SMB clients, which complement the built-in SMB
106 filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols
107 and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol.
108
109 This release is known as the "Locking Update" and has full support for
110 Opportunistic File Locking. In addition this update includes native
111 support for Microsoft encrypted passwords, improved browse list and
112 WINS database management.
113
114 Please refer to the WHATSNEW.txt document for fixup information. This
115 binary release includes encrypted password support. Please read the
116 smb.conf file for implementation details.
117
118 %description -l cs.UTF-8
119 Samba poskytuje server SMB, který lze použít pro poskytování síťových
120 služeb klientům SMB (někdy nazývaných klienti "LAN manažer") včetně
121 klientů různých verzí MS Windows, OS/2 a dalších linuxových strojů.
122 Samba též poskytuje některé klienty SMB, kteří komplementují vestavěný
123 souborový systém SMB v Linuxu. Samba používá protokoly NetBIOS přes
124 TCP/IP (NetBT) a NEpotřebuje protokol NetBEUI (neformátovaný rámec
125 NetBIOS od společnosti Microsoft.
126
127 %description -l da.UTF-8
128 Samba tilbyder en SMB server som kan bruges til at tilbyde netværk
129 services til SMB (også kaldet "Lan Manager") klienter, incl.
130 forskellige versioner af MS Windows, OS/2, og andre Linux maskiner.
131 Samba tilbyder også SMB klienter, som udbygger det indbyggede SMB
132 filsystem i Linux. Samba benytter NetBIOS over TCP/IP (NetBT)
133 protocolen og kræver ikke NetBEUI (Microsoft Raw NetBIOS frame)
134 protokollen.
135
136 %description -l de.UTF-8
137 Samba stellt einen SMB-Server zum Anbieten von Netzwerkdiensten für
138 SMB-Clients (auch "Lan Manager" genannt) zur Verfügung, darunter
139 verschiedenen Versionen von MS Windows-, OS/2- und anderen
140 Linux-Rechnern. Samba enthält außerdem einige SMB-Clients, die das in
141 Linux integrierte SMB-Dateisystem ergänzen. Samba benutzt
142 NetBIOS-über-TCP/IP (NetBT)-Protokolle und benötigt KEIN NetBEUI
143 (Microsoft Raw NetBIOS frame)-Protokoll.
144
145 %description -l es.UTF-8
146 Samba provee un servidor SMB que se puede usar para ofrecer servicios
147 de red a clientes SMB (algunas veces se le llama de "Lan Manager"),
148 incluyendo varias versiones de MS Windows, OS/2, y otras máquinas
149 Linux. Samba también ofrece algunos clientes SMB, que complementan el
150 sistema de archivos SMB de Linux. Samba usa el protocolo NetBIOS sobre
151 TCP/IP (NetBT) y no necesita del protocolo NetBEUI (Microsoft Raw
152 NetBIOS frame).
153
154 %description -l fi.UTF-8
155 Samba on SMB-palvelin, jota voidaan käyttää SMB-asiakasohjelmien
156 verkkopalvelujen tarjoajana. SMB-protokollaa kutsutaan joskus "Lan
157 Manager" protokollaksi ja asiakasohjelmat toimivat dosissa,
158 Windowseissa, OS/2:ssa ja toisissa Linux-koneissa. Samban mukana on
159 myös joitakin SMB-asiakasohjelmia, jotka täydentävät Linuxin
160 kernelissä olevaa SMB-tiedostojärjestelmän tukea. Samba vaatii NetBIOS
161 over TCP/IP (NetBT) protokollaa eikä tarvitse tai pysty käyttämään
162 NetBEUI-protokollaa.
163
164 %description -l it.UTF-8
165 Samba fornisce un server SMB che puo` essere usato per fornire servizi
166 di rete ai client SMB, incluse le versioni MS Windows, OS/2 e per
167 altre macchine Linux. Samba fornisce anche i client SMB. Samba usa
168 NetBIOS sopra TCP/IP e non ha bisogno del protocollo NetBEUI.
169
170 %description -l ja.UTF-8
171 Samba は MS Windows の様々なバージョン、OS/2 そして他の Linux マシン
172 を含む SMB (たまに "Lan Manager" と呼ばれる)
173 クライアントにネットワーク サービスを提供するために使用される SMB
174 サーバを提供します。Samba は NetBIOS over TCP/IP (NetBT)
175 プロトコルを使用し、 NetBEUI(Microsoft Raw NetBIOS frame)
176 プロトコルは必要ありません。
177
178 Samba ほとんど動作する NT ドメインコントロールの機能を特徴とし、
179 好きなブラウザを使って samba の smb.conf ファイルをリモート管理する
180 新しい SWAT (Samba Web Administration Tool) を含みます。
181 目下のところこれは inetd を通して TCP ポート 901 で有効になります。
182
183 %description -l ko.UTF-8
184 삼바는 MS Windows, OS/2, 혹은 다른 리눅스 머신을 포함하는 SMB(혹은
185 "Lan Manager"라고도 불림) 클라이언트를 네트워크 서비스 위해 사용할 수
186 있는 SMB 서버를 제공한다. 삼바는 TCP/IP 프로토콜을 통해 NetBIOS를
187 사용하고 NetBEUI (Microsoft Raw NetBIOS 프레임) 프로토콜은 필요하지
188 않다.
189
190 삼바-2.2 의 특징은 NT 도메인 컨트롤의 성능으로 작업을 하고, 새로운
191 SWAT(Samba Web Administration Tool)로 웹브라우저를 사용하여 원격지에서
192 삼바의 smb.conf 파일을 관리하도록 한다. 이러한 경우 inetd 데몬을 통해
193 TCP 901 포트를 사용하게 된다.
194
195 최근 정보로 WHATSNEW.txt 파일의 문서를 참고하도록 한다. 바이너리의
196 릴리즈는 암호화된 패스워드를 제공한다.
197
198 %description -l pl.UTF-8
199 Samba udostępnia serwer SMB, który może być użyty w celu dostarczenia
200 usług sieciowych (potocznie zwanych "Lan Manager"), dla klientów
201 takich jak MS Windows, OS/2 a także maszyn linuksowych. W pakiecie
202 znajduje się również oprogramowanie klienckie. Samba używa protokołu
203 NetBIOS po TCP/IP (NetBT) i nie wymaga protokołu NetBEUI. Ta wersja ma
204 pełne wsparcie dla blokowania plików, a także wsparcie dla kodowania
205 haseł w standardzie MS i zarządzania bazą WINS.
206
207 %description -l pt_BR.UTF-8
208 O Samba provê um servidor SMB que pode ser usado para oferecer
209 serviços de rede a clientes SMB (algumas vezes chamado de "Lan
210 Manager"), incluindo várias versões de MS Windows, OS/2, e outras
211 máquinas Linux. O Samba também fornece alguns clientes SMB, que
212 complementam o sistema de arquivos SMB do Linux. O Samba usa o
213 protocolo NetBIOS sobre TCP/IP (NetBT) e não necessita do protocolo
214 NetBEUI (Microsoft Raw NetBIOS frame).
215
216 O Samba inclui a maioria das características de um servidor de
217 Controle de Domínios NT e o SWAT (Samba Web Administration Tool), que
218 permite que o arquivo smb.conf seja gerenciado remotamente através de
219 um navegador. Atualmente isto está sendo habilitado na porta TCP 901
220 via inetd.
221
222 %description -l ru.UTF-8
223 Samba предоставляет SMB-сервер, который может быть использован для
224 предоставления сетевых сервисов SMB (иногда называемым "Lan Manager")
225 клиентам, включая разнообразные версии MS Windows, OS/2, и другие
226 Linux-машины. Samba также предоставляет SMB-клиентов, которые работают
227 со встроенной в Linux файловой системой SMB.
228
229 Samba использует протокол NetBIOS over TCP/IP (NetBT) и не нуждается в
230 протоколе NetBEUI (Microsoft Raw NetBIOS frame).
231
232 Samba содержит практически работающую реализацию NT Domain Control и
233 включает новый SWAT (Samba Web Administration Tool), который позволяет
234 удаленно управлять конфигурационным файлом smb.conf при помощи вашего
235 любимого WEB-броузера. Пока что он разрешен через inetd на TCP-порту
236 901.
237
238 %description -l uk.UTF-8
239 Samba надає SMB-сервер, що може бути використаний для надання
240 мережевих сервісів SMB (що їх іноді називають "Lan Manager") клієнтам,
241 включаючи різноманітні версії MS Windows, OS/2, та інші Linux-машини.
242 Samba також надає SMB-клієнтів, що працюють з вбудованою в Linux
243 файловою системою SMB.
244
245 Samba використовує протокол NetBIOS over TCP/IP (NetBT) та не потребує
246 протоколу NetBEUI (Microsoft Raw NetBIOS frame).
247
248 Samba містить майже працюючу реализацію NT Domain Control та новый
249 SWAT (Samba Web Administration Tool), котрий дозволяє віддалено
250 керувати конфігураційним файлом smb.conf за допомогою вашого
251 улюбленого WEB-броузера. Поки що він дозволений через inetd на
252 TCP-порту 901.
253
254 %package swat
255 Summary:        Samba Web Administration Tool
256 Summary(pl.UTF-8):      Narzędzie administracyjne serwisu Samba
257 Summary(pt_BR.UTF-8):   Samba SWAT e documentação Web
258 Summary(ru.UTF-8):      Программа конфигурации SMB-сервера Samba
259 Summary(uk.UTF-8):      Програма конфигурації SMB-сервера Samba
260 Group:          Networking/Admin
261 Requires:       %{name} = %{epoch}:%{version}-%{release}
262 Requires:       inetdaemon
263 Requires:       rc-inetd >= 0.8.2
264 Obsoletes:      swat
265
266 %description swat
267 swat allows a Samba administrator to configure the complex smb.conf
268 file via a Web browser. In addition, a swat configuration page has
269 help links to all the configurable options in the smb.conf file
270 allowing an administrator to easily look up the effects of any change.
271
272 %description swat -l pl.UTF-8
273 swat pozwala na kompleksową konfigurację smb.conf przy pomocy
274 przeglądarki WWW.
275
276 %description swat -l pt_BR.UTF-8
277 SWAT - ferramentada Web de configuração do Samba.
278
279 %description swat -l ru.UTF-8
280 Пакет samba-swat включает новый SWAT (Samba Web Administration Tool),
281 для удаленного администрирования файла smb.conf при помощи вашего
282 любимого Web-браузера.
283
284 %description swat -l uk.UTF-8
285 Пакет samba-swat містить новий SWAT (Samba Web Administration Tool),
286 для дистанційного адміністрування файлу smb.conf за допомогою вашого
287 улюбленого Web-браузеру.
288
289 %package client
290 Summary:        Samba client programs
291 Summary(es.UTF-8):      Cliente SMB de Samba
292 Summary(ja.UTF-8):      Samba (SMB) クライアントプログラム
293 Summary(pl.UTF-8):      Klienci serwera Samba
294 Summary(pt_BR.UTF-8):   Cliente SMB do samba
295 Summary(ru.UTF-8):      Клиентские программы Samba (SMB)
296 Summary(uk.UTF-8):      Клієнтські програми Samba (SMB)
297 Group:          Applications/Networking
298 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
299 %{?with_krb5:Requires:  heimdal-libs >= 0.7}
300 Obsoletes:      mount-cifs
301 Obsoletes:      smbfs
302
303 %description client
304 Samba-client provides some SMB clients, which complement the build-in
305 SMB filesystem in Linux. These allow accessing of SMB shares and
306 printing to SMB printers.
307
308 %description client -l pt_BR.UTF-8
309 O pacote samba-clientes prove alguns clientes SMB, que complementam o
310 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
311 e também, à impressoras SMB.
312
313 %description client -l es.UTF-8
314 Cliente SMB de Samba.
315
316 %description client -l ja.UTF-8
317 Samba-client は Linux 上に含まれている SMB ファイルシステムを補う SMB
318 クライアントを提供します。これらは SMB 共有のアクセスと SMB
319 プリンタへの印刷を許可します。
320
321 %description client -l pl.UTF-8
322 Samba-client dostarcza programy uzupełniające obsługę systemu plików
323 SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i
324 drukowanie w sieci SMB.
325
326 %description client -l pt_BR.UTF-8
327 O pacote samba-clientes prove alguns clientes SMB, que complementam o
328 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
329 e também, à impressoras SMB.
330
331 %description client -l ru.UTF-8
332 Пакет samba-client предоставляет некоторые клиенты SMB для работы со
333 встроенной файловой системой SMB в Linux. Эти клиенты позволяют
334 получать доступ к разделяемым каталогам SMB и печать на SMB-принтеры.
335
336 %description client -l uk.UTF-8
337 Пакет samba-client надає деякі клієнти SMB для роботи зі вбудованою
338 файловою системою SMB в Linux. Ці клієнти дозволяють отримувати доступ
339 до каталогів спільного використання SMB та друк на SMB-прінтери.
340
341 %package common
342 Summary:        Files used by both Samba servers and clients
343 Summary(ja.UTF-8):      Samba サーバーとクライアントで使用されるプログラム
344 Summary(pl.UTF-8):      Pliki używane przez serwer i klientów Samba
345 Summary(pt_BR.UTF-8):   Arquivos em comum entre samba e samba-clients
346 Summary(ru.UTF-8):      Файлы, используемые как сервером, так и клиентом Samba
347 Summary(uk.UTF-8):      Файли, що використовуються як сервером, так і клієнтом Samba
348 Group:          Networking/Daemons
349
350 %description common
351 Samba-common provides files necessary for both the server and client
352 packages of Samba.
353
354 %description common -l ja.UTF-8
355 Samba-common は Samba のサーバとクライアントの両方のパッケージで
356 使用されるファイルを提供します。
357
358 %description common -l pl.UTF-8
359 Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i
360 klientów Samba.
361
362 %description common -l pt_BR.UTF-8
363 Arquivos em comum entre os pacotes samba e samba-clients.
364
365 %description common -l ru.UTF-8
366 Samba-common содержит файлы, необходимые для работы как клиента, так и
367 сервера Samba.
368
369 %description common -l uk.UTF-8
370 Samba-common містить файли, необхідні для роботи як клієнта, так і
371 сервера Samba.
372
373 %package winbind
374 Summary:        Samba-winbind daemon, utilities and documentation
375 Summary(pl.UTF-8):      Demon samba-winbind, narzędzia i dokumentacja
376 Group:          Networking/Daemons
377 Requires(post,preun):   /sbin/chkconfig
378 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
379
380 %description winbind
381 Provides the winbind daemon and testing tools to allow authentication
382 and group/user enumeration from a Windows or Samba domain controller.
383
384 %description winbind -l pl.UTF-8
385 Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia
386 uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny
387 Windows lub Samba.
388
389 %package -n nss_wins
390 Summary:        Name Service Switch service for WINS
391 Summary(pl.UTF-8):      Usługa Name Service Switch dla WINS
392 Group:          Base
393 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
394
395 %description -n nss_wins
396 Provides the libnss_wins shared library which resolves NetBIOS names
397 to IP addresses.
398
399 %description -n nss_wins -l pl.UTF-8
400 Biblioteka dzielona libnss_wins rozwiązująca nazwy NetBIOS na adresy
401 IP.
402
403 %package -n pam-pam_smbpass
404 Summary:        PAM Samba Password Module
405 Summary(pl.UTF-8):      Moduł PAM smbpass
406 Group:          Base
407 Obsoletes:      pam_smbpass
408
409 %description -n pam-pam_smbpass
410 PAM module which can be used on conforming systems to keep the
411 smbpasswd (Samba password) database in sync with the unix password
412 file.
413
414 %description -n pam-pam_smbpass -l pl.UTF-8
415 Moduł PAM, który może być używany do trzymania pliku smbpasswd (hasła
416 Samby) zsynchronizowanego z hasłami uniksowymi.
417
418 %package -n libsmbclient
419 Summary:        libsmbclient - samba client library
420 Summary(pl.UTF-8):      libsmbclient - biblioteka klienta samby
421 Group:          Libraries
422
423 %description -n libsmbclient
424 libsmbclient - library that allows to use samba clients functions.
425
426 %description -n libsmbclient -l pl.UTF-8
427 libsmbclient - biblioteka pozwalająca korzystać z funcji klienta
428 samby.
429
430 %package -n libsmbclient-devel
431 Summary:        libsmbclient - samba client library
432 Summary(pl.UTF-8):      libsmbclient - biblioteka klienta samby
433 Summary(pt_BR.UTF-8):   Ferramentas de desenvolvimento para clientes samba
434 Group:          Development/Libraries
435 Requires:       libsmbclient = %{epoch}:%{version}-%{release}
436
437 %description -n libsmbclient-devel
438 Header files for libsmbclient.
439
440 %description -n libsmbclient-devel -l pl.UTF-8
441 Pliki nagłówkowe dla libsmbclient.
442
443 %description -n libsmbclient-devel -l pt_BR.UTF-8
444 Arquivos de inclusão, bibliotecas e documentação necessários para
445 desenvolver aplicativos clientes para o samba.
446
447 %package -n libsmbclient-static
448 Summary:        Static version of libsmbclient - samba client library
449 Summary(pl.UTF-8):      Statyczna wersja libsmbclient - biblioteki klienta samby
450 Summary(pt_BR.UTF-8):   Ferramentas de desenvolvimento para clientes samba
451 Group:          Development/Libraries
452 Requires:       libsmbclient = %{epoch}:%{version}-%{release}
453
454 %description -n libsmbclient-static
455 Static libsmbclient library.
456
457 %description -n libsmbclient-static -l pl.UTF-8
458 Statyczna biblioteka libsmbclient.
459
460 %package devel
461 Summary:        Header files for Samba
462 Summary(pl.UTF-8):      Pliki nagłówkowe Samby
463 Group:          Development/Libraries
464
465 %description devel
466 Header files for Samba.
467
468 %description devel -l pl.UTF-8
469 Pliki nagłówkowe Samby.
470
471 %package -n smbget
472 Summary:        A utility for retrieving files using the SMB protocol
473 Summary(pl.UTF-8):      Narzędzie do pobierania plików protokołem SMB
474 Group:          Applications/Networking
475
476 %description -n smbget
477 wget-like utility for download files over SMB.
478
479 %description -n smbget -l pl.UTF-8
480 Narzędzie podobne do wgeta do pobierania plików protokołem SMB
481 używanym w sieciach MS Windows.
482
483 %package -n cups-backend-smb
484 Summary:        CUPS backend for printing to SMB printers
485 Summary(pl.UTF-8):      Backend CUPS-a drukujący na drukarkach SMB
486 Group:          Applications/Printing
487 Requires:       %{name}-client = %{epoch}:%{version}-%{release}
488 Requires:       cups >= 1:1.2.0
489
490 %description -n cups-backend-smb
491 CUPS backend for printing to SMB printers.
492
493 %description -n cups-backend-smb -l pl.UTF-8
494 Backend CUPS-a drukujący na drukarkach SMB.
495
496 %package -n python-samba
497 Summary:        Samba python tools and libraries
498 Summary(pl.UTF-8):      Narzędzia i biblioteki pythona do samby
499 Group:          Applications/Networking
500 %pyrequires_eq  python-libs
501
502 %description -n python-samba
503 Samba python tools and libraries.
504
505 %description -n python-samba -l pl.UTF-8
506 Narzędzia i biblioteki pythona do samby.
507
508 %package vfs-audit
509 Summary:        VFS module to audit file access
510 Summary(pl.UTF-8):      Moduł VFS do monitorowania operacji na plikach
511 Group:          Networking/Daemons
512 Requires:       %{name} = %{epoch}:%{version}-%{release}
513
514 %description vfs-audit
515 A simple module to audit file access to the syslog facility. The
516 following operations are logged:
517  - share connect/disconnect,
518  - directory opens/create/remove,
519  - file open/close/rename/unlink/chmod.
520
521 %description vfs-audit -l pl.UTF-8
522 Proste moduły do monitorowania dostępu do plików na serwerze samba do
523 do sysloga. Monitorowane są następujące operacje:
524  - podłączenie do/odłączenie od zasobu,
525  - otwarcie/utworzenie/zmiana nazwy katalogu,
526  - otwarcie/zamknięcie/zmiana nazwy/skasowanie/zmiana praw plików.
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} = %{epoch}:%{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} = %{epoch}:%{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} = %{epoch}:%{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} = %{epoch}:%{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-netatalk
604 Summary:        VFS module for ease co-existence of samba and netatalk
605 Summary(pl.UTF-8):      Moduł VFS ułatwiający współpracę serwisów samba i netatalk
606 Group:          Networking/Daemons
607 Requires:       %{name} = %{epoch}:%{version}-%{release}
608
609 %description vfs-netatalk
610 Package contains a netatalk VFS module for ease co-existence of Samba
611 and netatalk file sharing services.
612
613 %description vfs-netatalk -l pl.UTF-8
614 Pakiet zawiera moduł VFS netatalk umożliwiający współpracę usług samba
615 i netatalk przy udostępnianiu zasobów.
616
617 %package vfs-recycle
618 Summary:        VFS module to add recycle bin facility to a samba share
619 Summary(pl.UTF-8):      Moduł VFS dodający możliwość kosza do zasobu samby
620 Group:          Networking/Daemons
621 Requires:       %{name} = %{epoch}:%{version}-%{release}
622
623 %description vfs-recycle
624 VFS module to add recycle bin facility to a samba share.
625
626 %description vfs-recycle -l pl.UTF-8
627 Moduł VFS dodający możliwość kosza do zasobu samby.
628
629 %package vfs-readonly
630 Summary:        VFS module for read-only limitation for specified share
631 Summary(pl.UTF-8):      Moduł VFS do ograniczania określonego udziału tylko do odczytu
632 Group:          Networking/Daemons
633 Requires:       %{name} = %{epoch}:%{version}-%{release}
634
635 %description vfs-readonly
636 This module performs a read-only limitation for specified share (or
637 all of them if it is loaded in a [global] section) based on period
638 definition in smb.conf.
639
640 %description vfs-readonly -l pl.UTF-8
641 Ten moduł wprowadza ograniczenie tylko do odczytu dla określonego
642 udziału (lub wszystkich, jeśli jest wczytywany w sekcji [global]) w
643 oparciu o definicje okresów w smb.conf.
644
645 %package vfs-shadow_copy
646 Summary:        VFS module to make automatic copy of data in samba share
647 Summary(pl.UTF-8):      Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby
648 Group:          Networking/Daemons
649 Requires:       %{name} = %{epoch}:%{version}-%{release}
650
651 %description vfs-shadow_copy
652 VFS module to make automatic copy of data in samba share.
653
654 %description vfs-shadow_copy -l pl.UTF-8
655 Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby.
656
657 %package vfs-vscan-antivir
658 Summary:        On-access virus scanning for samba using AntiVir
659 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący AntiVir
660 Group:          Networking/Daemons
661 Requires:       %{name} = %{epoch}:%{version}-%{release}
662 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
663
664 %description vfs-vscan-antivir
665 A vfs-module for samba to implement on-access scanning using the
666 AntiVir antivirus software (which must be installed to use this).
667
668 %description vfs-vscan-antivir -l pl.UTF-8
669 Moduł vfs do samby implementujący skaning antywirusowy w czasie
670 dostępu do plików korzystając z oprogramowania antywirusowego AntiVir
671 (które musi być zainstalowane, aby wykorzystać ten moduł).
672
673 %package vfs-vscan-clamav
674 Summary:        On-access virus scanning for samba using ClamAV
675 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący ClamAV
676 Group:          Networking/Daemons
677 Requires:       %{name} = %{epoch}:%{version}-%{release}
678 Requires:       clamav
679 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
680
681 %description vfs-vscan-clamav
682 A vfs-module for samba to implement on-access scanning using the
683 ClamAV antivirus software (which must be installed to use this).
684
685 %description vfs-vscan-clamav -l pl.UTF-8
686 Moduł vfs do samby implementujący skaning antywirusowy w czasie
687 dostępu do plików korzystając z oprogramowania antywirusowego ClamAV
688 (które musi być zainstalowane, aby wykorzystać ten moduł).
689
690 %package vfs-vscan-fprot
691 Summary:        On-access virus scanning for samba using FPROT
692 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący FPROT
693 Group:          Networking/Daemons
694 Requires:       %{name} = %{epoch}:%{version}-%{release}
695 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
696 Obsoletes:      vscan-fprot
697
698 %description vfs-vscan-fprot
699 A vfs-module for samba to implement on-access scanning using the FPROT
700 antivirus software (which must be installed to use this).
701
702 %description vfs-vscan-fprot -l pl.UTF-8
703 Moduł vfs do samby implementujący skaning antywirusowy w czasie
704 dostępu do plików korzystając z oprogramowania antywirusowego FPROT
705 (które musi być zainstalowane, aby wykorzystać ten moduł).
706
707 %package vfs-vscan-fsav
708 Summary:        On-access virus scanning for samba using F-Secure AntiVirus
709 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący F-Secure AntiVirus
710 Group:          Networking/Daemons
711 Requires:       %{name} = %{epoch}:%{version}-%{release}
712 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
713 Obsoletes:      vscan-fsav
714
715 %description vfs-vscan-fsav
716 A vfs-module for samba to implement on-access scanning using the
717 F-Secure AntiVirus antivirus software (which must be installed to use
718 this).
719
720 %description vfs-vscan-fsav -l pl.UTF-8
721 Moduł vfs do samby implementujący skaning antywirusowy w czasie
722 dostępu do plików korzystając z oprogramowania antywirusowego F-Secure
723 AntiVirus (które musi być zainstalowane, aby wykorzystać ten moduł).
724
725 %package vfs-vscan-kavp
726 Summary:        On-access virus scanning for samba using Kaspersky AVP
727 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący Kaspersky AVP
728 Group:          Networking/Daemons
729 Requires:       %{name} = %{epoch}:%{version}-%{release}
730 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
731 Obsoletes:      vscan-kavp
732
733 %description vfs-vscan-kavp
734 A vfs-module for samba to implement on-access scanning using the
735 Kaspersky AVP antivirus software (which must be installed to use
736 this).
737
738 %description vfs-vscan-kavp -l pl.UTF-8
739 Moduł vfs do samby implementujący skaning antywirusowy w czasie
740 dostępu do plików korzystając z oprogramowania antywirusowego
741 Kaspersky AVP (które musi być zainstalowane, aby wykorzystać ten
742 moduł).
743
744 %package vfs-vscan-mcafee
745 Summary:        On-access virus scanning for samba using mcafee
746 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący mcafee
747 Group:          Networking/Daemons
748 Requires:       %{name} = %{epoch}:%{version}-%{release}
749 #Requires:      mcafee
750 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
751 Obsoletes:      vscan-mcafee
752
753 %description vfs-vscan-mcafee
754 A vfs-module for samba to implement on-access scanning using the
755 mcafee antivirus software (which must be installed to use this).
756
757 %description vfs-vscan-mcafee -l pl.UTF-8
758 Moduł vfs do samby implementujący skaning antywirusowy w czasie
759 dostępu do plików korzystając z oprogramowania antywirusowego mcafee
760 (które musi być zainstalowane, aby wykorzystać ten moduł).
761
762 %package vfs-vscan-mks
763 Summary:        On-access virus scanning for samba using mks
764 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący mks
765 Group:          Networking/Daemons
766 Requires:       %{name} = %{epoch}:%{version}-%{release}
767 Requires:       mksd
768 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
769 Obsoletes:      vscan-mks
770
771 %description vfs-vscan-mks
772 A vfs-module for samba to implement on-access scanning using the mks
773 antivirus software (which must be installed to use this).
774
775 %description vfs-vscan-mks -l pl.UTF-8
776 Moduł vfs do samby implementujący skaning antywirusowy w czasie
777 dostępu do plików korzystając z oprogramowania antywirusowego mks
778 (które musi być zainstalowane, aby wykorzystać ten moduł).
779
780 %package vfs-vscan-openantivirus
781 Summary:        On-access virus scanning for samba using OpenAntivirus
782 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący OpenAntiVirus
783 Group:          Networking/Daemons
784 Requires:       %{name} = %{epoch}:%{version}-%{release}
785 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
786 Obsoletes:      vscan-openantivirus
787
788 %description vfs-vscan-openantivirus
789 A vfs-module for samba to implement on-access scanning using the
790 OpenAntivirus antivirus software (which must be installed to use
791 this).
792
793 %description vfs-vscan-openantivirus -l pl.UTF-8
794 Moduł vfs do samby implementujący skaning antywirusowy w czasie
795 dostępu do plików korzystając z oprogramowania antywirusowego
796 OpenAntiVirus.org (które musi być zainstalowane, aby wykorzystać ten
797 moduł).
798
799 %package vfs-vscan-sophos
800 Summary:        On-access virus scanning for samba using Sophos
801 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący Sophos
802 Group:          Networking/Daemons
803 Requires:       %{name} = %{epoch}:%{version}-%{release}
804 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
805 Obsoletes:      vscan-sophos
806
807 %description vfs-vscan-sophos
808 A vfs-module for samba to implement on-access scanning using the
809 Sophos antivirus software (which must be installed to use this).
810
811 %description vfs-vscan-sophos -l pl.UTF-8
812 Moduł vfs do samby implementujący skaning antywirusowy w czasie
813 dostępu do plików korzystając z oprogramowania antywirusowego Sophos
814 (które musi być zainstalowane, aby wykorzystać ten moduł).
815
816 %package vfs-vscan-symantec
817 Summary:        On-access virus scanning for samba using Symantec
818 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący Symantec
819 Group:          Networking/Daemons
820 Requires:       %{name} = %{epoch}:%{version}-%{release}
821 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
822 Obsoletes:      vscan-symantec
823
824 %description vfs-vscan-symantec
825 A vfs-module for samba to implement on-access scanning using the
826 Symantec antivirus software (which must be installed to use this).
827
828 %description vfs-vscan-symantec -l pl.UTF-8
829 Moduł vfs do samby implementujący skaning antywirusowy w czasie
830 dostępu do plików korzystając z oprogramowania antywirusowego firmy
831 Symantec (które musi być zainstalowane, aby wykorzystać ten moduł).
832
833 %package vfs-vscan-trend
834 Summary:        On-access virus scanning for samba using Trend
835 Summary(pl.UTF-8):      Skaner antywirusowy online wykorzystujący Trend
836 Group:          Networking/Daemons
837 Requires:       %{name} = %{epoch}:%{version}-%{release}
838 Provides:       %{name}-vscan = %{epoch}:%{version}-%{release}
839 Obsoletes:      vscan-trend
840
841 %description vfs-vscan-trend
842 A vfs-module for samba to implement on-access scanning using the Trend
843 antivirus software (which must be installed to use this).
844
845 %description vfs-vscan-trend -l pl.UTF-8
846 Moduł vfs do samby implementujący skaning antywirusowy w czasie
847 dostępu do plików korzystając z oprogramowania antywirusowego Trend
848 (które musi być zainstalowane, aby wykorzystać ten moduł).
849
850 %package -n openldap-schema-samba
851 Summary:        Samba LDAP schema
852 Summary(pl.UTF-8):      Schemat LDAP dla samby
853 Group:          Networking/Daemons
854 Requires(post,postun):  sed >= 4.0
855 Requires:       openldap-servers
856
857 %description -n openldap-schema-samba
858 This package contains samba.schema for openldap.
859
860 %description -n openldap-schema-samba -l pl.UTF-8
861 Ten pakiet zawiera schemat samby dla openldap-a.
862
863 %package doc-html
864 Summary:        Samba HTML documentation
865 Summary(pl.UTF-8):      Documentacja samby w formacie HTML
866 Group:          Documentation
867
868 %description doc-html
869 Samba HTML documentation, consists of:
870
871 1. SAMBA Developers Guide
872 This book is a collection of documents that might be useful for
873 people developing samba or those interested in doing so. It's nothing
874 more than a collection of documents written by samba developers about
875 the internals of various parts of samba and the SMB protocol. It's
876 still (and will always be) incomplete.
877
878 2. Samba-3 by Example
879 Practical Exercises in Successful Samba Deployment.
880
881 3. The Official Samba-3 HOWTO and Reference Guide
882 This book provides example configurations, it documents key aspects
883 of Microsoft Windows networking, provides in-depth insight into the
884 important configuration of Samba-3, and helps to put all of these
885 into a useful framework.
886
887 4. Using Samba, 2nd Edition
888 Using Samba, Second Edition is a comprehensive guide to Samba
889 administration. It covers all versions of Samba from 2.0 to 2.2,
890 including selected features from an alpha version of 3.0, as well as
891 the SWAT graphical configuration tool. Updated for Windows 2000, ME,
892 and XP, the book also explores Samba's new role as a primary domain
893 controller and domain member server, its support for the use of
894 Windows NT/2000/XP authentication and filesystem security on the host
895 Unix system, and accessing shared files and printers from Unix
896 clients.
897
898 5. Man pages The Samba man pages in HTML.
899
900 %description doc-html -l pl.UTF-8
901 Documentacja samby w formacie HTML.
902
903 %package doc-pdf
904 Summary:        Samba documentation - PDF format
905 Summary(pl.UTF-8):      Documentacja samby w formacie PDF
906 Group:          Documentation
907
908 %description doc-pdf
909 Samba PDF documentation, consists of:
910
911 1. SAMBA Developers Guide
912 This book is a collection of documents that might be useful for
913 people developing samba or those interested in doing so. It's nothing
914 more than a collection of documents written by samba developers about
915 the internals of various parts of samba and the SMB protocol. It's
916 still (and will always be) incomplete.
917
918 2. Samba-3 by Example
919 Practical Exercises in Successful Samba Deployment.
920
921 3. The Official Samba-3 HOWTO and Reference Guide
922 This book provides example configurations, it documents key aspects
923 of Microsoft Windows networking, provides in-depth insight into the
924 important configuration of Samba-3, and helps to put all of these
925 into a useful framework.
926
927 %description doc-pdf -l pl.UTF-8
928 Documentacja samby w formacie PDF.
929
930 %prep
931 %setup -q
932 %if "%{_lib}" == "lib64"
933 %patch0 -p1
934 %endif
935 %patch1 -p1
936 %patch2 -p1
937 %patch3 -p1
938 %patch4 -p1
939
940 cd examples/VFS
941 tar xjf %{SOURCE7}
942 mv README{,.vfs}
943
944 %build
945 cd source
946 %{__libtoolize}
947 %{__autoconf}
948
949 # Removed options (default or not supported by configure script)
950 #       --with-mmap \
951 #       --with-netatalk \
952 #       --without-smbwrapper \
953 #       --with-sslinc=%{_prefix} \
954 #       --with-vfs \
955 #       --with-tdbsam \
956 #       %{?with_ipv6:--with-ipv6} \
957
958 %configure \
959         --with-rootsbindir=/sbin \
960         --with-pammodulesdir=/%{_lib}/security \
961         --with-acl-support \
962         --with-automount \
963         --with-libsmbclient \
964         --with-lockdir=/var/lib/samba \
965         --with-pam \
966         --with-pam_smbpass \
967         --with%{!?with_ads:out}-ads \
968         --with-privatedir=%{_sysconfdir}/samba \
969         --with-quotas \
970         --with-readline \
971         --with-smbmount \
972         --with-smbwrapper \
973         --with-swatdir=%{_datadir}/swat \
974         --with-syslog \
975         --with-utmp \
976         --with-fhs \
977         %{?with_python:--with-python} \
978         --with%{!?with_ldap:out}-ldap \
979         --with%{!?with_krb5:out}-krb5
980
981 %{__make} proto
982 %{__make} everything pam_smbpass bin/smbget bin/mount.cifs bin/vfstest
983
984 cd ../examples/VFS
985 %{__autoconf}
986 %configure \
987         CFLAGS="%{rpmcflags} -fPIC"
988 %{__make}
989
990 cd samba-vscan-%{vscan_version}
991 cp -f /usr/share/automake/config.sub .
992 %configure
993 %{__make} all
994
995 %install
996 rm -rf $RPM_BUILD_ROOT
997 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
998         $RPM_BUILD_ROOT{/var/{log,log/archiv,spool}/samba,/var/lib/samba/printing} \
999         $RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \
1000         $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_vfsdir},%{_includedir},%{_sambahome},%{schemadir}}
1001
1002 cd source
1003 %{__make} install \
1004         DESTDIR=$RPM_BUILD_ROOT \
1005         CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba
1006
1007 install script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
1008 cd ..
1009
1010 ln -sf %{_bindir}/smbmount $RPM_BUILD_ROOT/sbin/mount.smbfs
1011
1012 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
1013 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
1014 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
1015 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
1016 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
1017 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
1018 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
1019 install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/winbind
1020
1021 install source/nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so.2
1022 ln -s libnss_winbind.so.2               $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so
1023 install source/nsswitch/libnss_wins.so  $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so.2
1024 ln -s libnss_wins.so.2                  $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so
1025 install source/bin/wbinfo               $RPM_BUILD_ROOT%{_bindir}
1026 install source/bin/smbget               $RPM_BUILD_ROOT%{_bindir}
1027 install source/bin/vfstest              $RPM_BUILD_ROOT%{_bindir}
1028
1029 mv $RPM_BUILD_ROOT%{_libdir}/samba/libsmbclient.so $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so.0
1030 install source/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
1031 ln -s libsmbclient.so.0 $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so
1032 mv $RPM_BUILD_ROOT%{_libdir}/samba/libmsrpc.so $RPM_BUILD_ROOT%{_libdir}/libmsrpc.so.0
1033 install source/bin/libmsrpc.a $RPM_BUILD_ROOT%{_libdir}/libmsrpc.a
1034 ln -s libmsrpc.so.0 $RPM_BUILD_ROOT%{_libdir}/libmsrpc.so
1035
1036 install source/include/libsmbclient.h $RPM_BUILD_ROOT%{_includedir}
1037
1038 # these are needed to build samba-pdbsql
1039 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/{smbwrapper,tdb,nsswitch}
1040 cp -a source/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
1041 cp -a source/smbwrapper/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/smbwrapper
1042 cp -a source/tdb/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
1043 cp -a source/nsswitch/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/nsswitch
1044
1045 # vscan modules
1046 install examples/VFS/samba-vscan-%{vscan_version}/*.so $RPM_BUILD_ROOT%{_vfsdir}
1047 install examples/VFS/samba-vscan-%{vscan_version}/{antivir,clamav,fprot,icap,kaspersky,mks,openantivirus,sophos,trend,f-secure,nai}/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba
1048
1049 touch $RPM_BUILD_ROOT/var/lib/samba/{wins.dat,browse.dat}
1050
1051 echo '127.0.0.1 localhost' > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
1052
1053 %if %{with cups}
1054 install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend
1055 ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb
1056 %endif
1057
1058 > $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
1059 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
1060
1061 # we have this utility in tdb package
1062 rm -f $RPM_BUILD_ROOT{%{_bindir}/tdbdump,%{_mandir}/man8/tdbdump.8*}
1063
1064 # python stuff
1065 %if %{with python}
1066 install -d $RPM_BUILD_ROOT%{py_sitedir}
1067 cp -R source/build/lib.*/samba $RPM_BUILD_ROOT%{py_sitedir}
1068 %endif
1069
1070 mv $RPM_BUILD_ROOT%{_bindir}/tdbtool $RPM_BUILD_ROOT%{_bindir}/tdbtool_samba
1071
1072 %if %{with ldap}
1073 install examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir}
1074 %endif
1075
1076 %clean
1077 rm -rf $RPM_BUILD_ROOT
1078
1079 %post
1080 /sbin/chkconfig --add smb
1081 if [ -f /var/lock/samba/connections.tdb -a ! -f /var/lib/samba/connections.tdb ]; then
1082         echo >&2 "Moving old /var/lock/samba contents to /var/lib/samba"
1083         /sbin/service smb stop >&2
1084         mv -f /var/lock/samba/*.tdb /var/lib/samba 2>/dev/null || :
1085         mv -f /var/lock/samba/*.dat /var/lib/samba 2>/dev/null || :
1086         if [ -d /var/lock/samba/printing ]; then
1087                 mv -f /var/lock/samba/printing/*.tdb /var/lib/samba/printing 2>/dev/null || :
1088         fi
1089         /sbin/service smb start >&2
1090 else
1091         %service smb restart "Samba daemons"
1092 fi
1093
1094 %preun
1095 if [ "$1" = "0" ]; then
1096         %service smb stop
1097         /sbin/chkconfig --del smb
1098 fi
1099
1100 %post winbind
1101 /sbin/chkconfig --add winbind
1102 %service winbind restart "Winbind daemon"
1103
1104 %preun winbind
1105 if [ "$1" = "0" ]; then
1106         %service winbind stop
1107         /sbin/chkconfig --del winbind
1108 fi
1109
1110 %post swat
1111 %service -q rc-inetd reload
1112
1113 %postun swat
1114 if [ "$1" = 0 ]; then
1115         %service -q rc-inetd reload
1116 fi
1117
1118 %post -n openldap-schema-samba
1119 # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
1120 %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis
1121 %service -q ldap restart
1122
1123 %postun -n openldap-schema-samba
1124 if [ "$1" = "0" ]; then
1125         %openldap_schema_unregister %{schemadir}/samba.schema
1126         %service -q ldap restart
1127 fi
1128
1129 %triggerpostun -- samba < 1.9.18p7
1130 if [ "$1" != "0" ]; then
1131         /sbin/chkconfig --add smb
1132 fi
1133
1134 %files
1135 %defattr(644,root,root,755)
1136 %attr(755,root,root) %{_sbindir}/nmbd
1137 %attr(755,root,root) %{_sbindir}/smbd
1138 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
1139 %attr(755,root,root) %{_bindir}/smbstatus
1140 %attr(755,root,root) %{_bindir}/smbpasswd
1141 %attr(755,root,root) %{_bindir}/smbcontrol
1142 %attr(755,root,root) %{_bindir}/tdbbackup
1143 %attr(755,root,root) %{_bindir}/tdbtool_samba
1144
1145 %dir %{_libdir}/%{name}/pdb
1146 %dir %{_vfsdir}
1147
1148 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smbusers
1149 %attr(754,root,root) /etc/rc.d/init.d/smb
1150 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/samba
1151 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba
1152 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/samba
1153 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.samba
1154 %{_mandir}/man1/log2pcap.1*
1155 %{_mandir}/man1/smbstatus.1*
1156 %{_mandir}/man1/smbcontrol.1*
1157 %{_mandir}/man5/smbpasswd.5*
1158 %{_mandir}/man7/samba.7*
1159 %{_mandir}/man8/nmbd.8*
1160 %{_mandir}/man8/smbd.8*
1161 %{_mandir}/man8/smbpasswd.8*
1162 %{_mandir}/man8/tdbbackup.8*
1163
1164 %dir %{_sambahome}
1165 %dir /var/lib/samba
1166 %ghost /var/lib/samba/*.dat
1167 %dir /var/lib/samba/printing
1168
1169 %attr(750,root,root) %dir /var/log/samba
1170 %attr(750,root,root) %dir /var/log/samba/cores
1171 %attr(750,root,root) %dir /var/log/samba/cores/smbd
1172 %attr(750,root,root) %dir /var/log/samba/cores/nmbd
1173 %attr(750,root,root) %dir /var/log/archiv/samba
1174 %attr(1777,root,root) %dir /var/spool/samba
1175 %if %{with ldap}
1176 %doc examples/LDAP
1177 %endif
1178
1179 %files winbind
1180 %defattr(644,root,root,755)
1181 %attr(755,root,root) %{_sbindir}/winbindd
1182 %attr(755,root,root) %{_bindir}/wbinfo
1183 %attr(755,root,root) /%{_lib}/security/pam_winbind*
1184 %attr(755,root,root) /%{_lib}/libnss_winbind*
1185 %attr(754,root,root) /etc/rc.d/init.d/winbind
1186 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/winbind
1187 %{_mandir}/man1/wbinfo*.1*
1188 %{_mandir}/man7/pam_winbind.7*
1189 %{_mandir}/man8/winbindd*.8*
1190
1191 %files -n nss_wins
1192 %defattr(644,root,root,755)
1193 %attr(755,root,root) /%{_lib}/libnss_wins*
1194
1195 %files client
1196 %defattr(644,root,root,755)
1197 %attr(755,root,root) /sbin/mount.smbfs
1198 %attr(755,root,root) /sbin/mount.cifs
1199 %attr(755,root,root) /sbin/umount.cifs
1200 %attr(755,root,root) %{_bindir}/net
1201 %attr(755,root,root) %{_bindir}/smbmnt
1202 %attr(755,root,root) %{_bindir}/smbmount
1203 %attr(755,root,root) %{_bindir}/smbtree
1204 %attr(755,root,root) %{_bindir}/smbumount
1205 %{_mandir}/man1/smbtree.1*
1206 %{_mandir}/man8/net.8*
1207 %{_mandir}/man8/smbmnt.8*
1208 %{_mandir}/man8/smbmount.8*
1209 %{_mandir}/man8/smbumount.8*
1210 %{_mandir}/man8/*mount.cifs.8*
1211 %attr(755,root,root) %{_bindir}/nmblookup
1212 %attr(755,root,root) %{_bindir}/smbcacls
1213 %attr(755,root,root) %{_bindir}/smbclient
1214 %attr(755,root,root) %{_bindir}/smbtar
1215 %{_mandir}/man1/nmblookup.1*
1216 %{_mandir}/man1/smbcacls.1*
1217 %{_mandir}/man1/smbclient.1*
1218 %{_mandir}/man1/smbtar.1*
1219 %{_mandir}/man1/smbsh.1*
1220 %attr(755,root,root) %{_bindir}/rpcclient
1221 %{_mandir}/man1/rpcclient.1*
1222 %attr(755,root,root) %{_bindir}/findsmb
1223 %{_mandir}/man1/findsmb.1*
1224
1225 %files common
1226 %defattr(644,root,root,755)
1227 %doc README Manifest WHATSNEW.txt
1228 %doc Roadmap docs/registry/*
1229 %doc docs/{history,THANKS}
1230 %dir %{_sysconfdir}/samba
1231 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf
1232 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts
1233 %attr(755,root,root) %{_bindir}/eventlogadm
1234 %attr(755,root,root) %{_bindir}/ntlm_auth
1235 %attr(755,root,root) %{_bindir}/pdbedit
1236 %attr(755,root,root) %{_bindir}/profiles
1237 %attr(755,root,root) %{_bindir}/smbcquotas
1238 %attr(755,root,root) %{_bindir}/testparm
1239 %attr(755,root,root) %{_bindir}/vfstest
1240 %dir %{_libdir}/%{name}
1241 %{_libdir}/%{name}/*.dat
1242 %dir %{_libdir}/%{name}/auth
1243 %attr(755,root,root) %{_libdir}/%{name}/auth/script.so
1244 %dir %{_libdir}/%{name}/charset
1245 %attr(755,root,root) %{_libdir}/%{name}/charset/*.so
1246 %{_mandir}/man1/ntlm_auth.1*
1247 %{_mandir}/man1/profiles.1*
1248 %{_mandir}/man1/smbcquotas.1*
1249 %{_mandir}/man1/testparm.1*
1250 %{_mandir}/man1/vfstest.1*
1251 #%{_mandir}/man1/log2pcap.1*
1252 %{_mandir}/man5/lmhosts.5*
1253 %{_mandir}/man5/smb.conf.5*
1254 %{_mandir}/man8/pdbedit.8*
1255
1256 %files swat
1257 %defattr(644,root,root,755)
1258 #%doc swat/README* swat/help/*
1259 %doc swat/help/*
1260 %attr(755,root,root) %{_sbindir}/swat
1261 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/swat
1262 %dir %{_datadir}/swat
1263 %{_datadir}/swat/help
1264 %{_datadir}/swat/images
1265 %{_datadir}/swat/include
1266 %{_datadir}/swat/using_samba
1267 %dir %{_datadir}/swat/lang
1268 %lang(ja) %{_datadir}/swat/lang/ja
1269 %lang(tr) %{_datadir}/swat/lang/tr
1270 %lang(de) %{_libdir}/%{name}/de.msg
1271 %{_libdir}/%{name}/en.msg
1272 %lang(fr) %{_libdir}/%{name}/fr.msg
1273 %lang(it) %{_libdir}/%{name}/it.msg
1274 %lang(ja) %{_libdir}/%{name}/ja.msg
1275 %lang(nl) %{_libdir}/%{name}/nl.msg
1276 %lang(pl) %{_libdir}/%{name}/pl.msg
1277 %lang(tr) %{_libdir}/%{name}/tr.msg
1278 %{_mandir}/man8/swat.8*
1279
1280 %if %{with python}
1281 %files -n python-samba
1282 %defattr(644,root,root,755)
1283 %dir %{py_sitedir}/samba
1284 %attr(755,root,root) %{py_sitedir}/samba/*.so
1285 %{py_sitedir}/samba/*.py
1286 %doc source/python/{README,gprinterdata,gtdbtool,gtkdictbrowser.py}
1287 %doc source/python/examples
1288 %endif
1289
1290 %files -n pam-pam_smbpass
1291 %defattr(644,root,root,755)
1292 %doc source/pam_smbpass/{CHAN*,README,TODO} source/pam_smbpass/samples
1293 %attr(755,root,root) /%{_lib}/security/pam_smbpass.so
1294
1295 %files -n libsmbclient
1296 %defattr(644,root,root,755)
1297 %attr(755,root,root) %{_libdir}/libmsrpc.so.*
1298 %attr(755,root,root) %{_libdir}/libsmbclient.so.*
1299 %{_mandir}/man7/libsmbclient.7*
1300
1301 %files -n libsmbclient-devel
1302 %defattr(644,root,root,755)
1303 %attr(755,root,root) %{_libdir}/libmsrpc.so
1304 %attr(755,root,root) %{_libdir}/libsmbclient.so
1305 %{_includedir}/libmsrpc.h
1306 %{_includedir}/libsmbclient.h
1307
1308 %files devel
1309 %defattr(644,root,root,755)
1310 %{_includedir}/%{name}
1311
1312 %files -n libsmbclient-static
1313 %defattr(644,root,root,755)
1314 %{_libdir}/libmsrpc.a
1315 %{_libdir}/libsmbclient.a
1316
1317 %files -n smbget
1318 %defattr(644,root,root,755)
1319 %attr(755,root,root) %{_bindir}/smbget
1320 %{_mandir}/man1/smbget.1*
1321 %{_mandir}/man5/smbgetrc.5*
1322
1323 %if %{with cups}
1324 %files -n cups-backend-smb
1325 %defattr(644,root,root,755)
1326 %attr(755,root,root) %{_bindir}/smbspool
1327 %attr(755,root,root) %{cups_serverbin}/backend/smb
1328 %{_mandir}/man8/smbspool.8*
1329 %endif
1330
1331 %files vfs-audit
1332 %defattr(644,root,root,755)
1333 %attr(755,root,root) %{_vfsdir}/audit.so
1334 %attr(755,root,root) %{_vfsdir}/extd_audit.so
1335 %attr(755,root,root) %{_vfsdir}/full_audit.so
1336
1337 %files vfs-cap
1338 %defattr(644,root,root,755)
1339 %attr(755,root,root) %{_vfsdir}/cap.so
1340
1341 %files vfs-default_quota
1342 %defattr(644,root,root,755)
1343 %attr(755,root,root) %{_vfsdir}/default_quota.so
1344
1345 %files vfs-expand_msdfs
1346 %defattr(644,root,root,755)
1347 %attr(755,root,root) %{_vfsdir}/expand_msdfs.so
1348
1349 %files vfs-fake_perms
1350 %defattr(644,root,root,755)
1351 %attr(755,root,root) %{_vfsdir}/fake_perms.so
1352
1353 %files vfs-netatalk
1354 %defattr(644,root,root,755)
1355 %attr(755,root,root) %{_vfsdir}/netatalk.so
1356
1357 %files vfs-readonly
1358 %defattr(644,root,root,755)
1359 %attr(755,root,root) %{_vfsdir}/readonly.so
1360
1361 %files vfs-recycle
1362 %defattr(644,root,root,755)
1363 %attr(755,root,root) %{_vfsdir}/recycle.so
1364
1365 %files vfs-shadow_copy
1366 %defattr(644,root,root,755)
1367 %attr(755,root,root) %{_vfsdir}/shadow_copy.so
1368
1369 %files vfs-vscan-antivir
1370 %defattr(644,root,root,755)
1371 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1372 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-antivir.conf
1373 %attr(755,root,root) %{_vfsdir}/vscan-antivir.so
1374
1375 %files vfs-vscan-clamav
1376 %defattr(644,root,root,755)
1377 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1378 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-clamav.conf
1379 %attr(755,root,root) %{_vfsdir}/vscan-clamav.so
1380
1381 %files vfs-vscan-fprot
1382 %defattr(644,root,root,755)
1383 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1384 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-fprotd.conf
1385 %attr(755,root,root) %{_vfsdir}/vscan-fprotd.so
1386
1387 %files vfs-vscan-fsav
1388 %defattr(644,root,root,755)
1389 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1390 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-fsav.conf
1391 %attr(755,root,root) %{_vfsdir}/vscan-fsav.so
1392
1393 %files vfs-vscan-kavp
1394 %defattr(644,root,root,755)
1395 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1396 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-kavp.conf
1397 %attr(755,root,root) %{_vfsdir}/vscan-kavp.so
1398
1399 %files vfs-vscan-mcafee
1400 %defattr(644,root,root,755)
1401 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1402 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-mcdaemon.conf
1403 %attr(755,root,root) %{_vfsdir}/vscan-mcdaemon.so
1404
1405 %ifarch %{ix86} %{x8664}
1406 %files vfs-vscan-mks
1407 %defattr(644,root,root,755)
1408 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1409 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-mks32.conf
1410 %attr(755,root,root) %{_vfsdir}/vscan-mksd.so
1411 %endif
1412
1413 %files vfs-vscan-openantivirus
1414 %defattr(644,root,root,755)
1415 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1416 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-oav.conf
1417 %attr(755,root,root) %{_vfsdir}/vscan-oav.so
1418
1419 %files vfs-vscan-sophos
1420 %defattr(644,root,root,755)
1421 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1422 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-sophos.conf
1423 %attr(755,root,root) %{_vfsdir}/vscan-sophos.so
1424
1425 %files vfs-vscan-symantec
1426 %defattr(644,root,root,755)
1427 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1428 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-icap.conf
1429 %attr(755,root,root) %{_vfsdir}/vscan-icap.so
1430
1431 %files vfs-vscan-trend
1432 %defattr(644,root,root,755)
1433 #%doc examples/VFS/%{name}-vscan-%{vscan_version}/{INSTALL,FAQ}
1434 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/vscan-trend.conf
1435 %attr(755,root,root) %{_vfsdir}/vscan-trend.so
1436
1437 %if %{with ldap}
1438 %files -n openldap-schema-samba
1439 %defattr(644,root,root,755)
1440 %{schemadir}/*.schema
1441 %endif
1442
1443 %files doc-html
1444 %defattr(644,root,root,755)
1445 %doc docs/htmldocs/*
1446
1447 %files doc-pdf
1448 %defattr(644,root,root,755)
1449 %doc docs/*.pdf
This page took 0.163871 seconds and 4 git commands to generate.