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