]> 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
83c17f84 1# TODO: optflags
2bb12873
ER
2#
3# Conditional build:
4%bcond_without introspection # disable introspection
8901e632 5#
093f5867
PZ
6Summary: Port of WebKit embeddable web component to GTK+
7Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+
8Name: gtk-webkit
5c43f9b5 9Version: 1.8.2
91adee53 10Release: 2
093f5867
PZ
11License: BSD-like
12Group: X11/Libraries
8901e632 13Source0: http://webkitgtk.org/releases/webkit-%{version}.tar.xz
5c43f9b5 14# Source0-md5: f7bd0bd4f323039f15e19c82a9a8313c
8901e632 15Patch0: %{name}-am.patch
5c43f9b5 16Patch1: %{name}-bison2.6.patch
618d2705 17URL: http://webkitgtk.org/
8901e632
JB
18BuildRequires: OpenGL-devel
19BuildRequires: OpenGL-GLX-devel
957ed3e7 20BuildRequires: autoconf >= 2.59
093f5867 21BuildRequires: automake
5c43f9b5 22BuildRequires: bison >= 1.875
8901e632
JB
23BuildRequires: cairo-devel >= 1.10
24BuildRequires: cairo-gobject-devel >= 1.10
957ed3e7 25BuildRequires: enchant-devel >= 0.22
8cf2b70b
MB
26BuildRequires: flex >= 2.5.33
27BuildRequires: fontconfig-devel >= 2.4.0
231faf60 28BuildRequires: freetype-devel >= 1:2.1.8
5aeb4243 29BuildRequires: geoclue-devel
94f95ec8 30BuildRequires: gettext-devel
8901e632 31BuildRequires: glib2-devel >= 1:2.32.0
46f0db60 32BuildRequires: glibc-misc
704191dd 33%{?with_introspection:BuildRequires: gobject-introspection-devel >= 0.9.5}
fb358f22 34BuildRequires: gperf
69b139d9 35BuildRequires: gstreamer-devel >= 0.10
8901e632 36BuildRequires: gstreamer-plugins-base-devel >= 0.10.30
bfbcbc59 37BuildRequires: gtk+2-devel >= 2:2.20.0
957ed3e7 38BuildRequires: gtk-doc >= 1.10
5aeb4243 39BuildRequires: libicu-devel >= 4.2.1
093f5867
PZ
40BuildRequires: libjpeg-devel
41BuildRequires: libpng-devel
8901e632 42BuildRequires: libsoup-devel >= 2.38
8a5c1de2 43BuildRequires: libstdc++-devel
093f5867 44BuildRequires: libtool >= 2:1.5
957ed3e7 45BuildRequires: libxml2-devel >= 1:2.6.30
231faf60 46BuildRequires: libxslt-devel >= 1.1.7
8901e632 47BuildRequires: pango-devel >= 1:1.21
093f5867 48BuildRequires: pkgconfig
8901e632
JB
49BuildRequires: sqlite3-devel >= 3
50BuildRequires: tar >= 1:1.22
51BuildRequires: xorg-lib-libXrender-devel
d3f90b4e 52BuildRequires: xorg-lib-libXt-devel
8901e632
JB
53BuildRequires: xz
54BuildRequires: zlib-devel
55Requires: cairo >= 1.10
cf86a824 56Requires: enchant >= 0.22
5c43f9b5 57Requires: glib2 >= 1:2.32.0
8901e632 58Requires: gstreamer-plugins-base >= 0.10.30
fd966165 59Requires: gtk+2 >= 2:2.20.0
8901e632 60Requires: libsoup >= 2.38
cf86a824
JB
61Requires: libxml2 >= 1:2.6.30
62Requires: libxslt >= 1.1.7
8901e632 63Requires: pango >= 1:1.21
2bb12873 64%{?with_introspection:Conflicts: gir-repository < 0.6.5-7}
093f5867
PZ
65BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67%description
68webkit is a port of the WebKit embeddable web component to GTK+.
69
70%description -l pl.UTF-8
71webkit to port osadzalnego komponentu WWW WebKit do GTK+.
72
73%package devel
8cf2b70b
MB
74Summary: Development files for WebKit
75Summary(pl.UTF-8): Pliki programistyczne WebKit
093f5867 76Group: X11/Development/Libraries
721db7ac 77Requires: %{name} = %{version}-%{release}
8901e632 78Requires: cairo-devel >= 1.10
231faf60
JP
79Requires: enchant-devel >= 0.22
80Requires: fontconfig-devel >= 2.4.0
81Requires: freetype-devel >= 1:2.1.8
72e32127 82Requires: geoclue-devel
8901e632 83Requires: glib2-devel >= 1:2.32.0
231faf60 84Requires: gstreamer-devel >= 0.10
8901e632 85Requires: gstreamer-plugins-base-devel >= 0.10.30
fd966165 86Requires: gtk+2-devel >= 2:2.20.0
231faf60
JP
87Requires: libicu-devel >= 4.2.1
88Requires: libjpeg-devel
72e32127 89Requires: libpng-devel
8901e632 90Requires: libsoup-devel >= 2.38
8a5c1de2 91Requires: libstdc++-devel
231faf60
JP
92Requires: libxml2-devel >= 1:2.6.30
93Requires: libxslt-devel >= 1.1.7
8901e632
JB
94Requires: pango-devel >= 1:1.21
95Requires: sqlite3-devel >= 3
72e32127 96Requires: xorg-lib-libXt-devel
093f5867
PZ
97
98%description devel
8cf2b70b 99Development files for WebKit.
093f5867
PZ
100
101%description devel -l pl.UTF-8
8cf2b70b 102Pliki programistyczne WebKit.
093f5867
PZ
103
104%prep
209fb730 105%setup -q -n webkit-%{version}
704191dd 106%patch0 -p1
5c43f9b5 107%patch1 -p2
f8294a65 108
093f5867 109%build
ad571464 110%{__gtkdocize}
7166e40b 111%{__libtoolize}
8901e632 112%{__aclocal} -I Source/autotools
b1701b51 113%{__autoconf}
7166e40b
PZ
114%{__autoheader}
115%{__automake}
bb1a4556 116%configure \
8cf2b70b 117 --disable-silent-rules \
5aeb4243 118 --enable-geolocation \
8901e632 119 --enable-gtk-doc \
d4c376cd 120 --enable-icon-database \
8901e632 121 --enable-introspection%{!?with_introspection:=no} \
231faf60 122 --enable-video \
8901e632
JB
123 --with-font-backend=freetype \
124 --with-gtk=2.0 \
125 --with-html-dir=%{_gtkdocdir}
ebd32623 126
a1864eef 127%{__make} -j1
093f5867
PZ
128
129%install
130rm -rf $RPM_BUILD_ROOT
83c17f84 131
7166e40b
PZ
132%{__make} install \
133 DESTDIR=$RPM_BUILD_ROOT
093f5867 134
8901e632
JB
135# obsoleted by pkg-config
136%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*-1.0.la
137# packaged in gtk-webkit3
138%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}/webkitgtk
f4962f2a 139
8901e632 140%find_lang webkit-2.0
9d45f565 141
093f5867
PZ
142%clean
143rm -rf $RPM_BUILD_ROOT
144
145%post -p /sbin/ldconfig
146%postun -p /sbin/ldconfig
147
8901e632 148%files -f webkit-2.0.lang
093f5867 149%defattr(644,root,root,755)
8901e632
JB
150%doc ChangeLog NEWS
151%attr(755,root,root) %{_bindir}/jsc-1
152%attr(755,root,root) %{_libdir}/libwebkitgtk-1.0.so.*.*.*
153%attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-1.0.so.0
154%attr(755,root,root) %{_libdir}/libjavascriptcoregtk-1.0.so.*.*.*
155%attr(755,root,root) %ghost %{_libdir}/libjavascriptcoregtk-1.0.so.0
2bb12873 156%if %{with introspection}
8cf2b70b
MB
157%{_libdir}/girepository-1.0/JSCore-1.0.typelib
158%{_libdir}/girepository-1.0/WebKit-1.0.typelib
2bb12873 159%endif
8901e632
JB
160%dir %{_datadir}/webkitgtk-1.0
161%{_datadir}/webkitgtk-1.0/images
162%{_datadir}/webkitgtk-1.0/resources
163%{_datadir}/webkitgtk-1.0/webinspector
093f5867
PZ
164
165%files devel
166%defattr(644,root,root,755)
8901e632
JB
167%attr(755,root,root) %{_libdir}/libjavascriptcoregtk-1.0.so
168%attr(755,root,root) %{_libdir}/libwebkitgtk-1.0.so
2bb12873 169%if %{with introspection}
8cf2b70b
MB
170%{_datadir}/gir-1.0/JSCore-1.0.gir
171%{_datadir}/gir-1.0/WebKit-1.0.gir
2bb12873 172%endif
8901e632
JB
173%{_includedir}/webkitgtk-1.0
174%{_pkgconfigdir}/javascriptcoregtk-1.0.pc
7166e40b 175%{_pkgconfigdir}/webkit-1.0.pc
This page took 0.179683 seconds and 4 git commands to generate.