Hello community,

here is the log from the commit of package deb.900 for openSUSE:12.2:Update 
checked in at 2012-11-05 09:21:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2:Update/deb.900 (Old)
 and      /work/SRC/openSUSE:12.2:Update/.deb.900.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "deb.900", Maintainer is ""

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

--- /dev/null   2012-10-22 00:44:18.403455820 +0200
+++ /work/SRC/openSUSE:12.2:Update/.deb.900.new/deb.changes     2012-11-05 
09:21:58.000000000 +0100
@@ -0,0 +1,819 @@
+-------------------------------------------------------------------
+Thu Sep 13 15:03:53 UTC 2012 - [email protected]
+
+-Fix bnc#778291 - VUL-1: CVE-2012-3500: deb: annotate-output has
+tmp issues - annotate-output.patch
+
+-------------------------------------------------------------------
+Mon May 21 03:31:50 UTC 2012 - [email protected]
+
+- update to dpkg-1.16.3
+  * see 
http://packages.debian.org/changelogs/pool/main/d/dpkg/dpkg_1.16.3/changelog
+- update to debhelper 9.20120518
+  * Fix versioned dependency on dpkg for xz options. Closes: #672895
+  * dh_link: Doc improvement. Closes: #672988
+- update to devscripts-2.11.7
+  * see 
http://packages.debian.org/changelogs/pool/main/d/devscripts/devscripts_2.11.7/changelog
+- reworked patch. remove version for archtable. for it's universal.
+- add dh_make 0.60
+  * see 
http://packages.debian.org/changelogs/pool/main/d/dh-make/dh-make_0.60/changelog
+- add dh_autoreconf 6
+  * see 
http://packages.debian.org/changelogs/pool/main/d/dh-autoreconf/dh-autoreconf_6/changelog
+
+-------------------------------------------------------------------
+Thu May  3 20:23:11 UTC 2012 - [email protected]
+
+- install missing parts of devscripts
+* install man pages installed by debian/manpages
+* install symlinks installed by debian/links
+
+-------------------------------------------------------------------
+Sun Jan 29 20:54:50 UTC 2012 - [email protected]
+
+- update to dpkg-1.15.8.12
+* Do not fail to unpack shared directories missing on the file system
+  from packages being replaced by other packages. Debian Bug #631808
+* Defer hardlink renames so that there's never a point were the new
+  file contents are accessible from the final path before they have
+  been fsync()ed and cannot be executed causing ETXTBSY when trying
+  to open the to be installed paths for writing. Debian Bug #635683
+* Add armhf support to ostable and triplettable.
+  Debian Bugs #594179, #639674
+
+-------------------------------------------------------------------
+Tue Dec 20 20:15:25 UTC 2011 - [email protected]
+
+- remove call to suse_update_config (very old work around)
+
+-------------------------------------------------------------------
+Sat Nov 26 00:18:57 UTC 2011 - [email protected]
+
+- update to dpkg-1.15.8.11
+* Do not segfault on "dpkg -i --no-act".
+* Fix typo in "dpkg-name --overwrite" argument parsing so that it actually
+  works at all. Ubuntu Bug #728708
+* Fix dpkg-split to not corrupt binary part metadata when generating the
+  split packages on 32-bit systems.
+* Fix a regression in dpkg-divert where using --rename led to a failure when
+  the rename implies crossing file systems.
+
+-------------------------------------------------------------------
+Sun Sep 18 17:17:12 UTC 2011 - [email protected]
+
+- Remove redundant tags/sections from specfile
+  (cf. packaging guidelines)
+- Use %_smp_mflags for parallel build
+
+-------------------------------------------------------------------
+Thu Mar 31 11:39:18 UTC 2011 - [email protected]
+
+- Merge openSUSE:Tools changes with system:packagemanager changes
+
+-------------------------------------------------------------------
+Thu Mar 17 15:32:12 UTC 2011 - [email protected]
+
+- split the u-a to separate spec file to reduce a build cycle 
+
+-------------------------------------------------------------------
+Wed Mar 16 09:07:15 UTC 2011 - [email protected]
+
+- update to dpkg-1.15.8.10
+- update to debhelper-7.5.17
+- update to devscripts-2.10.71
+- see /usr/share/doc/packages/deb/*/changelog for details
+- build and install update-alternatives as separate subpackage
+- add download urls to source tags
+- remove pushd/popd madness in %prep, use only one cd ..
+- convert sed archtable hackery to patch and refresh patches
+- rewrite a architecture mugging in config.h to be more readable
+
+-------------------------------------------------------------------
+Fri Jan 28 14:17:27 UTC 2011 - [email protected]
+
+- fix build on old distros
+
+-------------------------------------------------------------------
+Fri Jan 28 12:57:25 UTC 2011 - [email protected]
+
+- install missing debhelper files
+ - install dh
+ - install Debian/Debhelper/Buildsystem/*.pm
+
+-------------------------------------------------------------------
+Thu Jul 29 23:38:02 CEST 2010 - [email protected]
+
+- make 'debcommit -r' work with mercurial 1.6
+
+-------------------------------------------------------------------
+Fri Apr  9 09:23:40 UTC 2010 - [email protected]
+
+- update to dpkg-1.15.6.1
+- update to debhelper-7.4.17
+- update to devscripts-2.10.62
+ - see /usr/share/doc/packages/deb/*/changelog for details
+- split deb-devel subpackage
+
+-------------------------------------------------------------------
+Fri Feb 19 11:24:07 UTC 2010 - [email protected]
+
+- update to dpkg-1.15.5.6
+- update to debhelper-7.4.15
+- update to devscripts-2.10.61
+ - see /usr/share/doc/packages/deb/*/changelog for details
+
+-------------------------------------------------------------------
+Wed Jan  6 04:37:36 UTC 2010 - [email protected]
+
+- enable parallel building with smp_mflags
+
+-------------------------------------------------------------------
+Fri Dec 18 09:06:00 UTC 2009 - [email protected]
+
+- try to fix older dists
+
+-------------------------------------------------------------------
+Wed Nov 25 12:01:33 UTC 2009 - [email protected]
+
+- update to dpkg-1.15.5.2, debhelper-7.4.8, devscripts-2.10.58
+ - huge number of changelogs - please see appropriate changelogs
+   for details:
+   - /usr/share/doc/packages/deb/debhelper/changelog
+   - /usr/share/doc/packages/deb/dpkg/changelog
+
+
+-------------------------------------------------------------------
+Thu Nov 12 09:14:55 UTC 2009 - [email protected]
+
+- include devscripts-2.10.55
+- add sensible-editor helper script
+
+-------------------------------------------------------------------
+Thu Aug 13 13:01:58 UTC 2009 - [email protected]
+
+- update to debhelper-7.3.12 
+  * dh: Allow creation of new sequences (such as to handle a patch
+    target for quilt), by adding an add_command function to the
+    sequence addon interface.
+  * perl_build: Fix Build check to honor source directory setting.
+  * perl_build: Avoid failing if forced to be used in dh_auto_clean
+    when Build does not exist (ie due to being run twice in a row).
+  * dh_builddeb: Fix man page typo.
+  * dh_installdeb: In udeb mode, support the menutest and isinstallable
+    maintainer scripts.
+
+-------------------------------------------------------------------
+Tue Aug  4 09:54:08 CEST 2009 - [email protected]
+
+- update to debhelper-7.3.9
+  * cmake: Avoid forcing rpath off as this can break some test suites.
+    It gets stripped by cmake at install time.
+
+-------------------------------------------------------------------
+Mon Jul 27 10:28:40 CEST 2009 - [email protected]
+
+- update to debhelper-7.3.8
+  * First upload of buildsystems support to unstable.
+    Summary: Adds --buildsystem (modular, OO buildsystem classes),
+    --sourcedirectory, --builddirectory, and support for cmake
+    and ant.
+  * python_distutils buildsystem: Build for all supported Python
+    versions that are installed. Ensure that correct shebangs are
+    created by using `python' first during build and install.
+    Also build with python*-dbg if the package build-depends
+    on them.
+
+-------------------------------------------------------------------
+Thu Jul 16 12:24:58 CEST 2009 - [email protected]
+
+- update to debhelper-7.3.4
+  * Add a versioned dep on perl-base, to get a version that supports
+    GetOptionsFromArray.
+  * dh_install: Fix support for the case where --sourcedir=debian/tmp/foo
+    is used. Perl was not being greedy enough and the 'foo' was not stripped
+    from the destination directory in this unusual case.
+  * dh_install: Fix support for the case where debian/tmp is
+    explicitly specified in filename paths despite being searched by
+    default.
+  * dh_install: Add test suite covering the last 5 bugs.
++++ 622 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.2:Update/.deb.900.new/deb.changes
New Changes file:

--- /dev/null   2012-10-22 00:44:18.403455820 +0200
+++ /work/SRC/openSUSE:12.2:Update/.deb.900.new/update-alternatives.changes     
2012-11-05 09:21:59.000000000 +0100
@@ -0,0 +1,77 @@
+-------------------------------------------------------------------
+Wed Jun  6 08:22:03 UTC 2012 - [email protected]
+
+- fix the reworked patch
+
+-------------------------------------------------------------------
+Mon May 21 03:34:58 UTC 2012 - [email protected]
+
+- update to 1.16.3
+- reworked patch
+
+-------------------------------------------------------------------
+Sun Jan 29 21:29:58 UTC 2012 - [email protected]
+
+- update to 1.15.8.12
+* no changes, just keep in sync with deb
+
+-------------------------------------------------------------------
+Sat Nov 26 00:24:49 UTC 2011 - [email protected]
+
+- update to 1.15.8.11
+- remove unused tarballs and patches
+
+-------------------------------------------------------------------
+Sun Sep 18 17:17:12 UTC 2011 - [email protected]
+
+- Remove redundant tags/sections from specfile
+  (cf. packaging guidelines)
+- Use %_smp_mflags for parallel build
+
+-------------------------------------------------------------------
+Thu Mar 17 15:30:58 UTC 2011 - [email protected]
+
+- update to 1.15.8.10 - bug fix release
+- build it in the same source tree as package deb
+
+-------------------------------------------------------------------
+Mon Mar 14 13:13:50 UTC 2011 - [email protected]
+
+- update to 1.15.8.5
+  * update-alternatives is now implemented in C
+- fix bnc#647151 - update-alternatives: false claim in the description
+  * removed jpackage only part, as it's now don't have any sense
+
+-------------------------------------------------------------------
+Thu Feb 17 15:18:25 UTC 2011 - [email protected]
+
+- fix bnc#669716 - update-alternatives corrupt
+  the pack/unpack removal code broke the java update-alternatives file
+
+-------------------------------------------------------------------
+Mon Jul 21 16:22:46 CEST 2008 - [email protected]
+
+- fix of enhancenment request[bnc#261246] - update-alternatives should support 
--set
+  - update to the 1.14.19
+
+-------------------------------------------------------------------
+Tue Nov  6 18:53:00 CET 2007 - [email protected]
+
+- fix the manual link state after --install and --remove commands [#334783] 
+
+-------------------------------------------------------------------
+Wed Jan 25 21:48:53 CET 2006 - [email protected]
+
+- converted neededforbuild to BuildRequires
+
+-------------------------------------------------------------------
+Thu Sep 29 00:10:28 CEST 2005 - [email protected]
+
+ - add norootforbuild
+
+-------------------------------------------------------------------
+Wed Sep  1 21:10:06 CEST 2004 - [email protected]
+
+- Initial package version 1.8.3
+
+

New:
----
  annotate-output.patch
  deb.changes
  deb.spec
  debhelper-no-localized-manpages.patch
  debhelper-pod2man-no-utf8.patch
  debhelper_9.20120518.tar.gz
  devscripts-2.11.7-buildfix.patch
  devscripts-2.11.7-debcommit-hg16.patch
  devscripts-2.11.7-remove-install-layout-deb.patch
  devscripts-pod2man-no-utf8.patch
  devscripts_2.11.7.tar.gz
  dh-autoreconf_6.tar.gz
  dh-make_0.60.tar.gz
  dpkg-archtable-suse.patch
  dpkg-pod2man-no-utf8.patch
  dpkg_1.16.3.tar.bz2
  sensible-editor
  update-alternatives-1.16.3-suse.patch
  update-alternatives.changes
  update-alternatives.spec

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

Other differences:
------------------
++++++ deb.spec ++++++
#
# spec file for package deb
#
# Copyright (c) 2012 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/
#


%define admindir %{_localstatedir}/lib/rpm/
%define debhelper_ver 9.20120518
%define devscripts_ver 2.11.7
%define dhmake_ver 0.60
%define dhautoreconf_ver 6

%{!?py_ver: %global py_ver %(echo `python -c "import sys; 
sys.stdout.write(sys.version[:3])"`)}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}

Name:           deb
Version:        1.16.3
Release:        0
Summary:        Tools for Debian Packages
License:        GPL-2.0+
Group:          System/Packages
Url:            http://www.debian.org
Source0:        
http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_%{version}.tar.bz2
Source1:        
http://ftp.de.debian.org/debian/pool/main/d/debhelper/debhelper_%{debhelper_ver}.tar.gz
Source2:        
http://ftp.de.debian.org/debian/pool/main/d/devscripts/devscripts_%{devscripts_ver}.tar.gz
Source3:        sensible-editor
Source4:        
http://ftp.de.debian.org/debian/pool/main/d/dh-make/dh-make_%{dhmake_ver}.tar.gz
Source5:        
http://ftp.de.debian.org/debian/pool/main/d/dh-autoreconf/dh-autoreconf_%{dhautoreconf_ver}.tar.gz
# PATCH-FIX-UPSTREAM not build translated-manpages.
Patch0:         debhelper-no-localized-manpages.patch
# PATCH-FIX-UPSTREAM remove bash auto completion and fix docbook template 
directories path.
Patch1:         devscripts-2.11.7-buildfix.patch
# PATCH-FIX-UPSTREAM remove --utf8 since we only build En manpages.
Patch2:         debhelper-pod2man-no-utf8.patch
# PATCH-FIX-UPSTREAM hg can't commit empty, fix it.
Patch3:         devscripts-2.11.7-debcommit-hg16.patch
# PATCH-FIX-OPENSUSE replace debian with opensuse. replace macros. 
update-alternatives temp directories' path and name from dpkg* to rpm*.
Patch4:         update-alternatives-%{version}-suse.patch
# PATCH-FIX-OPENSUSE add openSUSE supported architectures
Patch5:         dpkg-archtable-suse.patch
# PATCH-FIX-UPSTREAM remove --utf8 since we only build En manpages.
Patch6:         dpkg-pod2man-no-utf8.patch
# PATCH-FIX-UPSTREAM remove --utf8 since we only build En manpages.
Patch7:         devscripts-pod2man-no-utf8.patch
# PATCH-FIX-UPSTREAM remove unrecognized --install-layout=deb from 
scripts/setup.py and fix prefix
Patch8:         devscripts-2.11.7-remove-install-layout-deb.patch
#PATCH-FIX-UPSTREAM (CVE) bnc#778291
Patch9:         annotate-output.patch
BuildRequires:  gcc-c++
BuildRequires:  ncurses-devel
BuildRequires:  python-devel
# we are sorry to drop sles10 support, but no setuptools
BuildRequires:  python-setuptools
BuildRequires:  zlib-devel
Requires:       cpio
Requires:       html2text
Requires:       make
Requires:       patch
Requires:       perl = %{perl_version}
Provides:       debhelper
Provides:       devscripts
Provides:       dpkg
Provides:       dpkg-dev
Provides:       dpkg-doc
Provides:       dselect
%if 0%{?suse_version} > 1010
BuildRequires:  fdupes
%endif
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  libxslt
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(pre):  /bin/touch

%if 0%{?suse_version}
BuildRequires:  libbz2-devel
BuildRequires:  sgmltool
BuildRequires:  texlive-latex
BuildRequires:  update-alternatives
Requires:       update-alternatives
%if 0%{?suse_version} > 1100
BuildRequires:  libselinux-devel
%define use_selinux 1
%endif
%if 0%{?suse_version} < 1120
%define _libexecdir /usr/lib
%endif
%endif
%if 0%{?fedora_version}
BuildRequires:  libselinux-devel
BuildRequires:  linuxdoc-tools
BuildRequires:  tetex-latex
BuildRequires:  texinfo-tex
%define use_selinux 1
%endif
%if 0%{?rhel_version}
BuildRequires:  libselinux-devel
BuildRequires:  linuxdoc-tools
BuildRequires:  tetex-latex
BuildRequires:  texinfo-tex
%define use_selinux 1
%endif
%if 0%{?centos_version}
BuildRequires:  libselinux-devel
BuildRequires:  linuxdoc-tools
BuildRequires:  tetex-latex
BuildRequires:  texinfo-tex
%define use_selinux 1
%endif

%description
This package contains tools for working with Debian packages. It makes
it possible to create and extract Debian packages. If Alien is
installed, the packages can be converted to RPMs.

This package contains the following Debian packages: dpkg, dselect,
dpkg-doc, dpkg-dev, debhelper, and devscripts.

%package devel
Summary:        Development files for dpkg
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
Libraries and header files for dpkg.

%lang_package
%prep
%setup -q -n dpkg-%{version} -b 1 -b 2 -b 4 -b 5
# do not unpack anything, just cd to source dir
cd ..

%patch0
%patch1
%if 0%{?suse_version} && 0%{?suse_version} < 1130
%patch2
%patch6
%patch7
%endif
%patch3
%patch4
%patch5
%patch8
%patch9 

%build
export CFLAGS="%{optflags}"
%if 0%{?use_selinux}
export SELINUX_LIBS="-lselinux"
%endif
%{configure}\
%if 0%{?use_selinux}
        --with-selinux \
%endif
%if 0%{?suse_version} && 0%{?suse_version} < 1110
        --disable-compiler-warnings \
%endif
        --localstatedir=%{_localstatedir}/lib\
        --with-admindir=%{_localstatedir}/lib/dpkg

# configure somehow does not detect architecture correctly in OBS (bnc#469337), 
so
# let's do an awful hack and fix it in config.h
# XXX: who knows if this works on s390? :)

%define debarch %{_arch}
%ifarch x86_64
%define debarch amd64
%endif
%ifarch %ix86
%define debarch i386
%endif
%ifarch ppc powerpc
%define debarch powerpc
%endif
%ifarch ppc64 powerpc64
%define debarch ppc64
%endif
sed -i 's/^#define ARCHITECTURE ""/#define ARCHITECTURE "%{debarch}"/' config.h

make %{?_smp_mflags}
#popd # dpkg

# This makes debhelper man pages
pushd ../debhelper
make %{?_smp_mflags} VERSION='%{debhelper_ver}'
popd

pushd ../devscripts-%{devscripts_ver}
# need dpkg-parsechangelog for devscripts
export PATH="$RPM_BUILD_DIR/dpkg-%{version}/scripts:$PATH"
export PERL5LIB="$RPM_BUILD_DIR/dpkg-%{version}/scripts"
cd ../devscripts-%{devscripts_ver}
make %{?_smp_mflags}

%install
# use makeinstall for sles10 compatibility.
%makeinstall

# remove update-alternatives stuff (included in separate package)
rm -rf %{buildroot}%{_sysconfdir}/alternatives
rm -rf %{buildroot}%{_localstatedir}/lib/dpkg/alternatives
rm -rf %{buildroot}%{_bindir}/update-alternatives
rm -rf %{buildroot}%{_sbindir}/update-alternatives
rm -rf %{buildroot}%{_mandir}/man8/update-alternatives.8
rm -rf %{buildroot}%{_mandir}/*/man8/update-alternatives.8

# locales
%{find_lang} dpkg
%{find_lang} dselect
%{find_lang} dpkg-dev
cat dpkg.lang dselect.lang dpkg-dev.lang > %{name}.lang

# docs
install -d -m 755 %{buildroot}/%{_docdir}/deb/dpkg
install -m 644 ABOUT-NLS %{buildroot}/%{_docdir}/deb/dpkg
install -m 644 AUTHORS %{buildroot}/%{_docdir}/deb/dpkg
install -m 644 COPYING %{buildroot}/%{_docdir}/deb/dpkg
install -m 644 doc/triggers.txt %{buildroot}/%{_docdir}/deb/dpkg
install -m 644 NEWS %{buildroot}/%{_docdir}/deb/dpkg
install -m 644 README* %{buildroot}/%{_docdir}/deb/dpkg
install -m 644 THANKS %{buildroot}/%{_docdir}/deb/dpkg
install -m 644 TODO %{buildroot}/%{_docdir}/deb/dpkg
install -m 644 debian/changelog %{buildroot}/%{_docdir}/deb/dpkg

pushd ../debhelper
# autoscripts
install -d -m 755 %{buildroot}%{_datadir}/debhelper/autoscripts
install -m 644 autoscripts/* %{buildroot}%{_datadir}/debhelper/autoscripts
# perl modules:
install -d -m 755 %{buildroot}%{perl_vendorlib}/Debian/Debhelper
install -d -m 755 %{buildroot}%{perl_vendorlib}/Debian/Debhelper/Sequence
install -d -m 755 %{buildroot}%{perl_vendorlib}/Debian/Debhelper/Buildsystem
install -m 644 Debian/Debhelper/Buildsystem/*.pm 
%{buildroot}%{perl_vendorlib}/Debian/Debhelper/Buildsystem
install -m 644 Debian/Debhelper/Sequence/*.pm 
%{buildroot}%{perl_vendorlib}/Debian/Debhelper/Sequence
install -m 644 Debian/Debhelper/*.pm 
%{buildroot}%{perl_vendorlib}/Debian/Debhelper
# docs:
install -d -m 755 %{buildroot}%{_docdir}/deb/debhelper/examples
install -m 644 examples/* %{buildroot}%{_docdir}/deb/debhelper/examples
install -m 644 doc/* %{buildroot}%{_docdir}/deb/debhelper
install -m 644 debian/{changelog,copyright} %{buildroot}%{_docdir}/deb/debhelper
# man pages:
install -d -m 755 %{buildroot}%{_mandir}/man1
install -d -m 755 %{buildroot}%{_mandir}/man7
install -m 644 *.1 %{buildroot}%{_mandir}/man1
install -m 644 debhelper.7 %{buildroot}%{_mandir}/man7
# binaries:
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 dh_*[^1-9] %{buildroot}%{_bindir}
install -m 755 dh %{buildroot}%{_bindir}
popd # debhelper

pushd ../devscripts-%{devscripts_ver}
%makeinstall
install -D -m 644 scripts/*.1 %{buildroot}%{_mandir}/man1/
install -D -m 644 scripts/*.5 %{buildroot}%{_mandir}/man5/
while read target link; do
  if [ -d $(dirname "%{buildroot}$link") ]; then
    ln -sf $target %{buildroot}$link
  fi
done <debian/links
# fix docs
mkdir -pv %{buildroot}%{_docdir}
mv %{buildroot}%{_datadir}/doc/devscripts %{buildroot}%{_docdir}
chmod -x %{buildroot}%{_docdir}/devscripts/README
popd

pushd ../dh-make
install -m 755 dh_make %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/debhelper/dh_make
mv lib/* %{buildroot}%{_datadir}/debhelper/dh_make/
install -m 644 *.1 %{buildroot}%{_mandir}/man1
popd # dh-make

pushd ../dh-autoreconf-%{dhautoreconf_ver}
install -m 755 dh_autoreconf %{buildroot}%{_bindir}
install -m 755 dh_autoreconf_clean %{buildroot}%{_bindir}
install -m 644 autoreconf.pm 
%{buildroot}%{perl_vendorlib}/Debian/Debhelper/Sequence
install -d -m 755 %{buildroot}%{_datadir}/cdbs/1/rules/
install -m 644 autoreconf.mk %{buildroot}%{_datadir}/cdbs/1/rules
install -d -m 755 %{buildroot}%{_datadir}/dh-autoreconf/
install -m 644 ltmain-as-needed.diff %{buildroot}%{_datadir}/dh-autoreconf/
#manpages
pod2man -r "dh-autoreconf v%{dhautoreconf_ver}" -c dh-autoreconf --section=1 
dh_autoreconf dh_autoreconf.1
pod2man -r "dh-autoreconf v%{dhautoreconf_ver}" -c dh-autoreconf --section=1 
dh_autoreconf_clean dh_autoreconf_clean.1
pod2man -r "dh-autoreconf v%{dhautoreconf_ver}" -c dh-autoreconf --section=7 
dh-autoreconf.pod dh-autoreconf.7
install -m 644 *.1 %{buildroot}%{_mandir}/man1
install -m 644 *.7 %{buildroot}%{_mandir}/man7
popd # dh-autoreconf

# extras
install -m 755 %{SOURCE3} %{buildroot}%{_bindir}

%if 0%{?suse_version} > 1010
%fdupes %{buildroot}
%endif

%post
cd %{_localstatedir}/lib/dpkg
for f in diversions statoverride status ; do
    [ ! -f $f ] && touch $f
done
exit 0

%if 0%{?suse_version} > 1010

%files lang -f %{name}.lang
%endif

%files
%defattr(-,root,root)
%doc %{_docdir}/deb
%doc %{_mandir}/man*/*
%dir %{_sysconfdir}/dpkg
%config(noreplace) %{_sysconfdir}/dpkg/*
%{_bindir}/*
%{_sbindir}/*
%{_libdir}/dpkg
%{_datadir}/dpkg
%{_localstatedir}/lib/dpkg
%{_datadir}/debhelper
%{perl_vendorlib}/Debian
%{perl_vendorlib}/Dpkg
%{perl_vendorlib}/Dpkg.pm
%{python_sitelib}/devscripts/
%{python_sitelib}/devscripts-%{devscripts_ver}-py%{py_ver}.egg-info/
%{_libexecdir}/devscripts
%{_datadir}/devscripts
%{_docdir}/devscripts
%{_datadir}/cdbs/
%{_datadir}/dh-autoreconf/
%if 0%{?suse_version} < 1110
%{_datadir}/locale/*/LC_MESSAGES/*
%dir %{_datadir}/locale/ast
%dir %{_datadir}/locale/ast/LC_MESSAGES
%endif

%files devel
%defattr(-,root,root)
%{_libdir}/libdpkg.a
%{_libdir}/pkgconfig/libdpkg.pc
%{_includedir}/dpkg

%changelog
++++++ update-alternatives.spec ++++++
#
# spec file for package update-alternatives
#
# Copyright (c) 2012 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/
#


%define admindir %{_localstatedir}/lib/rpm/

Name:           update-alternatives
Version:        1.16.3
Release:        0
Summary:        Maintain symbolic links determining default commands
License:        GPL-2.0+
Group:          System/Management
Url:            http://ftp.de.debian.org/debian/pool/main/d/dpkg/
Source0:        
http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_%{version}.tar.bz2
Source3:        sensible-editor
Patch0:         update-alternatives-%{version}-suse.patch
Patch1:         dpkg-archtable-suse.patch
BuildRequires:  ncurses-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
update-alternatives creates, removes, maintains and displays
information about the symbolic links comprising the alternatives
system. It is possible for several programs fulfilling the same or
similar functions to be installed on a single system at the same time.
For example, many systems have several text editors installed at once.
This gives choice to the users of a system, allowing each to use a
different editor, if desired, but makes it difficult for a program to
make a good choice of editor to invoke if the user has not specified a
particular preference.

%prep
%setup -q -n dpkg-%{version}
# do not unpack anything, just cd to source dir
#%setup -q -D -T -n %{_builddir}

%patch0 -p1
%patch1 -p1

%build
%{configure} \
    --with-admindir=%{admindir} \
    --disable-compiler-warnings # disable for sles10 -Wvla

make -C lib/compat %{?_smp_mflags}
make -C utils/ %{?_smp_mflags}

%install
install -d -m 0755 %{buildroot}/%{_sbindir}/
install -d -m 0755 %{buildroot}/%{_mandir}/man8/
install -d -m 0755 %{buildroot}/%{_sysconfdir}/alternatives
install -d -m 0755 %{buildroot}/%{admindir}/alternatives
install -d -m 0755 %{buildroot}/%{_localstatedir}/log

install -m 0755 utils/%{name} %{buildroot}/%{_sbindir}
install -m 0644 man/%{name}.8 %{buildroot}/%{_mandir}/man8/

touch %{buildroot}/%{_localstatedir}/log/%{name}.log

%files
%defattr(-,root,root,-)
%doc COPYING
%dir %{_sysconfdir}/alternatives
%dir %{_localstatedir}/lib/rpm/alternatives
%{_sbindir}/update-alternatives
%{_mandir}/man8/update-alternatives.8*
%ghost %{_localstatedir}/log/update-alternatives.log

%changelog
++++++ annotate-output.patch ++++++
Index: devscripts-2.10.71/scripts/annotate-output.sh
===================================================================
--- devscripts-2.11.7.orig/scripts/annotate-output.sh
+++ devscripts-2.11.7/scripts/annotate-output.sh
@@ -62,10 +62,14 @@ if [ $# -lt 1 ]; then
        exit 1
 fi
 
-OUT=`mktemp --tmpdir annotate.XXXXXX` || exit 1
-ERR=`mktemp --tmpdir annotate.XXXXXX` || exit 1
+cleanup() { __st=$?; rm -rf "$tmp"; exit $__st; }
+trap cleanup 0
+trap 'exit $?' 1 2 13 15
+
+tmp=$(mktemp -d --tmpdir annotate.XXXXXX) || exit 1
+OUT=$tmp/out
+ERR=$tmp/err
 
-rm -f $OUT $ERR
 mkfifo $OUT $ERR || exit 1
 
 addtime O < $OUT &
++++++ debhelper-no-localized-manpages.patch ++++++
Index: debhelper/Makefile
===================================================================
--- debhelper/Makefile.orig     2011-03-16 09:40:35.806209287 +0100
+++ debhelper/Makefile  2011-03-16 09:40:54.454930738 +0100
@@ -40,26 +40,9 @@
 
 POD2MAN=pod2man --utf8 -c Debhelper -r "$(VERSION)"
 
-# l10n to be built is determined from .po files
-LANGS=$(notdir $(basename $(wildcard man/po4a/po/*.po)))
-
 build: version debhelper.7
        find . -maxdepth 1 -type f -perm +100 -name "dh*" \
                -exec $(POD2MAN) {} {}.1 \;
-       po4a --previous -L UTF-8 man/po4a/po4a.cfg 
-       set -e; \
-       for lang in $(LANGS); do \
-               dir=man/$$lang; \
-               for file in $$dir/dh*.pod; do \
-                       prog=`basename $$file | sed 's/.pod//'`; \
-                       $(POD2MAN) $$file $$prog.$$lang.1; \
-               done; \
-               if [ -e $$dir/debhelper.pod ]; then \
-                       cat $$dir/debhelper.pod | \
-                               $(MAKEMANLIST) `find $$dir -type f -maxdepth 1 
-name "dh_*.pod" | sort` | \
-                               $(POD2MAN) --name="debhelper" --section=7 > 
debhelper.$$lang.7; \
-               fi; \
-       done
 
 version:
        printf "package 
Debian::Debhelper::Dh_Version;\n\$$version='$(VERSION)';\n1" > \
@@ -72,10 +55,6 @@
 
 clean:
        rm -f *.1 *.7 Debian/Debhelper/Dh_Version.pm
-       po4a --previous --rm-translations --rm-backups man/po4a/po4a.cfg
-       for lang in $(LANGS); do \
-               if [ -e man/$$lang ]; then rmdir man/$$lang; fi; \
-       done;
 
 install:
        install -d $(DESTDIR)/usr/bin \
++++++ debhelper-pod2man-no-utf8.patch ++++++
diff -urN debhelper.orig/Makefile debhelper/Makefile
--- debhelper.orig/Makefile     2012-05-22 00:31:07.490458089 +0800
+++ debhelper/Makefile  2012-05-22 00:31:43.648006056 +0800
@@ -38,7 +38,7 @@
 
 PERLLIBDIR=$(shell perl -MConfig -e 'print 
$$Config{vendorlib}')/Debian/Debhelper
 
-POD2MAN=pod2man --utf8 -c Debhelper -r "$(VERSION)"
+POD2MAN=pod2man -c Debhelper -r "$(VERSION)"
 
 # l10n to be built is determined from .po files
 LANGS=$(notdir $(basename $(wildcard man/po4a/po/*.po)))
++++++ devscripts-2.11.7-buildfix.patch ++++++
diff -urN devscripts-2.11.7.orig/Makefile devscripts-2.11.7/Makefile
--- devscripts-2.11.7.orig/Makefile     2012-05-21 11:36:59.800426916 +0800
+++ devscripts-2.11.7/Makefile  2012-05-21 11:38:41.453156082 +0800
@@ -11,7 +11,7 @@
 DOCDIR ?= $(PREFIX)/share/doc/devscripts
 MAN1DIR ?= $(PREFIX)/share/man/man1
 
-all: version make_scripts $(EXAMPLES) translated_manpages
+all: version make_scripts $(EXAMPLES)
 
 version:
        rm -f version
diff -urN devscripts-2.11.7.orig/po4a/Makefile devscripts-2.11.7/po4a/Makefile
--- devscripts-2.11.7.orig/po4a/Makefile        2012-05-21 11:36:59.800426916 
+0800
+++ devscripts-2.11.7/po4a/Makefile     2012-05-21 11:41:45.313857508 +0800
@@ -23,7 +23,7 @@
        pod2man --utf8 --center=" " --release="Utilitaires Debian" $< > $@
 fr/%.fr.1: fr/%.fr.dbk translate
        xsltproc --nonet -o $@ \
-         /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
+         /usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl 
$<
 # xsltproc writes out to foo.1 even if you tell it to do otherwise, so we have
 # to rename the file after it's generated
        mv fr/$*.1 $@
diff -urN devscripts-2.11.7.orig/scripts/Makefile 
devscripts-2.11.7/scripts/Makefile
--- devscripts-2.11.7.orig/scripts/Makefile     2012-05-21 11:36:59.809426803 
+0800
+++ devscripts-2.11.7/scripts/Makefile  2012-05-21 11:41:19.598178997 +0800
@@ -24,7 +24,7 @@
 LIBDIR = /usr/lib/devscripts
 BIN_LIBDIR = /usr/lib/devscripts
 
-all: $(SCRIPTS) $(GEN_MAN1S) $(LIBS) $(CWRAPPERS) $(COMPLETION)
+all: $(SCRIPTS) $(GEN_MAN1S) $(LIBS) $(CWRAPPERS)
 
 $(VERSION_FILE):
        $(MAKE) -C .. version
@@ -33,10 +33,8 @@
 
 %.tmp: %.sh $(VERSION_FILE)
        sed -e "s/###VERSION###/$(VERSION)/" $<  > $@
-       bash -n $@
 %.tmp: %.pl $(VERSION_FILE)
        sed -e "s/###VERSION###/$(VERSION)/" $<  > $@
-       perl -I.. -c $@
 %: %.tmp
        cp $< $@
        chmod +x $@
@@ -46,7 +44,7 @@
        pod2man --utf8 --center=" " --release="Debian Utilities" $< > $@
 %.1: %.dbk
        xsltproc --nonet -o $@ \
-         /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
+         /usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl 
$<
 
 # There is a slight chance this gets called twice, once here from here and once
 # from ../po4a/Makefile. Treat files with care.
@@ -82,7 +80,6 @@
        ln -sf edit-patch $(DESTDIR)$(BINDIR)/add-patch
        cp $(LIBS) $(DESTDIR)$(LIBDIR)
        install -dD $(DESTDIR)/etc/bash_completion.d
-       cp $(COMPLETION) $(DESTDIR)/etc/bash_completion.d
        # Special treatment for debpkg
        install -dD $(DESTDIR)$(PERLMOD_DIR)
        mv $(DESTDIR)$(BINDIR)/debpkg $(DESTDIR)$(PERLMOD_DIR)
++++++ devscripts-2.11.7-debcommit-hg16.patch ++++++
diff -urN devscripts-2.11.7.orig/scripts/debcommit.pl 
devscripts-2.11.7/scripts/debcommit.pl
--- devscripts-2.11.7.orig/scripts/debcommit.pl 2012-05-21 11:36:59.813426755 
+0800
+++ devscripts-2.11.7/scripts/debcommit.pl      2012-05-21 11:45:02.100397337 
+0800
@@ -592,7 +592,9 @@
     else {
        die "debcommit: unknown program $prog";
     }
-    die "debcommit: commit failed\n" if (! $action_rc);
+    # mercurial 1.6 returns failure if nothing is to be committed
+    # but we still want to continue with tagging
+    die "debcommit: commit failed\n" if (! $action_rc) && (! $release);
 }
 
 sub tag {
++++++ devscripts-2.11.7-remove-install-layout-deb.patch ++++++
diff -urN devscripts-2.11.7.orig/scripts/Makefile 
devscripts-2.11.7/scripts/Makefile
--- devscripts-2.11.7.orig/scripts/Makefile     2012-05-21 20:25:34.530645434 
+0800
+++ devscripts-2.11.7/scripts/Makefile  2012-05-21 20:25:52.685418466 +0800
@@ -76,7 +76,7 @@
        $(foreach python,$(shell pyversions -r ../debian/control),$(python) 
setup.py test$(\n))
 
 install: all
-       python setup.py install --root="$(DESTDIR)" --no-compile 
--install-layout=deb
+       python setup.py install --root="$(DESTDIR)" --no-compile --prefix=/usr
        install -dD $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR)
        cp $(SCRIPTS) $(DESTDIR)$(BINDIR)
        ln -sf edit-patch $(DESTDIR)$(BINDIR)/add-patch
++++++ devscripts-pod2man-no-utf8.patch ++++++
diff -urN devscripts-2.11.7.orig/scripts/Makefile 
devscripts-2.11.7/scripts/Makefile
--- devscripts-2.11.7.orig/scripts/Makefile     2012-05-21 21:31:57.952845803 
+0800
+++ devscripts-2.11.7/scripts/Makefile  2012-05-22 00:26:16.954090293 +0800
@@ -43,7 +43,7 @@
 
 %.1: %.pl
        podchecker $<
-       pod2man --utf8 --center=" " --release="Debian Utilities" $< > $@
+       pod2man --center=" " --release="Debian Utilities" $< > $@
 %.1: %.dbk
        xsltproc --nonet -o $@ \
          /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
++++++ dpkg-archtable-suse.patch ++++++
Index: dpkg-1.16.3/debian/archtable
===================================================================
--- dpkg-1.16.3.orig/debian/archtable   2012-04-27 04:49:02.000000000 +0200
+++ dpkg-1.16.3/debian/archtable        2012-06-06 10:22:46.728432824 +0200
@@ -27,3 +27,15 @@ sparc-linux-gnu                      sparc
 i486-gnu                       hurd-i386
 i486-kfreebsd-gnu              kfreebsd-i386
 x86_64-kfreebsd-gnu            kfreebsd-amd64
++i486-suse-linux               i386
++ia64-suse-linux               ia64
++alpha-suse-linux              alpha
++x86_64-suse-linux             amd64
++arm-suse-linux                        arm
++arm-suse-linuxeabi            armel
++hppa-suse-linux               hppa
++mips-suse-linux               mips
++mipsel-suse-linux             mipsel
++powerpc-suse-linux            powerpc
++s390-suse-linux               s390
++sparc-suse-linux              sparc
\ No newline at end of file
++++++ dpkg-pod2man-no-utf8.patch ++++++
diff -urN dpkg-1.16.3.orig/scripts/Makefile.am dpkg-1.16.3/scripts/Makefile.am
--- dpkg-1.16.3.orig/scripts/Makefile.am        2012-05-22 00:27:39.702055802 
+0800
+++ dpkg-1.16.3/scripts/Makefile.am     2012-05-22 00:28:52.757142487 +0800
@@ -137,7 +137,7 @@
        $(mkdir_p) $(DESTDIR)$(man3dir)
        for module in $(nobase_dist_perllib_DATA); do \
            name=`echo $$module | sed -e 's|/|::|g' -e 's/\.pm$$//'`; \
-           $(POD2MAN) --utf8 --center=libdpkg-perl --release=$(VERSION) \
+           $(POD2MAN) --center=libdpkg-perl --release=$(VERSION) \
                --name="$$name" --section=3 $(srcdir)/$$module \
                >$(DESTDIR)$(man3dir)/$$name.3; \
            test -s $(DESTDIR)$(man3dir)/$$name.3 || \
diff -urN dpkg-1.16.3.orig/scripts/Makefile.in dpkg-1.16.3/scripts/Makefile.in
--- dpkg-1.16.3.orig/scripts/Makefile.in        2012-05-22 00:27:39.702055802 
+0800
+++ dpkg-1.16.3/scripts/Makefile.in     2012-05-22 00:29:34.834616447 +0800
@@ -1036,7 +1036,7 @@
 @BUILD_POD_DOC_TRUE@   $(mkdir_p) $(DESTDIR)$(man3dir)
 @BUILD_POD_DOC_TRUE@   for module in $(nobase_dist_perllib_DATA); do \
 @BUILD_POD_DOC_TRUE@       name=`echo $$module | sed -e 's|/|::|g' -e 
's/\.pm$$//'`; \
-@BUILD_POD_DOC_TRUE@       $(POD2MAN) --utf8 --center=libdpkg-perl 
--release=$(VERSION) \
+@BUILD_POD_DOC_TRUE@       $(POD2MAN) --center=libdpkg-perl 
--release=$(VERSION) \
 @BUILD_POD_DOC_TRUE@           --name="$$name" --section=3 $(srcdir)/$$module \
 @BUILD_POD_DOC_TRUE@           >$(DESTDIR)$(man3dir)/$$name.3; \
 @BUILD_POD_DOC_TRUE@       test -s $(DESTDIR)$(man3dir)/$$name.3 || \
++++++ sensible-editor ++++++
#!/bin/sh

ret="$?"

if [ -n "$VISUAL" ]; then
        ${VISUAL} "$@"
        ret="$?"
        if [ "$ret" -ne 126 ] && [ "$ret" -ne 127 ]; then
                exit "$ret"
        fi
fi

${EDITOR:-editor} "$@"
ret="$?"
if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
        nano "$@"
        ret="$?"
        if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
                nano-tiny "$@"
                ret="$?"
                if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
                        vi "$@"
                        ret="$?"
                        if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
                                echo "Couldn't find an editor!" 1>&2
                                echo "Set the \$EDITOR environment variable to 
your desired editor." 1>&2
                                exit 1
                        fi
                fi
        fi
fi
exit "$ret"
++++++ update-alternatives-1.16.3-suse.patch ++++++
diff -urN dpkg-1.16.3.orig/man/update-alternatives.8 
dpkg-1.16.3/man/update-alternatives.8
--- dpkg-1.16.3.orig/man/update-alternatives.8  2012-05-21 11:10:20.686418591 
+0800
+++ dpkg-1.16.3/man/update-alternatives.8       2012-05-21 11:15:52.029276236 
+0800
@@ -33,7 +33,7 @@
 .SH DESCRIPTION
 .B update\-alternatives
 creates, removes, maintains and displays information about the symbolic
-links comprising the Debian alternatives system.
+links comprising the SuSE alternatives system.
 .PP
 It is possible for several programs fulfilling the same or similar
 functions to be installed on a single system at the same time.
@@ -43,7 +43,7 @@
 to make a good choice for an editor to invoke if the
 user has not specified a particular preference.
 .PP
-Debian's alternatives system aims to solve this problem.
+SuSE's alternatives system aims to solve this problem.
 A generic name in the filesystem is
 shared by all files providing interchangeable functionality.
 The alternatives system and the system administrator
@@ -82,10 +82,10 @@
 is called to update information about that file in the alternatives system.
 .B update\-alternatives
 is usually called from the
-.B postinst
+.B post
 (configure) or
-.B prerm
-(install) scripts in Debian packages.
+.B preun
+(install) scripts in SuSE packages.
 .PP
 It is often useful for a number of alternatives to be synchronised,
 so that they are changed as a group; for example, when several versions
@@ -189,7 +189,7 @@
 .TP
 administrative directory
 A directory, by default
-.IR /var/lib/dpkg/alternatives ,
+.IR /var/lib/rpm/alternatives ,
 containing
 .BR update\-alternatives '
 state information.
@@ -501,7 +501,7 @@
 .RE
 .
 .SH BUGS
-If you find a bug, please report it using the Debian bug-tracking system.
+If you find a bug, please report it using the SuSE bug-tracking system.
 .PP
 If you find any discrepancy between the operation of
 .B update\-alternatives
diff -urN dpkg-1.16.3.orig/utils/update-alternatives.c 
dpkg-1.16.3/utils/update-alternatives.c
--- dpkg-1.16.3.orig/utils/update-alternatives.c        2012-05-21 
11:10:20.607419579 +0800
+++ dpkg-1.16.3/utils/update-alternatives.c     2012-05-21 11:21:24.189123667 
+0800
@@ -68,7 +68,7 @@
 static char *pass_opts[MAX_OPTS];
 static int nb_opts = 0;
 
-#define DPKG_TMP_EXT ".dpkg-tmp"
+#define DPKG_TMP_EXT ".rpm-tmp"
 
 /*
  * Functions.
@@ -77,7 +77,7 @@
 static void
 version(void)
 {
-       printf(_("Debian %s version %s.\n"), PROGNAME, VERSION);
+       printf(_("SuSE %s version %s.\n"), PROGNAME, VERSION);
        printf("\n");
 
        printf(_(
@@ -359,7 +359,7 @@
        const char *basedir, *dpkg_basedir;
        char *admindir;
 
-       dpkg_basedir = getenv("DPKG_ADMINDIR");
+       dpkg_basedir = getenv("RPM_ADMINDIR");
        if (dpkg_basedir)
                basedir = dpkg_basedir;
        else
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to