Projects
home:Eustace:branches:Eulaceura:Factory
mingw-wine-gecko
_service:obs_scm:mingw-wine-gecko.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:mingw-wine-gecko.spec of Package mingw-wine-gecko
%?mingw_package_header Name: mingw-wine-gecko Version: 2.47.1 Release: 3 Summary: Gecko library required for Wine License: MPLv1.1 or GPLv2+ or LGPLv2+ URL: http://wiki.winehq.org/Gecko Source0: http://dl.winehq.org/wine/wine-gecko/%{version}/wine-gecko-%{version}-src.tar.bz2 Patch0: %{name}-mozconfig.patch # Python 3.8 support Patch1: 0001-mozbuild-Use-time.process_time-instead-of-time.clock.patch Patch2: 0002-mozinfo-Fallback-to-unknown-disro-if-platform.linux_.patch Patch3: 0003-Bug-1259551-Upgrade-vendored-virtualenv-to-15.0.1-r-.patch Patch4: 0004-Bug-1295439-Upgrade-pip-to-8.1.2-r-glandium.patch Patch5: 0005-Bug-1100925-Added-flags-in-virtualenv-to-differencia.patch Patch6: 0006-Bug-1100925-For-whatever-reason-MinGW-Python-cannot-.patch Patch7: 0007-Bug-1100925-Virtualenv-no-longer-attempts-to-use-sym.patch Patch8: 0008-Bug-1100925-Virtualenv-now-copies-a-site.py-file-in-.patch Patch9: 0009-Bug-1100925-Added-site.py-from-virtualenv-upstream.-.patch Patch10: 0010-Bug-1100925-Added-modification-for-MinGW64-version-o.patch Patch11: 0011-Bug-1295439-Upgrade-setuptools-to-25.2.0-r-glandium.patch Patch12: 0012-Bug-1437593-Vendor-virtualenv-15.2.0-r-gps.patch BuildArch: noarch # This project is only useful with wine, and wine doesn't support PPC. # We will adopt the same arch support that wine does. ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 # 64 BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-binutils BuildRequires: mingw64-headers BuildRequires: mingw64-cpp BuildRequires: mingw64-gcc BuildRequires: mingw64-gcc-c++ BuildRequires: mingw64-crt BuildRequires: mingw64-winpthreads-static # 32 BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-binutils BuildRequires: mingw32-headers BuildRequires: mingw32-cpp BuildRequires: mingw32-gcc BuildRequires: mingw32-gcc-c++ BuildRequires: mingw32-crt BuildRequires: mingw32-winpthreads-static BuildRequires: autoconf213 BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: git BuildRequires: pkgconfig BuildRequires: python3 BuildRequires: perl-Getopt-Long BuildRequires: yasm BuildRequires: zip BuildRequires: wine-core wine-wow BuildRequires: wine-devel %description Windows Gecko library required for Wine. %package -n mingw32-wine-gecko Summary: Gecko library for 32bit wine Requires: wine-common %description -n mingw32-wine-gecko Windows Gecko library required for Wine. %package -n mingw64-wine-gecko Summary: Gecko library for 64bit wine Requires: wine-common %description -n mingw64-wine-gecko Windows Gecko library required for Wine. %prep %setup -q -c -n wine-gecko-%{version} cd wine-gecko-%{version} %patch0 -p1 -b.mozconfig %patch1 -p1 -b.python38.1 %patch2 -p1 -b.python38.2 echo %{PATCH3} git apply %{PATCH3} echo %{PATCH4} git apply %{PATCH4} %patch5 -p1 -b.python38.5 %patch6 -p1 -b.python38.6 %patch7 -p1 -b.python38.7 %patch8 -p1 -b.python38.8 %patch9 -p1 -b.python38.9 %patch10 -p1 -b.python38.10 echo %{PATCH11} git apply %{PATCH11} echo %{PATCH12} git apply %{PATCH12} # fix nsprpub cross compile detection sed -i 's,cross_compiling=.*$,cross_compiling=yes,' nsprpub/configure # remove blank includes rm -f media/libstagefright/ports/win32/include/pthread.h # fix wine cabinet tool sed -i 's,$WINE cabarc.exe -r -m mszip N $cabfile msi/files,$WINE cabarc.exe -r -m mszip N $cabfile msi/files/*,' wine/make_package %build cd wine-gecko-%{version} # setup build options... echo "mk_add_options MOZ_MAKE_FLAGS=%{_smp_mflags}" >> wine/mozconfig-common echo "export CFLAGS=\"-DWINE_GECKO_SRC\"" >> wine/mozconfig-common echo "export CXXFLAGS=\"\$CFLAGS -fpermissive -mxsave\"" >> wine/mozconfig-common cp wine/mozconfig-common wine/mozconfig-common.build # ... and build TOOLCHAIN_PREFIX=i686-w64-mingw32- MAKEOPTS="%{_smp_mflags}" ./wine/make_package --msi-package -win32 TOOLCHAIN_PREFIX=x86_64-w64-mingw32- MAKEOPTS="%{_smp_mflags}" ./wine/make_package --msi-package -win64 %install mkdir -p %{buildroot}%{_datadir}/wine/gecko install -p -m 0644 wine-gecko-%{version}-x86/dist/wine-gecko-%{version}-x86.msi \ %{buildroot}%{_datadir}/wine/gecko/wine-gecko-%{version}-x86.msi install -p -m 0644 wine-gecko-%{version}-x86_64/dist/wine-gecko-%{version}-x86_64.msi \ %{buildroot}%{_datadir}/wine/gecko/wine-gecko-%{version}-x86_64.msi %files -n mingw32-wine-gecko %license wine-gecko-%{version}/LICENSE %doc wine-gecko-%{version}/LEGAL %doc wine-gecko-%{version}/README.txt %{_datadir}/wine/gecko/wine-gecko-%{version}-x86.msi %files -n mingw64-wine-gecko %license wine-gecko-%{version}/LICENSE %doc wine-gecko-%{version}/LEGAL %doc wine-gecko-%{version}/README.txt %{_datadir}/wine/gecko/wine-gecko-%{version}-x86_64.msi %changelog * Fri Dec 17 2021 heyitao <heyitao@uniontech.cn> - 2.47.1-3 - Remove the release suffix * Sat Oct 10 2020 Zhiyi Weng <zhiyi@iscas.ac.cn> - 2.47.1-2 - Initial version.
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2