]> git.pld-linux.org Git - packages/samba.git/blob - samba.spec
renamed deps
[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.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.6.0
68 Release:        1
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:  e297e0ea7923c7de8d7c1d8fd0ec0a05
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 BuildRequires:  libtool >= 2:1.4d
106 BuildRequires:  make >= 3.81
107 BuildRequires:  ncurses-devel >= 5.2
108 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
109 BuildRequires:  openssl-devel >= 0.9.7d
110 BuildRequires:  pam-devel >= 0.99.8.1
111 BuildRequires:  pkgconfig
112 BuildRequires:  popt-devel
113 %{?with_pgsql:BuildRequires:    postgresql-devel}
114 BuildRequires:  python-devel
115 BuildRequires:  python-modules
116 BuildRequires:  readline-devel >= 4.2
117 BuildRequires:  rpmbuild(macros) >= 1.304
118 BuildRequires:  sed >= 4.0
119 %{?with_system_libtalloc:BuildRequires: talloc-devel >= %{libtalloc_ver}}
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:      smbfs
347
348 %description client
349 Samba-client provides some SMB clients, which complement the build-in
350 SMB filesystem in Linux. These allow accessing of SMB shares and
351 printing to SMB printers.
352
353 %description client -l es.UTF-8
354 Cliente SMB de Samba.
355
356 %description client -l ja.UTF-8
357 Samba-client は Linux 上に含まれている SMB ファイルシステムを補う SMB
358 クライアントを提供します。これらは SMB 共有のアクセスと SMB
359 プリンタへの印刷を許可します。
360
361 %description client -l pl.UTF-8
362 Samba-client dostarcza programy uzupełniające obsługę systemu plików
363 SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i
364 drukowanie w sieci SMB.
365
366 %description client -l pt_BR.UTF-8
367 O pacote samba-clientes prove alguns clientes SMB, que complementam o
368 sistema de arquivos SMB do Linux. Eles permitem o acesso a shares SMB,
369 e também, à impressoras SMB.
370
371 %description client -l ru.UTF-8
372 Пакет samba-client предоставляет некоторые клиенты SMB для работы со
373 встроенной файловой системой SMB в Linux. Эти клиенты позволяют
374 получать доступ к разделяемым каталогам SMB и печать на SMB-принтеры.
375
376 %description client -l uk.UTF-8
377 Пакет samba-client надає деякі клієнти SMB для роботи зі вбудованою
378 файловою системою SMB в Linux. Ці клієнти дозволяють отримувати доступ
379 до каталогів спільного використання SMB та друк на SMB-прінтери.
380
381 %package common
382 Summary:        Files used by both Samba servers and clients
383 Summary(ja.UTF-8):      Samba サーバーとクライアントで使用されるプログラム
384 Summary(pl.UTF-8):      Pliki używane przez serwer i klientów Samba
385 Summary(pt_BR.UTF-8):   Arquivos em comum entre samba e samba-clients
386 Summary(ru.UTF-8):      Файлы, используемые как сервером, так и клиентом Samba
387 Summary(uk.UTF-8):      Файли, що використовуються як сервером, так і клієнтом Samba
388 Group:          Networking/Daemons
389 Requires:       talloc >= %{libtalloc_ver}
390 Requires:       tdb >= %{libtdb_ver}
391
392 %description common
393 Samba-common provides files necessary for both the server and client
394 packages of Samba.
395
396 %description common -l ja.UTF-8
397 Samba-common は Samba のサーバとクライアントの両方のパッケージで
398 使用されるファイルを提供します。
399
400 %description common -l pl.UTF-8
401 Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i
402 klientów Samba.
403
404 %description common -l pt_BR.UTF-8
405 Arquivos em comum entre os pacotes samba e samba-clients.
406
407 %description common -l ru.UTF-8
408 Samba-common содержит файлы, необходимые для работы как клиента, так и
409 сервера Samba.
410
411 %description common -l uk.UTF-8
412 Samba-common містить файли, необхідні для роботи як клієнта, так і
413 сервера Samba.
414
415 %package winbind
416 Summary:        Samba-winbind daemon, utilities and documentation
417 Summary(pl.UTF-8):      Demon samba-winbind, narzędzia i dokumentacja
418 Group:          Networking/Daemons
419 Requires(post,preun):   /sbin/chkconfig
420 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
421
422 %description winbind
423 Provides the winbind daemon and testing tools to allow authentication
424 and group/user enumeration from a Windows or Samba domain controller.
425
426 %description winbind -l pl.UTF-8
427 Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia
428 uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny
429 Windows lub Samba.
430
431 %package -n nss_wins
432 Summary:        Name Service Switch service for WINS
433 Summary(pl.UTF-8):      Usługa Name Service Switch dla WINS
434 Group:          Base
435 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
436
437 %description -n nss_wins
438 Provides the libnss_wins shared library which resolves NetBIOS names
439 to IP addresses.
440
441 %description -n nss_wins -l pl.UTF-8
442 Biblioteka dzielona libnss_wins rozwiązująca nazwy NetBIOS na adresy
443 IP.
444
445 %package -n pam-pam_smbpass
446 Summary:        PAM Samba Password Module
447 Summary(pl.UTF-8):      Moduł PAM smbpass
448 Group:          Base
449 Obsoletes:      pam_smbpass
450
451 %description -n pam-pam_smbpass
452 PAM module which can be used on conforming systems to keep the
453 smbpasswd (Samba password) database in sync with the Unix password
454 file.
455
456 %description -n pam-pam_smbpass -l pl.UTF-8
457 Moduł PAM, który może być używany do trzymania pliku smbpasswd (hasła
458 Samby) zsynchronizowanego z hasłami uniksowymi.
459
460 %package -n libsmbclient
461 Summary:        libsmbclient - samba client library
462 Summary(pl.UTF-8):      libsmbclient - biblioteka klienta samby
463 Group:          Libraries
464
465 %description -n libsmbclient
466 libsmbclient - library that allows to use samba clients functions.
467
468 %description -n libsmbclient -l pl.UTF-8
469 libsmbclient - biblioteka pozwalająca korzystać z funcji klienta
470 samby.
471
472 %package -n libsmbclient-devel
473 Summary:        libsmbclient - samba client library
474 Summary(pl.UTF-8):      libsmbclient - biblioteka klienta samby
475 Summary(pt_BR.UTF-8):   Ferramentas de desenvolvimento para clientes samba
476 Group:          Development/Libraries
477 Requires:       libsmbclient = %{epoch}:%{version}-%{release}
478
479 %description -n libsmbclient-devel
480 Header files for libsmbclient.
481
482 %description -n libsmbclient-devel -l pl.UTF-8
483 Pliki nagłówkowe dla libsmbclient.
484
485 %description -n libsmbclient-devel -l pt_BR.UTF-8
486 Arquivos de inclusão, bibliotecas e documentação necessários para
487 desenvolver aplicativos clientes para o samba.
488
489 %package -n libsmbclient-static
490 Summary:        Static version of libsmbclient - samba client library
491 Summary(pl.UTF-8):      Statyczna wersja libsmbclient - biblioteki klienta samby
492 Summary(pt_BR.UTF-8):   Ferramentas de desenvolvimento para clientes samba
493 Group:          Development/Libraries
494 Requires:       libsmbclient = %{epoch}:%{version}-%{release}
495
496 %description -n libsmbclient-static
497 Static libsmbclient library.
498
499 %description -n libsmbclient-static -l pl.UTF-8
500 Statyczna biblioteka libsmbclient.
501
502 %package -n libtalloc
503 Summary:        The talloc library
504 Group:          Libraries
505
506 %description -n libtalloc
507 The talloc library from the Samba suite.
508
509 %package -n libtalloc-devel
510 Summary:        Developer tools for the talloc library
511 Group:          Development/Libraries
512 Requires:       libtalloc = %{epoch}:%{version}-%{release}
513
514 %description -n libtalloc-devel
515 The libtalloc-devel package contains the header files and libraries
516 needed to develop programs that link against the talloc library in the
517 Samba suite.
518
519 %package -n tdb
520 Summary:        TDB - Trivial Database
521 Summary(pl.UTF-8):      TDB - prosta baza danych
522 Group:          Libraries
523 Obsoletes:      tdb-extras
524
525 %description -n tdb
526 TDB is a Trivial Database. In concept, it is very much like GDBM, and
527 BSD's DB except that it allows multiple simultaneous writers and uses
528 locking internally to keep writers from trampling on each other. TDB
529 is also extremely small.
530
531 %description -n tdb -l pl.UTF-8
532 TDB to Trivial Database, czyli prosta baza danych. W założeniach jest
533 bardzo podobna do GDBM lub DB z BSD z wyjątkiem tego, że pozwala na
534 zapis wielu procesom jednocześnie i używa wewnętrznie blokowania, aby
535 nie pozwolić piszącym na zadeptanie się nawzajem. TDB jest ponadto
536 ekstremalnie mała.
537
538 %package  -n tdb-devel
539 Summary:        Header files for TDB library
540 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki TDB
541 Group:          Development/Libraries
542 Requires:       tdb = %{epoch}:%{version}-%{release}
543
544 %description -n tdb-devel
545 Header files for TDB library.
546
547 %description -n tdb-devel -l pl.UTF-8
548 Pliki nagłówkowe biblioteki TDB.
549
550 %package devel
551 Summary:        Header files for Samba
552 Summary(pl.UTF-8):      Pliki nagłówkowe Samby
553 Group:          Development/Libraries
554
555 %description devel
556 Header files for Samba.
557
558 %description devel -l pl.UTF-8
559 Pliki nagłówkowe Samby.
560
561 %package -n smbget
562 Summary:        A utility for retrieving files using the SMB protocol
563 Summary(pl.UTF-8):      Narzędzie do pobierania plików protokołem SMB
564 Group:          Applications/Networking
565
566 %description -n smbget
567 wget-like utility for download files over SMB.
568
569 %description -n smbget -l pl.UTF-8
570 Narzędzie podobne do wgeta do pobierania plików protokołem SMB
571 używanym w sieciach MS Windows.
572
573 %package -n cups-backend-smb
574 Summary:        CUPS backend for printing to SMB printers
575 Summary(pl.UTF-8):      Backend CUPS-a drukujący na drukarkach SMB
576 Group:          Applications/Printing
577 Requires:       %{name}-client = %{epoch}:%{version}-%{release}
578 Requires:       cups >= 1:1.2.0
579
580 %description -n cups-backend-smb
581 CUPS backend for printing to SMB printers.
582
583 %description -n cups-backend-smb -l pl.UTF-8
584 Backend CUPS-a drukujący na drukarkach SMB.
585
586 %package vfs-audit
587 Summary:        VFS module to audit file access
588 Summary(pl.UTF-8):      Moduł VFS do monitorowania operacji na plikach
589 Group:          Networking/Daemons
590 Requires:       %{name} = %{epoch}:%{version}-%{release}
591
592 %description vfs-audit
593 A simple module to audit file access to the syslog facility. The
594 following operations are logged:
595  - share connect/disconnect,
596  - directory opens/create/remove,
597  - file open/close/rename/unlink/chmod.
598
599 %description vfs-audit -l pl.UTF-8
600 Proste moduły do monitorowania dostępu do plików na serwerze samba do
601 do sysloga. Monitorowane są następujące operacje:
602  - podłączenie do/odłączenie od zasobu,
603  - otwarcie/utworzenie/zmiana nazwy katalogu,
604  - otwarcie/zamknięcie/zmiana nazwy/skasowanie/zmiana praw plików.
605
606 Zawiera moduły audit, extd_audit i full_audit.
607
608 %package vfs-cap
609 Summary:        VFS module for CAP and samba compatibility
610 Summary(pl.UTF-8):      Moduł VFS zgodności z CAP (Columbia AppleTalk Program)
611 Group:          Networking/Daemons
612 Requires:       %{name} = %{epoch}:%{version}-%{release}
613
614 %description vfs-cap
615 Convert an incoming Shift-JIS character to the 3 byte hex
616 representation used by the Columbia AppleTalk Program (CAP), i.e. :AB.
617 This is used for compatibility between Samba and CAP.
618
619 %description vfs-cap -l pl.UTF-8
620 Zamienia znaki kodowane Shift-JIS do trzybajowej szestnastkowej
621 reprezentacji używanej przez program Columbia AppleTalk Program (CAP).
622
623 %package vfs-default_quota
624 Summary:        VFS module to store default quotas in a specified quota record
625 Summary(pl.UTF-8):      Moduł VFS do zapisywania domyślnych limitów w określonym rekordzie
626 Group:          Networking/Daemons
627 Requires:       %{name} = %{epoch}:%{version}-%{release}
628
629 %description vfs-default_quota
630 This VFS modules stores default quotas in a specified quota record.
631
632 %description vfs-default_quota -l pl.UTF-8
633 Ten moduł VFS zapisuje domyślne limity (quoty) w określonym rekordzie
634 limitów.
635
636 %package vfs-expand_msdfs
637 Summary:        VFS module for hosting a Microsoft Distributed File System Tree
638 Summary(pl.UTF-8):      Moduł VFS obsługi Microsoft Distributed File System
639 Group:          Networking/Daemons
640 Requires:       %{name} = %{epoch}:%{version}-%{release}
641
642 %description vfs-expand_msdfs
643 A VFS module for hosting a Microsoft Distributed File System Tree.
644
645 The Distributed File System (DFS) provides a means of separating the
646 logical view of files and directories that users see from the actual
647 physical locations of these resources on the network. It allows for
648 higher availability, smoother storage expansion, load balancing, and
649 so on.
650
651 %description vfs-expand_msdfs -l pl.UTF-8
652 Moduł VFS do udostępniania drzewa systemu plików Microsoft Distributed
653 File System.
654
655 Distributed File System (DFS) umożliwia rozdzielanie logicznego widoku
656 plików i katalogów widocznych przez użytkowników z fizycznego
657 umiejscowienia tych zasobów w sieci. Pozwala to na wyższą dostępność,
658 płynniejsze powiększanie przestrzeni, rozdzielanie obciążenia itp.
659
660 %package vfs-fake_perms
661 Summary:        VFS module to report read-only fires as writable
662 Summary(pl.UTF-8):      Moduł VFS udający, że pliki tylko do odczytu są zapisywalne
663 Group:          Networking/Daemons
664 Requires:       %{name} = %{epoch}:%{version}-%{release}
665
666 %description vfs-fake_perms
667 This module allow Roaming Profile files and directories to be set (on
668 the Samba server under UNIX) as read only. This module will, if
669 installed on the Profiles share, report to the client that the Profile
670 files and directories are writeable. This satisfies the client even
671 though the files will never be overwritten as the client logs out or
672 shuts down.
673
674 %description vfs-fake_perms -l pl.UTF-8
675 Ten moduł pozwala na ustawienie plików i katalogów z wędrujących
676 profili (Roaming Profiles) jako tylko do odczytu. Moduł ten w
677 przypadku zainstalowania na udziale z profilami będzie zgłaszał
678 klientom, że pliki i katalogi z profilu są zapisywane. To wystarczy
679 klientom pomimo, że pliki nie zostaną nigdy nadpisane przy logowaniu
680 lub wylogowywaniu klienta.
681
682 %package vfs-notify_fam
683 Summary:        VFS module to implement file change notifications
684 Summary(pl.UTF-8):      Moduł VFS implementujący informowanie o zmianach w plikach
685 Group:          Networking/Daemons
686 Requires:       %{name} = %{epoch}:%{version}-%{release}
687
688 %description vfs-notify_fam
689 The vfs_notify_fam module makes use of the system FAM (File Alteration
690 Monitor) daemon to implement file change notifications for Windows
691 clients.
692
693 %description vfs-notify_fam -l pl.UTF-8
694 Ten moduł używa demona FAM (File Alteration Monitor) do implementacji
695 informowania o zmianach w plikach dla klientów Windows.
696
697 %package vfs-netatalk
698 Summary:        VFS module for ease co-existence of samba and netatalk
699 Summary(pl.UTF-8):      Moduł VFS ułatwiający współpracę serwisów samba i netatalk
700 Group:          Networking/Daemons
701 Requires:       %{name} = %{epoch}:%{version}-%{release}
702
703 %description vfs-netatalk
704 Package contains a netatalk VFS module for ease co-existence of Samba
705 and netatalk file sharing services.
706
707 %description vfs-netatalk -l pl.UTF-8
708 Pakiet zawiera moduł VFS netatalk umożliwiający współpracę usług samba
709 i netatalk przy udostępnianiu zasobów.
710
711 %package vfs-recycle
712 Summary:        VFS module to add recycle bin facility to a samba share
713 Summary(pl.UTF-8):      Moduł VFS dodający możliwość kosza do zasobu samby
714 Group:          Networking/Daemons
715 Requires:       %{name} = %{epoch}:%{version}-%{release}
716
717 %description vfs-recycle
718 VFS module to add recycle bin facility to a samba share.
719
720 %description vfs-recycle -l pl.UTF-8
721 Moduł VFS dodający możliwość kosza do zasobu samby.
722
723 %package vfs-readahead
724 Summary:        VFS module for pre-loading the kernel buffer cache
725 Summary(pl.UTF-8):      Moduł VFS do wczesnego odczytu danych do bufora cache jądra
726 Group:          Networking/Daemons
727 Requires:       %{name} = %{epoch}:%{version}-%{release}
728
729 %description vfs-readahead
730 This VFS module detects read requests at multiples of a given offset
731 (hex 0x80000 by default) and then tells the kernel via either the
732 readahead system call (on Linux) or the posix_fadvise system call to
733 pre-fetch this data into the buffer cache.
734
735 This module is useful for Windows Vista clients reading data using the
736 Windows Explorer program, which asynchronously does multiple file read
737 requests at offset boundaries of 0x80000 bytes.
738
739 %description vfs-readahead -l pl.UTF-8
740 Ten moduł VFS wykrywa żądania odczytu spod wielokrotności podanych
741 pozycji (domyślnie 0x80000 szesnastkowo) i instruuje jądro poprzez
742 wywołanie systemowe readahead (pod Linuksem) lub posix_fadvise do
743 wczesnego odczytu tych danych do bufora cache.
744
745 Ten moduł jest przydatny dla klientów Windows Vista odczytujących dane
746 przy użyciu programu Windows Explorer, który asynchronicznie wykonuje
747 wiele żądań odczytu plików spod pozycji o wielokrotnościach 0x80000
748 bajtów.
749
750 %package vfs-readonly
751 Summary:        VFS module for read-only limitation for specified share
752 Summary(pl.UTF-8):      Moduł VFS do ograniczania określonego udziału tylko do odczytu
753 Group:          Networking/Daemons
754 Requires:       %{name} = %{epoch}:%{version}-%{release}
755
756 %description vfs-readonly
757 This module performs a read-only limitation for specified share (or
758 all of them if it is loaded in a [global] section) based on period
759 definition in smb.conf.
760
761 %description vfs-readonly -l pl.UTF-8
762 Ten moduł wprowadza ograniczenie tylko do odczytu dla określonego
763 udziału (lub wszystkich, jeśli jest wczytywany w sekcji [global]) w
764 oparciu o definicje okresów w smb.conf.
765
766 %package vfs-shadow_copy
767 Summary:        VFS module to make automatic copy of data in samba share
768 Summary(pl.UTF-8):      Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby
769 Group:          Networking/Daemons
770 Requires:       %{name} = %{epoch}:%{version}-%{release}
771
772 %description vfs-shadow_copy
773 VFS module to make automatic copy of data in samba share.
774
775 %description vfs-shadow_copy -l pl.UTF-8
776 Moduł VFS do tworzenia automatycznych kopii danych w zasobach samby.
777
778 %package vfs-catia
779 Summary:        VFS module to fix Catia CAD filenames
780 Group:          Networking/Daemons
781 Requires:       %{name} = %{epoch}:%{version}-%{release}
782
783 %description vfs-catia
784 The Catia CAD package commonly creates filenames that use characters
785 that are illegal in CIFS filenames. The vfs_catia VFS module
786 implements a fixed character mapping so that these files can be shared
787 with CIFS clients.
788
789 %package vfs-scannedonly
790 Summary:        Anti-virus solution as VFS module
791 Group:          Networking/Daemons
792 Requires:       %{name} = %{epoch}:%{version}-%{release}
793
794 %description vfs-scannedonly
795 The vfs_scannedonly VFS module ensures that only files that have been
796 scanned for viruses are visible and accessible to the end user. If
797 non-scanned files are found an anti-virus scanning daemon is notified.
798
799 %package -n openldap-schema-samba
800 Summary:        Samba LDAP schema
801 Summary(pl.UTF-8):      Schemat LDAP dla samby
802 Group:          Networking/Daemons
803 Requires(post,postun):  sed >= 4.0
804 Requires:       openldap-servers
805
806 %description -n openldap-schema-samba
807 This package contains samba.schema for openldap.
808
809 %description -n openldap-schema-samba -l pl.UTF-8
810 Ten pakiet zawiera schemat samby dla openldap-a.
811
812 %package doc-html
813 Summary:        Samba HTML documentation
814 Summary(pl.UTF-8):      Documentacja samby w formacie HTML
815 Group:          Documentation
816
817 %description doc-html
818 Samba HTML documentation.
819
820 %description doc-html -l pl.UTF-8
821 Documentacja samby w formacie HTML.
822
823 %package doc-pdf
824 Summary:        Samba documentation - PDF format
825 Summary(pl.UTF-8):      Documentacja samby w formacie PDF
826 Group:          Documentation
827
828 %description doc-pdf
829 Samba PDF documentation.
830
831 %description doc-pdf -l pl.UTF-8
832 Documentacja samby w formacie PDF.
833
834 %package -n python-samba
835 Summary:        Samba Module for Python
836 Group:          Development/Languages/Python
837 %pyrequires_eq  python
838 Requires:       %{name}-common = %{epoch}:%{version}-%{release}
839
840 %description -n python-samba
841 Samba Module for Python.
842
843 %prep
844 %setup -q
845 %patch0 -p1
846 %patch1 -p1
847 %patch2 -p1
848 %patch3 -p1
849 %patch4 -p1
850 %if "%{pld_release}" == "ti"
851 %patch5 -p1
852 %endif
853
854 %{__sed} -i 's#%SAMBAVERSION%#%{version}#' docs/htmldocs/index.html
855
856 # deprecated in gnutls 3.0
857 %{__sed} -i -e "s/gnutls_transport_set_lowat(tls->session, 0);//"      source4/lib/tls/tls.c
858 %{__sed} -i -e "s/gnutls_transport_set_lowat(tlss->tls_session, 0);//" source4/lib/tls/tls_tstream.c
859
860 #cd examples/VFS
861 #mv README{,.vfs}
862 #cd ../..
863
864 install %{SOURCE9} source4/heimdal/lib/wind/rfc3454.txt
865
866 %build
867 # use ld.bfd because gold doesn't understand linker script
868 install -d our-ld
869 ln -s %{_bindir}/ld.bfd our-ld/ld
870 export PATH=$(pwd)/our-ld:$PATH
871
872
873 cd source3
874 %{__libtoolize}
875 %{__autoconf} -Im4 -I../m4 -I../lib/replace -Ilib/replace -I../source4
876 %configure \
877         --with-modulesdir=%{_sambalibdir} \
878         --with-rootsbindir=/sbin \
879         --with-pammodulesdir=/%{_lib}/security \
880         --with-acl-support \
881         --with-aio-support \
882         --with-automount \
883         --with-libsmbclient \
884         --with-lockdir=/var/lib/samba \
885         --with-pam \
886         --with-pam_smbpass \
887         --with%{!?with_ads:out}-ads \
888         --with-privatedir=%{_sysconfdir}/samba \
889         --with-quotas \
890         --with-readline \
891         --with-swatdir=%{_datadir}/swat \
892         --with-syslog \
893         --with-utmp \
894         --with-fhs \
895 %if %{with system_libtalloc}
896         --with-libtalloc=no \
897         --enable-external-libtalloc=yes \
898 %endif
899 %if %{with system_libtdb}
900         --with-libtdb=no \
901         --enable-external-libtdb=yes \
902 %endif
903         --without-included-popt \
904         --enable-dso \
905         --%{?with_avahi:en}%{!?with_avahi:dis}able-avahi \
906         --disable-dnssd \
907         --with%{!?with_ldap:out}-ldap \
908         --with%{!?with_kerberos5:out}-krb5
909
910 %{__make} -j1 everything pam_smbpass bin/smbget bin/vfstest \
911         LD=ld
912
913 cd ../examples
914 %{__make} -C libsmbclient/smbwrapper \
915         CC="%{__cc}" \
916         CFLAGS="%{rpmcflags} -fPIC \$(DEFS) \\\$(SMBINCLUDE)"
917
918 cd VFS
919 %{__autoheader}
920 %{__autoconf}
921 %configure \
922         CFLAGS="%{rpmcflags} -fPIC"
923 %{__make}
924
925 %install
926 rm -rf $RPM_BUILD_ROOT
927 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd} \
928         $RPM_BUILD_ROOT{/var/{log,log/archive,spool}/samba,/var/lib/samba/printing} \
929         $RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \
930         $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_vfsdir},%{_includedir},%{_sambahome},%{schemadir}}
931
932 %{__make} -C source3 install \
933         DESTDIR=$RPM_BUILD_ROOT \
934         CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba
935
936 install -p source3/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir}
937
938 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb
939 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
940 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
941 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
942 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
943 cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
944 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind
945 cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/winbind
946
947 install -p nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so.2
948 ln -s libnss_winbind.so.2               $RPM_BUILD_ROOT/%{_lib}/libnss_winbind.so
949 install -p nsswitch/libnss_wins.so      $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so.2
950 ln -s libnss_wins.so.2                  $RPM_BUILD_ROOT/%{_lib}/libnss_wins.so
951 install -p source3/bin/wbinfo           $RPM_BUILD_ROOT%{_bindir}
952 install -p source3/bin/smbget           $RPM_BUILD_ROOT%{_bindir}
953 install -p source3/bin/vfstest          $RPM_BUILD_ROOT%{_bindir}
954
955 cp -a source3/bin/libsmbclient.a $RPM_BUILD_ROOT%{_libdir}/libsmbclient.a
956
957 # smbwrapper
958 install -p examples/libsmbclient/smbwrapper/smbwrapper.so $RPM_BUILD_ROOT%{_libdir}/smbwrapper.so
959 install -p examples/libsmbclient/smbwrapper/smbsh $RPM_BUILD_ROOT%{_bindir}
960 cp -p examples/libsmbclient/smbwrapper/smbsh.1 $RPM_BUILD_ROOT%{_mandir}/man1
961
962 # these are needed to build samba-pdbsql
963 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/nsswitch
964 cp -a source3/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
965 cp -a nsswitch/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/nsswitch
966 %if %{without system_libtdb}
967 install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
968 cp -a lib/tdb/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/tdb
969 %endif
970
971 touch $RPM_BUILD_ROOT/var/lib/samba/{wins.dat,browse.dat}
972
973 echo '127.0.0.1 localhost' > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
974
975 %if %{with cups}
976 install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend
977 ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb
978 %endif
979
980 > $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
981 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
982
983 # unneeded
984 #rm -r $RPM_BUILD_ROOT%{_datadir}/swat/using_samba
985
986 # tests
987 %if %{with merged_build}
988 rm -r $RPM_BUILD_ROOT%{_bindir}/{gentest4,locktest4,masktest4,nsstest4}
989 %endif
990
991 %if %{with ldap}
992 install examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir}
993 %endif
994
995 %if %{with system_libtdb}
996 # remove manuals of tdb if system lib used
997 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/tdbbackup.8*
998 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/tdbdump.8*
999 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/tdbtool.8*
1000 %endif
1001
1002 %find_lang pam_winbind
1003
1004 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1005 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1006 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" -o -name "*.a" -o -name "*.la" | xargs rm -f
1007
1008 %clean
1009 rm -rf $RPM_BUILD_ROOT
1010
1011 %post
1012 /sbin/chkconfig --add smb
1013 if [ -f /var/lock/samba/connections.tdb -a ! -f /var/lib/samba/connections.tdb ]; then
1014         echo >&2 "Moving old /var/lock/samba contents to /var/lib/samba"
1015         /sbin/service smb stop >&2
1016         mv -f /var/lock/samba/*.tdb /var/lib/samba 2>/dev/null || :
1017         mv -f /var/lock/samba/*.dat /var/lib/samba 2>/dev/null || :
1018         if [ -d /var/lock/samba/printing ]; then
1019                 mv -f /var/lock/samba/printing/*.tdb /var/lib/samba/printing 2>/dev/null || :
1020         fi
1021         /sbin/service smb start >&2
1022 else
1023         %service smb restart "Samba daemons"
1024 fi
1025
1026 %preun
1027 if [ "$1" = "0" ]; then
1028         %service smb stop
1029         /sbin/chkconfig --del smb
1030 fi
1031
1032 %post winbind
1033 /sbin/chkconfig --add winbind
1034 %service winbind restart "Winbind daemon"
1035
1036 %preun winbind
1037 if [ "$1" = "0" ]; then
1038         %service winbind stop
1039         /sbin/chkconfig --del winbind
1040 fi
1041
1042 %post swat
1043 %service -q rc-inetd reload
1044
1045 %postun swat
1046 if [ "$1" = 0 ]; then
1047         %service -q rc-inetd reload
1048 fi
1049
1050 %post -n openldap-schema-samba
1051 # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber)
1052 %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis
1053 %service -q ldap restart
1054
1055 %postun -n openldap-schema-samba
1056 if [ "$1" = "0" ]; then
1057         %openldap_schema_unregister %{schemadir}/samba.schema
1058         %service -q ldap restart
1059 fi
1060
1061 %triggerpostun -- samba < 1.9.18p7
1062 if [ "$1" != "0" ]; then
1063         /sbin/chkconfig --add smb
1064 fi
1065
1066 %if "%{pld_release}" != "ti"
1067 %triggerpostun -- samba < 3.4.0
1068 %banner %{name} << EOF
1069 !!! WARNING !!! The default passdb backend has been changed to 'tdbsam'!
1070 That breaks existing setups using the 'smbpasswd' backend without explicit declaration!
1071 Please use 'passdb backend = smbpasswd' if you would like to stick to the 'smbpasswd'
1072 backend or convert your smbpasswd entries using e.g. 'pdbedit -i smbpasswd -e tdbsam'.
1073 EOF
1074 %endif
1075
1076 %files
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{_sbindir}/nmbd
1079 %attr(755,root,root) %{_sbindir}/smbd
1080 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
1081 %if %{with merged_build}
1082 #%attr(755,root,root) %{_bindir}/ad2oLschema4
1083 %attr(755,root,root) %{_bindir}/oLschema2ldif4
1084 %attr(755,root,root) %{_bindir}/reg*
1085 # "This utility disabled until rewritten"
1086 #%attr(755,root,root) %{_bindir}/setnttoken4
1087 %endif
1088 %attr(755,root,root) %{_bindir}/smbstatus
1089 %attr(755,root,root) %{_bindir}/smbpasswd
1090 %attr(755,root,root) %{_bindir}/smbta-util
1091 %attr(755,root,root) %{_bindir}/smbcontrol
1092
1093 %dir %{_libdir}/%{name}/idmap
1094 %attr(755,root,root)  %{_libdir}/%{name}/idmap/autorid.so
1095 %{_mandir}/man8/idmap_autorid.8*
1096 %dir %{_libdir}/%{name}/pdb
1097 %dir %{_vfsdir}
1098 %attr(755,root,root) %{_vfsdir}/acl_tdb.so
1099 %attr(755,root,root) %{_vfsdir}/acl_xattr.so
1100 %attr(755,root,root) %{_vfsdir}/aio_fork.so
1101 %attr(755,root,root) %{_vfsdir}/crossrename.so
1102 %attr(755,root,root) %{_vfsdir}/dirsort.so
1103 %attr(755,root,root) %{_vfsdir}/fileid.so
1104 %attr(755,root,root) %{_vfsdir}/linux_xfs_sgid.so
1105 %attr(755,root,root) %{_vfsdir}/preopen.so
1106 %attr(755,root,root) %{_vfsdir}/shadow_copy2.so
1107 %attr(755,root,root) %{_vfsdir}/smb_traffic_analyzer.so
1108 %attr(755,root,root) %{_vfsdir}/streams_depot.so
1109 %attr(755,root,root) %{_vfsdir}/streams_xattr.so
1110 %attr(755,root,root) %{_vfsdir}/syncops.so
1111 %attr(755,root,root) %{_vfsdir}/time_audit.so
1112 %attr(755,root,root) %{_vfsdir}/xattr_tdb.so
1113 %{_mandir}/man8/vfs_acl_tdb.8*
1114 %{_mandir}/man8/vfs_acl_xattr.8*
1115 %{_mandir}/man8/vfs_crossrename.8*
1116 %{_mandir}/man8/vfs_dirsort.8*
1117 %{_mandir}/man8/vfs_fileid.8*
1118 %{_mandir}/man8/vfs_preopen.8*
1119 %{_mandir}/man8/vfs_shadow_copy2.8*
1120 %{_mandir}/man8/vfs_smb_traffic_analyzer.8*
1121 %{_mandir}/man8/vfs_streams_xattr.8*
1122 %{_mandir}/man8/vfs_streams_depot.8*
1123 %{_mandir}/man8/vfs_time_audit.8*
1124 %{_mandir}/man8/vfs_xattr_tdb.8*
1125
1126
1127 %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smbusers
1128 %attr(754,root,root) /etc/rc.d/init.d/smb
1129 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/samba
1130 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba
1131 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/samba
1132 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.samba
1133 %{_mandir}/man1/ldb*.1*
1134 %{_mandir}/man1/log2pcap.1*
1135 %{_mandir}/man1/smbstatus.1*
1136 %{_mandir}/man1/smbcontrol.1*
1137 %{_mandir}/man5/smbpasswd.5*
1138 %{_mandir}/man7/samba.7*
1139 %{_mandir}/man8/nmbd.8*
1140 %{_mandir}/man8/smbd.8*
1141 %{_mandir}/man8/smbpasswd.8*
1142
1143 %dir %{_sambahome}
1144 %dir /var/lib/samba
1145 %ghost /var/lib/samba/*.dat
1146 %dir /var/lib/samba/printing
1147
1148 %attr(750,root,root) %dir /var/log/samba
1149 %attr(750,root,root) %dir /var/log/samba/cores
1150 %attr(750,root,root) %dir /var/log/samba/cores/smbd
1151 %attr(750,root,root) %dir /var/log/samba/cores/nmbd
1152 %attr(750,root,root) %dir /var/log/archive/samba
1153 %attr(1777,root,root) %dir /var/spool/samba
1154 %if %{with ldap}
1155 %doc examples/LDAP
1156 %endif
1157
1158 %files winbind -f pam_winbind.lang
1159 %defattr(644,root,root,755)
1160 %attr(755,root,root) %{_sbindir}/winbindd
1161 %attr(755,root,root) %{_bindir}/wbinfo
1162 #%if %{with merged_build}
1163 #%attr(755,root,root) %{_bindir}/wbinfo4
1164 #%endif
1165 %attr(755,root,root) /%{_lib}/security/pam_winbind*
1166 %attr(755,root,root) /%{_lib}/libnss_winbind*
1167 %attr(754,root,root) /etc/rc.d/init.d/winbind
1168 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/winbind
1169 %{_mandir}/man1/wbinfo*.1*
1170 %{_mandir}/man5/pam_winbind.conf.5*
1171 %{_mandir}/man8/pam_winbind.8*
1172 %{_mandir}/man8/winbindd*.8*
1173
1174 %files -n nss_wins
1175 %defattr(644,root,root,755)
1176 %attr(755,root,root) /%{_lib}/libnss_wins*
1177
1178 %files client
1179 %defattr(644,root,root,755)
1180 %if %{with merged_build}
1181 %attr(755,root,root) %{_bindir}/cifsdd4
1182 %attr(755,root,root) %{_bindir}/net4
1183 %attr(755,root,root) %{_bindir}/nmblookup4
1184 %attr(755,root,root) %{_bindir}/smbclient4
1185 %attr(755,root,root) %{_bindir}/setnttoken4
1186 %attr(755,root,root) %{_bindir}/smbtorture4
1187 %endif
1188 %attr(755,root,root) %{_bindir}/findsmb
1189 %attr(755,root,root) %{_bindir}/net
1190 %attr(755,root,root) %{_bindir}/nmblookup
1191 %attr(755,root,root) %{_bindir}/rpcclient
1192 %attr(755,root,root) %{_bindir}/sharesec
1193 %attr(755,root,root) %{_bindir}/smbcacls
1194 %attr(755,root,root) %{_bindir}/smbclient
1195 %attr(755,root,root) %{_bindir}/smbsh
1196 %attr(755,root,root) %{_bindir}/smbtar
1197 %attr(755,root,root) %{_bindir}/smbtree
1198 %attr(755,root,root) %{_libdir}/smbwrapper.so
1199 %{_mandir}/man1/findsmb.1*
1200 %{_mandir}/man1/nmblookup.1*
1201 %{_mandir}/man1/rpcclient.1*
1202 %{_mandir}/man1/sharesec.1*
1203 %{_mandir}/man1/smbcacls.1*
1204 %{_mandir}/man1/smbclient.1*
1205 %{_mandir}/man1/smbsh.1*
1206 %{_mandir}/man1/smbtar.1*
1207 %{_mandir}/man1/smbtree.1*
1208 %{_mandir}/man8/net.8*
1209
1210 %files common
1211 %defattr(644,root,root,755)
1212 %if %{with merged_build}
1213 %attr(755,root,root) %{_bindir}/getntacl4
1214 %attr(755,root,root) %{_bindir}/ndrdump4
1215 %attr(755,root,root) %{_bindir}/ntlm_auth4
1216 %attr(755,root,root) %{_bindir}/testparm4
1217 %endif
1218 %doc README Manifest WHATSNEW.txt
1219 %doc Roadmap docs/registry/*
1220 %doc docs/{history,THANKS}
1221 %dir %{_sysconfdir}/samba
1222 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf
1223 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts
1224 %attr(755,root,root) %{_bindir}/eventlogadm
1225 %attr(755,root,root) %{_bindir}/ntlm_auth
1226 %attr(755,root,root) %{_bindir}/pdbedit
1227 %attr(755,root,root) %{_bindir}/profiles
1228 %attr(755,root,root) %{_bindir}/smbcquotas
1229 %attr(755,root,root) %{_bindir}/testparm
1230 %attr(755,root,root) %{_bindir}/vfstest
1231 %dir %{_libdir}/%{name}
1232 %{_libdir}/%{name}/*.dat
1233 %dir %{_libdir}/%{name}/auth
1234 %attr(755,root,root) %{_libdir}/%{name}/auth/script.so
1235 %dir %{_libdir}/%{name}/charset
1236 %attr(755,root,root) %{_libdir}/%{name}/charset/*.so
1237 %{_mandir}/man1/ntlm_auth.1*
1238 %{_mandir}/man1/profiles.1*
1239 %{_mandir}/man1/smbcquotas.1*
1240 %{_mandir}/man1/testparm.1*
1241 %{_mandir}/man1/vfstest.1*
1242 #%{_mandir}/man1/log2pcap.1*
1243 %{_mandir}/man5/lmhosts.5*
1244 %{_mandir}/man5/smb.conf.5*
1245 %{_mandir}/man8/pdbedit.8*
1246 %{_mandir}/man8/eventlogadm.8*
1247 %{_mandir}/man8/idmap_ad.8*
1248 %{_mandir}/man8/idmap_adex.8*
1249 %{_mandir}/man8/idmap_hash.8*
1250 %{_mandir}/man8/idmap_ldap.8*
1251 %{_mandir}/man8/idmap_nss.8*
1252 %{_mandir}/man8/idmap_rid.8*
1253 %{_mandir}/man8/idmap_tdb.8*
1254 %{_mandir}/man8/idmap_tdb2.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 %dir %{_datadir}/swat/lang
1267 %lang(ja) %{_datadir}/swat/lang/ja
1268 %lang(tr) %{_datadir}/swat/lang/tr
1269 %lang(de) %{_libdir}/%{name}/de.msg
1270 %{_libdir}/%{name}/en.msg
1271 %lang(fi) %{_libdir}/%{name}/fi.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(ru) %{_libdir}/%{name}/ru.msg
1278 %lang(tr) %{_libdir}/%{name}/tr.msg
1279 %{_mandir}/man8/swat.8*
1280
1281 %files -n pam-pam_smbpass
1282 %defattr(644,root,root,755)
1283 %doc source3/pam_smbpass/{CHAN*,README,TODO} source3/pam_smbpass/samples
1284 %attr(755,root,root) /%{_lib}/security/pam_smbpass.so
1285
1286 %files -n libsmbclient
1287 %defattr(644,root,root,755)
1288 %attr(755,root,root) %{_libdir}/libsmbclient.so.*
1289 %attr(755,root,root) %{_libdir}/libwbclient.so.*
1290 %{_mandir}/man7/libsmbclient.7*
1291
1292 %files -n libsmbclient-devel
1293 %defattr(644,root,root,755)
1294 %attr(755,root,root) %{_libdir}/libsmbclient.so
1295 %attr(755,root,root) %{_libdir}/libwbclient.so
1296 %{_includedir}/libsmbclient.h
1297 %{_includedir}/wbclient.h
1298
1299 %if %{without system_libtalloc}
1300 %files -n libtalloc
1301 %defattr(644,root,root,755)
1302 %attr(755,root,root) %{_libdir}/libtalloc.so.*
1303
1304 %files -n libtalloc-devel
1305 %defattr(644,root,root,755)
1306 %attr(755,root,root) %{_libdir}/libtalloc.so
1307 %{_includedir}/talloc.h
1308 %endif
1309
1310 %if %{without system_libtdb}
1311 %files -n tdb
1312 %defattr(644,root,root,755)
1313 %attr(755,root,root) %{_bindir}/tdbbackup
1314 %attr(755,root,root) %{_bindir}/tdbdump
1315 %attr(755,root,root) %{_bindir}/tdbtool
1316 %if %{with merged_build}
1317 %attr(755,root,root) %{_bindir}/tdbbackup4
1318 %attr(755,root,root) %{_bindir}/tdbdump4
1319 %attr(755,root,root) %{_bindir}/tdbtool4
1320 %attr(755,root,root) %{_bindir}/tdbtorture4
1321 %endif
1322 %attr(755,root,root) %{_libdir}/libtdb.so.*
1323 %{_mandir}/man8/tdbbackup.8*
1324 %{_mandir}/man8/tdbdump.8*
1325 %{_mandir}/man8/tdbtool.8*
1326
1327 %files -n tdb-devel
1328 %defattr(644,root,root,755)
1329 %attr(755,root,root) %{_libdir}/libtdb.so
1330 %{_includedir}/tdb.h
1331 %endif
1332
1333 %files devel
1334 %defattr(644,root,root,755)
1335 %{_includedir}/%{name}
1336
1337 %files -n libsmbclient-static
1338 %defattr(644,root,root,755)
1339 %{_libdir}/libsmbclient.a
1340
1341 %files -n smbget
1342 %defattr(644,root,root,755)
1343 %attr(755,root,root) %{_bindir}/smbget
1344 %{_mandir}/man1/smbget.1*
1345 %{_mandir}/man5/smbgetrc.5*
1346
1347 %if %{with cups}
1348 %files -n cups-backend-smb
1349 %defattr(644,root,root,755)
1350 %attr(755,root,root) %{_bindir}/smbspool
1351 %attr(755,root,root) %{cups_serverbin}/backend/smb
1352 %{_mandir}/man8/smbspool.8*
1353 %endif
1354
1355 %files vfs-audit
1356 %defattr(644,root,root,755)
1357 %attr(755,root,root) %{_vfsdir}/audit.so
1358 %attr(755,root,root) %{_vfsdir}/extd_audit.so
1359 %attr(755,root,root) %{_vfsdir}/full_audit.so
1360 %{_mandir}/man8/vfs_audit.8*
1361 %{_mandir}/man8/vfs_extd_audit.8*
1362 %{_mandir}/man8/vfs_full_audit.8*
1363
1364 %files vfs-cap
1365 %defattr(644,root,root,755)
1366 %attr(755,root,root) %{_vfsdir}/cap.so
1367 %{_mandir}/man8/vfs_cap.8*
1368
1369 %files vfs-default_quota
1370 %defattr(644,root,root,755)
1371 %attr(755,root,root) %{_vfsdir}/default_quota.so
1372 %{_mandir}/man8/vfs_default_quota.8*
1373
1374 %files vfs-expand_msdfs
1375 %defattr(644,root,root,755)
1376 %attr(755,root,root) %{_vfsdir}/expand_msdfs.so
1377
1378 %files vfs-fake_perms
1379 %defattr(644,root,root,755)
1380 %attr(755,root,root) %{_vfsdir}/fake_perms.so
1381 %{_mandir}/man8/vfs_fake_perms.8*
1382
1383 %files vfs-notify_fam
1384 %defattr(644,root,root,755)
1385 %attr(755,root,root) %{_vfsdir}/notify_fam.so
1386 %{_mandir}/man8/vfs_notify_fam.8*
1387
1388 %files vfs-netatalk
1389 %defattr(644,root,root,755)
1390 %attr(755,root,root) %{_vfsdir}/netatalk.so
1391 %{_mandir}/man8/vfs_netatalk.8*
1392
1393 %files vfs-readahead
1394 %defattr(644,root,root,755)
1395 %attr(755,root,root) %{_vfsdir}/readahead.so
1396 %{_mandir}/man8/vfs_readahead.8*
1397
1398 %files vfs-readonly
1399 %defattr(644,root,root,755)
1400 %attr(755,root,root) %{_vfsdir}/readonly.so
1401 %{_mandir}/man8/vfs_readonly.8*
1402
1403 %files vfs-recycle
1404 %defattr(644,root,root,755)
1405 %attr(755,root,root) %{_vfsdir}/recycle.so
1406 %{_mandir}/man8/vfs_recycle.8*
1407
1408 %files vfs-shadow_copy
1409 %defattr(644,root,root,755)
1410 %attr(755,root,root) %{_vfsdir}/shadow_copy.so
1411 %{_mandir}/man8/vfs_shadow_copy.8*
1412
1413 %files vfs-catia
1414 %defattr(644,root,root,755)
1415 %attr(755,root,root) %{_vfsdir}/catia.so
1416 %{_mandir}/man8/vfs_catia.8*
1417
1418 %files vfs-scannedonly
1419 %defattr(644,root,root,755)
1420 %attr(755,root,root) %{_vfsdir}/scannedonly.so
1421 %{_mandir}/man8/vfs_scannedonly.8*
1422
1423 %if %{with ldap}
1424 %files -n openldap-schema-samba
1425 %defattr(644,root,root,755)
1426 %{schemadir}/*.schema
1427 %endif
1428
1429 %files doc-html
1430 %defattr(644,root,root,755)
1431 %doc docs/htmldocs/*
1432
1433 %files doc-pdf
1434 %defattr(644,root,root,755)
1435 %doc docs/*.pdf
1436
1437 %if 0
1438 %files -n python-samba
1439 %defattr(644,root,root,755)
1440 %attr(755,root,root) %{py_sitedir}/*.so
1441 %dir %{py_sitedir}/samba
1442 %attr(755,root,root) %{py_sitedir}/samba/*.so
1443 %{py_sitedir}/samba/*.py[co]
1444 %dir %{py_sitedir}/samba/dcerpc
1445 %{py_sitedir}/samba/dcerpc/*.py[co]
1446 %attr(755,root,root) %{py_sitedir}/samba/dcerpc/*.so
1447 %dir %{py_sitedir}/samba/tests
1448 %{py_sitedir}/samba/tests/*.py[co]
1449 %dir %{py_sitedir}/samba/tests/dcerpc
1450 %{py_sitedir}/samba/tests/dcerpc/*.py[co]
1451 %dir %{py_sitedir}/samba/torture
1452 %{py_sitedir}/samba/torture/*.py[co]
1453 %endif
This page took 0.188868 seconds and 4 git commands to generate.