]> git.pld-linux.org Git - packages/gtk-webkit.git/blame - gtk-webkit.spec
- release 2 (by relup.sh)
[packages/gtk-webkit.git] / gtk-webkit.spec
CommitLineData
2bb12873
ER
1#
2# Conditional build:
3%bcond_without introspection # disable introspection
8901e632 4#
093f5867
PZ
5Summary: Port of WebKit embeddable web component to GTK+
6Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+
7Name: gtk-webkit
7ff410bb 8Version: 2.0.4
9762886d 9Release: 2
093f5867
PZ
10License: BSD-like
11Group: X11/Libraries
a394da80 12Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz
7ff410bb 13# Source0-md5: 413be319ba171feed9348d1bede6b0a7
d13b7e6b 14Patch0: %{name}-sync-builtins.patch
7ff410bb 15Patch1: %{name}-pl.po.patch
2404f7c3 16Patch2: bison3.patch
618d2705 17URL: http://webkitgtk.org/
d13b7e6b 18BuildRequires: EGL-devel
8901e632 19BuildRequires: OpenGL-GLX-devel
d13b7e6b 20BuildRequires: at-spi2-core-devel >= 2.6.0
a394da80 21BuildRequires: autoconf >= 2.60
093f5867 22BuildRequires: automake
5c43f9b5 23BuildRequires: bison >= 1.875
8901e632 24BuildRequires: cairo-devel >= 1.10
957ed3e7 25BuildRequires: enchant-devel >= 0.22
8cf2b70b 26BuildRequires: flex >= 2.5.33
d13b7e6b 27BuildRequires: fontconfig-devel >= 2.5.0
231faf60 28BuildRequires: freetype-devel >= 1:2.1.8
d13b7e6b 29BuildRequires: gcc-c++ >= 6:4.7
5aeb4243 30BuildRequires: geoclue-devel
94f95ec8 31BuildRequires: gettext-devel
d13b7e6b 32BuildRequires: glib2-devel >= 1:2.36.0
46f0db60 33BuildRequires: glibc-misc
d13b7e6b 34%{?with_introspection:BuildRequires: gobject-introspection-devel >= 1.32.0}
fb358f22 35BuildRequires: gperf
d13b7e6b
JB
36BuildRequires: gstreamer-devel >= 1.0.3
37BuildRequires: gstreamer-plugins-base-devel >= 1.0.3
38BuildRequires: gtk+2-devel >= 2:2.24.10
957ed3e7 39BuildRequires: gtk-doc >= 1.10
d13b7e6b 40BuildRequires: harfbuzz-devel >= 0.9.7
b3f15db7 41BuildRequires: harfbuzz-icu-devel >= 0.9.7
5aeb4243 42BuildRequires: libicu-devel >= 4.2.1
093f5867
PZ
43BuildRequires: libjpeg-devel
44BuildRequires: libpng-devel
d13b7e6b
JB
45BuildRequires: libsecret-devel
46BuildRequires: libsoup-devel >= 2.42.0
8a5c1de2 47BuildRequires: libstdc++-devel
7ff410bb
JB
48# libtool with -fuse-ld= gcc option support
49BuildRequires: libtool >= 2:2.4.2-13
d13b7e6b 50BuildRequires: libwebp-devel
957ed3e7 51BuildRequires: libxml2-devel >= 1:2.6.30
231faf60 52BuildRequires: libxslt-devel >= 1.1.7
d13b7e6b
JB
53BuildRequires: pango-devel >= 1:1.32.0
54BuildRequires: perl-base
093f5867 55BuildRequires: pkgconfig
d13b7e6b
JB
56BuildRequires: python
57BuildRequires: rpmbuild(macros) >= 1.592
58BuildRequires: ruby
8901e632
JB
59BuildRequires: sqlite3-devel >= 3
60BuildRequires: tar >= 1:1.22
d13b7e6b 61BuildRequires: udev-glib-devel
a394da80 62BuildRequires: xorg-lib-libXcomposite-devel
d13b7e6b 63BuildRequires: xorg-lib-libXdamage-devel
8901e632 64BuildRequires: xorg-lib-libXrender-devel
d3f90b4e 65BuildRequires: xorg-lib-libXt-devel
8901e632
JB
66BuildRequires: xz
67BuildRequires: zlib-devel
7ff410bb 68BuildRequires: /usr/bin/ld.gold
8901e632 69Requires: cairo >= 1.10
cf86a824 70Requires: enchant >= 0.22
d13b7e6b
JB
71Requires: fontconfig-libs >= 2.5.0
72Requires: freetype >= 1:2.1.8
73Requires: glib2 >= 1:2.36.0
74Requires: gstreamer >= 1.0.3
75Requires: gstreamer-plugins-base >= 1.0.3
76Requires: gtk+2 >= 2:2.24.10
77Requires: harfbuzz >= 0.9.7
78Requires: libsoup >= 2.42.0
cf86a824
JB
79Requires: libxml2 >= 1:2.6.30
80Requires: libxslt >= 1.1.7
d13b7e6b 81Requires: pango >= 1:1.32.0
2bb12873 82%{?with_introspection:Conflicts: gir-repository < 0.6.5-7}
093f5867
PZ
83BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84
85%description
86webkit is a port of the WebKit embeddable web component to GTK+.
87
88%description -l pl.UTF-8
89webkit to port osadzalnego komponentu WWW WebKit do GTK+.
90
91%package devel
e581c689
JB
92Summary: Development files for WebKit for GTK+ 2
93Summary(pl.UTF-8): Pliki programistyczne komponentu WebKit dla GTK+ 2
093f5867 94Group: X11/Development/Libraries
721db7ac 95Requires: %{name} = %{version}-%{release}
d13b7e6b
JB
96Requires: glib2-devel >= 1:2.36.0
97Requires: gtk+2-devel >= 2:2.24.10
98Requires: libsoup-devel >= 2.42.0
8a5c1de2 99Requires: libstdc++-devel
093f5867
PZ
100
101%description devel
e581c689 102Development files for WebKit for GTK+ 2.
093f5867
PZ
103
104%description devel -l pl.UTF-8
e581c689 105Pliki programistyczne komponentu WebKit dla GTK+ 2.
093f5867
PZ
106
107%prep
a394da80 108%setup -q -n webkitgtk-%{version}
d13b7e6b
JB
109%patch0 -p1
110%patch1 -p1
2404f7c3 111%patch2 -p1
f8294a65 112
093f5867 113%build
7166e40b 114%{__libtoolize}
8901e632 115%{__aclocal} -I Source/autotools
b1701b51 116%{__autoconf}
7166e40b
PZ
117%{__autoheader}
118%{__automake}
bb1a4556 119%configure \
7ff410bb 120 LDFLAGS="%{rpmldflags} -fuse-ld=gold" \
d13b7e6b 121 --disable-gtk-doc \
8cf2b70b 122 --disable-silent-rules \
a394da80 123 --disable-webkit2 \
5aeb4243 124 --enable-geolocation \
d13b7e6b
JB
125 --enable-glx \
126 %{__enable_disable introspection} \
127 --enable-webgl \
8901e632 128 --with-gtk=2.0 \
7ff410bb 129 --with-html-dir=%{_gtkdocdir}
ebd32623 130
a1864eef 131%{__make} -j1
093f5867
PZ
132
133%install
134rm -rf $RPM_BUILD_ROOT
83c17f84 135
7166e40b
PZ
136%{__make} install \
137 DESTDIR=$RPM_BUILD_ROOT
093f5867 138
8901e632
JB
139# obsoleted by pkg-config
140%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*-1.0.la
141# packaged in gtk-webkit3
142%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}/webkitgtk
f4962f2a 143
d13b7e6b 144%find_lang WebKitGTK-2.0
9d45f565 145
093f5867
PZ
146%clean
147rm -rf $RPM_BUILD_ROOT
148
149%post -p /sbin/ldconfig
150%postun -p /sbin/ldconfig
151
d13b7e6b 152%files -f WebKitGTK-2.0.lang
093f5867 153%defattr(644,root,root,755)
d13b7e6b 154%doc ChangeLog NEWS
8901e632
JB
155%attr(755,root,root) %{_bindir}/jsc-1
156%attr(755,root,root) %{_libdir}/libwebkitgtk-1.0.so.*.*.*
157%attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-1.0.so.0
158%attr(755,root,root) %{_libdir}/libjavascriptcoregtk-1.0.so.*.*.*
159%attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-1.0.so.0
2bb12873 160%if %{with introspection}
8cf2b70b
MB
161%{_libdir}/girepository-1.0/JSCore-1.0.typelib
162%{_libdir}/girepository-1.0/WebKit-1.0.typelib
2bb12873 163%endif
8901e632
JB
164%dir %{_datadir}/webkitgtk-1.0
165%{_datadir}/webkitgtk-1.0/images
166%{_datadir}/webkitgtk-1.0/resources
167%{_datadir}/webkitgtk-1.0/webinspector
093f5867
PZ
168
169%files devel
170%defattr(644,root,root,755)
8901e632
JB
171%attr(755,root,root) %{_libdir}/libjavascriptcoregtk-1.0.so
172%attr(755,root,root) %{_libdir}/libwebkitgtk-1.0.so
2bb12873 173%if %{with introspection}
8cf2b70b
MB
174%{_datadir}/gir-1.0/JSCore-1.0.gir
175%{_datadir}/gir-1.0/WebKit-1.0.gir
2bb12873 176%endif
8901e632
JB
177%{_includedir}/webkitgtk-1.0
178%{_pkgconfigdir}/javascriptcoregtk-1.0.pc
7166e40b 179%{_pkgconfigdir}/webkit-1.0.pc
This page took 0.068994 seconds and 4 git commands to generate.