File project.diff of Package xml-coreutils

--- xml-coreutils.changes.orig
+++ xml-coreutils.changes
@@ -1,4 +1,13 @@
 -------------------------------------------------------------------
+Thu Nov 15 18:45:05 UTC 2012 - sweet_f_a@gmx.de
+
+- add xml-coreutils-github-rudimeier-v0.8.1-18-g9a5e6d9.patch
+  from https://github.com/rudimeier/xml-coreutils which fixes many
+  build issues
+- remove useless build deps
+- don't use deprecated makeinstall macro
+
+-------------------------------------------------------------------
 Sat Apr 16 08:16:22 UTC 2011 - pascal.bleser@opensuse.org
 
 - update to 0.8.1:
--- xml-coreutils.spec.orig
+++ xml-coreutils.spec
@@ -6,19 +6,21 @@ Release:        0
 Summary:        Command Line Tools for Reading and Writing XML Files
 # http://prdownloads.sourceforge.net/xml-coreutils/xml-coreutils-%{version}.tar.gz
 Source:         %{name}-%{version}.tar.bz2
-Patch1:         %{name}-fix_buffer_overflow.patch
+# various fixes taken from https://github.com/rudimeier/xml-coreutils/
+Patch1:         %{name}-github-rudimeier-v0.8.1-18-g9a5e6d9.patch
+# autoreconf after all other patches were applied
+Patch2:         %{name}-autoreconf.patch
 URL:            http://xml-coreutils.sourceforge.net/
 Group:          Productivity/Text/Utilities
 License:        GNU General Public License version 3 (GPL v3)
 BuildRoot:      %{_tmppath}/build-%{name}-%{version}
-BuildRequires:  bison flex ncurses-devel slang-devel
 %if 0%{?suse_version} > 0 && 0%{?suse_version} >= 1030
 BuildRequires:  libexpat-devel
 %else
 BuildRequires:  expat
 %endif
 BuildRequires:  gcc make glibc-devel pkgconfig
-BuildRequires:  autoconf automake libtool
+BuildRequires:  slang-devel
 
 %description
 The xml-coreutils are a set of command line tools for reading and writing XML
@@ -27,7 +29,8 @@ possible to the traditional text process
 
 %prep
 %setup -q
-%patch1
+%patch1 -p1
+%patch2 -p1
 
 %build
 export CPPFLAGS="%{optflags} -I/usr/include/slang"
@@ -35,7 +38,7 @@ export CPPFLAGS="%{optflags} -I/usr/incl
 %__make %{?_smp_mflags}
 
 %install
-%makeinstall
+%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}}
 %__rm -rf "%{buildroot}%{_datadir}/xml-coreutils"
 
 %__rm doc/Makefile*
@@ -71,7 +74,7 @@ export CPPFLAGS="%{optflags} -I/usr/incl
 %{_bindir}/xml-strings
 %{_bindir}/xml-unecho
 %{_bindir}/xml-wc
-%doc %{_mandir}/man1/xml-*.1%{ext_man}
-%doc %{_mandir}/man7/xml-coreutils.7%{ext_man}
+%doc %{_mandir}/man1/xml-*.1*
+%doc %{_mandir}/man7/xml-coreutils.7*
 
 %changelog
openSUSE Build Service is sponsored by