Hello community,

here is the log from the commit of package samba.1300 for openSUSE:12.1:Update 
checked in at 2013-02-12 09:56:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.1:Update/samba.1300 (Old)
 and      /work/SRC/openSUSE:12.1:Update/.samba.1300.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "samba.1300", Maintainer is ""

Changes:
--------
New Changes file:

--- /dev/null   2013-02-09 11:18:20.872010756 +0100
+++ /work/SRC/openSUSE:12.1:Update/.samba.1300.new/samba-doc.changes    
2013-02-12 09:56:23.000000000 +0100
@@ -0,0 +1,50 @@
+-------------------------------------------------------------------
+Wed Mar 14 17:39:53 UTC 2012 - [email protected]
+
+- Add the ldapsmb sources as else patches against them have no chance to apply.
+
+-------------------------------------------------------------------
+Wed Dec 21 12:59:18 UTC 2011 - [email protected]
+
+- BuildRequire autoconf to avoid implicit dependency for post-11.4 systems.
+
+-------------------------------------------------------------------
+Wed Dec 21 10:31:47 UTC 2011 - [email protected]
+
+- Remove call to suse_update_config macro for post-11.4 systems.
+
+-------------------------------------------------------------------
+Mon Jun  8 14:07:22 CEST 2009 - [email protected]
+
+- BuildRequire keyutils-devel.
+
+-------------------------------------------------------------------
+Tue Mar 10 15:07:29 CET 2009 - [email protected]
+
+- Only call '%find_lang pam_winbind' in the samba spec file, not samba-doc.
+
+-------------------------------------------------------------------
+Thu Jan 24 11:50:09 CET 2008 - [email protected]
+
+- Remove NoSource tags from samba-doc spec file; [bnc#351370].
+
+-------------------------------------------------------------------
+Fri Jun 16 12:52:10 CEST 2006 - [email protected]
+
+- Fix syntax error in configure script.
+
+-------------------------------------------------------------------
+Wed Feb  8 10:42:34 CET 2006 - [email protected]
+
+- Remove openafs requirement.
+
+-------------------------------------------------------------------
+Wed Jan 25 21:41:18 CET 2006 - [email protected]
+
+- converted neededforbuild to BuildRequires
+
+-------------------------------------------------------------------
+Thu Nov 17 19:26:22 CET 2005 - [email protected]
+
+- Create a separate Samba documentation package to build it as noarch.
+
New Changes file:

--- /dev/null   2013-02-09 11:18:20.872010756 +0100
+++ /work/SRC/openSUSE:12.1:Update/.samba.1300.new/samba.changes        
2013-02-12 09:56:23.000000000 +0100
@@ -0,0 +1,8141 @@
+-------------------------------------------------------------------
+Thu Jan 31 16:14:06 UTC 2013 - [email protected]
+
+- Drop separate build-source-timestamp file as it led to a second, incorrect
+  Source Timestamp line.
+
+-------------------------------------------------------------------
+Tue Jan 29 16:45:55 UTC 2013 - [email protected]
+
+- The Samba Web Administration Tool (SWAT) in Samba versions 3.0.x to 4.0.1
+  are affected by a cross-site request forgery; CVE-2013-0214; (bnc#799641).
+
+-------------------------------------------------------------------
+Tue Jan 29 14:41:30 UTC 2013 - [email protected]
+
+- The Samba Web Administration Tool (SWAT) in Samba versions 3.0.x to 4.0.1
+  could possibly be used in clickjacking attacks; CVE-2013-0213; (bnc#800982).
+
+-------------------------------------------------------------------
+Wed Jan 23 11:23:42 UTC 2013 - [email protected]
+
+- defer_open is triggered multiple times on the same request; (bso#9196).
+- Fix SEGV when using second vfs module; (bso#9471).
+- Correctly detect O_DIRECT; (bso#9548).
+- Mask off signals the correct way from the signal handler; (bso#9550).
+- ntlm_auth.1: Fix format and make examples visible; (bso#9569).
+
+-------------------------------------------------------------------
+Fri Jan 18 17:34:55 UTC 2013 - [email protected]
+
+- Remove dangling references to Heimdal from the spec file.
+
+-------------------------------------------------------------------
+Sun Dec 23 14:56:51 UTC 2012 - [email protected]
+
+- Use the version macro while definition of the branch macro.
+
+-------------------------------------------------------------------
+Sat Dec  8 18:57:16 UTC 2012 - [email protected]
+
+- Fix MD5 detection in the autoconf build; (bso#9037); (bso#9086); (bso#9094);
+  (bso#9418).
+- Use work around for 'winbind use default domain' only if it is set;
+  (bso#9367).
+- Allow smb2.acls torture test to pass against smbd with a POSIX ACLs backend;
+  (bso#9374).
+- large read requests cause server to issue malformed reply; (bso#9422).
+- s3-rpc_client: lookup nametype 0x20 in rpc_pipe_open_tcp_port(); (bso#9426).
+- Fix ncacn_ip_tcp reconnection code for lsa lookups; (bso#9439).
+- Allow to force DNS updates using net; (bso#9451).
+- Respond correctly to FILE_STREAM_INFO requests; (bso#9460).
+
+-------------------------------------------------------------------
+Tue Dec  4 14:29:48 UTC 2012 - [email protected]
+
+- On uninstall remove winbind from the pam configuration, invalidate the nscd
+  passwd and group cache and only recommend the install of nscd; (bnc#792340).
+
+-------------------------------------------------------------------
+Mon Dec  3 16:43:51 UTC 2012 - [email protected]
+
+- BuildRequire libnscd-devel once.
+
+-------------------------------------------------------------------
+Fri Nov 30 18:14:37 UTC 2012 - [email protected]
+
+- Don't clutter the spec file diff view; (bnc#783384).
+
+-------------------------------------------------------------------
+Wed Nov 28 13:08:20 UTC 2012 - [email protected]
+
+- Fix fd leak causing 100% CPU in winbind on certain dc connection 
+  failures; (bso#9436); (bnc#786677).
+
+-------------------------------------------------------------------
+Tue Nov 27 17:22:58 UTC 2012 - [email protected]
+
+- Fix spoolss segfault when default devmode is disabled; (bso#9433);
+  (bnc#791183).
+
+-------------------------------------------------------------------
+Fri Nov 16 18:23:42 UTC 2012 - [email protected]
+
+- ACL masks incorrectly applied when setting ACLs; (bso#9236).
+- s3-kerberos: also try with AES keys, when decrypting tickets; (bso#9272).
+- lib/replace: replace all *printf function if we replace snprintf; (bso#9390).
+- lib/addns: don't depend on the order in resp->answers[]; (bso#9402).
+
+-------------------------------------------------------------------
+Tue Nov 13 17:26:15 UTC 2012 - [email protected]
+
+- s4:torture/smb2: improve the smb2.create.blob tes; (bso#9209).
+- lib/krb5_wrap: request enc_types in the correct order; (bso#9272).
+- Fix net ads join message for the dns domain; (bso#9326).
+- docs-xml: fix use of <smbconfoption> tag; (bso#9345).
+- s3-aio_pthread: Optimize aio_pthread_handle_completion; (bso#9359).
+- s3:winbind: Failover if netlogon pipe is not available; (bso#9386).
+
+-------------------------------------------------------------------
+Mon Oct 29 19:48:51 UTC 2012 - [email protected]
+
+- Ensure adding the winbind group never can fail.
+
+-------------------------------------------------------------------
+Mon Oct 29 16:59:09 UTC 2012 - [email protected]
+
+- Create ntadmin group only if it doesn't yet exist.
+
+-------------------------------------------------------------------
+Mon Oct 29 12:03:21 UTC 2012 - [email protected]
+
+- quota: Don't force the block size to 512; (bso#3272).
+- Fix poll replacement to become a msleep replacement; (bso#8107).
+- Fix wrong test == syntax in configure; (bso#8146).
+- Fix --with(out)-sendfile-support option handling in autoconf; (bso#8344).
+- Fix builtin forms order to match Windows again; (bso#8632).
+- Fix RAW printing for normal users; (bso#8769); (bnc#790741).
+- Initialise ticket to ensure we do not invalid memory; (bso#8788).
+- Fix 'net rpc share allowedusers' to work with 2008r2; (bso#8966).
+- Fix crash on null pam change pw response; (bso#9013).
+- Connection to outbound trusted domain goes offline; (bso#9016).
+- Increase debug level for info that the db is empty; (bso#9112).
+- 'smbclient' can't connect to a Windows 7 server using NTLMv2; (bso#9117).
+- Winbind can't fetch user or group info from AD via LDAP; (bso#9147).
+- Open printers with the right access mask; (bso#9154).
+- Fix makerpms.sh on RHEL; (bso#9165).
+- Remove non-existent option '-Y' from winbindd manpage; (bso#9171).
+- Add quota support for gfs2; (bso#9172).
+- Make SMB2 compound request create/delete_on_close/close work as Windows;
+  (bso#9173).
+- Empty SPNEGO packet can cause smbd to crash; (bso#9174).
+- pam_winbind: Match more return codes when wbcGetPwnam has failed;
+  (bso#9177).
+- Fix crash bug in idmap_hash; (bso#9188); (bnc#788159).
+- SMB2 Create doesn't return correct MAX ACCESS access mask in blob;
+  (bso#9189).
+- Fix service control for non-internal services; (bso#9192).
+- Don't take 'state->te' as indication for "was_deferred"; (bso#9196).
+- Parse of invalid SMB2 create blob can cause smbd crash; (bso#9209).
+- Bad ASN.1 NegTokenInit packet can cause invalid free; (bso#9213).
+- Fix segfault in smbd if user specified ports out for range; (bso#9218).
+- Signing cannot be disabled for SMB2 by design, so fix the documentation
+  instead; (bso#9222).
+- Fix NT_STATUS_IO_TIMEOUT during slow import of printers into registry;
+  (bso#9231).
+- When setting a non-default ACL, don't forget to apply masks to SMB_ACL_USER
+  and SMB_ACL_GROUP entries; (bso#9236).
+- lib-addns: ensure that allocated buffer are pre set to 0; (bso#9259).
+- Make tdb robust against shrinking tdbs and improper CLEAR_IF_FIRST restart;
+  (bso#9268).
+- Add support for reloading systemd services; (bso#9280).
+
+-------------------------------------------------------------------
+Fri Oct 26 17:40:15 UTC 2012 - [email protected]
+
+- Warn via the smbd log if AppArmor and "wide links" are in use; (bnc#783719).
+
+-------------------------------------------------------------------
+Mon Sep 17 11:56:46 UTC 2012 - [email protected]
+
+- Backport FSCTL codes and fix segfault in smbstatus from master; (bso#9058).
+- Fix bad call to memcpy source3/registry/regfio.c; (bso#9065).
+- "Domain Users" incorrectly added as additional group on domain members;
+  (bso#9066).
+- Use correct RID for "Domain Guests" primary group; (bso#9067).
+- Fix crash bug in smbd caused by a blocking lock followed by close;
+  (bso#9084).
+- Fix smbclient/tarmode panic when connecting to Windows 2000 clients;
+  (bso#9088).
+- Fix refreshing of Kerberos tickets in Winbind; (bso#9098).
+- Fix identification of idle clients in Winbind to avoid crashes and NDR
+  parsing errors; (bso#9104).
+- Fix compilation with newer MIT Kerberos which hides internal symbols;
+  (bso#9111).
+- Fix flooding the logs with records we don't find in pcap; (bso#9112).
+- Initialize the print backend after we setup winreg; (bso#9122).
+- Fix lprng job tracking errors; (bso#9123).
+- Fix setting of "inherited" bit on inherited ACE's; (bso#9124).
+- Fix Winbind panic if we couldn't find the domain; (bso#9135).
+- Make 'smbclient allinfo' show the snapshot list; (bso#9137).
+- Fix nfs quota support with Linux nfs4 mounts; (bso#9144).
+- Valid open requests can cause smbd assert due to incorrect oplock handling
+  on delete requests; (bso#9150).
+
+-------------------------------------------------------------------
+Thu Sep 13 05:32:48 MDT 2012 - [email protected]
+
+- NMB registration for a duplicate workstation fails with registration
+  refuse; (bso#9085); (bnc#770056).
+
+-------------------------------------------------------------------
+Mon Aug  6 19:40:23 UTC 2012 - [email protected]
+
+- Correct documentation of "case sensitive"; (bso#8552).
+- Printing fails in function cups_job_submit; (bso#8719).
+- Fix kernel oplocks when uid(file) != uid(process); (bso#8974).
+- Send correct responses to NT Transact Secondary when no data and no params
++++ 7944 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.1:Update/.samba.1300.new/samba.changes

New:
----
  baselibs.conf
  ldapsmb-1.34b.tar.bz2
  patches.tar.bz2
  samba-3.6.3.tar.bz2
  samba-doc.changes
  samba-doc.spec
  samba.changes
  samba.spec
  vendor-files.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ samba-doc.spec ++++++
#
# spec file for package samba-doc
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           samba-doc
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
BuildRequires:  autoconf
%endif
BuildRequires:  cups-devel
BuildRequires:  e2fsprogs-devel
BuildRequires:  fam-devel
BuildRequires:  gcc
BuildRequires:  libacl-devel
BuildRequires:  make
BuildRequires:  patch
%if 0%{?centos_version} > 599 ||0%{?fedora_version} > 11 || 
0%{?mandriva_version} > 2009 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 
1100
BuildRequires:  libuuid-devel
%endif
BuildRequires:  pam-devel
BuildRequires:  popt-devel
BuildRequires:  readline-devel
%if 0%{?suse_version}
BuildRequires:  cracklib-devel
BuildRequires:  openldap2-devel
%endif
%if 0%{?suse_version} > 1030
BuildRequires:  gdbm-devel
BuildRequires:  pwdutils
%endif
%if 0%{?suse_version} > 930
BuildRequires:  krb5-devel
BuildRequires:  libiniparser-devel
BuildRequires:  libnscd-devel
BuildRequires:  python-devel
%endif
%if 0%{?suse_version} > 930 && 0%{?suse_version} < 1031
BuildRequires:  dmapi-devel
BuildRequires:  libxml2-devel
BuildRequires:  mysql-devel
BuildRequires:  postgresql-devel
BuildRequires:  xfsprogs-devel
%endif
%if 0%{?suse_version} > 830 && 0%{?suse_version} < 931
BuildRequires:  heimdal-devel
%endif
%if 0%{?fedora_version}
BuildRequires:  cracklib-devel
%endif
%if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} || 
0%{?mandriva_version}
BuildRequires:  krb5-devel
BuildRequires:  openldap-devel
BuildRequires:  python-devel
%endif
%if 0%{?suse_version} > 1000
BuildRequires:  keyutils-devel
%endif
%if 0%{?fedora_version} || 0%{?rhel_version} > 500
BuildRequires:  keyutils-libs-devel
%endif
%if 0%{?suse_version} > 1000 || 0%{?fedora_version} || 0%{?rhel_version} || 
0%{?mandriva_version}
BuildRequires:  ctdb-devel > 1.0.105
%endif
%if 0%{?suse_version} > 1110
BuildRequires:  fdupes
%endif
%if 0%{?suse_version} > 1020
BuildRequires:  pkg-config
%else
BuildRequires:  pkgconfig
%endif
%define samba_ver 3.6.3
%define samba_ver_suffix %nil
%define samba_ver_full %{samba_ver}%{samba_ver_suffix}
%if 0%{?suse_version} && 0%{?suse_version} < 1111
%define guards_symbols pre_1111
%endif
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1130
%define libldb_ver 1.0.2
%define libtalloc_ver 2.0.5
%define libtdb_ver 1.2.9
%define libtevent_ver 0.9.11
%else
%define libldb_ver %{version}
%define libtalloc_ver %{version}
%define libtdb_ver %{version}
%define libtevent_ver %{version}
%endif
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
%define build_make_smp_mflags %{?_smp_mflags}
%else
%define build_make_smp_mflags %{?jobs:-j%jobs}
%endif
%define SOURCE_TIMESTAMP 2924
%define BRANCH %{version}.SLE11_SP2
Version:        3.6.3
Release:        0
%define ldapsmb_ver 1.34b
Url:            http://www.samba.org/
Summary:        Samba Documentation
License:        GPL-3.0+
Group:          Documentation/Other
PreReq:         coreutils
PreReq:         findutils
Provides:       samba-gplv3-doc = %{version}
Obsoletes:      samba-gplv3-doc < %{version}
Provides:       samba-doc-gplv2 = %{version}
Obsoletes:      samba-doc-gplv2 < %{version}
BuildArch:      noarch
Source:         
http://samba.org/samba/ftp/samba-%{version}%{samba_ver_suffix}.tar.bz2
Source1:        vendor-files.tar.bz2
Source2:        patches.tar.bz2
Source4:        baselibs.conf
Source11:       http://www.samba.org/~gd/ldapsmb/ldapsmb-%{ldapsmb_ver}.tar.bz2
# Choose some features / extra packages here
############################################
%define make_devel 0
%define use_ccache 0
%if 0%{?use_ccache} > 0
BuildRequires:  ccache
%endif
# requires: docbook-utils docbook-xsl-stylesheets docbook_4 freetype2 
ghostscript-fonts-std ghostscript-library ghostscript-x11 libxslt sgml-skel 
te_etex te_latex te_pdf tetex xmlcharent
%define make_doc 0
%define make_utils 0
%define make_ldapsmb 1
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1120
%define cifs_init_script cifs
%else
%define cifs_init_script smbfs
%endif
%if 0%{?suse_version} && 0%{?suse_version} < 1111
%define link_static_libs 1
%else
%define link_static_libs 0
%endif
%if 0%{?suse_version} && 0%{?suse_version} < 1111
# pre-11.2 doesn't know the python_* macros
%define python_sitelib %py_sitedir
%define python_sitearch %py_sitedir
%else (%if 0%{?centos_version} && 0%{?centos_version} < 600) || 
(0%{rhel_version} && 0%{rhel_version} < 600)
# CentOS and RHEL pre-6 don't know them either
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import 
get_python_lib; import sys; sys.stdout.write(get_python_lib())")
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import 
get_python_lib; import sys; sys.stdout.write(get_python_lib(1))")
%endif
# Define some global directories
################################
%define DOCDIR %{_defaultdocdir}/samba
%define DOCBOOKDIR %{_defaultdocdir}/%{name}/docbook
%define SWATDIR %{_datadir}/samba/swat
%define LOGDIR %{_localstatedir}/log/samba
%define LOCKDIR %{_localstatedir}/lib/samba
%define CONFIGDIR %{_sysconfdir}/samba
%define INITDIR %{_sysconfdir}/init.d
%define PIDDIR %{_localstatedir}/run/samba
%if "%{_vendor}" == "suse"
%define NET_CFGDIR network
%else
%define NET_CFGDIR network-scripts
%endif
%define idmap_modules 
idmap_ad,idmap_adex,idmap_hash,idmap_ldap,idmap_rid,idmap_tdb2
%define vfs_modules vfs_cacheprime,vfs_readahead
%if 0%{?ul_version} >= 1
%define VENDOR UL
%else
%if "%{_vendor}" == "suse" || "%{_vendor}" == "redhat"
%define VENDOR SUSE
%else
%define VENDOR %_vendor
%endif
%endif
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1120
%define cups_lib_dir %{_prefix}/lib/cups
%else
%define cups_lib_dir %{_libdir}/cups
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%prep
# samba-doc nowadays is part the main samba spec file
%if 0%{?suse_version} && 0%{?suse_version} < 1111
%setup -n samba-%{samba_ver_full} -q
# ldapsmb
%if %{make_ldapsmb}
%setup -T -D -a 11 -n samba-%{samba_ver_full} -q
%endif
# patches
%setup -T -D -a 2 -n samba-%{samba_ver_full} -q
for patch in $( patches/tools/guards %{guards_symbols} <patches/series); do
        if ! patch -s -E -p0 --no-backup-if-mismatch -i patches/$patch; then
                echo "*** Patch $patch failed ***"
                exit 1
        fi
done
# vendor-files (config, scripts, tools)
%setup -T -D -a 1 -n samba-%{samba_ver_full} -q
for file in docs/htmldocs/index.html vendor-files/docu/README.vendor; do
        sed -e "s/VENDOR/%{VENDOR}/g" "${file}" >"${file}.new" && \
                mv "${file}.new" "${file}"
done
install -m 0644 vendor-files/tools/get_printing_ticket.c 
source3/client/get_printing_ticket.c
install -m 0644 -p vendor-files/docu/rfc3454.txt source4/heimdal/lib/wind/
# Create and add vendor suffix
test -f vendor-files/tools/package-data && \
        . vendor-files/tools/package-data
pushd source3
if test "%{_project}" != "openSUSE:Factory"; then
        vendor_tag_release=$( grep -m 1 ^Release: ${RPM_SOURCE_DIR}/samba.spec 
| \
                while read tag release; do \
                        echo -n "${release:+${release}-}"; \
                done)
else
        vendor_tag_release=""
fi
vendor_tag=$( echo -n "${vendor_tag_release}"; \
        echo -n "${SAMBA_PACKAGE_SVN_VERSION:+${SAMBA_PACKAGE_SVN_VERSION}-}"; \
        test %{make_devel} -eq 1 && echo -n "devel-" || :)
# Create product suffix
test 0%{?centos_version} -gt 0 && product_version=%{?centos_version}
test 0%{?fedora_version} -gt 0 && product_version=%{?fedora_version}
test 0%{?mandriva_version} -gt 0 && product_version=%{?mandriva_version}
test 0%{?rhel_version} -gt 0 && product_version=%{?rhel_version}
test 0%{?suse_version} -gt 0 && product_version=%{?suse_version}
major_version=$((${product_version}/100))
minor_version=$((${product_version}/10))
minor_version="${minor_version#$major_version}"
product_version="${major_version}.${minor_version}"
product_suffix=""
if test "%{VENDOR}" != "UL"; then
        if test 0%{?sles_version} -gt 0; then
                product_suffix="-SLES%{sles_version}"
        elif test 0%{?suse_version} -gt 0; then
                product_suffix="-SL${product_version}"
        else
                product_suffix="-OBS"
        fi
        case "%{?suse_version}" in
                1010|1110) product_suffix="-CODE${major_version}" ;;
        esac
fi
# Add the build architecture
test "%{_build_arch}" != "" && \
        product_suffix="${product_suffix}-%{_build_arch}"
# Set SAMBA_VERSION_VENDOR_SUFFIX in the VERSION file
mv VERSION VERSION.orig
sed -e 
"s/^SAMBA_VERSION_VENDOR_SUFFIX=$/SAMBA_VERSION_VENDOR_SUFFIX=\"${vendor_tag}%{VENDOR}${product_suffix}\"/"
 VERSION.orig >VERSION
%endif

%build samba-%{samba_ver_full}
# samba-doc nowadays is part the main samba spec file
%if 0%{?suse_version} && 0%{?suse_version} < 1111
%if 0%{?suse_version} && 0%{?suse_version} < 911
        OPTIMIZATION="-O"
%else
        # use the default optimization
        unset OPTIMIZATION
%endif
%if 0%{?suse_version} > 1110
        export SUSE_ASNEEDED=0
%endif
export CFLAGS="%{optflags} -D_GNU_SOURCE ${OPTIMIZATION} -D_LARGEFILE64_SOURCE 
-DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS"
%if %{use_ccache}
export CC="ccache gcc"
%endif
pushd source3
%if 0%{?suse_version} && 0%{?suse_version} < 1141
%{?suse_update_config:%{suse_update_config -f}}
%endif
#ln -s m4/aclocal.m4 aclocal.m4
#autoreconf --force --install -I. -Im4 -I../lib/replace
%if 0%{?centos_version} > 599 || 0%{?fedora_version} > 11 || 
0%{?mandriva_version} > 2009 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 0
# Ensure all idl is recompiled, in case we are carrying pidl changes locally.
rm -f librpc/gen_ndr/*.[cho] ../librpc/gen_ndr/*.[cho]
./autogen.sh
%endif
CONFIGURE_OPTIONS="\
        --prefix=%{_prefix} \
        --localstatedir=%{LOCKDIR} \
        --sysconfdir=%{CONFIGDIR} \
        --with-configdir=%{CONFIGDIR} \
        --libdir=%{_libdir} \
        --with-lockdir=%{LOCKDIR} \
        --with-logfilebase=%{LOGDIR} \
        --with-mandir=%{_mandir} \
        --with-modulesdir=%{_libdir}/samba \
        --with-rootsbindir=/sbin \
        --with-nmbdsocketdir=%{LOCKDIR} \
        --enable-cups \
        --enable-debug \
%if %{link_static_libs}
        --enable-static \
%else
        --disable-static \
%endif
        --with-acl-support \
        --with-automount \
        --with-dnsupdate \
        --with-pam \
        --with-pammodulesdir=%{_lib}/security \
        --with-pam_smbpass \
        --with-piddir=%{PIDDIR} \
        --with-privatedir=%{CONFIGDIR} \
%if %{make_devel}
        --with-profiling-data \
%endif
        --with-quotas \
        --with-swatdir=%{SWATDIR} \
        --with-syslog \
        --with-utmp \
        --with-winbind \
        --with-shared-modules=%{vfs_modules},%{idmap_modules} \
%if %{make_devel}
        --enable-developer \
        --enable-krb5developer \
%endif
"
unset CONFIGURE_OPTIONS_DEVEL
%if %{make_devel}
CONFIGURE_OPTIONS_DEVEL="--enable-debug --enable-developer"
%endif
./configure ${CONFIGURE_OPTIONS} ${CONFIGURE_OPTIONS_DEVEL}
./script/mkversion.sh
%endif

%install
# samba-doc nowadays is part the main samba spec file
%if 0%{?suse_version} && 0%{?suse_version} < 1111
mkdir -p \
        %{buildroot}/%{DOCDIR} \
        %{buildroot}/%{DOCBOOKDIR} \
        %{buildroot}/%{SWATDIR}/help \
        %{buildroot}/%{_datadir}/susehelp/meta/Administration/System
# utility scripts
scripts="creategroup mksmbpasswd.sh"
install -d -m 0755 examples/scripts
for i in $scripts; do
        install -m 0755 "source3/script/${i}" examples/scripts/${i}
done
# configuration files
pushd vendor-files
echo "# smb.conf is the main Samba configuration file. You find a full 
commented" >config/smb.conf
echo "# version at %{DOCDIR}/examples/smb.conf.%{VENDOR} if the" 
>>config/smb.conf
echo "# samba-doc package is installed." >>config/smb.conf
echo "# Date: $( date -I)" >>config/smb.conf
grep -v "\(^#\|^;\|^$\)" config/smb.conf.vendor >>config/smb.conf
install -p -m 0644 config/smb.conf.vendor ../examples/smb.conf.%{VENDOR}
# SuSEhelp files
install -m 0644 docu/Samba.desktop 
%{buildroot}/%{_datadir}/susehelp/meta/Administration/System/Samba.desktop
install -m 0644 docu/manpages.html ../docs/htmldocs/manpages.html
popd
for file in Samba3-ByExample Samba3-Developers-Guide Samba3-HOWTO; do
        touch "${RPM_BUILD_ROOT}/%{SWATDIR}/help/${file}"
done
cp -a swat/help/welcome.html "${RPM_BUILD_ROOT}/%{SWATDIR}/help"
# pam_smbpass is missing
cp -a source3/pam_smbpass/samples examples/pam_smbpass
install -m 0644 source3/pam_smbpass/CHANGELOG examples/pam_smbpass/CHANGELOG
install -m 0644 source3/pam_smbpass/INSTALL examples/pam_smbpass/INSTALL
install -m 0644 source3/pam_smbpass/README examples/pam_smbpass/README
install -m 0644 source3/pam_smbpass/TODO examples/pam_smbpass/TODO
mv COPYING Manifest README Roadmap WHATSNEW.txt %{buildroot}/%{DOCDIR}/
# this is empty
rm -rf docs/yodldocs
rm -rf docs/manpages
cp -a docs/* %{buildroot}/%{DOCDIR}
rm -rf "%{buildroot}/%{DOCBOOKDIR}"
cp -a examples/ %{buildroot}/%{DOCDIR}
test -e "%{buildroot}/%{SWATDIR}/help/manpages" || \
  ln -s "%{DOCDIR}/htmldocs/manpages" "%{buildroot}/%{SWATDIR}/help"
# Install HTML pages only in the samba-doc package
pushd %{buildroot}/%{SWATDIR}/help
for file in $( find -mindepth 1 -maxdepth 1); do
        file="${file#./}"
        case "${file}" in
                welcome-no-samba-doc.html)
                        case "%{name}" in
                                samba*-doc) rm "${file}" ;;
                        esac
                        continue
                        ;;
                welcome.html) ;;
                *)
                        rm -r "${file}"
                        ln -s "%{DOCDIR}/htmldocs/${file}" .
                        ;;
        esac
        echo "%doc %{SWATDIR}/help/${file}" 
>>${RPM_BUILD_DIR}/samba-%{samba_ver_full}/filelist-samba-doc
done
popd
# finally build filelist-samba-doc
for file in $( find %{buildroot}%{DOCDIR} -maxdepth 1); do
        # exclude %{DOCDIR}, README, and docbook
        case "${file#%{buildroot}}" in
                %{DOCDIR}|%{DOCDIR}/README.%{VENDOR}|%{DOCDIR}/docbook) 
continue ;;
        esac
        echo "%doc ${file#%{buildroot}}" 
>>"${RPM_BUILD_DIR}/samba-%{samba_ver_full}/filelist-samba-doc"
done
%if ! %{make_utils}
# delete manpages if not packaged in utils-package
rm -f \
        %{buildroot}/%{_mandir}/man1/log2pcap.1* \
        %{buildroot}/%{_mandir}/man1/vfstest.1*
%endif
%endif

%pre
# Remove all directories and files from usr/share/samba/swat/help expect 
welcome-*.html
if [ -d usr/share/samba/swat/help ]; then
        find usr/share/samba/swat/help -mindepth 1 -maxdepth 1 -type d -print0 
| \
                xargs -0 rm -rf
        for file in $( find usr/share/samba/swat/help -maxdepth 1 -type f); do
                case "${file}" in
                        usr/share/samba/swat/help/welcome*.html) continue ;;
                        *) rm -f "${file}" ;;
                esac
        done
fi

%clean
[ x"${RPM_BUILD_ROOT}" = x"/" ] && ( echo "your buildroot is /" && exit 0) || 
rm -rf "${RPM_BUILD_ROOT}"

# samba-doc nowadays is part the main samba spec file
%if 0%{?suse_version} && 0%{?suse_version} < 1111
%files -f filelist-samba-doc
%defattr(-,root,root)
%dir %{DOCDIR}
%dir %{_datadir}/samba
%dir %{SWATDIR}
%dir %{SWATDIR}/help
%doc %{_datadir}/susehelp
%endif

%description
This package contains all the Samba documentation as it is not part of
the man pages.

Source Timestamp: %{SOURCE_TIMESTAMP}
Branch:         %{BRANCH}






%changelog
++++++ samba.spec ++++++
++++ 1797 lines (skipped)

++++++ baselibs.conf ++++++
# This line is needed for for pre 11.0 builds
libldb1
libsmbclient
libsmbclient0
libtalloc2
libtdb1
libtevent0
libwbclient0
samba
  supplements "packageand(samba:pam-<targettype>)"
  -/usr/lib/samba
samba-winbind
  supplements "packageand(samba-winbind:pam-<targettype>)"
  supplements "packageand(samba-winbind:glibc-<targettype>)"
  -/usr/lib/samba
samba-client
  supplements "packageand(samba-client:glibc-<targettype>)"
  -/usr/lib/samba
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to