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