]> git.pld-linux.org Git - packages/gtk-webkit.git/blame - gtk-webkit.spec
icu rebuild
[packages/gtk-webkit.git] / gtk-webkit.spec
CommitLineData
2bb12873
ER
1#
2# Conditional build:
3%bcond_without introspection # disable introspection
8901e632 4#
d9cc0833
JB
5# it's not possible to build this with debuginfo on 32bit archs due to
6# memory constraints during linking
7%ifarch %{ix86} x32
8%define _enable_debug_packages 0
9%endif
a6fd3037
JB
10Summary: Port of WebKit embeddable web component to GTK+ 2
11Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ 2
093f5867 12Name: gtk-webkit
a6fd3037 13# note: 2.4.x is the last series with webkitgtk-1 API and GTK+ 2.x support
2ab88573 14Version: 2.4.11
39c24634 15Release: 14
093f5867
PZ
16License: BSD-like
17Group: X11/Libraries
a394da80 18Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz
2ab88573 19# Source0-md5: 24a25ccc30a7914ae50922aedf24b7bc
143c89ec 20Patch0: x32.patch
bdcbb327 21Patch1: abs.patch
d2b88255 22Patch2: %{name}-icu59.patch
4a318b53 23Patch3: %{name}-icu65.patch
c6c75c07
JP
24Patch4: glib2.68.patch
25Patch5: icu68.patch
26Patch6: grammar.patch
27Patch7: volatile.patch
618d2705 28URL: http://webkitgtk.org/
dc171162 29BuildRequires: /usr/bin/ld.gold
d13b7e6b 30BuildRequires: EGL-devel
8901e632 31BuildRequires: OpenGL-GLX-devel
d13b7e6b 32BuildRequires: at-spi2-core-devel >= 2.6.0
a394da80 33BuildRequires: autoconf >= 2.60
093f5867 34BuildRequires: automake
5c43f9b5 35BuildRequires: bison >= 1.875
8901e632 36BuildRequires: cairo-devel >= 1.10
957ed3e7 37BuildRequires: enchant-devel >= 0.22
8cf2b70b 38BuildRequires: flex >= 2.5.33
d13b7e6b 39BuildRequires: fontconfig-devel >= 2.5.0
231faf60 40BuildRequires: freetype-devel >= 1:2.1.8
d13b7e6b 41BuildRequires: gcc-c++ >= 6:4.7
dc171162 42BuildRequires: geoclue2-devel >= 2.1.5
d9e6d388 43BuildRequires: gettext-tools
d13b7e6b 44BuildRequires: glib2-devel >= 1:2.36.0
46f0db60 45BuildRequires: glibc-misc
d13b7e6b 46%{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0}
fb358f22 47BuildRequires: gperf
d13b7e6b
JB
48BuildRequires: gstreamer-devel >= 1.0.3
49BuildRequires: gstreamer-plugins-base-devel >= 1.0.3
dc171162 50BuildRequires: libstdc++-devel >= 6:4.7
d13b7e6b 51BuildRequires: gtk+2-devel >= 2:2.24.10
957ed3e7 52BuildRequires: gtk-doc >= 1.10
d13b7e6b 53BuildRequires: harfbuzz-devel >= 0.9.7
b3f15db7 54BuildRequires: harfbuzz-icu-devel >= 0.9.7
d2b88255 55BuildRequires: libicu-devel >= 59
093f5867
PZ
56BuildRequires: libjpeg-devel
57BuildRequires: libpng-devel
d13b7e6b
JB
58BuildRequires: libsecret-devel
59BuildRequires: libsoup-devel >= 2.42.0
8a5c1de2 60BuildRequires: libstdc++-devel
7ff410bb
JB
61# libtool with -fuse-ld= gcc option support
62BuildRequires: libtool >= 2:2.4.2-13
d13b7e6b 63BuildRequires: libwebp-devel
957ed3e7 64BuildRequires: libxml2-devel >= 1:2.6.30
231faf60 65BuildRequires: libxslt-devel >= 1.1.7
d13b7e6b
JB
66BuildRequires: pango-devel >= 1:1.32.0
67BuildRequires: perl-base
093f5867 68BuildRequires: pkgconfig
d13b7e6b
JB
69BuildRequires: python
70BuildRequires: rpmbuild(macros) >= 1.592
71BuildRequires: ruby
8901e632
JB
72BuildRequires: sqlite3-devel >= 3
73BuildRequires: tar >= 1:1.22
d13b7e6b 74BuildRequires: udev-glib-devel
a394da80 75BuildRequires: xorg-lib-libXcomposite-devel
d13b7e6b 76BuildRequires: xorg-lib-libXdamage-devel
8901e632 77BuildRequires: xorg-lib-libXrender-devel
d3f90b4e 78BuildRequires: xorg-lib-libXt-devel
8901e632
JB
79BuildRequires: xz
80BuildRequires: zlib-devel
81Requires: cairo >= 1.10
cf86a824 82Requires: enchant >= 0.22
d13b7e6b
JB
83Requires: fontconfig-libs >= 2.5.0
84Requires: freetype >= 1:2.1.8
85Requires: glib2 >= 1:2.36.0
86Requires: gstreamer >= 1.0.3
87Requires: gstreamer-plugins-base >= 1.0.3
88Requires: gtk+2 >= 2:2.24.10
89Requires: harfbuzz >= 0.9.7
90Requires: libsoup >= 2.42.0
cf86a824
JB
91Requires: libxml2 >= 1:2.6.30
92Requires: libxslt >= 1.1.7
d13b7e6b 93Requires: pango >= 1:1.32.0
2bb12873 94%{?with_introspection:Conflicts: gir-repository < 0.6.5-7}
093f5867
PZ
95BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
96
dc171162
JB
97# __once_call, __once_called non-function symbols from libstdc++
98%define skip_post_check_so lib.*gtk-1.0.*
99
e1a6eaf5
JB
100# JSStringRef uses "!this" comparisons (UB)
101%define specflags -fno-delete-null-pointer-checks
102
093f5867 103%description
a6fd3037 104gtk-webkit is a port of the WebKit embeddable web component to GTK+ 2.
093f5867
PZ
105
106%description -l pl.UTF-8
a6fd3037 107gtk-webkit to port osadzalnego komponentu WWW WebKit do GTK+ 2.
093f5867
PZ
108
109%package devel
e581c689
JB
110Summary: Development files for WebKit for GTK+ 2
111Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 2
093f5867 112Group: X11/Development/Libraries
721db7ac 113Requires: %{name} = %{version}-%{release}
d13b7e6b
JB
114Requires: glib2-devel >= 1:2.36.0
115Requires: gtk+2-devel >= 2:2.24.10
116Requires: libsoup-devel >= 2.42.0
8a5c1de2 117Requires: libstdc++-devel
093f5867
PZ
118
119%description devel
e581c689 120Development files for WebKit for GTK+ 2.
093f5867
PZ
121
122%description devel -l pl.UTF-8
e581c689 123Pliki programistyczne komponentu WebKit dla GTK+ 2.
093f5867
PZ
124
125%prep
a394da80 126%setup -q -n webkitgtk-%{version}
143c89ec 127%patch0 -p1
bdcbb327 128%patch1 -p1
d2b88255 129%patch2 -p1
4a318b53 130%patch3 -p1
c6c75c07
JP
131%patch4 -p1
132%patch5 -p1
133%patch6 -p1
134%patch7 -p1
f8294a65 135
093f5867 136%build
7166e40b 137%{__libtoolize}
8901e632 138%{__aclocal} -I Source/autotools
b1701b51 139%{__autoconf}
7166e40b
PZ
140%{__autoheader}
141%{__automake}
d9cc0833
JB
142%if "%{cxx_version}" >= "4.9"
143CXXFLAGS="%{rpmcxxflags} -fno-delete-null-pointer-checks"
144%endif
bb1a4556 145%configure \
f7dbae7a 146%ifarch %{x8664}
7ff410bb 147 LDFLAGS="%{rpmldflags} -fuse-ld=gold" \
f7dbae7a
JR
148%else
149 LDFLAGS="%{rpmldflags} -fuse-ld=bfd -Wl,--no-keep-memory" \
150%endif
d13b7e6b 151 --disable-gtk-doc \
8cf2b70b 152 --disable-silent-rules \
a394da80 153 --disable-webkit2 \
5aeb4243 154 --enable-geolocation \
d13b7e6b
JB
155 --enable-glx \
156 %{__enable_disable introspection} \
157 --enable-webgl \
8901e632 158 --with-gtk=2.0 \
7ff410bb 159 --with-html-dir=%{_gtkdocdir}
ebd32623 160
a1864eef 161%{__make} -j1
093f5867
PZ
162
163%install
164rm -rf $RPM_BUILD_ROOT
83c17f84 165
7166e40b
PZ
166%{__make} install \
167 DESTDIR=$RPM_BUILD_ROOT
093f5867 168
8901e632
JB
169# obsoleted by pkg-config
170%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*-1.0.la
171# packaged in gtk-webkit3
dc171162 172%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}/{webkitgtk,webkitdomgtk}
f4962f2a 173
d13b7e6b 174%find_lang WebKitGTK-2.0
9d45f565 175
093f5867
PZ
176%clean
177rm -rf $RPM_BUILD_ROOT
178
179%post -p /sbin/ldconfig
180%postun -p /sbin/ldconfig
181
d13b7e6b 182%files -f WebKitGTK-2.0.lang
093f5867 183%defattr(644,root,root,755)
d13b7e6b 184%doc ChangeLog NEWS
8901e632
JB
185%attr(755,root,root) %{_bindir}/jsc-1
186%attr(755,root,root) %{_libdir}/libwebkitgtk-1.0.so.*.*.*
187%attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-1.0.so.0
188%attr(755,root,root) %{_libdir}/libjavascriptcoregtk-1.0.so.*.*.*
189%attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-1.0.so.0
2bb12873 190%if %{with introspection}
737f2f59 191%{_libdir}/girepository-1.0/JavaScriptCore-1.0.typelib
8cf2b70b 192%{_libdir}/girepository-1.0/WebKit-1.0.typelib
2bb12873 193%endif
8901e632
JB
194%dir %{_datadir}/webkitgtk-1.0
195%{_datadir}/webkitgtk-1.0/images
196%{_datadir}/webkitgtk-1.0/resources
093f5867
PZ
197
198%files devel
199%defattr(644,root,root,755)
8901e632
JB
200%attr(755,root,root) %{_libdir}/libjavascriptcoregtk-1.0.so
201%attr(755,root,root) %{_libdir}/libwebkitgtk-1.0.so
2bb12873 202%if %{with introspection}
737f2f59 203%{_datadir}/gir-1.0/JavaScriptCore-1.0.gir
8cf2b70b 204%{_datadir}/gir-1.0/WebKit-1.0.gir
2bb12873 205%endif
8901e632
JB
206%{_includedir}/webkitgtk-1.0
207%{_pkgconfigdir}/javascriptcoregtk-1.0.pc
7166e40b 208%{_pkgconfigdir}/webkit-1.0.pc
This page took 0.137687 seconds and 5 git commands to generate.