File project.diff of Package mingw64-evince

--- mingw64-evince.spec.orig
+++ mingw64-evince.spec
@@ -7,42 +7,46 @@
                           %{_mingw64_install_post}
 
 %define run_autogen 1
-%define enable_dvi_backend 0
+%define enable_dvi_backend 1
+%define enable_dbus 0
 
 Name:           mingw64-evince
-Version:        2.32.0
+Version:        3.6.1
 Release:        0
 Summary:        GNOME Document Viewer
 
 License:        GPL v2 or later
 Group:          Development/Libraries
 URL:            http://www.gnome.org/projects/evince/
-Source0:        ftp://ftp.gnome.org/pub/gnome/sources/evince/2.32/evince-%{version}.tar.bz2
+Source0:        ftp://ftp.gnome.org/pub/gnome/sources/evince/3.3/evince-%{version}.tar.xz
 Source1000:     %{name}-rpmlintrc
-Patch0:         evince-2.32.0-zlib.patch
-Patch1:         evince-2.32.0-gmodule.patch
-Patch100:       0001-comics-Optionally-use-libgsf-for-reading-comics.patch
-Patch101:       0001-tiff-Use-TIFFOpenW-on-windows.patch
-Patch102:       0001-tiff-backend-use-cairo-for-printing.patch
-Patch103:       0001-libview-close-tmpfile-descriptor-before-copying-to-i.patch
-Patch104:       0001-pdf-Update-to-poppler-api-changes.patch
-Patch105:       0001-libdocument-Check-for-NULL-in-synctex_backward_searc.patch
-Patch106:       0001-backends-Fix-several-security-issues-in-the-dvi-back.patch
-Patch107:       0001-backends-Fix-another-security-issue-in-the-dvi-backe.patch
-Patch108:       0001-document-create_thumbnail_frame-should-return-NULL-w.patch
-Patch109:       0001-dvi-Fix-build-for-win64.patch
+Patch1: 0001-Work-around-disfunctional-gtk_show_uri-on-Windows.patch
+Patch2: 0002-Use-g_spawn_command_line_async-to-launch-instances.patch
+Patch3: 0003-Add-README.Windows.patch
+Patch4: 0004-comics-Optionally-use-libgsf-for-reading-comics.patch
+Patch5: 0005-tiff-use-cairo-for-printing.patch
+Patch6: 0006-tiff-WIP-Use-a-memory-pool-for-surface.patch
+Patch7: 0007-tiff-workaround-for-cairo-bug.patch
+Patch8: 0008-Reintroduce-the-builtin-metadata-manager.patch
+Patch9: 0009-WIP-command-line-args.patch
+Patch10: 0010-WIP-windows-taskbar.patch
+Patch11: 0011-Use-online-help-on-win32.patch
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 BuildArch:      noarch
 #!BuildIgnore: post-build-checks  
 
+# For unpacking xz source files
+BuildRequires:  xz
+
 BuildRequires:  mingw64-filesystem >= 25
 BuildRequires:  mingw64-cross-gcc
 BuildRequires:  mingw64-cross-gcc-c++
 BuildRequires:  mingw64-cross-binutils
 BuildRequires:  mingw64-cross-pkg-config
 BuildRequires:  mingw64-glib2-devel
-BuildRequires:  mingw64-gtk2-devel
+BuildRequires:  mingw64-gtk3-devel
 BuildRequires:  mingw64-libxml2-devel
 BuildRequires:  mingw64-libpoppler-glib-devel
 BuildRequires:  mingw64-cairo-devel
@@ -51,6 +55,7 @@ BuildRequires:  mingw64-libdjvulibre-dev
 BuildRequires:  mingw64-zlib-devel
 BuildRequires:  mingw64-libspectre-devel
 BuildRequires:  mingw64-libgsf-devel
+BuildRequires:  mingw64-libgxps-devel
 %if %{enable_dvi_backend}
 BuildRequires:  mingw64-texlive-devel
 %endif
@@ -58,15 +63,18 @@ BuildRequires:  mingw64-texlive-devel
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libtool
-BuildRequires:  gnome-doc-utils-devel
+BuildRequires:  gobject-introspection
+#BuildRequires:  gnome-doc-utils-devel
 BuildRequires:  gnome-common
-BuildRequires:  gconf2-devel
 %endif
 BuildRequires:  intltool
 BuildRequires:  gtk-doc
 BuildRequires:  glib2-devel
 %glib2_gsettings_schema_requires
 
+# To subpress libtool warnings
+BuildRequires: wine
+
 Requires:       %{name}-lang
 
 %description
@@ -94,19 +102,17 @@ http://www.gnome.org/projects/evince/.
 
 %prep
 %setup -q -n evince-%{version}
-%patch0 -p1 -b .zlib
-%patch1 -p1 -b .gmodule
-
-%patch100 -p1
-%patch101 -p1
-%patch102 -p1
-%patch103 -p1
-%patch104 -p1
-%patch105 -p1
-%patch106 -p1
-%patch107 -p1
-%patch108 -p1
-%patch109 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
 
 
 %build
@@ -116,6 +122,9 @@ NOCONFIGURE=1 AUTOMAKE=`which automake`
 
 echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
 %{_mingw64_configure} \
+%if %{enable_dbus}
+        --enable-dbus \
+%endif
 	--enable-shared --disable-static
 
 %{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
@@ -126,7 +135,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %{_mingw64_make} DESTDIR=$RPM_BUILD_ROOT install
 
-rm -f $RPM_BUILD_ROOT%{_mingw64_libdir}/evince/3/backends/*.dll.a
+rm -f $RPM_BUILD_ROOT%{_mingw64_libdir}/evince/4/backends/*.dll.a
 rm -f $RPM_BUILD_ROOT%{_mingw64_datadir}/applications/evince.desktop
 
 %find_lang evince
@@ -147,32 +156,39 @@ fi
 %{_mingw64_bindir}/evince.exe
 %{_mingw64_bindir}/evince-previewer.exe
 %{_mingw64_bindir}/evince-thumbnailer.exe
-%{_mingw64_bindir}/libevdocument-3.dll
-%{_mingw64_bindir}/libevview-3.dll
-%{_mingw64_libdir}/evince/3/backends/djvudocument.evince-backend
-%{_mingw64_libdir}/evince/3/backends/libdjvudocument.dll
-%{_mingw64_libdir}/evince/3/backends/pdfdocument.evince-backend
-%{_mingw64_libdir}/evince/3/backends/libpdfdocument.dll
-%{_mingw64_libdir}/evince/3/backends/tiffdocument.evince-backend
-%{_mingw64_libdir}/evince/3/backends/libtiffdocument.dll
-%{_mingw64_libdir}/evince/3/backends/psdocument.evince-backend
-%{_mingw64_libdir}/evince/3/backends/libpsdocument.dll
-%{_mingw64_libdir}/evince/3/backends/comicsdocument.evince-backend
-%{_mingw64_libdir}/evince/3/backends/libcomicsdocument.dll
+%{_mingw64_bindir}/libevdocument3-4.dll
+%{_mingw64_bindir}/libevview3-3.dll
+%if %{enable_dbus}
+%{_mingw64_libexecdir}/evinced.exe
+%endif
+%{_mingw64_libdir}/evince/4/backends/djvudocument.evince-backend
+%{_mingw64_libdir}/evince/4/backends/libdjvudocument.dll
+%{_mingw64_libdir}/evince/4/backends/pdfdocument.evince-backend
+%{_mingw64_libdir}/evince/4/backends/libpdfdocument.dll
+%{_mingw64_libdir}/evince/4/backends/tiffdocument.evince-backend
+%{_mingw64_libdir}/evince/4/backends/libtiffdocument.dll
+%{_mingw64_libdir}/evince/4/backends/psdocument.evince-backend
+%{_mingw64_libdir}/evince/4/backends/libpsdocument.dll
+%{_mingw64_libdir}/evince/4/backends/comicsdocument.evince-backend
+%{_mingw64_libdir}/evince/4/backends/libcomicsdocument.dll
+%{_mingw64_libdir}/evince/4/backends/xpsdocument.evince-backend
+%{_mingw64_libdir}/evince/4/backends/libxpsdocument.dll
 %if %{enable_dvi_backend}
-%{_mingw64_libdir}/evince/3/backends/dvidocument.evince-backend
-%{_mingw64_libdir}/evince/3/backends/libdvidocument.dll
+%{_mingw64_libdir}/evince/4/backends/dvidocument.evince-backend
+%{_mingw64_libdir}/evince/4/backends/libdvidocument.dll
 %endif
-%{_mingw64_libexecdir}/evince-convert-metadata.exe
 %{_mingw64_mandir}/man1/evince.1*
-%{_mingw64_datadir}/evince/evince-ui.xml
+%{_mingw64_datadir}/help
 %{_mingw64_datadir}/evince/hand-open.png
-%{_mingw64_datadir}/evince/evince-previewer-ui.xml
-%{_mingw64_datadir}/evince/evince-toolbar.xml
 %{_mingw64_datadir}/evince/icons/hicolor
 %{_mingw64_datadir}/icons/hicolor
 %{_mingw64_datadir}/GConf/gsettings/evince.convert
 %{_mingw64_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml
+%if %{enable_dbus}
+%{_mingw64_datadir}/dbus-1/services/org.gnome.evince.Daemon.service
+%endif
+%{_mingw64_datadir}/thumbnailers/evince.thumbnailer
+
 
 
 %files lang -f evince.lang
@@ -184,14 +200,14 @@ fi
 
 %files devel
 %defattr(-,root,root)
-%{_mingw64_includedir}/evince/2.32
-%{_mingw64_libdir}/libevdocument.dll.a
-%{_mingw64_libdir}/libevview.dll.a
-%{_mingw64_libdir}/pkgconfig/evince-document-2.32.pc
-%{_mingw64_libdir}/pkgconfig/evince-view-2.32.pc
+%{_mingw64_includedir}/evince/3.0
+%{_mingw64_libdir}/libevdocument3.dll.a
+%{_mingw64_libdir}/libevview3.dll.a
+%{_mingw64_libdir}/pkgconfig/evince-document-3.0.pc
+%{_mingw64_libdir}/pkgconfig/evince-view-3.0.pc
 %{_mingw64_datadir}/gtk-doc/html/evince
-%{_mingw64_datadir}/gtk-doc/html/libevdocument-2.32
-%{_mingw64_datadir}/gtk-doc/html/libevview-2.32
+%{_mingw64_datadir}/gtk-doc/html/libevdocument-3.0
+%{_mingw64_datadir}/gtk-doc/html/libevview-3.0
 
 
 %changelog
openSUSE Build Service is sponsored by