@@ -0,0 +1,94 @@
+--- deb.spec.orig
++++ deb.spec
+@@ -20,16 +20,17 @@
+ %define debhelper_ver 7.3.9
+
+ Name: deb
+-BuildRequires: gcc-c++ ncurses-devel texlive-latex update-alternatives zlib-devel
+-BuildRequires: libselinux-devel
++BuildRequires: gcc-c++ ncurses-devel zlib-devel
++%if 0%{?suse_version} > 1010
+ BuildRequires: fdupes
++%endif
+ Url: http://www.debian.org
+ License: GPL v2 or later
+ Group: System/Packages
+ PreReq: /bin/touch
+ Provides: dpkg dpkg-dev debhelper dselect dpkg-doc
+ Requires: perl = %{perl_version}
+-Requires: cpio patch make html2text update-alternatives
++Requires: cpio patch make html2text
+ AutoReqProv: on
+ Version: 1.15.0
+ Release: 12
+@@ -39,6 +40,27 @@ Source1: debhelper_%{debhelper_ve
+ Patch0: debhelper-no-localized-manpages.diff
+ BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
++%if 0%{?suse_version}
++BuildRequires: sgmltool texlive-latex update-alternatives libbz2-devel
++Requires: update-alternatives
++%if 0%{?suse_version} > 1100
++BuildRequires: libselinux-devel
++%define use_selinux 1
++%endif
++%endif
++%if 0%{?fedora_version}
++BuildRequires: libselinux-devel tetex-latex texinfo-tex linuxdoc-tools
++%define use_selinux 1
++%endif
++%if 0%{?rhel_version}
++BuildRequires: libselinux-devel tetex-latex texinfo-tex linuxdoc-tools
++%define use_selinux 1
++%endif
++%if 0%{?centos_version}
++BuildRequires: libselinux-devel tetex-latex texinfo-tex linuxdoc-tools
++%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
+@@ -68,9 +90,13 @@ rm debian/archtable.tmp
+ %build
+ %{?suse_update_config:%{suse_update_config -f}}
+ export CFLAGS="$RPM_OPT_FLAGS"
++%if 0%{?use_selinux}
+ export SELINUX_LIBS="-lselinux"
++%endif
+ %configure\
++%if 0%{?use_selinux}
+ --with-selinux \
++%endif
+ --localstatedir=%{_localstatedir}/lib\
+ --libdir=%{_prefix}/lib
+ # configure somehow does not detect architecture correctly in OBS (bnc#469337), so
+@@ -93,6 +119,8 @@ cd ../debhelper
+ make VERSION='%{debhelper_ver}'
+
+ %install
++#mkdir -p $RPM_BUILD_ROOT/usr/share
++#ln -s $RPM_BUILD_ROOT/usr/share $RPM_BUILD_ROOT/share
+ ##
+ # dpkg stuff
+ ##
+@@ -151,7 +179,9 @@ rm -rf $RPM_BUILD_ROOT%{_mandir}/*/man8/
+ ##
+ # remove duplicate files
+ ##
++%if 0%{?suse_version} > 1010
+ %fdupes %buildroot
++%endif
+
+ %clean
+ rm -rf $RPM_BUILD_ROOT
+@@ -163,7 +193,9 @@ for f in diversions statoverride status
+ done
+ exit 0
+
++%if 0%{?suse_version} > 1010
+ %files lang -f %{name}.lang
++%endif
+
+ %files
+ %defattr(-,root,root)
|