File project.diff of Package mingw64-pcre

--- mingw64-pcre.spec.orig
+++ mingw64-pcre.spec
@@ -16,6 +16,7 @@ Url:            ftp://ftp.csx.cam.ac.uk/
 Group:          Development/Libraries
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source:         ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-%{version}.tar.bz2
+Patch1000:      pcre-8.31-wix.patch
 
 BuildArch:      noarch
 #!BuildIgnore: post-build-checks
@@ -28,6 +29,8 @@ BuildRequires:  mingw64-cross-pkg-config
 BuildRequires:  gnome-common
 BuildRequires:  libtool autoconf automake
 
+BuildRequires:  wixwine
+
 %description
 The PCRE library is a set of functions that implement regular
 expression pattern matching using the same syntax and semantics
@@ -100,9 +103,10 @@ as Perl 5.
 
 %prep
 %setup -q -n pcre-%{version}
-
+%patch1000 -p1
 
 %build
+mkdir m4 && autoreconf -fi
 %{_mingw64_configure} \
 	--enable-shared --disable-static \
 	--enable-utf --enable-pcre16
@@ -151,6 +155,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mingw64_libdir}/pkgconfig/libpcrecpp.pc
 %{_mingw64_libdir}/pkgconfig/libpcreposix.pc
 %{_mingw64_mandir}/man3/*.3*
+%{_mingw64_datadir}/wixlib/libpcre.wixlib
 
 %files doc
 %defattr(-,root,root)
openSUSE Build Service is sponsored by