]> git.pld-linux.org Git - packages/samba.git/blobdiff - samba.spec
- missing pl summary, BuildRequires: autoconf
[packages/samba.git] / samba.spec
index 5be43ce5365ee68c488db9a555e60c6b510e2147..384cff3765d38530358110361c780b69404eb039 100644 (file)
@@ -1,21 +1,22 @@
-Summary:       SMB client and server
-Summary(pl):   Klient i serwer SMB
-Summary(cs):   Klient a server SMB
-Summary(da):   SMB klient og server
-Summary(de):   SMB-Client und -Server
-Summary(fi):   SMB-asiakasohjelma ja palvelin
-Summary(fr):   Client et serveur SMB
-Summary(it):   Client e server SMB
-Summary(tr):   SMB istemci ve sunucusu
+Summary:       SMB server
+Summary(pl):   Serwer SMB
+Summary(cs):   Server SMB
+Summary(da):   SMB server
+Summary(de):   SMB-Server
+Summary(fi):   SMB-palvelin
+Summary(fr):   Serveur SMB
+Summary(it):   Server SMB
+Summary(pl):   Serwer SMB
+Summary(tr):   SMB sunucusu
 Name:          samba
-Version:       2.0.7
-Release:       23
+Version:       2.2.1a
+Release:       4
 License:       GPL
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
 Group(pl):     Sieciowe/Serwery
 URL:           http://www.samba.org/
-Source0:       ftp://samba.anu.edu.au/pub/samba/%{name}-%{version}.tar.gz
+Source0:       ftp://ftp.samba.org/pub/samba/%{name}-%{version}.tar.gz
 Source1:       smb.init
 Source2:       %{name}.pamd
 Source3:       swat.inetd
@@ -25,19 +26,22 @@ Source6:    smb.conf
 Patch1:                %{name}-config.patch
 Patch2:                %{name}-cap.patch
 Patch3:                %{name}-DESTDIR.patch
-Patch5:                %{name}-glibc21.patch
 Patch6:                %{name}-manpages_PLD_fixes.patch
 Patch7:                %{name}-smbprint.patch
 Patch8:                %{name}-autoconf.patch
 Patch9:                %{name}-smbadduser.patch
 Patch10:       %{name}-nocups.patch
+Patch11:       %{name}-nmbd_socket.patch
+Patch12:       %{name}-debug-0-suxorz.patch
 Prereq:                /sbin/chkconfig
 Requires:      pam >= 0.66
 Requires:      logrotate
-BuildRequires: ncurses-devel >= 5.0
-BuildRequires: readline-devel >= 4.1
+Requires:      samba-common = %{version} 
+BuildRequires: autoconf
+BuildRequires: ncurses-devel >= 5.2
+BuildRequires: readline-devel >= 4.2
 BuildRequires: pam-devel > 0.66
-BuildRequires: openssl-devel
+BuildRequires: openssl-devel >= 0.9.6a
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/samba
@@ -108,7 +112,7 @@ NetBIOS sopra TCP/IP e non ha bisogno del protocollo NetBEUI.
 %description -l pl
 Samba udostêpnia serwer SMB, który mo¿e byæ u¿yty w celu dostarczenia
 us³ug sieciowych (potocznie zwanych "Lan Manager"), dla klientów
-takich jak MS Windows, OS/2 a tak¿e maszyn linuxowych. W pakiecie
+takich jak MS Windows, OS/2 a tak¿e maszyn linuksowych. W pakiecie
 znajduje siê równie¿ oprogramowanie klienckie. Samba u¿ywa protoko³u
 NetBIOS po TCP/IP (NetBT) i nie wymaga protoko³u NetBEUI. Ta wersja ma
 pe³ne wsparcie dla blokowania plików, a tak¿e wsparcie dla kodowania
@@ -134,31 +138,72 @@ swat is run from inet server.
 
 %description -n swat -l pl
 swat pozwala na kompleksow± konfiguracjê smb.conf przy pomocy
-przegl±darki www.
+przegl±darki WWW.
+
+%package client
+Summary:       Samba client programs
+Summary(pl):   Klienci serwera Samba
+Group:         Applications/Networking
+Group(de):     Applikationen/Netzwerkwesen
+Group(pl):     Aplikacje/Sieciowe
+Requires:      samba-common = %{version}
+Obsoletes:     smbfs
+
+%description client
+Samba-client provides some SMB clients, which complement the build-in
+SMB filesystem in Linux. These allow accessing of SMB shares and
+printing to SMB printers.
+
+%description client -l pl
+Samba-client dostarcza pewne programy które uzupe³niaj± system plików
+SMB zawarty w j±drze. Pozwala na wspó³dzielenie i drukowanie w sieci
+SMB.
+
+%package common
+Summary:       Files used by both Samba servers and clients
+Summary(pl):   Pliki u¿ywane przez serwer i klientów Samba
+Group:         Networking/Daemons
+Group(de):     Netzwerkwesen/Server
+Group(pl):     Sieciowe/Serwery
+
+%description common
+Samba-common provides files necessary for both the server and client
+packages of Samba.
+
+%description common -l pl
+Samba-common dostarcza pliki niezbêdne zarówno dla serwera jak i
+klientów Samba.
 
 %prep
 %setup -q
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch5 -p1
-%patch6 -p1
+#update required
+#%patch6 -p1
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
+%patch12 -p1
 
 %build
 cd source
 autoconf
 %configure \
-       --with-privatedir=%{_sysconfdir} \
+       --with-readline \
+       --with-privatedir=%{_libdir} \
        --with-lockdir=%{_var}/lock/samba \
        --with-swatdir=%{_datadir}/swat \
        --with-smbmount \
        --with-automount \
        --without-smbwrapper \
+       --with-netatalk \
+       --with-msdfs \
        --with-quotas \
+       --with-vfs \
+       --with-utmp \
        --with-syslog \
        --with-mmap \
        --with-pam \
@@ -185,19 +230,22 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/swat
 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba
 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba
-install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/smb.conf
+install %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/smb.conf
 
 touch $RPM_BUILD_ROOT/var/lock/samba/{STATUS..LCK,wins.dat,browse.dat}
 
-echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_sysconfdir}/lmhosts
+echo 127.0.0.1 localhost > $RPM_BUILD_ROOT%{_libdir}/lmhosts
 
-> $RPM_BUILD_ROOT%{_sysconfdir}/smbusers
+> $RPM_BUILD_ROOT%{_libdir}/smbusers
 > $RPM_BUILD_ROOT/etc/security/blacklist.samba
 
-gzip -9nf README Manifest WHATSNEW.txt Roadmap docs/*.reg swat/README \
-       docs/textdocs/* docs/*.txt docs/{history,announce,THANKS}
-
 rm -f docs/faq/*.{sgml,txt}
+rm -f docs/htmldocs/*.[0-9].html
+
+gzip -9nfr Manifest README Roadmap WHATSNEW.txt docs/*.reg docs/{announce,history,THANKS} docs/textdocs/*.txt
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add smb
@@ -219,7 +267,7 @@ fi
 if [ -f /var/lock/subsys/rc-inetd ]; then
        /etc/rc.d/init.d/rc-inetd reload 1>&2
 else
-       echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
+       echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
 fi
 
 %postun -n swat
@@ -238,51 +286,80 @@ if [ "$1" != "0" ]; then
        [ ! -d /var/spool/samba ] && mkdir -m 1777 /var/spool/samba
 fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
-%doc README.gz Manifest.gz WHATSNEW.txt.gz
-%doc Roadmap.gz docs/faq docs/*.reg.gz
-%doc docs/textdocs docs/*.txt.gz docs/{history,announce,THANKS}.gz
-
-%attr(755,root,root) /sbin/mount.smbfs
-%attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/nmbd
 %attr(755,root,root) %{_sbindir}/smbd
 %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh
+%attr(755,root,root) %{_bindir}/smbstatus
+%attr(755,root,root) %{_bindir}/smbpasswd
+%attr(755,root,root) %{_bindir}/make_*
+%attr(755,root,root) %{_bindir}/smbcontrol
 
-%dir %{_sysconfdir}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/smb.conf
-%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/smbusers
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lmhosts
-
+%dir %{_libdir}
+%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/smbusers
 %attr(754,root,root) /etc/rc.d/init.d/smb
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/samba
 %attr(640,root,root) /etc/logrotate.d/samba
 %attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/samba
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.samba
-
-%{_mandir}/man[157]/*
+%{_mandir}/man1/smbstatus.1*
+%{_mandir}/man1/smbcontrol.1*
+%{_mandir}/man5/smbpasswd.5*
+%{_mandir}/man7/samba.7*
 %{_mandir}/man8/nmbd.8*
 %{_mandir}/man8/smbd.8*
-%{_mandir}/man8/smbmnt.8*
-%{_mandir}/man8/smbmount.8*
 %{_mandir}/man8/smbpasswd.8*
-%{_mandir}/man8/smbumount.8*
 
 %dir /home/samba
-%{_sysconfdir}/codepages
-
 %dir /var/lock/samba
 %ghost /var/lock/samba/*
 
 %attr(0750,root,root) %dir /var/log/samba
 %attr(0750,root,root) %dir /var/log/archiv/samba
-
 %attr(1777,root,root) %dir /var/spool/samba
 
+%files client
+%defattr(644,root,root,755)
+%attr(755,root,root) /sbin/mount.smbfs
+%attr(755,root,root) %{_bindir}/smbmount
+%attr(755,root,root) %{_bindir}/smbmnt
+%attr(755,root,root) %{_bindir}/smbumount
+%{_mandir}/man8/smbmnt.8*
+%{_mandir}/man8/smbmount.8*
+%{_mandir}/man8/smbumount.8*
+%attr(755,root,root) %{_bindir}/nmblookup
+%attr(755,root,root) %{_bindir}/smbclient
+%attr(755,root,root) %{_bindir}/smbtar
+%attr(755,root,root) %{_bindir}/smbspool
+%attr(755,root,root) %{_bindir}/smbcacls
+%{_mandir}/man1/smbtar.1*
+%{_mandir}/man1/smbclient.1*
+%{_mandir}/man1/nmblookup.1*
+%{_mandir}/man1/smbcacls.1*
+%attr(755,root,root) %{_bindir}/rpcclient
+%{_mandir}/man1/rpcclient.1*
+
+%files common
+%defattr(644,root,root,755)
+%doc README.gz Manifest.gz WHATSNEW.txt.gz
+%doc Roadmap.gz docs/faq docs/*.reg.gz
+%doc docs/textdocs docs/htmldocs/*.* docs/{history,announce,THANKS}.gz
+%config(noreplace) %verify(not size mtime md5) %{_libdir}/smb.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_libdir}/lmhosts
+%attr(755,root,root) %{_bindir}/make_smbcodepage
+%attr(755,root,root) %{_bindir}/make_unicodemap
+%attr(755,root,root) %{_bindir}/testparm
+%attr(755,root,root) %{_bindir}/testprns
+%attr(755,root,root) %{_bindir}/make_printerdef
+%{_libdir}/codepages
+%{_mandir}/man1/make_smbcodepage.1*
+%{_mandir}/man1/make_unicodemap.1*
+%{_mandir}/man1/testparm.1*
+%{_mandir}/man1/testprns.1*
+%{_mandir}/man5/smb.conf.5*
+%{_mandir}/man5/lmhosts.5*
+
 %files -n swat
 %defattr(644,root,root,755)
 %doc swat/README*
This page took 0.041468 seconds and 4 git commands to generate.