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.8.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 | Patch0: webkitgtk-2.7.4-nspluginwrapper.patch |
---|
19 | Patch2: webkitgtk-2.5.90-cloop_fix.patch |
---|
20 | Patch3: webkitgtk-2.5.2-commit_align.patch |
---|
21 | |
---|
22 | BuildRequires: at-spi2-core-devel |
---|
23 | BuildRequires: bison |
---|
24 | BuildRequires: cairo-devel |
---|
25 | BuildRequires: cmake |
---|
26 | BuildRequires: enchant-devel |
---|
27 | BuildRequires: flex |
---|
28 | BuildRequires: fontconfig-devel |
---|
29 | BuildRequires: freetype-devel |
---|
30 | BuildRequires: geoclue2-devel |
---|
31 | BuildRequires: gettext |
---|
32 | BuildRequires: glib2-devel |
---|
33 | BuildRequires: gobject-introspection-devel |
---|
34 | BuildRequires: gperf |
---|
35 | BuildRequires: gstreamer1-devel |
---|
36 | BuildRequires: gstreamer1-plugins-base-devel |
---|
37 | BuildRequires: gtk2-devel |
---|
38 | BuildRequires: gtk3-devel |
---|
39 | BuildRequires: harfbuzz-icu-devel |
---|
40 | BuildRequires: libicu-devel |
---|
41 | BuildRequires: libjpeg-turbo-devel |
---|
42 | BuildRequires: libpng-devel |
---|
43 | BuildRequires: libsecret-devel |
---|
44 | BuildRequires: libsoup-devel |
---|
45 | BuildRequires: libwebp-devel |
---|
46 | BuildRequires: libxslt-devel |
---|
47 | BuildRequires: libXt-devel |
---|
48 | BuildRequires: mesa-libGL-devel |
---|
49 | BuildRequires: pcre-devel |
---|
50 | BuildRequires: ruby |
---|
51 | BuildRequires: sqlite3-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 | %patch0 -p1 -b .nspluginwrapper |
---|
82 | #%patch2 -p1 -b .cloop_fix |
---|
83 | %ifarch %{power64} aarch64 ppc |
---|
84 | %patch3 -p1 -b .commit_align |
---|
85 | %endif |
---|
86 | |
---|
87 | # Remove bundled libraries |
---|
88 | rm -rf Source/ThirdParty/leveldb/ |
---|
89 | rm -rf Source/ThirdParty/gtest/ |
---|
90 | rm -rf Source/ThirdParty/qunit/ |
---|
91 | |
---|
92 | %build |
---|
93 | # binutils-2.23 doesn't support "reduce-memory-overheads" |
---|
94 | # Use linker flags to reduce memory consumption |
---|
95 | # global optflags %{optflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads |
---|
96 | |
---|
97 | %ifarch s390 %{arm} |
---|
98 | # Decrease debuginfo verbosity to reduce memory consumption even more |
---|
99 | %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') |
---|
100 | %endif |
---|
101 | |
---|
102 | %ifarch ppc |
---|
103 | # Use linker flag -relax to get WebKit build under ppc(32) with JIT disabled |
---|
104 | %global optflags %{optflags} -Wl,-relax -latomic |
---|
105 | %endif |
---|
106 | |
---|
107 | %global optflags %{optflags} -DENABLE_YARR_JIT=0 |
---|
108 | |
---|
109 | mkdir -p %{_target_platform} |
---|
110 | pushd %{_target_platform} |
---|
111 | %cmake \ |
---|
112 | -DPORT=GTK \ |
---|
113 | -DCMAKE_BUILD_TYPE=Release \ |
---|
114 | -DENABLE_JIT=OFF \ |
---|
115 | -DENABLE_LLINT_C_LOOP=ON \ |
---|
116 | .. |
---|
117 | popd |
---|
118 | |
---|
119 | make %{?_smp_mflags} -C %{_target_platform} |
---|
120 | |
---|
121 | %install |
---|
122 | %make_install -C %{_target_platform} |
---|
123 | |
---|
124 | %find_lang WebKit2GTK-4.0 |
---|
125 | |
---|
126 | # Finally, copy over and rename various files for %%license inclusion |
---|
127 | %add_to_license_files Source/JavaScriptCore/COPYING.LIB |
---|
128 | %add_to_license_files Source/JavaScriptCore/icu/LICENSE |
---|
129 | %add_to_license_files Source/ThirdParty/ANGLE/LICENSE |
---|
130 | %add_to_license_files Source/ThirdParty/ANGLE/src/third_party/compiler/LICENSE |
---|
131 | %add_to_license_files Source/ThirdParty/ANGLE/src/third_party/murmurhash/LICENSE |
---|
132 | %add_to_license_files Source/WebCore/icu/LICENSE |
---|
133 | %add_to_license_files Source/WebCore/LICENSE-APPLE |
---|
134 | %add_to_license_files Source/WebCore/LICENSE-LGPL-2 |
---|
135 | %add_to_license_files Source/WebCore/LICENSE-LGPL-2.1 |
---|
136 | %add_to_license_files Source/WebInspectorUI/UserInterface/External/CodeMirror/LICENSE |
---|
137 | %add_to_license_files Source/WebInspectorUI/UserInterface/External/Esprima/LICENSE |
---|
138 | %add_to_license_files Source/WTF/icu/LICENSE |
---|
139 | %add_to_license_files Source/WTF/wtf/dtoa/COPYING |
---|
140 | %add_to_license_files Source/WTF/wtf/dtoa/LICENSE |
---|
141 | |
---|
142 | %post -p /sbin/ldconfig |
---|
143 | %postun -p /sbin/ldconfig |
---|
144 | |
---|
145 | %files -f WebKit2GTK-4.0.lang |
---|
146 | %license _license_files/* |
---|
147 | %{_libdir}/libjavascriptcoregtk-4.0.so.* |
---|
148 | %{_libdir}/libwebkit2gtk-4.0.so.* |
---|
149 | %{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib |
---|
150 | %{_libdir}/girepository-1.0/WebKit2-4.0.typelib |
---|
151 | %{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib |
---|
152 | %{_libdir}/webkit2gtk-4.0/ |
---|
153 | %{_libexecdir}/webkit2gtk-4.0/ |
---|
154 | |
---|
155 | %files devel |
---|
156 | %{_bindir}/jsc |
---|
157 | %{_includedir}/webkitgtk-4.0/ |
---|
158 | %{_libdir}/libjavascriptcoregtk-4.0.so |
---|
159 | %{_libdir}/libwebkit2gtk-4.0.so |
---|
160 | %{_libdir}/pkgconfig/javascriptcoregtk-4.0.pc |
---|
161 | %{_libdir}/pkgconfig/webkit2gtk-4.0.pc |
---|
162 | %{_libdir}/pkgconfig/webkit2gtk-web-extension-4.0.pc |
---|
163 | %{_datadir}/gir-1.0/JavaScriptCore-4.0.gir |
---|
164 | %{_datadir}/gir-1.0/WebKit2-4.0.gir |
---|
165 | %{_datadir}/gir-1.0/WebKit2WebExtension-4.0.gir |
---|
166 | |
---|
167 | %changelog |
---|
168 | * Fri May 22 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.3-1 |
---|
169 | - new upstream release |
---|
170 | |
---|
171 | * Fri May 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.2-1 |
---|
172 | - new upstream release |
---|
173 | |
---|
174 | * Wed Apr 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.1-1 |
---|
175 | - new upstream release |
---|
176 | |
---|
177 | * Sun Mar 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.0-1 |
---|
178 | - new upstream release |
---|
179 | - update Patch0 |
---|
180 | |
---|
181 | * Sun Mar 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1 |
---|
182 | - new upstream release |
---|
183 | |
---|
184 | * Sat Nov 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.4-2 |
---|
185 | - add Group tag |
---|
186 | |
---|
187 | * Mon Nov 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.4-1 |
---|
188 | - new upstream release |
---|
189 | |
---|
190 | * Tue Nov 18 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.3-1 |
---|
191 | - new upstream release |
---|
192 | |
---|
193 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.2-1 |
---|
194 | - initial build for Vine Linux |
---|
195 | |
---|
196 | |
---|
197 | * Thu Sep 25 2014 Tomas Popela <tpopela@redhat.com> - 2.6.0-1 |
---|
198 | - Add the wrongly removed CLoop patch and remove the one that was upstreamed |
---|
199 | |
---|
200 | * Wed Sep 24 2014 Kalev Lember <kalevlember@gmail.com> - 2.6.0-1 |
---|
201 | - Update to 2.6.0 |
---|
202 | |
---|
203 | * Mon Sep 22 2014 Tomas Popela <tpopela@redhat.com> - 2.5.90-1 |
---|
204 | - Update to 2.5.90 |
---|
205 | |
---|
206 | * Tue Aug 26 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-7 |
---|
207 | - Obsolete libwebkit2gtk from the webkitgtk3 package |
---|
208 | |
---|
209 | * Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 2.5.3-6 |
---|
210 | - rebuild for ICU 53.1 |
---|
211 | |
---|
212 | * Mon Aug 25 2014 Tomas Popela <tpopela@redhat.com> - 2.5.3-5 |
---|
213 | - Add support for secondary arches |
---|
214 | |
---|
215 | * Fri Aug 22 2014 Michael Catanzaro <mcatanzaro@gnome.org> - 2.5.3-4 |
---|
216 | - Add webkitgtk-2.5.3-toggle-buttons.patch |
---|
217 | |
---|
218 | * Thu Aug 21 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-3 |
---|
219 | - More package review fixes (#1131284) |
---|
220 | - Correct the license tag to read LGPLv2 |
---|
221 | - Filter out provides for private libraries |
---|
222 | |
---|
223 | * Tue Aug 19 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-2 |
---|
224 | - Remove bundled leveldb, gtest, qunit in %%prep (#1131284) |
---|
225 | |
---|
226 | * Fri Aug 15 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-1 |
---|
227 | - Update to 2.5.3 |
---|
228 | |
---|
229 | * Fri Aug 01 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.1-1 |
---|
230 | - Initial Fedora packaging, based on the webkitgtk3 package |
---|