]>
Commit | Line | Data |
---|---|---|
1 | # TODO: review configure options: | |
2 | # - gamepad, web-audio | |
3 | # - battery-status (BR: upower-devel) | |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_without introspection # disable introspection | |
7 | # | |
8 | Summary: Port of WebKit embeddable web component to GTK+ 3 | |
9 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 3 | |
10 | Name: gtk-webkit3 | |
11 | Version: 2.2.2 | |
12 | Release: 1 | |
13 | License: BSD-like | |
14 | Group: X11/Libraries | |
15 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz | |
16 | # Source0-md5: 49cc8fd065de72603776a494e41c1977 | |
17 | Patch0: sync-builtins.patch | |
18 | URL: http://webkitgtk.org/ | |
19 | BuildRequires: EGL-devel | |
20 | BuildRequires: OpenGL-GLX-devel | |
21 | BuildRequires: at-spi2-core-devel >= 2.6.0 | |
22 | BuildRequires: autoconf >= 2.60 | |
23 | BuildRequires: automake | |
24 | BuildRequires: bison >= 1.875 | |
25 | BuildRequires: cairo-devel >= 1.10 | |
26 | BuildRequires: enchant-devel >= 0.22 | |
27 | BuildRequires: flex >= 2.5.33 | |
28 | BuildRequires: fontconfig-devel >= 2.5.0 | |
29 | BuildRequires: freetype-devel >= 1:2.1.8 | |
30 | BuildRequires: gcc-c++ >= 6:4.7 | |
31 | BuildRequires: geoclue-devel | |
32 | BuildRequires: gettext-devel | |
33 | BuildRequires: glib2-devel >= 1:2.36.0 | |
34 | BuildRequires: glibc-misc | |
35 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0} | |
36 | BuildRequires: gperf | |
37 | BuildRequires: gstreamer-devel >= 1.0.3 | |
38 | BuildRequires: gstreamer-plugins-base-devel >= 1.0.3 | |
39 | # GTK+ 2.x for webkit2 plugin process; GTK+ 3 for base GUI | |
40 | BuildRequires: gtk+2-devel >= 2:2.24.10 | |
41 | BuildRequires: gtk+3-devel >= 3.10.0 | |
42 | BuildRequires: gtk-doc >= 1.10 | |
43 | BuildRequires: harfbuzz-devel >= 0.9.7 | |
44 | BuildRequires: harfbuzz-icu-devel >= 0.9.7 | |
45 | BuildRequires: libicu-devel >= 4.2.1 | |
46 | BuildRequires: libjpeg-devel | |
47 | BuildRequires: libpng-devel | |
48 | BuildRequires: libsecret-devel | |
49 | BuildRequires: libsoup-devel >= 2.42.0 | |
50 | BuildRequires: libstdc++-devel | |
51 | # libtool with -fuse-ld= gcc option support | |
52 | BuildRequires: libtool >= 2:2.4.2-13 | |
53 | BuildRequires: libwebp-devel | |
54 | BuildRequires: libxml2-devel >= 1:2.6.30 | |
55 | BuildRequires: libxslt-devel >= 1.1.7 | |
56 | BuildRequires: pango-devel >= 1:1.32.0 | |
57 | BuildRequires: perl-base | |
58 | BuildRequires: pkgconfig | |
59 | BuildRequires: python | |
60 | BuildRequires: rpmbuild(macros) >= 1.592 | |
61 | BuildRequires: ruby | |
62 | BuildRequires: sqlite3-devel >= 3 | |
63 | BuildRequires: tar >= 1:1.22 | |
64 | BuildRequires: udev-glib-devel | |
65 | BuildRequires: xorg-lib-libXcomposite-devel | |
66 | BuildRequires: xorg-lib-libXdamage-devel | |
67 | BuildRequires: xorg-lib-libXrender-devel | |
68 | BuildRequires: xorg-lib-libXt-devel | |
69 | BuildRequires: xz | |
70 | BuildRequires: zlib-devel | |
71 | BuildRequires: /usr/bin/ld.gold | |
72 | Requires: cairo >= 1.10 | |
73 | Requires: enchant >= 0.22 | |
74 | Requires: fontconfig-libs >= 2.5.0 | |
75 | Requires: freetype >= 1:2.1.8 | |
76 | Requires: glib2 >= 1:2.36.0 | |
77 | Requires: gstreamer >= 1.0.3 | |
78 | Requires: gstreamer-plugins-base >= 1.0.3 | |
79 | Requires: gtk+2 >= 2:2.24.10 | |
80 | Requires: gtk+3 >= 3.10.0 | |
81 | Requires: harfbuzz >= 0.9.7 | |
82 | Requires: libsoup >= 2.42.0 | |
83 | Requires: libxml2 >= 1:2.6.30 | |
84 | Requires: libxslt >= 1.1.7 | |
85 | Requires: pango >= 1:1.32.0 | |
86 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} | |
87 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
88 | ||
89 | %description | |
90 | gtk-webkit3 is a port of the WebKit embeddable web component to GTK+ 3. | |
91 | ||
92 | %description -l pl.UTF-8 | |
93 | gtk-webkit3 to port osadzalnego komponentu WWW WebKit do GTK+ 3. | |
94 | ||
95 | %package devel | |
96 | Summary: Development files for WebKit for GTK+ 3 | |
97 | Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 3 | |
98 | Group: X11/Development/Libraries | |
99 | Requires: %{name} = %{version}-%{release} | |
100 | Requires: glib2-devel >= 1:2.36.0 | |
101 | Requires: gtk+3-devel >= 3.10.0 | |
102 | Requires: libsoup-devel >= 2.42.0 | |
103 | Requires: libstdc++-devel | |
104 | ||
105 | %description devel | |
106 | Development files for WebKit for GTK+ 3. | |
107 | ||
108 | %description devel -l pl.UTF-8 | |
109 | Pliki programistyczne komponentu WebKit dla GTK+ 3. | |
110 | ||
111 | %package apidocs | |
112 | Summary: WebKit API documentation | |
113 | Summary(pl.UTF-8): Dokumentacja API WebKita | |
114 | Group: Documentation | |
115 | Requires: gtk-doc-common | |
116 | ||
117 | %description apidocs | |
118 | WebKit API documentation. | |
119 | ||
120 | %description apidocs -l pl.UTF-8 | |
121 | Dokumentacja API WebKita. | |
122 | ||
123 | %prep | |
124 | %setup -q -n webkitgtk-%{version} | |
125 | %patch0 -p1 | |
126 | ||
127 | %build | |
128 | %{__libtoolize} | |
129 | %{__aclocal} -I Source/autotools | |
130 | %{__autoconf} | |
131 | %{__autoheader} | |
132 | %{__automake} | |
133 | %configure \ | |
134 | LDFLAGS="%{rpmldflags} -fuse-ld=gold" \ | |
135 | --disable-gtk-doc \ | |
136 | --disable-silent-rules \ | |
137 | --enable-geolocation \ | |
138 | --enable-glx \ | |
139 | %{__enable_disable introspection} \ | |
140 | --enable-webgl \ | |
141 | --with-gtk=3.0 \ | |
142 | --with-html-dir=%{_gtkdocdir} | |
143 | ||
144 | %{__make} -j1 | |
145 | ||
146 | %install | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
149 | %{__make} install \ | |
150 | DESTDIR=$RPM_BUILD_ROOT | |
151 | ||
152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
153 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/webkit2gtk-3.0/injected-bundle/*.la | |
154 | ||
155 | %find_lang WebKitGTK-3.0 | |
156 | ||
157 | %clean | |
158 | rm -rf $RPM_BUILD_ROOT | |
159 | ||
160 | %post -p /sbin/ldconfig | |
161 | %postun -p /sbin/ldconfig | |
162 | ||
163 | %files -f WebKitGTK-3.0.lang | |
164 | %defattr(644,root,root,755) | |
165 | %doc ChangeLog NEWS | |
166 | %attr(755,root,root) %{_bindir}/jsc-3 | |
167 | %attr(755,root,root) %{_libexecdir}/WebKitPluginProcess | |
168 | %attr(755,root,root) %{_libexecdir}/WebKitWebProcess | |
169 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* | |
170 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
171 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so.*.*.* | |
172 | %attr(755,root,root) %ghost %{_libdir}/libwebkit2gtk-3.0.so.25 | |
173 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so.*.*.* | |
174 | %attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-3.0.so.0 | |
175 | %if %{with introspection} | |
176 | %{_libdir}/girepository-1.0/JavaScriptCore-3.0.typelib | |
177 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib | |
178 | %{_libdir}/girepository-1.0/WebKit2-3.0.typelib | |
179 | %endif | |
180 | %dir %{_libdir}/webkit2gtk-3.0 | |
181 | %dir %{_libdir}/webkit2gtk-3.0/injected-bundle | |
182 | %attr(755,root,root) %{_libdir}/webkit2gtk-3.0/injected-bundle/libwebkit2gtkinjectedbundle.so | |
183 | %dir %{_datadir}/webkitgtk-3.0 | |
184 | %{_datadir}/webkitgtk-3.0/images | |
185 | %{_datadir}/webkitgtk-3.0/resources | |
186 | ||
187 | %files devel | |
188 | %defattr(644,root,root,755) | |
189 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
190 | %attr(755,root,root) %{_libdir}/libwebkit2gtk-3.0.so | |
191 | %attr(755,root,root) %{_libdir}/libjavascriptcoregtk-3.0.so | |
192 | %if %{with introspection} | |
193 | %{_datadir}/gir-1.0/JavaScriptCore-3.0.gir | |
194 | %{_datadir}/gir-1.0/WebKit-3.0.gir | |
195 | %{_datadir}/gir-1.0/WebKit2-3.0.gir | |
196 | %endif | |
197 | %{_includedir}/webkitgtk-3.0 | |
198 | %{_pkgconfigdir}/webkitgtk-3.0.pc | |
199 | %{_pkgconfigdir}/webkit2gtk-3.0.pc | |
200 | %{_pkgconfigdir}/javascriptcoregtk-3.0.pc | |
201 | ||
202 | %files apidocs | |
203 | %defattr(644,root,root,755) | |
204 | %{_gtkdocdir}/webkitgtk | |
205 | %{_gtkdocdir}/webkit2gtk |