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