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