Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:hiberis:wix
mingw32-evince
project.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File project.diff of Package mingw32-evince
--- mingw32-evince.spec.orig +++ mingw32-evince.spec @@ -39,18 +39,33 @@ Patch8: 0008-Reintroduce-the-builtin-met Patch9: 0009-WIP-command-line-args.patch Patch10: 0010-WIP-windows-taskbar.patch Patch11: 0011-Use-online-help-on-win32.patch +Patch1100: 0001-WIP-wix.patch +%if %{run_autogen} +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gconf2-devel +BuildRequires: gnome-common +#BuildRequires: gnome-doc-utils-devel +BuildRequires: gobject-introspection +BuildRequires: libtool +%endif BuildRequires: glib2-devel BuildRequires: gtk-doc BuildRequires: intltool #!BuildIgnore: post-build-checks +BuildRequires: mingw32-atk-devel BuildRequires: mingw32-cairo-devel BuildRequires: mingw32-cross-binutils BuildRequires: mingw32-cross-gcc BuildRequires: mingw32-cross-gcc-c++ BuildRequires: mingw32-cross-pkg-config BuildRequires: mingw32-filesystem >= 25 +BuildRequires: mingw32-fontconfig-devel +BuildRequires: mingw32-freetype-devel +BuildRequires: mingw32-gettext-tools BuildRequires: mingw32-glib2-devel BuildRequires: mingw32-gtk3-devel +BuildRequires: mingw32-hicolor-icon-theme-devel BuildRequires: mingw32-libdjvulibre-devel BuildRequires: mingw32-libgsf-devel BuildRequires: mingw32-libpoppler-glib-devel @@ -60,18 +75,12 @@ BuildRequires: mingw32-libxml2-devel BuildRequires: mingw32-zlib-devel BuildRequires: mingw32-libgsf-devel BuildRequires: mingw32-libgxps-devel -%if %{run_autogen} -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: gconf2-devel -BuildRequires: gnome-common -#BuildRequires: gnome-doc-utils-devel -BuildRequires: gobject-introspection -BuildRequires: libtool -%endif +BuildRequires: mingw32-poppler-data-devel %if %{enable_dvi_backend} BuildRequires: mingw32-texlive-devel %endif +BuildRequires: uuid-runtime +BuildRequires: wixwine # To subpress libtool warnings BuildRequires: wine @@ -99,6 +108,16 @@ singlepage document formats like PDF and information about Evince, visit the project Web site at http://www.gnome.org/projects/evince/. +%package msi +Summary: Evince Windows Installer +Group: Development/Libraries + +%description msi +Evince is a document viewer capable of displaying multiple and +singlepage document formats like PDF and PostScript. For more +information about Evince, visit the project Web site at +http://www.gnome.org/projects/evince/. + %_mingw32_debug_package %lang_package @@ -116,8 +135,25 @@ http://www.gnome.org/projects/evince/. %patch9 -p1 %patch10 -p1 %patch11 -p1 +%patch1100 -p1 -b .wix %build +# Each GNOME distributed installer is build in separate +# GNOME:Apps:Evince:Windows subproject. This subproject should be +# named "$VERSION.$DIST", where $VERSION is the Evince version, +# e.g. 2.32.0 and $DIST is a unique increasing distribution number. +# The distribution number is added to the version number. +regex='GNOME:Apps:Evince:Windows:[0-9]*\.[0-9]*\.[0-9]*\.\([0-9]*\).*$' +arch=$(echo '%{_mingw32_host}' | sed -e 's/^\([^-]*\).*/\1/g') +if [[ $(echo '%{distribution}' | grep $regex) ]]; then + n=$(echo '%{distribution}' | sed "s/$regex/\1/g") + sed -i -e "s#m4_define(\[ev_extra_version\],\[\])#m4_define(\[ev_extra_version\],\[.$n\])#g" configure.ac + sed -i -e "s#evince_msi_FUAL_FLAGS =#evince_msi_FUAL_FLAGS = -m \"The Evince Team\"#g" Makefile.am + msi=evince-$arch-%{version}.$n.msi +else + msi=evince-$arch-%{version}.msi +fi + %if %{run_autogen} NOCONFIGURE=1 AUTOMAKE=`which automake` ./autogen.sh %endif @@ -131,6 +167,21 @@ echo "lt_cv_deplibs_check_method='pass_a %{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make} +mkdir -p ./msi +cd msi +cp ../evince.msi $msi +md5sum $msi > $msi.md5sum +echo " +The $msi installer was build on the Open Build Service, +%{distribution} distribution, +with the following packages installed: +" > $msi.SOURCES +rpm -qa >> $msi.SOURCES +echo " + +" >> $msi.SOURCES +cat ../README.Windows >> $msi.SOURCES + %install %{_mingw32_make} DESTDIR=%{buildroot} install @@ -140,6 +191,8 @@ rm -f %{buildroot}%{_mingw32_datadir}/ap %find_lang evince +cp -r msi %{buildroot}%{_mingw32_datadir} + %post %{_bindir}/glib-compile-schemas %{_mingw32_datadir}/glib-2.0/schemas @@ -187,6 +240,10 @@ fi %{_mingw32_datadir}/thumbnailers/evince.thumbnailer +%files msi +%defattr(-,root,root) +%{_mingw32_datadir}/msi/* + %files lang -f evince.lang %defattr(-,root,root) %if 0%{?suse_version} <= 1100
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor