[9073] | 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 |
---|
[9715] | 9 | Version: 2.8.5 |
---|
[9398] | 10 | Release: 1%{?_dist_release} |
---|
[9073] | 11 | Summary: GTK+ Web content engine library |
---|
| 12 | |
---|
| 13 | License: LGPLv2 |
---|
[9121] | 14 | Group: Development/Libraries |
---|
[9073] | 15 | URL: http://www.webkitgtk.org/ |
---|
| 16 | Source0: http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
---|
| 17 | |
---|
[9475] | 18 | Patch0: webkitgtk-2.7.4-nspluginwrapper.patch |
---|
[9073] | 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} |
---|
[9121] | 72 | Group: Development/Libraries |
---|
[9073] | 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 |
---|
[9475] | 82 | #%patch2 -p1 -b .cloop_fix |
---|
[9073] | 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 |
---|
[9475] | 93 | # binutils-2.23 doesn't support "reduce-memory-overheads" |
---|
[9073] | 94 | # Use linker flags to reduce memory consumption |
---|
[9475] | 95 | # global optflags %{optflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads |
---|
[9073] | 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 |
---|
[9715] | 168 | * Mon Aug 17 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.5-1 |
---|
| 169 | - new upstream release |
---|
| 170 | |
---|
[9672] | 171 | * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.4-1 |
---|
| 172 | - new upstream release |
---|
| 173 | |
---|
[9573] | 174 | * Fri May 22 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.3-1 |
---|
| 175 | - new upstream release |
---|
| 176 | |
---|
[9569] | 177 | * Fri May 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.2-1 |
---|
| 178 | - new upstream release |
---|
| 179 | |
---|
[9520] | 180 | * Wed Apr 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.1-1 |
---|
| 181 | - new upstream release |
---|
| 182 | |
---|
[9475] | 183 | * Sun Mar 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.0-1 |
---|
| 184 | - new upstream release |
---|
| 185 | - update Patch0 |
---|
| 186 | |
---|
[9398] | 187 | * Sun Mar 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1 |
---|
| 188 | - new upstream release |
---|
| 189 | |
---|
[9121] | 190 | * Sat Nov 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.4-2 |
---|
| 191 | - add Group tag |
---|
| 192 | |
---|
[9115] | 193 | * Mon Nov 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.4-1 |
---|
| 194 | - new upstream release |
---|
| 195 | |
---|
[9102] | 196 | * Tue Nov 18 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.3-1 |
---|
| 197 | - new upstream release |
---|
| 198 | |
---|
[9073] | 199 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.2-1 |
---|
| 200 | - initial build for Vine Linux |
---|
| 201 | |
---|
| 202 | |
---|
| 203 | * Thu Sep 25 2014 Tomas Popela <tpopela@redhat.com> - 2.6.0-1 |
---|
| 204 | - Add the wrongly removed CLoop patch and remove the one that was upstreamed |
---|
| 205 | |
---|
| 206 | * Wed Sep 24 2014 Kalev Lember <kalevlember@gmail.com> - 2.6.0-1 |
---|
| 207 | - Update to 2.6.0 |
---|
| 208 | |
---|
| 209 | * Mon Sep 22 2014 Tomas Popela <tpopela@redhat.com> - 2.5.90-1 |
---|
| 210 | - Update to 2.5.90 |
---|
| 211 | |
---|
| 212 | * Tue Aug 26 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-7 |
---|
| 213 | - Obsolete libwebkit2gtk from the webkitgtk3 package |
---|
| 214 | |
---|
| 215 | * Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 2.5.3-6 |
---|
| 216 | - rebuild for ICU 53.1 |
---|
| 217 | |
---|
| 218 | * Mon Aug 25 2014 Tomas Popela <tpopela@redhat.com> - 2.5.3-5 |
---|
| 219 | - Add support for secondary arches |
---|
| 220 | |
---|
| 221 | * Fri Aug 22 2014 Michael Catanzaro <mcatanzaro@gnome.org> - 2.5.3-4 |
---|
| 222 | - Add webkitgtk-2.5.3-toggle-buttons.patch |
---|
| 223 | |
---|
| 224 | * Thu Aug 21 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-3 |
---|
| 225 | - More package review fixes (#1131284) |
---|
| 226 | - Correct the license tag to read LGPLv2 |
---|
| 227 | - Filter out provides for private libraries |
---|
| 228 | |
---|
| 229 | * Tue Aug 19 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-2 |
---|
| 230 | - Remove bundled leveldb, gtest, qunit in %%prep (#1131284) |
---|
| 231 | |
---|
| 232 | * Fri Aug 15 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-1 |
---|
| 233 | - Update to 2.5.3 |
---|
| 234 | |
---|
| 235 | * Fri Aug 01 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.1-1 |
---|
| 236 | - Initial Fedora packaging, based on the webkitgtk3 package |
---|