1 | ## NOTE: Lots of files in various subdirectories have the same name (such as |
---|
2 | ## "LICENSE") so this short macro allows us to distinguish them by using their |
---|
3 | ## directory names (from the source tree) as prefixes for the files. |
---|
4 | %global add_to_license_files() \ |
---|
5 | mkdir -p _license_files ; \ |
---|
6 | cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g') |
---|
7 | |
---|
8 | Name: webkitgtk4 |
---|
9 | Version: 2.12.3 |
---|
10 | Release: 1%{?_dist_release} |
---|
11 | Summary: GTK+ Web content engine library |
---|
12 | |
---|
13 | License: LGPLv2 |
---|
14 | Group: Development/Libraries |
---|
15 | URL: http://www.webkitgtk.org/ |
---|
16 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
---|
17 | |
---|
18 | Patch3: webkitgtk-2.5.2-commit_align.patch |
---|
19 | |
---|
20 | BuildRequires: at-spi2-core-devel |
---|
21 | BuildRequires: bison |
---|
22 | BuildRequires: cairo-devel |
---|
23 | BuildRequires: cmake |
---|
24 | BuildRequires: enchant-devel |
---|
25 | BuildRequires: flex |
---|
26 | BuildRequires: fontconfig-devel |
---|
27 | BuildRequires: freetype-devel |
---|
28 | BuildRequires: geoclue2-devel |
---|
29 | BuildRequires: gettext |
---|
30 | BuildRequires: glib2-devel |
---|
31 | BuildRequires: gobject-introspection-devel |
---|
32 | BuildRequires: gperf |
---|
33 | BuildRequires: gstreamer1-devel |
---|
34 | BuildRequires: gstreamer1-plugins-base-devel |
---|
35 | BuildRequires: gtk2-devel |
---|
36 | BuildRequires: gtk3-devel |
---|
37 | BuildRequires: harfbuzz-icu-devel |
---|
38 | BuildRequires: libicu-devel |
---|
39 | BuildRequires: libjpeg-turbo-devel |
---|
40 | BuildRequires: libpng-devel |
---|
41 | BuildRequires: libsecret-devel |
---|
42 | BuildRequires: libsoup-devel |
---|
43 | BuildRequires: libwebp-devel |
---|
44 | BuildRequires: libxslt-devel |
---|
45 | BuildRequires: libXt-devel |
---|
46 | BuildRequires: mesa-libGL-devel |
---|
47 | BuildRequires: pcre-devel |
---|
48 | BuildRequires: ruby |
---|
49 | BuildRequires: sqlite3-devel |
---|
50 | BuildRequires: libnotify-devel |
---|
51 | BuildRequires: hyphen-devel |
---|
52 | %ifarch ppc |
---|
53 | BuildRequires: libatomic |
---|
54 | %endif |
---|
55 | Requires: geoclue2 |
---|
56 | |
---|
57 | # Obsolete libwebkit2gtk from the webkitgtk3 package |
---|
58 | Obsoletes: libwebkit2gtk < 2.4.5-3 |
---|
59 | Provides: libwebkit2gtk = %{version}-%{release} |
---|
60 | |
---|
61 | # Filter out provides for private libraries |
---|
62 | %global __provides_exclude_from ^%{_libdir}/webkit2gtk-4\\.0/.*\\.so$ |
---|
63 | |
---|
64 | %description |
---|
65 | WebKitGTK+ is the port of the portable web rendering engine WebKit to the |
---|
66 | GTK+ platform. |
---|
67 | |
---|
68 | This package contains WebKitGTK+ for GTK+ 3. |
---|
69 | |
---|
70 | %package devel |
---|
71 | Summary: Development files for %{name} |
---|
72 | Group: Development/Libraries |
---|
73 | Requires: %{name} = %{version}-%{release} |
---|
74 | |
---|
75 | %description devel |
---|
76 | The %{name}-devel package contains libraries, build data, and header |
---|
77 | files for developing applications that use %{name}. |
---|
78 | |
---|
79 | %prep |
---|
80 | %setup -q -n webkitgtk-%{version} |
---|
81 | %ifarch %{power64} aarch64 ppc |
---|
82 | %patch3 -p1 -b .commit_align |
---|
83 | %endif |
---|
84 | |
---|
85 | # Remove bundled libraries |
---|
86 | rm -rf Source/ThirdParty/leveldb/ |
---|
87 | rm -rf Source/ThirdParty/gtest/ |
---|
88 | rm -rf Source/ThirdParty/qunit/ |
---|
89 | |
---|
90 | %build |
---|
91 | # binutils-2.23 doesn't support "reduce-memory-overheads" |
---|
92 | # Use linker flags to reduce memory consumption |
---|
93 | # global optflags %{optflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads |
---|
94 | |
---|
95 | %ifarch s390 %{arm} |
---|
96 | # Decrease debuginfo verbosity to reduce memory consumption even more |
---|
97 | %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') |
---|
98 | %endif |
---|
99 | |
---|
100 | %ifarch ppc |
---|
101 | # Use linker flag -relax to get WebKit build under ppc(32) with JIT disabled |
---|
102 | %global optflags %{optflags} -Wl,-relax -latomic |
---|
103 | %endif |
---|
104 | |
---|
105 | %global optflags %{optflags} -DENABLE_YARR_JIT=0 |
---|
106 | |
---|
107 | mkdir -p %{_target_platform} |
---|
108 | pushd %{_target_platform} |
---|
109 | %cmake \ |
---|
110 | -DPORT=GTK \ |
---|
111 | -DCMAKE_BUILD_TYPE=Release \ |
---|
112 | -DENABLE_JIT=OFF \ |
---|
113 | -DENABLE_LLINT_C_LOOP=ON \ |
---|
114 | .. |
---|
115 | popd |
---|
116 | |
---|
117 | make %{?_smp_mflags} -C %{_target_platform} |
---|
118 | |
---|
119 | %install |
---|
120 | %make_install -C %{_target_platform} |
---|
121 | |
---|
122 | %find_lang WebKit2GTK-4.0 |
---|
123 | |
---|
124 | # Finally, copy over and rename various files for %%license inclusion |
---|
125 | %add_to_license_files Source/JavaScriptCore/COPYING.LIB |
---|
126 | %add_to_license_files Source/JavaScriptCore/icu/LICENSE |
---|
127 | %add_to_license_files Source/ThirdParty/ANGLE/LICENSE |
---|
128 | %add_to_license_files Source/ThirdParty/ANGLE/src/third_party/compiler/LICENSE |
---|
129 | %add_to_license_files Source/ThirdParty/ANGLE/src/third_party/murmurhash/LICENSE |
---|
130 | %add_to_license_files Source/WebCore/icu/LICENSE |
---|
131 | %add_to_license_files Source/WebCore/LICENSE-APPLE |
---|
132 | %add_to_license_files Source/WebCore/LICENSE-LGPL-2 |
---|
133 | %add_to_license_files Source/WebCore/LICENSE-LGPL-2.1 |
---|
134 | %add_to_license_files Source/WebInspectorUI/UserInterface/External/CodeMirror/LICENSE |
---|
135 | %add_to_license_files Source/WebInspectorUI/UserInterface/External/Esprima/LICENSE |
---|
136 | %add_to_license_files Source/WTF/icu/LICENSE |
---|
137 | %add_to_license_files Source/WTF/wtf/dtoa/COPYING |
---|
138 | %add_to_license_files Source/WTF/wtf/dtoa/LICENSE |
---|
139 | |
---|
140 | %post -p /sbin/ldconfig |
---|
141 | %postun -p /sbin/ldconfig |
---|
142 | |
---|
143 | %files -f WebKit2GTK-4.0.lang |
---|
144 | %license _license_files/* |
---|
145 | %{_libdir}/libjavascriptcoregtk-4.0.so.* |
---|
146 | %{_libdir}/libwebkit2gtk-4.0.so.* |
---|
147 | %{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib |
---|
148 | %{_libdir}/girepository-1.0/WebKit2-4.0.typelib |
---|
149 | %{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib |
---|
150 | %{_libdir}/webkit2gtk-4.0/ |
---|
151 | %{_libexecdir}/webkit2gtk-4.0/ |
---|
152 | |
---|
153 | %files devel |
---|
154 | %{_bindir}/jsc |
---|
155 | %{_includedir}/webkitgtk-4.0/ |
---|
156 | %{_libdir}/libjavascriptcoregtk-4.0.so |
---|
157 | %{_libdir}/libwebkit2gtk-4.0.so |
---|
158 | %{_libdir}/pkgconfig/javascriptcoregtk-4.0.pc |
---|
159 | %{_libdir}/pkgconfig/webkit2gtk-4.0.pc |
---|
160 | %{_libdir}/pkgconfig/webkit2gtk-web-extension-4.0.pc |
---|
161 | %{_datadir}/gir-1.0/JavaScriptCore-4.0.gir |
---|
162 | %{_datadir}/gir-1.0/WebKit2-4.0.gir |
---|
163 | %{_datadir}/gir-1.0/WebKit2WebExtension-4.0.gir |
---|
164 | |
---|
165 | %changelog |
---|
166 | * Sun Jun 12 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.12.3-1 |
---|
167 | - new upstream release |
---|
168 | (including security fix for CVE-2016-1856,1857) |
---|
169 | |
---|
170 | * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.12.2-1 |
---|
171 | - new upstream release |
---|
172 | - remove Patch0 |
---|
173 | - add BuildRequires: libnotify-devel, hyphen-devel |
---|
174 | |
---|
175 | * Wed Dec 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.5-3 |
---|
176 | - rebuild with gnutls-3.4.7 |
---|
177 | |
---|
178 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.5-2 |
---|
179 | - rebuild with icu-56.1 |
---|
180 | |
---|
181 | * Mon Aug 17 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.5-1 |
---|
182 | - new upstream release |
---|
183 | |
---|
184 | * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.4-1 |
---|
185 | - new upstream release |
---|
186 | |
---|
187 | * Fri May 22 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.3-1 |
---|
188 | - new upstream release |
---|
189 | |
---|
190 | * Fri May 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.2-1 |
---|
191 | - new upstream release |
---|
192 | |
---|
193 | * Wed Apr 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.1-1 |
---|
194 | - new upstream release |
---|
195 | |
---|
196 | * Sun Mar 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.0-1 |
---|
197 | - new upstream release |
---|
198 | - update Patch0 |
---|
199 | |
---|
200 | * Sun Mar 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1 |
---|
201 | - new upstream release |
---|
202 | |
---|
203 | * Sat Nov 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.4-2 |
---|
204 | - add Group tag |
---|
205 | |
---|
206 | * Mon Nov 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.4-1 |
---|
207 | - new upstream release |
---|
208 | |
---|
209 | * Tue Nov 18 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.3-1 |
---|
210 | - new upstream release |
---|
211 | |
---|
212 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.2-1 |
---|
213 | - initial build for Vine Linux |
---|
214 | |
---|
215 | |
---|
216 | * Thu Sep 25 2014 Tomas Popela <tpopela@redhat.com> - 2.6.0-1 |
---|
217 | - Add the wrongly removed CLoop patch and remove the one that was upstreamed |
---|
218 | |
---|
219 | * Wed Sep 24 2014 Kalev Lember <kalevlember@gmail.com> - 2.6.0-1 |
---|
220 | - Update to 2.6.0 |
---|
221 | |
---|
222 | * Mon Sep 22 2014 Tomas Popela <tpopela@redhat.com> - 2.5.90-1 |
---|
223 | - Update to 2.5.90 |
---|
224 | |
---|
225 | * Tue Aug 26 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-7 |
---|
226 | - Obsolete libwebkit2gtk from the webkitgtk3 package |
---|
227 | |
---|
228 | * Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 2.5.3-6 |
---|
229 | - rebuild for ICU 53.1 |
---|
230 | |
---|
231 | * Mon Aug 25 2014 Tomas Popela <tpopela@redhat.com> - 2.5.3-5 |
---|
232 | - Add support for secondary arches |
---|
233 | |
---|
234 | * Fri Aug 22 2014 Michael Catanzaro <mcatanzaro@gnome.org> - 2.5.3-4 |
---|
235 | - Add webkitgtk-2.5.3-toggle-buttons.patch |
---|
236 | |
---|
237 | * Thu Aug 21 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-3 |
---|
238 | - More package review fixes (#1131284) |
---|
239 | - Correct the license tag to read LGPLv2 |
---|
240 | - Filter out provides for private libraries |
---|
241 | |
---|
242 | * Tue Aug 19 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-2 |
---|
243 | - Remove bundled leveldb, gtest, qunit in %%prep (#1131284) |
---|
244 | |
---|
245 | * Fri Aug 15 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-1 |
---|
246 | - Update to 2.5.3 |
---|
247 | |
---|
248 | * Fri Aug 01 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.1-1 |
---|
249 | - Initial Fedora packaging, based on the webkitgtk3 package |
---|