File project.diff of Package mingw32-freetype

--- mingw32-freetype.spec.orig
+++ mingw32-freetype.spec
@@ -26,12 +26,17 @@ Url:            http://www.freetype.org
 Source:         http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2
 Source1:        http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2
 Patch0:         freetype-2.4.12-pkgconfig.patch
+Patch1000:      freetype-2.4.5-wix.patch
 #!BuildIgnore: post-build-checks
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  libtool
 BuildRequires:  mingw32-cross-binutils
 BuildRequires:  mingw32-cross-gcc
 BuildRequires:  mingw32-cross-pkg-config
 BuildRequires:  mingw32-filesystem
 BuildRequires:  mingw32-zlib-devel
+BuildRequires:  wixwine
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %{_mingw32_package_header_debug}
 BuildArch:      noarch
@@ -67,8 +72,11 @@ conversion tools, text image generation
 %prep
 %setup -q -n freetype-%{version} -b 1 -a 1
 %patch0 -p1
+%patch1000 -p1 -b .wix
 
 %build
+. ./autogen.sh
+
 echo "lt_cv_deplibs_check_method='pass_all'" >>builds/unix/%{_mingw32_cache} && chmod +w builds/unix/%{_mingw32_cache}
 %{_mingw32_configure} \
 	--enable-shared --disable-static
@@ -77,6 +85,11 @@ make %{?_smp_mflags} || make
 %install
 make DESTDIR=%{buildroot} install %{?_smp_mflags}
 
+mkdir -p %{buildroot}%{_mingw32_datadir}/wixlib
+cp freetype2.wixlib %{buildroot}%{_mingw32_datadir}/wixlib/freetype2.wixlib
+echo 'Wixlibs=%{_mingw32_datadir}/wixlib/freetype2.wixlib' >> %{buildroot}%{_mingw32_libdir}/pkgconfig/freetype2.pc
+echo 'Fualflags=-C freetype2 -D freetype2' >> %{buildroot}%{_mingw32_libdir}/pkgconfig/freetype2.pc
+
 %files -n mingw32-libfreetype6
 %defattr(-,root,root)
 %{_mingw32_bindir}/libfreetype-6.dll
@@ -89,5 +102,6 @@ make DESTDIR=%{buildroot} install %{?_sm
 %{_mingw32_libdir}/libfreetype.dll.a
 %{_mingw32_libdir}/pkgconfig/freetype2.pc
 %{_mingw32_datadir}/aclocal/freetype2.m4
+%{_mingw32_datadir}/wixlib/freetype2.wixlib
 
 %changelog
openSUSE Build Service is sponsored by