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