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