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