1275be49997f9740d12fce53389e94457a342f2c
[gd/samba-autobuild/.git] / packaging / RHEL-CTDB / samba.spec.tmpl
1 %define initdir %{_sysconfdir}/rc.d/init.d
2 %define auth %(test -f /etc/pam.d/system-auth && echo /etc/pam.d/system-auth || echo)
3
4 Summary: Samba SMB client and server
5 Vendor: Samba Team
6 Packager: Samba Team <samba@samba.org>
7 Name:         samba
8 Version:      PVERSION
9 Release:      1GITHASH
10 Epoch:        0
11 License: GNU GPL version 3
12 Group: System Environment/Daemons
13 URL: http://www.samba.org/
14
15 Source: samba-%{version}.tar.bz2
16
17 # Don't depend on Net::LDAP
18 Source998: filter-requires-samba.sh
19 Source999: setup.tar.bz2
20
21 Prereq: /sbin/chkconfig /bin/mktemp /usr/bin/killall
22 Prereq: fileutils sed /etc/init.d
23
24 Requires: pam >= 0.64 %{auth} 
25 Requires: samba-common = %{version}-%{release}
26 Provides: samba = %{version}
27
28 Prefix: /usr
29 BuildRoot: %{_tmppath}/%{name}-%{version}-root
30 BuildRequires: pam-devel, readline-devel, fileutils, libacl-devel, openldap-devel, krb5-devel, cups-devel, ctdb, e2fsprogs-devel
31 # requirements for building the man pages:
32 BuildRequires: libxslt, docbook-utils, docbook-style-xsl
33
34 # Working around perl dependency problem from docs
35 %define __perl_requires %{SOURCE998}
36
37 # rpm screws up the arch lib dir when using --target on RHEL5
38 %ifarch i386 i486 i586 i686 ppc s390
39 %define _libarch lib
40 %else
41 %define _libarch %_lib
42 %endif
43
44 %define _libarchdir /usr/%{_libarch}
45
46 %define numcpu  %(grep "^processor" /proc/cpuinfo |wc -l | sed -e 's/^0$/1/')
47
48 %description
49 Samba is the protocol by which a lot of PC-related machines share
50 files, printers, and other information (such as lists of available
51 files and printers). The Windows NT, OS/2, and Linux operating systems
52 support this natively, and add-on packages can enable the same thing
53 for DOS, Windows, VMS, UNIX of all kinds, MVS, and more. This package
54 provides an SMB server that can be used to provide network services to
55 SMB (sometimes called "Lan Manager") clients. Samba uses NetBIOS over
56 TCP/IP (NetBT) protocols and does NOT need the NetBEUI (Microsoft Raw
57 NetBIOS frame) protocol.
58
59
60 ######################################################################
61 %package client
62 Summary: Samba (SMB) client programs.
63 Group: Applications/System
64 Requires: samba-common = %{version}-%{release}
65 Obsoletes: smbfs
66 Provides: samba-client = %{version}-%{release}
67
68 %description client
69 The samba-client package provides some SMB clients to compliment the
70 built-in SMB filesystem in Linux. These clients allow access of SMB
71 shares and printing to SMB printers.
72
73
74 #######################################################################
75 %package common
76 Summary: Files used by both Samba servers and clients.
77 Group: Applications/System
78 Provides: samba-common = %{version}-%{release}
79
80 %description common
81 Samba-common provides files necessary for both the server and client
82 packages of Samba.
83
84
85 #######################################################################
86 %package swat
87 Summary: The Samba SMB server configuration program.
88 Group: Applications/System
89 Requires: samba = %{version} xinetd
90 Provides: samba-swat = %{version}-%{release}
91
92 %description swat
93 The samba-swat package includes the new SWAT (Samba Web Administration
94 Tool), for remotely managing Samba's smb.conf file using your favorite
95 Web browser.
96
97 %ifarch x86_64 ppc64
98 %package winbind-32bit
99 Summary:        Samba winbind compatibility package for 32bit apps on 64bit archs
100 Group:          Applications/System
101
102 %description winbind-32bit
103 Compatibility package for 32 bit apps on 64 bit architecures
104 %endif
105
106
107 #######################################################################
108 %package doc
109 Summary:      Samba Documentation
110 Group:        Documentation/Other
111 Provides:     samba-doc = %{version}-%{release}
112 Prereq:       /usr/bin/find /bin/rm /usr/bin/xargs
113
114 %description doc
115 The samba-doc package includes the HTML versions of the Samba manpages
116 utilized by SWAT as well as the HTML and PDF version of "Using Samba",
117 "Samba By Example", and "The Official Samba HOWTO and Reference Guide".
118
119
120 #######################################################################
121
122 %prep
123 %setup -q
124
125 # setup the vendor files (init scripts, etc...)
126 %setup -T -D -a 999 -n samba-%{version} -q
127
128 %build
129
130 /bin/cp setup/filter-requires-samba.sh %{SOURCE998}
131
132 cd source3
133 # RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
134
135 ## check for ccache
136 if ccache -h >/dev/null 2>&1 ; then
137         CC="ccache gcc"
138 else
139         CC="gcc"
140 fi
141
142 export CC
143
144 ## always run autogen.sh
145 ./autogen.sh
146
147
148 ##
149 ## build the files for the winbind-32bit compat package
150 ## and copy them to a safe location
151 ##
152 %ifarch x86_64 ppc64
153
154 # a directory to store the 32bit compatibility modules for later install
155 %define _32bit_tmp_dir %{_tmppath}/%{name}-%{version}-32bit
156
157 CC_SAVE="$CC"
158 CC="$CC -m32"
159
160 CFLAGS="$RPM_OPT_FLAGS -O3 -D_GNU_SOURCE -m32" ./configure \
161         --prefix=%{_prefix} \
162         --localstatedir=/var \
163         --with-configdir=%{_sysconfdir}/samba \
164         --with-libdir=/usr/lib/samba \
165         --with-pammodulesdir=/lib/security \
166         --with-lockdir=/var/lib/samba \
167         --with-logfilebase=/var/log/samba \
168         --with-mandir=%{_mandir} \
169         --with-piddir=/var/run \
170         --with-privatedir=%{_sysconfdir}/samba \
171         --disable-cups \
172         --with-acl-support \
173         --with-ads \
174         --with-automount \
175         --with-fhs \
176         --with-pam_smbpass \
177         --with-libsmbclient \
178         --with-libsmbsharemodes \
179         --without-smbwrapper \
180         --with-pam \
181         --with-quotas \
182         --with-syslog \
183         --with-utmp \
184         --with-cluster-support \
185         --with-ctdb=/usr/include \
186         --without-ldb \
187         --without-dnsupdate \
188         --with-aio-support \
189         --disable-merged-build
190
191 make showlayout
192
193 make samba3-idl
194
195 ## check for gcc 3.4 or later
196 CC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
197 CC_MAJOR=`echo ${CC_VERSION} | cut -d. -f 1`
198 CC_MINOR=`echo ${CC_VERSION} | cut -d. -f 2`
199 if [ ${CC_MAJOR} -ge 3 ]; then
200         if [ ${CC_MAJOR} -gt 3 -o ${CC_MINOR} -ge 4 ]; then
201                 make pch
202         fi
203 fi
204
205 make -j%{numcpu} %{?_smp_mflags} \
206         nss_modules pam_modules
207
208 rm -rf %{_32bit_tmp_dir}
209 mkdir %{_32bit_tmp_dir}
210
211 mv ../nsswitch/libnss_winbind.so %{_32bit_tmp_dir}/
212 mv bin/pam_winbind.so %{_32bit_tmp_dir}/
213 mv bin/libtalloc.so* %{_32bit_tmp_dir}/
214 mv bin/libtdb.so* %{_32bit_tmp_dir}/
215 mv bin/libwbclient.so* %{_32bit_tmp_dir}/
216
217 make clean
218
219 CC="$CC_SAVE"
220
221 %endif
222
223 CFLAGS="$RPM_OPT_FLAGS $EXTRA -D_GNU_SOURCE" ./configure \
224         --prefix=%{_prefix} \
225         --localstatedir=/var \
226         --with-configdir=%{_sysconfdir}/samba \
227         --libdir=%{_libarchdir} \
228         --with-modulesdir=%{_libarchdir}/samba \
229         --with-pammodulesdir=%{_libarch}/security \
230         --with-lockdir=/var/lib/samba \
231         --with-logfilebase=/var/log/samba \
232         --with-mandir=%{_mandir} \
233         --with-piddir=/var/run \
234         --with-privatedir=%{_sysconfdir}/samba \
235         --with-sambabook=%{_datadir}/swat/using_samba \
236         --with-swatdir=%{_datadir}/swat \
237         --disable-cups \
238         --with-acl-support \
239         --with-ads \
240         --with-automount \
241         --with-fhs \
242         --with-pam_smbpass \
243         --with-libsmbclient \
244         --with-libsmbsharemodes \
245         --without-smbwrapper \
246         --with-pam \
247         --with-quotas \
248         --with-shared-modules=idmap_rid,idmap_ad,idmap_tdb2,vfs_gpfs \
249         --with-syslog \
250         --with-utmp \
251         --with-cluster-support \
252         --with-ctdb=/usr/include \
253         --without-ldb \
254         --without-dnsupdate \
255         --with-aio-support\
256         --disable-merged-build
257
258 make showlayout
259
260 ## check for gcc 3.4 or later
261 CC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
262 CC_MAJOR=`echo ${CC_VERSION} | cut -d. -f 1`
263 CC_MINOR=`echo ${CC_VERSION} | cut -d. -f 2`
264 if [ ${CC_MAJOR} -ge 3 ]; then
265         if [ ${CC_MAJOR} -gt 3 -o ${CC_MINOR} -ge 4 ]; then
266                 make pch
267         fi
268 fi
269
270
271 make -j %{numcpu} %{?_smp_mflags} \
272         everything modules pam_smbpass
273
274 # check that desired suppor has been compiled into smbd:
275 export LD_LIBRARY_PATH=./bin
276 for test in HAVE_POSIX_ACLS HAVE_LDAP HAVE_KRB5 HAVE_GPFS CLUSTER_SUPPORT
277 do
278         if ! $(./bin/smbd -b | grep -q $test ) ; then
279                 echo "ERROR: '$test' is not in smbd. Build stopped."
280                 exit 1;
281         fi
282 done
283
284 # try and build the manpages
285 cd ..
286 ./release-scripts/build-manpages-nogit
287
288 # Remove some permission bits to avoid to many dependencies
289 find examples docs -type f | xargs -r chmod -x
290
291 %install
292 # Clean up in case there is trash left from a previous build
293 rm -rf $RPM_BUILD_ROOT
294
295 # Create the target build directory hierarchy
296 mkdir -p $RPM_BUILD_ROOT%{_datadir}/swat/{help,include,using_samba/{figs,gifsa}}
297 mkdir -p $RPM_BUILD_ROOT%{_includedir}
298 mkdir -p $RPM_BUILD_ROOT%{_initrddir}
299 mkdir -p $RPM_BUILD_ROOT{%{_libarchdir},%{_includedir}}
300 mkdir -p $RPM_BUILD_ROOT%{_libarchdir}/samba/{auth,charset,idmap,vfs,pdb}
301 mkdir -p $RPM_BUILD_ROOT/%{_libarch}/security
302 mkdir -p $RPM_BUILD_ROOT/lib/security
303 mkdir -p $RPM_BUILD_ROOT%{_mandir}
304 mkdir -p $RPM_BUILD_ROOT%{_prefix}/{bin,sbin}
305 mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib
306 mkdir -p $RPM_BUILD_ROOT/sbin
307 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{pam.d,samba}
308 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{pam.d}
309 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
310 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{samba,sysconfig}
311 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d
312 mkdir -p $RPM_BUILD_ROOT/var/lib/samba/winbindd_privileged
313 mkdir -p $RPM_BUILD_ROOT/var/{log,run/winbindd,spool}/samba
314 mkdir -p $RPM_BUILD_ROOT/%{_libarchdir}/krb5/plugins/libkrb5
315
316 cd source3
317 make DESTDIR=$RPM_BUILD_ROOT \
318         install
319
320 make DESTDIR=$RPM_BUILD_ROOT \
321         install-dbwrap_tool install-dbwrap_torture
322 cd ..
323
324 # NSS winbind support
325 install -m 755 nsswitch/libnss_winbind.so $RPM_BUILD_ROOT/%{_libarch}/libnss_winbind.so.2
326 ( cd $RPM_BUILD_ROOT/%{_libarch};
327   ln -sf libnss_winbind.so.2  libnss_winbind.so )
328 #
329 # do not install libnss_wins.so in order to reduce dependencies
330 # (we do not need it for the samba-ctdb scenario)
331 #
332 #install -m 755 nsswitch/libnss_wins.so $RPM_BUILD_ROOT/%{_libarch}/libnss_wins.so
333 # ( cd $RPM_BUILD_ROOT/%{_libarch}; ln -sf libnss_wins.so  libnss_wins.so.2 )
334
335 cp -p source3/bin/winbind_krb5_locator.so ${RPM_BUILD_ROOT}/%{_libarchdir}/krb5/plugins/libkrb5
336
337 # install files for winbind-32bit package
338 %ifarch x86_64 ppc64
339
340 install -m 755 %{_32bit_tmp_dir}/libnss_winbind.so ${RPM_BUILD_ROOT}/lib/libnss_winbind.so.2
341 ( cd ${RPM_BUILD_ROOT}/lib; ln -sf libnss_winbind.so.2  libnss_winbind.so )
342
343 mv %{_32bit_tmp_dir}/libtalloc* ${RPM_BUILD_ROOT}/usr/lib
344 mv %{_32bit_tmp_dir}/libtdb* ${RPM_BUILD_ROOT}/usr/lib
345 mv %{_32bit_tmp_dir}/libwbclient* ${RPM_BUILD_ROOT}/usr/lib
346 mv %{_32bit_tmp_dir}/pam_winbind.so ${RPM_BUILD_ROOT}/lib/security
347
348 rm -rf %{_32bit_tmp_dir}
349
350 %endif
351
352 ## cleanup
353 /bin/rm -rf $RPM_BUILD_ROOT/usr/lib*/samba/security
354
355 # Install the miscellany
356 echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts
357
358 install -m644 setup/swat $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/swat
359 install -m644 setup/samba.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/samba
360 install -m755 setup/smb.init $RPM_BUILD_ROOT%{initdir}/smb
361 install -m755 setup/winbind.init $RPM_BUILD_ROOT%{initdir}/winbind
362 install -m644 setup/samba.pamd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/samba
363 install -m755 setup/smbprint $RPM_BUILD_ROOT%{_bindir}
364 install -m644 setup/smbusers $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers
365 install -m644 setup/smb.conf $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf
366 install -m755 source3/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_bindir}
367
368 ln -s ../..%{initdir}/smb  $RPM_BUILD_ROOT%{_sbindir}/samba
369 ln -s ../..%{initdir}/winbind  $RPM_BUILD_ROOT%{_sbindir}/winbind
370
371 # Remove "*.old" files
372 find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
373
374
375 ##
376 ## Clean out man pages for tools not installed here
377 ##
378 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/log2pcap.1*
379 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/smbsh.1*
380 rm -f $RPM_BUILD_ROOT%{_mandir}/man5/vfstest.1*
381
382
383 %clean
384 rm -rf $RPM_BUILD_ROOT
385
386 %post
387 ## deal with an upgrade from a broken 3.0.21b RPM
388 if [ "$1" -eq "2" ]; then
389         if [ -d /var/cache/samba ]; then
390                 for file in `ls /var/cache/samba/*tdb`; do
391                         /bin/cp -up $file /var/lib/samba/`basename $file`
392                 done
393                 mkdir -p /var/lib/samba/eventlog
394                 for file in `ls /var/cache/samba/eventlog/*tdb`; do
395                         /bin/cp -up $file /var/lib/samba/eventlog/`basename $file`
396                 done
397                 /bin/mv /var/cache/samba /var/cache/samba.moved
398         fi
399 fi
400
401 if [ "$1" -ge "1" ]; then
402         /sbin/service smb condrestart >/dev/null 2>&1 || :
403 fi
404
405 %preun
406 if [ $1 = 0 ] ; then
407     /sbin/service smb stop >/dev/null 2>&1 || :
408     /sbin/chkconfig --del smb
409     # rm -rf /var/log/samba/* /var/lib/samba/*
410 fi
411 exit 0
412
413 #%postun
414
415 %post swat
416 # Add swat entry to /etc/services if not already there.
417 if [ ! "`grep ^\s**swat /etc/services`" ]; then
418         echo 'swat        901/tcp     # Add swat service used via inetd' >> /etc/services
419 fi
420
421 %post common
422 /sbin/ldconfig
423
424 if [ "$1" -ge "1" ]; then
425         /sbin/service winbind condrestart >/dev/null 2>&1 || :
426 fi
427
428 %preun common
429 if [ $1 = 0 ] ; then
430     /sbin/service winbind stop >/dev/null 2>&1 || :
431     /sbin/chkconfig --del winbind
432 fi
433 exit 0
434
435 %postun common 
436 /sbin/ldconfig
437
438 #######################################################################
439 ## Files section                                                     ##
440 #######################################################################
441
442 %files
443 %defattr(-,root,root)
444
445 %config(noreplace) %{_sysconfdir}/sysconfig/samba
446 %config(noreplace) %{_sysconfdir}/samba/smbusers
447 %attr(755,root,root) %config %{initdir}/smb
448 %config(noreplace) %{_sysconfdir}/pam.d/samba
449
450 %attr(0755,root,root) %dir /var/log/samba
451 %attr(0755,root,root) %dir /var/lib/samba
452 %attr(1777,root,root) %dir /var/spool/samba
453
454 %{_sbindir}/samba
455
456 %{_sbindir}/smbd
457 %{_sbindir}/nmbd
458
459 %{_bindir}/mksmbpasswd.sh
460 %{_bindir}/smbcontrol
461 %{_bindir}/smbstatus
462 %{_bindir}/tdbbackup
463 %{_bindir}/tdbtool
464 %{_bindir}/tdbdump
465 %{_bindir}/tdbrestore
466 %{_bindir}/eventlogadm
467
468 %{_libarchdir}/samba/auth/script.so
469 %{_libarchdir}/samba/vfs/acl_tdb.so
470 %{_libarchdir}/samba/vfs/acl_xattr.so
471 %{_libarchdir}/samba/vfs/aio_fork.so
472 %{_libarchdir}/samba/vfs/audit.so
473 %{_libarchdir}/samba/vfs/cap.so
474 %{_libarchdir}/samba/vfs/catia.so
475 %{_libarchdir}/samba/vfs/crossrename.so
476 %{_libarchdir}/samba/vfs/default_quota.so
477 %{_libarchdir}/samba/vfs/dirsort.so
478 %{_libarchdir}/samba/vfs/expand_msdfs.so
479 %{_libarchdir}/samba/vfs/extd_audit.so
480 %{_libarchdir}/samba/vfs/fake_perms.so
481 %{_libarchdir}/samba/vfs/fileid.so
482 %{_libarchdir}/samba/vfs/full_audit.so
483 %{_libarchdir}/samba/vfs/gpfs.so
484 %{_libarchdir}/samba/vfs/linux_xfs_sgid.so
485 %{_libarchdir}/samba/vfs/netatalk.so
486 %{_libarchdir}/samba/vfs/preopen.so
487 %{_libarchdir}/samba/vfs/readahead.so
488 %{_libarchdir}/samba/vfs/readonly.so
489 %{_libarchdir}/samba/vfs/recycle.so
490 %{_libarchdir}/samba/vfs/scannedonly.so
491 %{_libarchdir}/samba/vfs/shadow_copy.so
492 %{_libarchdir}/samba/vfs/shadow_copy2.so
493 %{_libarchdir}/samba/vfs/smb_traffic_analyzer.so
494 %{_libarchdir}/samba/vfs/streams_depot.so
495 %{_libarchdir}/samba/vfs/streams_xattr.so
496 %{_libarchdir}/samba/vfs/syncops.so
497 %{_libarchdir}/samba/vfs/time_audit.so
498 %{_libarchdir}/samba/vfs/tsmsm.so
499 %{_libarchdir}/samba/vfs/xattr_tdb.so
500
501
502 %{_mandir}/man1/smbcontrol.1*
503 %{_mandir}/man1/smbstatus.1*
504 %{_mandir}/man1/vfstest.1*
505 %{_mandir}/man5/smbpasswd.5*
506 %{_mandir}/man7/samba.7*
507 %{_mandir}/man8/nmbd.8*
508 %{_mandir}/man8/pdbedit.8*
509 %{_mandir}/man8/smbd.8*
510 %{_mandir}/man8/tdbbackup.8*
511 %{_mandir}/man8/tdbdump.8*
512 %{_mandir}/man8/tdbtool.8*
513 %{_mandir}/man8/eventlogadm.8*
514 %{_mandir}/man8/vfs_*.8*
515
516
517 ##########
518
519 %files doc
520 %defattr(-,root,root)
521 %doc README
522 %doc COPYING
523 %doc Manifest 
524 %doc WHATSNEW.txt
525 %doc Roadmap
526 %doc docs-xml/archives/THANKS
527 %doc docs-xml/archives/history
528 %doc docs-xml/registry
529 %doc examples/autofs
530 %doc examples/LDAP
531 %doc examples/libsmbclient
532 %doc examples/misc
533 %doc examples/printer-accounting
534 %doc examples/printing
535
536 ##########
537
538 %files swat
539 %defattr(-,root,root)
540 %config(noreplace) %{_sysconfdir}/xinetd.d/swat
541 %dir %{_datadir}/swat
542 %{_datadir}/swat/*
543 %{_sbindir}/swat
544 %{_mandir}/man8/swat.8*
545 %attr(755,root,root) %{_libarchdir}/samba/*.msg
546
547 ##########
548
549 %files client
550 %defattr(-,root,root)
551
552 %{_bindir}/rpcclient
553 %{_bindir}/smbcacls
554 %{_bindir}/findsmb
555 %{_bindir}/nmblookup
556 %{_bindir}/smbget
557 %{_bindir}/smbclient
558 %{_bindir}/smbprint
559 %{_bindir}/smbspool
560 %{_bindir}/smbtar
561 %{_bindir}/smbtree
562 %{_bindir}/sharesec
563 %{_bindir}/smbta-util
564
565 %{_mandir}/man8/smbspool.8*
566 %{_mandir}/man1/smbget.1*
567 %{_mandir}/man5/smbgetrc.5*
568 %{_mandir}/man1/findsmb.1*
569 %{_mandir}/man1/nmblookup.1*
570 %{_mandir}/man1/rpcclient.1*
571 %{_mandir}/man1/smbcacls.1*
572 %{_mandir}/man1/smbclient.1*
573 %{_mandir}/man1/smbtar.1*
574 %{_mandir}/man1/smbtree.1*
575 %{_mandir}/man1/sharesec.1*
576
577 ##########
578
579 %files common
580 %defattr(-,root,root)
581 %dir %{_sysconfdir}/samba
582 %dir %{_libarchdir}/samba
583 %dir %{_libarchdir}/samba/charset
584 %config(noreplace) %{_sysconfdir}/samba/smb.conf
585 %config(noreplace) %{_sysconfdir}/samba/lmhosts
586 %attr(755,root,root) %config %{initdir}/winbind
587
588 %attr(755,root,root) /%{_libarch}/libnss_winbind.so
589 %attr(755,root,root) /%{_libarch}/libnss_winbind.so.2
590 %attr(755,root,root) /%{_libarch}/security/pam_winbind.so
591 %attr(755,root,root) /%{_libarch}/security/pam_smbpass.so
592 /usr/share/locale/*/LC_MESSAGES/pam_winbind.mo
593 /usr/share/locale/*/LC_MESSAGES/net.mo
594
595 %{_libarchdir}/samba/charset/CP437.so
596 %{_libarchdir}/samba/charset/CP850.so
597 %{_libarchdir}/samba/idmap/ad.so
598 %{_libarchdir}/samba/idmap/rid.so
599 %{_libarchdir}/samba/idmap/tdb2.so
600 %{_libarchdir}/samba/idmap/autorid.so
601 %{_libarchdir}/samba/lowcase.dat
602 %{_libarchdir}/samba/nss_info/rfc2307.so
603 %{_libarchdir}/samba/nss_info/sfu.so
604 %{_libarchdir}/samba/nss_info/sfu20.so
605 %{_libarchdir}/samba/upcase.dat
606 %{_libarchdir}/samba/valid.dat
607
608 %{_includedir}/libsmbclient.h
609 %{_libarchdir}/libsmbclient.*
610 %{_includedir}/smb_share_modes.h
611 %{_libarchdir}/libsmbsharemodes.so
612 %{_libarchdir}/libsmbsharemodes.so.0
613
614 %{_includedir}/netapi.h
615 %{_includedir}/wbclient.h
616 %{_includedir}/talloc.h
617 %{_includedir}/tdb.h
618 %{_libarchdir}/libnetapi.so
619 %{_libarchdir}/libnetapi.so.0
620 %{_libarchdir}/libtalloc.so
621 %{_libarchdir}/libtalloc.so.2
622 %{_libarchdir}/libtdb.so
623 %{_libarchdir}/libtdb.so.1
624 %{_libarchdir}/libwbclient.so
625 %{_libarchdir}/libwbclient.so.0
626
627 %{_libarchdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so
628
629 %{_sbindir}/winbind
630
631 %{_sbindir}/winbindd
632 %{_bindir}/testparm
633 %{_bindir}/smbpasswd
634 %{_bindir}/profiles
635 %{_bindir}/net
636 %{_bindir}/wbinfo
637 %{_bindir}/ntlm_auth
638 %{_bindir}/pdbedit
639 %{_bindir}/smbcquotas
640 %{_bindir}/dbwrap_tool
641 %{_bindir}/dbwrap_torture
642
643 %{_mandir}/man1/ntlm_auth.1*
644 %{_mandir}/man1/profiles.1*
645 %{_mandir}/man1/smbcquotas.1*
646 %{_mandir}/man1/testparm.1*
647 %{_mandir}/man5/smb.conf.5*
648 %{_mandir}/man5/lmhosts.5*
649 %{_mandir}/man8/smbpasswd.8*
650 %{_mandir}/man1/wbinfo.1*
651 %{_mandir}/man8/winbindd.8*
652 %{_mandir}/man8/net.8*
653 %{_mandir}/man8/pam_winbind.8*
654 %{_mandir}/man7/libsmbclient.7*
655 %{_mandir}/man1/ldbadd.1*
656 %{_mandir}/man1/ldbdel.1*
657 %{_mandir}/man1/ldbedit.1*
658 %{_mandir}/man1/ldbmodify.1*
659 %{_mandir}/man1/ldbsearch.1*
660 %{_mandir}/man1/ldbrename.1*
661 %{_mandir}/man7/winbind_krb5_locator.7*
662 %{_mandir}/man8/idmap_*.8*
663
664 %ifarch x86_64 ppc64
665 %files winbind-32bit
666 %attr(755,root,root) /lib/libnss_winbind.so
667 %attr(755,root,root) /lib/libnss_winbind.so.2
668 %attr(755,root,root) /usr/lib/libtalloc.so
669 %attr(755,root,root) /usr/lib/libtalloc.so.2
670 %attr(755,root,root) /usr/lib/libtdb.so
671 %attr(755,root,root) /usr/lib/libtdb.so.1
672 %attr(755,root,root) /usr/lib/libwbclient.so
673 %attr(755,root,root) /usr/lib/libwbclient.so.0
674 %attr(755,root,root) /lib/security/pam_winbind.so
675 %endif
676
677
678
679 %changelog
680 * Fri Jan 16 2004 Gerald (Jerry) Carter <jerry@samba,org>
681 - Removed ChangeLog entries since they are kept in CVS
682
683
684