/[packages]/cauldron/wine-gecko/current/SPECS/wine-gecko.spec
ViewVC logotype

Annotation of /cauldron/wine-gecko/current/SPECS/wine-gecko.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1840737 - (hide annotations) (download)
Sat Apr 2 12:48:52 2022 UTC (7 weeks, 3 days ago) by umeabot
File size: 3739 byte(s)
Mageia 9 Mass Rebuild
1 daviddavid 1055577 %define oname wine-mozilla
2 ahmad 67277
3 daviddavid 1440645 %{?mingw_package_header}
4 anssi 188284
5 ahmad 67277 Summary: HTML engine for Wine based on Gecko
6 dams 398032 Name: wine-gecko
7 daviddavid 1654783 Version: 2.47.2
8 umeabot 1840737 Release: %mkrel 4
9 ahmad 67277 Group: Emulators
10     License: MPLv1.1
11     URL: http://wiki.winehq.org/Gecko
12 daviddavid 1654783 Source0: http://dl.winehq.org/wine/wine-gecko/%{version}/wine-gecko-%{version}-src.tar.xz
13 daviddavid 1055577 Patch0: %{name}-mozconfig.patch
14     # mga patches
15     Patch100: %{name}-wine64.patch
16    
17     BuildArch: noarch
18    
19     # 64
20     BuildRequires: mingw64-filesystem >= 95
21     BuildRequires: mingw64-binutils
22     BuildRequires: mingw64-headers
23     BuildRequires: mingw64-cpp
24     BuildRequires: mingw64-gcc
25     BuildRequires: mingw64-gcc-c++
26     BuildRequires: mingw64-crt
27     BuildRequires: mingw64-winpthreads-static
28     # 32
29     BuildRequires: mingw32-filesystem >= 95
30     BuildRequires: mingw32-binutils
31     BuildRequires: mingw32-headers
32     BuildRequires: mingw32-cpp
33     BuildRequires: mingw32-gcc
34     BuildRequires: mingw32-gcc-c++
35     BuildRequires: mingw32-crt
36     BuildRequires: mingw32-winpthreads-static
37    
38 ahmad 67277 BuildRequires: autoconf2.1
39 daviddavid 1440645 BuildRequires: gcc
40     BuildRequires: gcc-c++
41 daviddavid 1475063 BuildRequires: git
42 daviddavid 1055577 BuildRequires: pkgconfig
43 daviddavid 1674600 BuildRequires: python3
44 daviddavid 1055577 BuildRequires: perl-Getopt-Long
45     BuildRequires: yasm
46 ahmad 67277 BuildRequires: zip
47 anssi 96591 BuildRequires: wine-bin
48 daviddavid 1055577 BuildRequires: libwine-devel
49 ahmad 67277
50 daviddavid 1055635 Requires: wine-bin
51 daviddavid 1055577
52 ahmad 67277 %description
53     A custom version of Mozilla's Gecko Layout Engine for Wine. This package
54     is needed when running such Windows applications in Wine that display web
55     pages using embedded IE.
56    
57 anssi 96591 %package -n wine64-gecko
58     Summary: HTML engine for 64-bit Wine based on Gecko
59     Group: Emulators
60 daviddavid 1055635 Requires: wine-bin
61 anssi 96591
62     %description -n wine64-gecko
63     A custom version of Mozilla's Gecko Layout Engine for Wine. This package
64     is needed when running such Windows applications in Wine that display web
65     pages using embedded IE.
66    
67     This package is for use with 64-bit wine64.
68    
69 ahmad 67277 %prep
70 daviddavid 1475063 %setup -q -c -n wine-gecko-%{version}
71     cd wine-gecko-%{version}
72 pterjan 1675466 %if "%{distro_arch}" == "x86_64" || "%{distro_arch}" == "aarch64"
73 daviddavid 1055577 %patch100 -p1 -b .wine64
74     %endif
75 ahmad 67277
76 daviddavid 1055577 # fix nsprpub cross compile detection
77     sed -i 's,cross_compiling=.*$,cross_compiling=yes,' nsprpub/configure
78 anssi 311658
79 daviddavid 1055577 # remove blank includes
80     rm -f media/libstagefright/ports/win32/include/pthread.h
81 anssi 274997
82 daviddavid 1458728 # fix wine cabinet tool
83     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
84    
85 ahmad 67277 %build
86 daviddavid 1475063 cd wine-gecko-%{version}
87 daviddavid 1055577 # setup build options...
88     echo "mk_add_options MOZ_MAKE_FLAGS=%{_smp_mflags}" >> wine/mozconfig-common
89 daviddavid 1440645 echo "export CFLAGS=\"-DWINE_GECKO_SRC\"" >> wine/mozconfig-common
90 daviddavid 1654783 # hack around GCC 10 regression by adding -save-temps
91     # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96391
92     echo "export CXXFLAGS=\"\$CFLAGS -fpermissive -mxsave -save-temps\"" >> wine/mozconfig-common
93 anssi 311658
94 daviddavid 1055577 cp wine/mozconfig-common wine/mozconfig-common.build
95 anssi 96591
96 daviddavid 1055577 # ... and build
97 daviddavid 1458728 TOOLCHAIN_PREFIX=i686-w64-mingw32- MAKEOPTS="%{_smp_mflags}" ./wine/make_package --msi-package -win32
98 anssi 275078
99 daviddavid 1458728 TOOLCHAIN_PREFIX=x86_64-w64-mingw32- MAKEOPTS="%{_smp_mflags}" ./wine/make_package --msi-package -win64
100 anssi 96591
101 ahmad 67277 %install
102 daviddavid 1055577 mkdir -p %{buildroot}%{_datadir}/wine/gecko
103 daviddavid 1475063 install -p -m 0644 wine-gecko-%{version}-x86/dist/wine-gecko-%{version}-x86.msi \
104     %{buildroot}%{_datadir}/wine/gecko/wine-gecko-%{version}-x86.msi
105     install -p -m 0644 wine-gecko-%{version}-x86_64/dist/wine-gecko-%{version}-x86_64.msi \
106     %{buildroot}%{_datadir}/wine/gecko/wine-gecko-%{version}-x86_64.msi
107 ahmad 67277
108     %files
109 daviddavid 1475063 %license wine-gecko-%{version}/LICENSE
110     %doc wine-gecko-%{version}/LEGAL
111     %doc wine-gecko-%{version}/README.txt
112 ahmad 67277 %dir %{_datadir}/wine/gecko
113 daviddavid 1475063 %{_datadir}/wine/gecko/wine-gecko-%{version}-x86.msi
114 daviddavid 1055577
115     %files -n wine64-gecko
116 daviddavid 1475063 %license wine-gecko-%{version}/LICENSE
117     %doc wine-gecko-%{version}/LEGAL
118     %doc wine-gecko-%{version}/README.txt
119 daviddavid 1055577 %dir %{_datadir}/wine/gecko
120 daviddavid 1475063 %{_datadir}/wine/gecko/wine-gecko-%{version}-x86_64.msi

  ViewVC Help
Powered by ViewVC 1.1.28