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