]>
Commit | Line | Data |
---|---|---|
436c5983 JB |
1 | # |
2 | # Conditional build: | |
84a498cc | 3 | %bcond_with elementary # MiniBrowser build (needs Elementary); not installed anyway |
436c5983 JB |
4 | # |
5 | %define efl_ver 1.8 | |
4bf9756f | 6 | %define rel 7 |
135a5552 JB |
7 | Summary: WebKit-EFL - Web content engine for EFL applications |
8 | Summary(pl.UTF-8): WebKit-EFL - silnik WWW dla aplikacji EFL | |
9 | Name: ewebkit | |
436c5983 | 10 | # cmake-generated .pc files say 0.1.0, autotools Version.m4 says 2.3.4 ??? |
436c5983 JB |
11 | %define svnrev 164189 |
12 | %define subver r%{svnrev} | |
9f43b095 | 13 | Version: 0.1.0 |
82aa03f4 | 14 | Release: 0.%{subver}.%{rel} |
135a5552 JB |
15 | License: BSD |
16 | Group: Libraries | |
9d43172d JB |
17 | # svn checkout https://svn.webkit.org/repository/webkit/trunk WebKit |
18 | # tar cJf webkit-r160591.tar.xz --exclude=.svn --exclude=LayoutTests --exclude=ManualTests --exclude=PerformanceTests --exclude=WebKitLibraries --exclude=Websites WebKit | |
436c5983 JB |
19 | #Source0: webkit-%{subver}.tar.xz |
20 | # official snapshots | |
21 | Source0: http://download.enlightenment.org/rel/libs/webkit-efl/webkit-efl-%{svnrev}.tar.xz | |
22 | # Source0-md5: 731513fc042ec8e03840bc1ab6a66771 | |
b819967a | 23 | Patch0: %{name}-lib.patch |
436c5983 | 24 | Patch1: %{name}-werror.patch |
9d43172d JB |
25 | Patch2: %{name}-include.patch |
26 | Patch3: %{name}-build.patch | |
c145aed6 | 27 | Patch4: %{name}-x32.patch |
6cc9bb06 JB |
28 | Patch5: %{name}-glib.patch |
29 | Patch6: %{name}-link.patch | |
f178b3dc | 30 | Patch7: gstreamer-headers.patch |
f40be538 JR |
31 | Patch8: cmake-3.4.patch |
32 | Patch9: cxx.patch | |
135a5552 | 33 | URL: http://trac.enlightenment.org/e/wiki/EWebKit |
9d43172d JB |
34 | BuildRequires: OpenGL-devel |
35 | BuildRequires: atk-devel >= 1:2.10.0 | |
36 | BuildRequires: bison >= 2.4.1 | |
37 | BuildRequires: cairo-devel >= 1.10.2 | |
9f43b095 | 38 | BuildRequires: check-devel |
741adc2f JB |
39 | BuildRequires: cmake >= 2.8.3 |
40 | BuildRequires: dbus-devel | |
9d43172d | 41 | BuildRequires: e_dbus-devel >= 1.7 |
436c5983 JB |
42 | BuildRequires: ecore-devel >= %{efl_ver} |
43 | BuildRequires: ecore-evas-devel >= %{efl_ver} | |
44 | BuildRequires: ecore-file-devel >= %{efl_ver} | |
45 | BuildRequires: ecore-imf-devel >= %{efl_ver} | |
46 | BuildRequires: ecore-imf-evas-devel >= %{efl_ver} | |
47 | BuildRequires: ecore-input-devel >= %{efl_ver} | |
48 | BuildRequires: ecore-x-devel >= %{efl_ver} | |
49 | BuildRequires: edje >= %{efl_ver} | |
50 | BuildRequires: edje-devel >= %{efl_ver} | |
51 | BuildRequires: eet-devel >= %{efl_ver} | |
52 | BuildRequires: eeze-devel >= %{efl_ver} | |
53 | BuildRequires: efreet-devel >= %{efl_ver} | |
54 | BuildRequires: eina-devel >= %{efl_ver} | |
55 | %{?with_elementary:BuildRequires: elementary-devel >= %{efl_ver}} | |
84a498cc | 56 | BuildRequires: enchant-devel |
436c5983 JB |
57 | BuildRequires: eo-devel >= %{efl_ver} |
58 | BuildRequires: evas-devel >= %{efl_ver} | |
9d43172d | 59 | BuildRequires: flex >= 2.5.34 |
135a5552 | 60 | BuildRequires: fontconfig-devel >= 2.8.0 |
9d43172d JB |
61 | BuildRequires: freetype-devel >= 1:2.4.2 |
62 | BuildRequires: glib2-devel >= 1:2.36.0 | |
63 | BuildRequires: gperf >= 3.0.1 | |
64 | BuildRequires: gstreamer-devel >= 1.0.5 | |
65 | BuildRequires: gstreamer-plugins-base-devel >= 1.0.5 | |
135a5552 | 66 | BuildRequires: gtk+2-devel >= 2:2.10 |
9d43172d JB |
67 | BuildRequires: harfbuzz-devel >= 0.9.18 |
68 | BuildRequires: harfbuzz-icu-devel >= 0.9.18 | |
135a5552 JB |
69 | BuildRequires: libicu-devel |
70 | BuildRequires: libjpeg-devel | |
71 | BuildRequires: libpng-devel | |
9d43172d JB |
72 | BuildRequires: libsoup-devel >= 2.42.0 |
73 | BuildRequires: libstdc++-devel | |
74 | BuildRequires: libxml2-devel >= 1:2.8.0 | |
135a5552 JB |
75 | BuildRequires: libxslt-devel >= 1.1.7 |
76 | BuildRequires: pango-devel | |
9d43172d JB |
77 | BuildRequires: perl-base >= 1:5.10.0 |
78 | BuildRequires: python >= 1:2.6.0 | |
79 | BuildRequires: ruby >= 1.8.7 | |
135a5552 | 80 | BuildRequires: sqlite3-devel |
9d43172d | 81 | BuildRequires: xorg-lib-libX11-devel |
741adc2f | 82 | BuildRequires: zlib-devel |
9d43172d JB |
83 | Requires: atk >= 1:2.10.0 |
84 | Requires: cairo >= 1.10.2 | |
85 | Requires: e_dbus >= 1.7 | |
436c5983 JB |
86 | Requires: ecore >= %{efl_ver} |
87 | Requires: ecore-evas >= %{efl_ver} | |
88 | Requires: ecore-file >= %{efl_ver} | |
89 | Requires: ecore-imf >= %{efl_ver} | |
90 | Requires: ecore-imf-evas >= %{efl_ver} | |
91 | Requires: ecore-input >= %{efl_ver} | |
92 | Requires: ecore-x >= %{efl_ver} | |
93 | Requires: edje-libs >= %{efl_ver} | |
436c5983 | 94 | Requires: eeze >= %{efl_ver} |
9f43b095 | 95 | Requires: efreet >= %{efl_ver} |
436c5983 JB |
96 | Requires: eina >= %{efl_ver} |
97 | Requires: evas >= %{efl_ver} | |
135a5552 JB |
98 | Requires: fontconfig-libs >= 2.8.0 |
99 | Requires: freetype >= 2.1.0 | |
9d43172d JB |
100 | Requires: glib2 >= 1:2.36.0 |
101 | Requires: gstreamer >= 1.0.5 | |
102 | Requires: gstreamer-plugins-base >= 1.0.5 | |
103 | Requires: harfbuzz >= 0.9.18 | |
104 | Requires: harfbuzz-icu >= 0.9.18 | |
105 | Requires: libxml2 >= 1:2.8.0 | |
741adc2f | 106 | Requires: libxslt >= 1.1.7 |
135a5552 JB |
107 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
108 | ||
436c5983 JB |
109 | # __once_call, __once_called non-function symbols from libstdc++ |
110 | %define skip_post_check_so libewebkit.* | |
111 | ||
135a5552 JB |
112 | %description |
113 | WebKit-EFL - Web content engine for EFL applications. | |
114 | ||
115 | %description -l pl.UTF-8 | |
116 | WebKit-EFL - silnik WWW dla aplikacji EFL. | |
117 | ||
118 | %package devel | |
119 | Summary: Header files for WebKit-EFL library | |
120 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki WebKit-EFL | |
121 | Group: Development/Libraries | |
122 | Requires: %{name} = %{version}-%{release} | |
9d43172d | 123 | Requires: cairo-devel >= 1.10.2 |
741adc2f JB |
124 | Requires: ecore-devel >= 1.2.0 |
125 | Requires: ecore-input-devel >= 1.2.0 | |
135a5552 | 126 | Requires: evas-devel >= 1.0.0 |
9d43172d JB |
127 | Requires: harfbuzz-devel |
128 | Requires: libsoup-devel >= 2.42.0 | |
129 | Requires: libstdc++-devel | |
135a5552 JB |
130 | |
131 | %description devel | |
132 | Header files for WebKit-EFL library. | |
133 | ||
134 | %description devel -l pl.UTF-8 | |
135 | Pliki nagłówkowe biblioteki WebKit-EFL. | |
136 | ||
137 | %prep | |
436c5983 | 138 | %setup -q -n efl-webkit |
b819967a | 139 | %patch0 -p1 |
295377d6 | 140 | %patch1 -p1 |
268d4ec9 | 141 | %patch2 -p1 |
9d43172d | 142 | %patch3 -p1 |
c145aed6 | 143 | %patch4 -p1 |
6cc9bb06 JB |
144 | %patch5 -p1 |
145 | %patch6 -p1 | |
f178b3dc | 146 | %patch7 -p1 |
f40be538 JR |
147 | %patch8 -p1 |
148 | %patch9 -p1 | |
135a5552 JB |
149 | |
150 | %build | |
750ad2f3 JB |
151 | # replace -g2 with -g1 to not run into 4 GB ar format limit |
152 | # https://bugs.webkit.org/show_bug.cgi?id=91154 | |
153 | # http://sourceware.org/bugzilla/show_bug.cgi?id=14625 | |
154 | CFLAGS="%(echo %{rpmcflags} | sed 's/ -g2/ -g1/g')" | |
9d43172d | 155 | CXXFLAGS="%(echo %{rpmcxxflags} | sed 's/ -g2/ -g1/g') -Wno-deprecated-declarations" |
135a5552 | 156 | %cmake . \ |
c145aed6 JB |
157 | %ifarch x32 |
158 | -DENABLE_JIT=OFF \ | |
159 | %endif | |
135a5552 JB |
160 | -DPORT=Efl |
161 | %{__make} | |
162 | ||
163 | %install | |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
166 | %{__make} install \ | |
167 | DESTDIR=$RPM_BUILD_ROOT | |
168 | ||
169 | %clean | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
172 | %post -p /sbin/ldconfig | |
173 | %postun -p /sbin/ldconfig | |
174 | ||
175 | %files | |
176 | %defattr(644,root,root,755) | |
741adc2f | 177 | %doc ChangeLog Source/WebKit/LICENSE |
9d43172d JB |
178 | %attr(755,root,root) %{_bindir}/PluginProcess |
179 | %attr(755,root,root) %{_bindir}/WebProcess | |
135a5552 JB |
180 | %attr(755,root,root) %{_libdir}/libewebkit.so.*.*.* |
181 | %attr(755,root,root) %ghost %{_libdir}/libewebkit.so.0 | |
9d43172d JB |
182 | %attr(755,root,root) %{_libdir}/libewebkit2.so.*.*.* |
183 | %attr(755,root,root) %ghost %{_libdir}/libewebkit2.so.0 | |
135a5552 JB |
184 | %{_datadir}/ewebkit-0 |
185 | ||
186 | %files devel | |
187 | %defattr(644,root,root,755) | |
188 | %attr(755,root,root) %{_libdir}/libewebkit.so | |
9d43172d | 189 | %attr(755,root,root) %{_libdir}/libewebkit2.so |
135a5552 | 190 | %{_includedir}/ewebkit-0 |
9d43172d | 191 | %{_includedir}/ewebkit2-0 |
135a5552 | 192 | %{_pkgconfigdir}/ewebkit.pc |
9d43172d JB |
193 | %{_pkgconfigdir}/ewebkit2.pc |
194 | %{_libdir}/cmake/EWebKit | |
195 | %{_libdir}/cmake/EWebKit2 |