]>
Commit | Line | Data |
---|---|---|
f8e56294 AF |
1 | # TODO: optflags |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_without introspection # disable introspection | |
5 | # | |
6 | Summary: Port of WebKit embeddable web component to GTK+ | |
7 | Summary(pl.UTF-8): Port osadzalnego komponentu WWW WebKit do GTK+ | |
8 | Name: gtk-webkit3 | |
9 | Version: 1.3.11 | |
10 | Release: 1 | |
11 | License: BSD-like | |
12 | Group: X11/Libraries | |
13 | Source0: http://webkitgtk.org/webkit-%{version}.tar.gz | |
14 | # Source0-md5: 6d4506086fb0d274d1a2c871fcaf851e | |
15 | URL: http://webkitgtk.org/ | |
16 | BuildRequires: autoconf >= 2.59 | |
17 | BuildRequires: automake | |
18 | BuildRequires: bison | |
19 | BuildRequires: cairo-devel >= 1.6 | |
20 | BuildRequires: enchant-devel >= 0.22 | |
21 | BuildRequires: flex >= 2.5.33 | |
22 | BuildRequires: fontconfig-devel >= 2.4.0 | |
23 | BuildRequires: freetype-devel >= 1:2.1.8 | |
24 | BuildRequires: geoclue-devel | |
25 | BuildRequires: gettext-devel | |
26 | BuildRequires: glib2-devel >= 1:2.22.0 | |
27 | BuildRequires: glibc-misc | |
28 | %{?with_introspection:BuildRequires: gobject-introspection-devel >= 0.9.5} | |
29 | BuildRequires: gperf | |
30 | BuildRequires: gstreamer-devel >= 0.10 | |
31 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.25 | |
32 | BuildRequires: gtk+2-devel >= 2:2.20.0 | |
33 | BuildRequires: gtk-doc >= 1.10 | |
34 | BuildRequires: libicu-devel >= 4.2.1 | |
35 | BuildRequires: libjpeg-devel | |
36 | BuildRequires: libpng-devel | |
37 | BuildRequires: libsoup-devel >= 2.33.4 | |
38 | BuildRequires: libstdc++-devel | |
39 | BuildRequires: libtool >= 2:1.5 | |
40 | BuildRequires: libxml2-devel >= 1:2.6.30 | |
41 | BuildRequires: libxslt-devel >= 1.1.7 | |
42 | BuildRequires: pango-devel >= 1:1.12 | |
43 | BuildRequires: pkgconfig | |
44 | BuildRequires: sqlite3-devel | |
45 | BuildRequires: xorg-lib-libXft-devel >= 2.0.0 | |
46 | BuildRequires: xorg-lib-libXt-devel | |
47 | Requires: cairo >= 1.6 | |
48 | Requires: enchant >= 0.22 | |
49 | Requires: gstreamer-plugins-base >= 0.10.25 | |
50 | Requires: gtk+2 >= 2:2.20.0 | |
51 | Requires: libsoup >= 2.30.0 | |
52 | Requires: libxml2 >= 1:2.6.30 | |
53 | Requires: libxslt >= 1.1.7 | |
54 | Requires: pango >= 1:1.12 | |
55 | %{?with_introspection:Conflicts: gir-repository < 0.6.5-7} | |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
57 | ||
58 | %description | |
59 | webkit is a port of the WebKit embeddable web component to GTK+. | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | webkit to port osadzalnego komponentu WWW WebKit do GTK+. | |
63 | ||
64 | %package devel | |
65 | Summary: Development files for WebKit | |
66 | Summary(pl.UTF-8): Pliki programistyczne WebKit | |
67 | Group: X11/Development/Libraries | |
68 | Requires: %{name} = %{version}-%{release} | |
69 | Requires: cairo-devel >= 1.6 | |
70 | Requires: enchant-devel >= 0.22 | |
71 | Requires: fontconfig-devel >= 2.4.0 | |
72 | Requires: freetype-devel >= 1:2.1.8 | |
73 | Requires: geoclue-devel | |
74 | Requires: glib2-devel >= 1:2.22.0 | |
75 | Requires: gstreamer-devel >= 0.10 | |
76 | Requires: gstreamer-plugins-base-devel >= 0.10.25 | |
77 | Requires: gtk+2-devel >= 2:2.20.0 | |
78 | Requires: libicu-devel >= 4.2.1 | |
79 | Requires: libjpeg-devel | |
80 | Requires: libpng-devel | |
81 | Requires: libsoup-devel >= 2.30.0 | |
82 | Requires: libstdc++-devel | |
83 | Requires: libxml2-devel >= 1:2.6.30 | |
84 | Requires: libxslt-devel >= 1.1.7 | |
85 | Requires: pango-devel >= 1:1.12 | |
86 | Requires: sqlite3-devel | |
87 | Requires: xorg-lib-libXt-devel | |
88 | ||
89 | %description devel | |
90 | Development files for WebKit. | |
91 | ||
92 | %description devel -l pl.UTF-8 | |
93 | Pliki programistyczne WebKit. | |
94 | ||
95 | %prep | |
96 | %setup -q -n webkit-%{version} | |
97 | ||
98 | %build | |
99 | %{__gtkdocize} | |
100 | %{__aclocal} -I Source/autotools | |
101 | %{__libtoolize} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
104 | %{__autoconf} | |
105 | %configure \ | |
106 | --with-gtk=3.0 \ | |
107 | --disable-silent-rules \ | |
108 | --enable-3D-transforms \ | |
109 | --enable-dom-storage \ | |
110 | --enable-geolocation \ | |
111 | --enable-icon-database \ | |
112 | %{__enable_disable introspection} \ | |
113 | --enable-video \ | |
114 | --with-font-backend=freetype | |
115 | ||
116 | %{__make} | |
117 | ||
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %{__make} install \ | |
122 | DESTDIR=$RPM_BUILD_ROOT | |
123 | ||
124 | : > webkit-3.0.lang | |
125 | #find_lang webkit-3.0 | |
126 | ||
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post -p /sbin/ldconfig | |
131 | %postun -p /sbin/ldconfig | |
132 | ||
133 | %files -f webkit-3.0.lang | |
134 | %defattr(644,root,root,755) | |
135 | %doc ChangeLog | |
136 | %attr(755,root,root) %{_bindir}/jsc-3 | |
137 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so.*.*.* | |
138 | %attr(755,root,root) %ghost %{_libdir}/libwebkitgtk-3.0.so.0 | |
139 | %if %{with introspection} | |
140 | %{_libdir}/girepository-1.0/JSCore-3.0.typelib | |
141 | %{_libdir}/girepository-1.0/WebKit-3.0.typelib | |
142 | %endif | |
143 | %dir %{_datadir}/webkit-3.0 | |
144 | %{_datadir}/webkitgtk-3.0/images | |
145 | %{_datadir}/webkitgtk-3.0/webinspector | |
146 | %{_datadir}/webkit-3.0/resources | |
147 | /usr/share/glib-2.0/schemas/org.webkitgtk-3.0.gschema.xml | |
148 | ||
149 | %files devel | |
150 | %defattr(644,root,root,755) | |
151 | %attr(755,root,root) %{_libdir}/libwebkitgtk-3.0.so | |
152 | %{_libdir}/libwebkitgtk-3.0.la | |
153 | %if %{with introspection} | |
154 | %{_datadir}/gir-1.0/JSCore-3.0.gir | |
155 | %{_datadir}/gir-1.0/WebKit-3.0.gir | |
156 | %endif | |
157 | %{_includedir}/webkit-3.0 | |
158 | %{_pkgconfigdir}/webkitgtk-3.0.pc |