Hello community,

here is the log from the commit of package samba.1925 for openSUSE:12.3:Update 
checked in at 2013-08-16 14:12:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.3:Update/samba.1925 (Old)
 and      /work/SRC/openSUSE:12.3:Update/.samba.1925.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "samba.1925"

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

--- /dev/null   2013-07-23 23:44:04.804033756 +0200
+++ /work/SRC/openSUSE:12.3:Update/.samba.1925.new/samba-doc.changes    
2013-08-16 14:12:25.000000000 +0200
@@ -0,0 +1,55 @@
+-------------------------------------------------------------------
+Thu Aug 16 14:18:35 UTC 2012 - [email protected]
+
+- Remove backup files caused by running configure in examples/VFS.
+
+-------------------------------------------------------------------
+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-07-23 23:44:04.804033756 +0200
+++ /work/SRC/openSUSE:12.3:Update/.samba.1925.new/samba.changes        
2013-08-16 14:12:25.000000000 +0200
@@ -0,0 +1,8449 @@
+-------------------------------------------------------------------
+Mon Jul 29 12:38:22 UTC 2013 - [email protected]
+
+- The pam_winbind require_membership_of option allows for a list of SID,
+  but currently only provides buffer space for ~20; (bnc#806501).
+
+-------------------------------------------------------------------
+Thu Jul 25 14:39:09 UTC 2013 - [email protected]
+
+- Samba 3.0.x to 4.0.7 are affected by a denial of service attack on
+  authenticated or guest connections; CVE-2013-4124; (bnc#829969).
+
+-------------------------------------------------------------------
+Wed Jul 24 16:13:51 UTC 2013 - [email protected]
+
+- PIDL: fix parsing linemarkers in preprocessor output; (bso#9636).
+- build:autoconf: fix output of syslog-facility check; (bso#9983).
+- libreplace: add a missing "eval" to the AC_VERIFY_C_PROTOTYPE macro.
+
+-------------------------------------------------------------------
+Fri Jun 28 16:49:31 UTC 2013 - [email protected]
+
+- Remove ldapsmb from the main spec file.
+
+-------------------------------------------------------------------
+Tue Jun 25 17:03:49 UTC 2013 - [email protected]
+
+- Don't bzip2 the main tar ball, use the upstream gziped one instead.
+
+-------------------------------------------------------------------
+Fri Jun 21 10:30:16 UTC 2013 - [email protected]
+
+- Fix crash bug during Win8 sync; (bso#9822).
+- Check for system libtevent and link dbwrap_tool and dbwrap_torture against
+  it; (bso#9881).
+- errno gets overwritten in call to check_parent_exists(); (bso#9927).
+- Fix a bug of drvupgrade of smbcontrol; (bso#9941).
+
+-------------------------------------------------------------------
+Tue Jun 18 17:14:00 UTC 2013 - [email protected]
+
+- Document idmap_ad rfc2307 attribute requirements; (bso#9880); (bnc#820531).
+
+-------------------------------------------------------------------
+Fri Jun 14 09:59:26 UTC 2013 - [email protected]
+
+- Don't package the SWAT man page while its build is disabled; (bnc#816647).
+
+-------------------------------------------------------------------
+Thu Jun  6 11:43:31 UTC 2013 - [email protected]
+
+- Don't install the tdb utilities man pages on post-12.1 systems; (bnc#823549).
+
+-------------------------------------------------------------------
+Wed Jun  5 11:45:41 UTC 2013 - [email protected]
+
+- Fix libreplace license ambiguity; (bso#8997); (bnc#765270).
+
+-------------------------------------------------------------------
+Tue May 28 11:59:59 UTC 2013 - [email protected]
+
+- s3-docs: Remove "experimental" label on "max protocol=SMB2" parameter;
+  (bso#9688).
+- Remove the compound_related_in_progress state from the smb2 global state;
+  (bso#9722).
+- Makefile: Don't know how to make LIBNDR_PREG_OBJ; (bso#9868).
+
+-------------------------------------------------------------------
+Thu May 23 14:17:41 UTC 2013 - [email protected]
+
+- Fix is_printer_published GUID retrieval; (bso#9900); (bnc#798856).
+
+-------------------------------------------------------------------
+Wed May  8 11:26:49 UTC 2013 - [email protected]
+
+- Add support for PFC_FLAG_OBJECT_UUID when parsing packets; (bso#9382).
+- Fix "guest ok", "force user" and "force group" for guest users; (bso#9746).
+- Fix 'map untrusted to domain' with NTLMv2; (bso#9817); (bnc#817919).
+- Fix crash bug in Winbind; (bso#9854).
+
+-------------------------------------------------------------------
+Wed May  8 10:03:35 UTC 2013 - [email protected]
+
+- Fix panic in nt_printer_publish_ads; (bso#9830).
+
+-------------------------------------------------------------------
+Fri Apr 26 15:54:50 UTC 2013 - [email protected]
+
+- Remove disabled and anyhow obsoleted net-report and net_rpc_migrate patches.
+
+-------------------------------------------------------------------
+Fri Apr 26 15:09:08 UTC 2013 - [email protected]
+
+- wbinfo: fix segfault in wbinfo_pam_logon; (bso#9807).
+- docs: Fix missing entry in specfile; (bso#9809).
+- Old DOS SMB CTEMP request uses a non-VFS function to access the filesystem;
+  (bso#9811).
+
+-------------------------------------------------------------------
+Thu Apr 18 18:38:43 UTC 2013 - [email protected]
+
+- Certain xattrs cause Windows error 0x800700FF; (bso#9130).
+- Fix the username map optimization; (bso#9139); (bnc#815994).
+- Fix adding case sensitive spn; (bso#9699).
+- Add a tool to migrate latin1 printing tdb's to registry; (bso#9723).
+- is_encrypted_packet() function incorrectly used inside server; (bso#9724).
+- wkssvc: Fix NULL pointer dereference; (bso#9727).
+- smbcontrol close-share is not working; (bso#9733).
+- Fix winbind seperator in upn to username conversion; (bso#9735).
+- Change to smbd/dir.c code gives significant performance increases on large 
directory listings; (bso#9736).
+- When creating a directory Samba allows inherited bit to slip through; 
(bso#9747).
+- Remove unneeded fstat system call from hot read path; (bso#9748).
+- Cache name_to_sid/sid_to_name correctly; (bso#9766).
+- vfs_fake_perms: Fix segfault for "artificial" conn_structs; (bso#9775).
+
+-------------------------------------------------------------------
+Mon Apr 15 13:06:58 UTC 2013 - [email protected]
+
+- Don't modify the pidfile name when a custom config file path is used;
+  (bnc#812929).
+
+-------------------------------------------------------------------
+Wed Apr  3 19:30:33 UTC 2013 - [email protected]
+
+- Fix GNU ld version detection with old gcc releases; (bso#7825).
+- 'map untrusted to domain' treats WORKSTATION as bogus domain; (bso#9039).
+- Add extra attributes for AD printer publishing; (bso#9378); (bnc#798856).
+- Downgrade v4 printer driver requests to v3; (bso#9474).
+- Samba returns unexpected error on SMB posix open; (bso#9519).
+- Add support for posix_openpt; (bso#9541).
+- Add dbwrap_tool.1 manual page; (bso#9568).
+- Unlink after open causes smbd to panic; (bso#9571).
+- Fix a possible null pointer dereference in spoolss; (bso#9574).
+- Samba 3.6.x not correctly signing any but the last response in a compound
+  request/response; (bso#9585).
+- "smbd[pid]: disk_free: sys_popen() failed" message logged in
+  /var/log/messages many times; (bso#9586).
+- Archive flag is always set on directories; (bso#9587).
+- ACLs are not inherited to directories for DFS shares; (bso#9588).
+- wbcAuthenticateEx gives unix times; (bso#9625).
+- Renaming directories as guest user in security share mode doesn't work;
+  (bso#9637).
+- Make SMB2_GETINFO multi-volume aware; (bso#9646).
+- Fix initial large PAC sess setup response; (bso#9658).
+- Fix two resource leaks in winbindd; (bso#9684).
+- Fix a possible buffer overrun in pdb_smbpasswd; (bso#9686).
+- Fix vfs_catia module; (bso#9701); (bnc#824833).
+
+-------------------------------------------------------------------
+Thu Mar 14 14:40:51 UTC 2013 - [email protected]
+
+- Fix periodic printcap cache reloads; (bso#9650); (bnc#807334).
+
+-------------------------------------------------------------------
+Tue Feb 26 13:03:46 UTC 2013 - [email protected]
+
+- No longer use the cifs- or smbfstab named configuration file on post-12.2
+  systems; (bnc#804822); (bnc#821889).
+
+-------------------------------------------------------------------
+Mon Feb 25 13:08:58 UTC 2013 - [email protected]
+
+- Shift the smbfs init script nfs dependency from Required to Should.
+
+-------------------------------------------------------------------
+Mon Feb 11 19:24:27 UTC 2013 - [email protected]
+
+- Fix SMB1 Session Setup AndX handling with a large krb PAC;
+  (bso#9658); (bnc#802031).
+
+-------------------------------------------------------------------
+Fri Feb  8 21:06:56 UTC 2013 - [email protected]
+
+- Point LD_LIBRARY_PATH to the just-built libraries while calling testparm to
+  generate the default share snippets on pre-12.2 systems.
+
+-------------------------------------------------------------------
+Thu Feb  7 15:30:36 UTC 2013 - [email protected]
+
+- Fix smbclient recursive mget EPERM handling; (bso#9633); (bnc#786350).
+
+-------------------------------------------------------------------
+Wed Feb  6 14:24:40 UTC 2013 - [email protected]
+
+- Do not restart the smbfs service on pre-11.3 systems during dhcp lease
+  renewal when the IP address remains the same; (bnc#800782).
+
+-------------------------------------------------------------------
+Thu Jan 31 16:51:30 UTC 2013 - [email protected]
+
+- Update to 3.6.12.
+  + Address SWAT security issues CVE-2013-0213 and CVE-2013-0214 which both
+    don't apply to any SUSE Samba post-3.6.10 as it isn't longer built.
+  + Don't build and package static libraries.
+
+-------------------------------------------------------------------
+Thu Jan 31 16:14:06 UTC 2013 - [email protected]
++++ 8252 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.3:Update/.samba.1925.new/samba.changes

New:
----
  baselibs.conf
  ldapsmb-1.34b.tar.bz2
  patches.tar.bz2
  samba-3.6.12.tar.gz
  samba-client-rpmlintrc
  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%{?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
%define pkgconfig_req pkg-config
%else
%define pkgconfig_req pkgconfig
%endif
BuildRequires:  %{pkgconfig_req}
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1210
BuildRequires:  libldb-devel
#!BuildIgnore: libtalloc
BuildRequires:  libtalloc-devel
#!BuildIgnore: libtdb
BuildRequires:  libtdb-devel
BuildRequires:  libtevent-devel
%endif
%define samba_ver 3.6.12
%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%{?suse_version} < 1031
%define libsmbclient_name libsmbclient
%define libsmbsharemodes_name libsmbsharemodes
%else
%define libsmbclient_name libsmbclient0
%define libsmbsharemodes_name libsmbsharemodes0
%endif
%define libldb_name libldb1
%define libnetapi_name libnetapi0
%define libwbclient_name libwbclient0
%define libtalloc_name libtalloc2
%define libtdb_name libtdb1
%define libtevent_name libtevent0
%if 0%{?suse_version} > 1130 && 0%{?suse_version} < 1211
%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
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1131
%define libldb_ver %{version}
%define libtalloc_ver %{version}
%define libtdb_ver %{version}
%define libtevent_ver %{version}
%endif
%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 3061
%define BRANCH %{version}
Version:        3.6.12
Release:        0
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.gz
Source1:        vendor-files.tar.bz2
Source2:        patches.tar.bz2
Source4:        baselibs.conf
# 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
%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
# 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 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
# 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
# Ensure all idl is recompiled, in case we are carrying pidl changes locally.
rm -f librpc/gen_ndr/*.[cho] ../librpc/gen_ndr/*.[cho]
%if 0%{?centos_version} > 599 || 0%{?fedora_version} > 11 && 
0%{?fedora_version} < 15 || 0%{?mandriva_version} > 2009 || 0%{?rhel_version} > 
599 || 0%{?suse_version} > 0
./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 \
        --disable-static \
        --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-syslog \
        --with-utmp \
        --with-winbind \
        --with-shared-modules=%{vfs_modules},%{idmap_modules} \
%if %{make_devel}
        --enable-developer \
        --enable-krb5developer \
%endif
         --disable-swat \
"
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}/%{_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
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}"
rm -f examples/VFS/*~
cp -a examples/ %{buildroot}/%{DOCDIR}
# 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

%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
%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 ++++++
++++ 1687 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
++++++ samba-client-rpmlintrc ++++++
addFilter("shlib-policy-name-error")
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to