[12508] | 1 | %bcond_with systemd |
---|
[12222] | 2 | %bcond_with clang |
---|
[12005] | 3 | |
---|
[9073] | 4 | ## NOTE: Lots of files in various subdirectories have the same name (such as |
---|
| 5 | ## "LICENSE") so this short macro allows us to distinguish them by using their |
---|
| 6 | ## directory names (from the source tree) as prefixes for the files. |
---|
| 7 | %global add_to_license_files() \ |
---|
| 8 | mkdir -p _license_files ; \ |
---|
| 9 | cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g') |
---|
| 10 | |
---|
[12487] | 11 | Summary: GTK+ Web content engine library |
---|
[9073] | 12 | Name: webkitgtk4 |
---|
[12508] | 13 | Version: 2.30.3 |
---|
| 14 | Release: 1%{?_dist_release}%{?with_systemd:.systemd} |
---|
[12487] | 15 | Group: system |
---|
[10430] | 16 | Vendor: Project Vine |
---|
| 17 | Distribution: Vine Linux |
---|
| 18 | |
---|
[12386] | 19 | License: LGPLv2 |
---|
| 20 | URL: http://www.webkitgtk.org/ |
---|
[12222] | 21 | Source0: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz |
---|
[9073] | 22 | |
---|
[12005] | 23 | %if %{with clang} |
---|
| 24 | BuildRequires: clang |
---|
| 25 | BuildRequires: lld |
---|
| 26 | %endif |
---|
[9073] | 27 | BuildRequires: at-spi2-core-devel |
---|
| 28 | BuildRequires: bison |
---|
[12222] | 29 | BuildRequires: bubblewrap |
---|
[9073] | 30 | BuildRequires: cairo-devel |
---|
| 31 | BuildRequires: cmake |
---|
[12422] | 32 | BuildRequires: enchant2-devel |
---|
[9073] | 33 | BuildRequires: flex |
---|
| 34 | BuildRequires: fontconfig-devel |
---|
| 35 | BuildRequires: freetype-devel |
---|
| 36 | BuildRequires: geoclue2-devel |
---|
| 37 | BuildRequires: gettext |
---|
| 38 | BuildRequires: glib2-devel |
---|
| 39 | BuildRequires: gobject-introspection-devel |
---|
| 40 | BuildRequires: gperf |
---|
| 41 | BuildRequires: gstreamer1-devel |
---|
| 42 | BuildRequires: gstreamer1-plugins-base-devel |
---|
| 43 | BuildRequires: gtk2-devel |
---|
| 44 | BuildRequires: gtk3-devel |
---|
| 45 | BuildRequires: harfbuzz-icu-devel |
---|
| 46 | BuildRequires: libicu-devel |
---|
| 47 | BuildRequires: libjpeg-turbo-devel |
---|
| 48 | BuildRequires: libpng-devel |
---|
[12222] | 49 | BuildRequires: libseccomp-devel |
---|
[9073] | 50 | BuildRequires: libsecret-devel |
---|
| 51 | BuildRequires: libsoup-devel |
---|
| 52 | BuildRequires: libwebp-devel |
---|
| 53 | BuildRequires: libxslt-devel |
---|
| 54 | BuildRequires: libXt-devel |
---|
[12222] | 55 | BuildRequires: ninja |
---|
[9073] | 56 | BuildRequires: mesa-libGL-devel |
---|
| 57 | BuildRequires: pcre-devel |
---|
[12222] | 58 | BuildRequires: python3-devel |
---|
[9073] | 59 | BuildRequires: ruby |
---|
| 60 | BuildRequires: sqlite3-devel |
---|
[10250] | 61 | BuildRequires: libnotify-devel |
---|
| 62 | BuildRequires: hyphen-devel |
---|
[12005] | 63 | BuildRequires: woff2-devel |
---|
[12222] | 64 | BuildRequires: xdg-dbus-proxy |
---|
[12508] | 65 | %if %{with systemd} |
---|
| 66 | BuildRequires: systemd-devel |
---|
| 67 | %endif |
---|
| 68 | |
---|
[12263] | 69 | Requires: geoclue2 |
---|
[9073] | 70 | |
---|
[12222] | 71 | # for sandbox |
---|
| 72 | Requires: bubblewrap |
---|
| 73 | Requires: xdg-dbus-proxy |
---|
| 74 | |
---|
[11436] | 75 | # Require the jsc subpackage |
---|
| 76 | Requires: %{name}-jsc = %{version}-%{release} |
---|
| 77 | |
---|
[9073] | 78 | # Obsolete libwebkit2gtk from the webkitgtk3 package |
---|
| 79 | Obsoletes: libwebkit2gtk < 2.4.5-3 |
---|
| 80 | Provides: libwebkit2gtk = %{version}-%{release} |
---|
| 81 | |
---|
| 82 | # Filter out provides for private libraries |
---|
| 83 | %global __provides_exclude_from ^%{_libdir}/webkit2gtk-4\\.0/.*\\.so$ |
---|
| 84 | |
---|
| 85 | %description |
---|
| 86 | WebKitGTK+ is the port of the portable web rendering engine WebKit to the |
---|
| 87 | GTK+ platform. |
---|
| 88 | |
---|
| 89 | This package contains WebKitGTK+ for GTK+ 3. |
---|
| 90 | |
---|
[12487] | 91 | |
---|
[9073] | 92 | %package devel |
---|
| 93 | Summary: Development files for %{name} |
---|
[12487] | 94 | Group: programming |
---|
[9073] | 95 | Requires: %{name} = %{version}-%{release} |
---|
[11436] | 96 | Requires: %{name}-jsc-devel = %{version}-%{release} |
---|
[9073] | 97 | |
---|
| 98 | %description devel |
---|
| 99 | The %{name}-devel package contains libraries, build data, and header |
---|
| 100 | files for developing applications that use %{name}. |
---|
| 101 | |
---|
[12487] | 102 | |
---|
[11436] | 103 | %package jsc |
---|
| 104 | Summary: JavaScript engine from %{name} |
---|
[12487] | 105 | Group: system |
---|
[11436] | 106 | |
---|
| 107 | %description jsc |
---|
| 108 | This package contains JavaScript engine from %{name}. |
---|
| 109 | |
---|
[12487] | 110 | |
---|
[11436] | 111 | %package jsc-devel |
---|
| 112 | Summary: Development files for JavaScript engine from %{name} |
---|
[12487] | 113 | Group: programming |
---|
[11436] | 114 | Requires: %{name}-jsc = %{version}-%{release} |
---|
| 115 | |
---|
| 116 | %description jsc-devel |
---|
| 117 | The %{name}-jsc-devel package contains libraries, build data, and header |
---|
| 118 | files for developing applications that use JavaScript engine from %{name}. |
---|
| 119 | |
---|
| 120 | |
---|
[12422] | 121 | %debug_package |
---|
| 122 | |
---|
| 123 | |
---|
[9073] | 124 | %prep |
---|
| 125 | %setup -q -n webkitgtk-%{version} |
---|
| 126 | |
---|
| 127 | # Remove bundled libraries |
---|
| 128 | rm -rf Source/ThirdParty/leveldb/ |
---|
| 129 | rm -rf Source/ThirdParty/gtest/ |
---|
| 130 | rm -rf Source/ThirdParty/qunit/ |
---|
| 131 | |
---|
[12431] | 132 | |
---|
[9073] | 133 | %build |
---|
[9475] | 134 | # binutils-2.23 doesn't support "reduce-memory-overheads" |
---|
[9073] | 135 | # Use linker flags to reduce memory consumption |
---|
[9475] | 136 | # global optflags %{optflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads |
---|
[9073] | 137 | |
---|
[12005] | 138 | %if %{with clang} |
---|
| 139 | %ifnarch x86_64 |
---|
| 140 | %define cflags_add --rtlib=compiler-rt |
---|
[9073] | 141 | %endif |
---|
| 142 | |
---|
[12005] | 143 | %global optflags %(echo %{optflags} -DENABLE_YARR_JIT=0 | sed -e 's/-fno-schedule-insns2//') -fuse-ld=lld %{?cflags_add} |
---|
| 144 | %else |
---|
| 145 | %global optflags %{optflags} -DENABLE_YARR_JIT=0 |
---|
[9073] | 146 | %endif |
---|
| 147 | |
---|
| 148 | mkdir -p %{_target_platform} |
---|
| 149 | pushd %{_target_platform} |
---|
[12005] | 150 | |
---|
[12121] | 151 | %if %{with clang} |
---|
[12005] | 152 | export CC=clang |
---|
| 153 | export CXX=clang++ |
---|
| 154 | export LD=ld.lld |
---|
[12121] | 155 | %endif |
---|
[12005] | 156 | |
---|
[9073] | 157 | %cmake \ |
---|
[12222] | 158 | -GNinja \ |
---|
[12005] | 159 | %if %{with clang} |
---|
| 160 | -DCOMPILER_IS_CLANG=ON \ |
---|
| 161 | -DCMAKE_CXX_COMPILER=clang++ \ |
---|
| 162 | %endif |
---|
[9073] | 163 | -DPORT=GTK \ |
---|
| 164 | -DCMAKE_BUILD_TYPE=Release \ |
---|
| 165 | -DENABLE_JIT=OFF \ |
---|
| 166 | -DENABLE_LLINT_C_LOOP=ON \ |
---|
[12005] | 167 | -DUSE_GSTREAMER_GL=OFF \ |
---|
[12121] | 168 | -DUSE_OPENJPEG=OFF \ |
---|
[12222] | 169 | -DENABLE_GTKDOC=OFF \ |
---|
[12508] | 170 | %if %{with systemd} |
---|
| 171 | -DUSE_SYSTEMD=ON \ |
---|
| 172 | %else |
---|
| 173 | -DUSE_SYSTEMD=OFF \ |
---|
| 174 | %endif |
---|
[9073] | 175 | .. |
---|
| 176 | popd |
---|
| 177 | |
---|
[12222] | 178 | ninja -C %{_target_platform} |
---|
[9073] | 179 | |
---|
[12431] | 180 | |
---|
[9073] | 181 | %install |
---|
[12222] | 182 | DESTDIR=%{buildroot} ninja -C %{_target_platform} install |
---|
[9073] | 183 | |
---|
| 184 | %find_lang WebKit2GTK-4.0 |
---|
| 185 | |
---|
| 186 | # Finally, copy over and rename various files for %%license inclusion |
---|
| 187 | %add_to_license_files Source/JavaScriptCore/COPYING.LIB |
---|
| 188 | %add_to_license_files Source/ThirdParty/ANGLE/LICENSE |
---|
| 189 | %add_to_license_files Source/ThirdParty/ANGLE/src/third_party/compiler/LICENSE |
---|
| 190 | %add_to_license_files Source/WebCore/LICENSE-APPLE |
---|
| 191 | %add_to_license_files Source/WebCore/LICENSE-LGPL-2 |
---|
| 192 | %add_to_license_files Source/WebCore/LICENSE-LGPL-2.1 |
---|
| 193 | %add_to_license_files Source/WebInspectorUI/UserInterface/External/CodeMirror/LICENSE |
---|
| 194 | %add_to_license_files Source/WebInspectorUI/UserInterface/External/Esprima/LICENSE |
---|
| 195 | %add_to_license_files Source/WTF/icu/LICENSE |
---|
| 196 | %add_to_license_files Source/WTF/wtf/dtoa/COPYING |
---|
| 197 | %add_to_license_files Source/WTF/wtf/dtoa/LICENSE |
---|
| 198 | |
---|
[12431] | 199 | |
---|
[9073] | 200 | %post -p /sbin/ldconfig |
---|
| 201 | %postun -p /sbin/ldconfig |
---|
[11436] | 202 | %post jsc -p /sbin/ldconfig |
---|
| 203 | %postun jsc -p /sbin/ldconfig |
---|
[9073] | 204 | |
---|
[12431] | 205 | |
---|
[9073] | 206 | %files -f WebKit2GTK-4.0.lang |
---|
| 207 | %license _license_files/* |
---|
| 208 | %{_libdir}/libwebkit2gtk-4.0.so.* |
---|
| 209 | %{_libdir}/girepository-1.0/WebKit2-4.0.typelib |
---|
| 210 | %{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib |
---|
| 211 | %{_libdir}/webkit2gtk-4.0/ |
---|
[11436] | 212 | %{_libexecdir}/webkit2gtk-4.0/* |
---|
| 213 | %exclude %{_libexecdir}/webkit2gtk-4.0/jsc |
---|
[11372] | 214 | %{_bindir}/WebKitWebDriver |
---|
[9073] | 215 | |
---|
[11436] | 216 | %files jsc |
---|
| 217 | %license _license_files/*JavaScriptCore* |
---|
| 218 | %dir %{_libexecdir}/webkit2gtk-4.0/ |
---|
| 219 | %{_libexecdir}/webkit2gtk-4.0/jsc |
---|
| 220 | %{_libdir}/libjavascriptcoregtk-4.0.so.* |
---|
| 221 | %{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib |
---|
| 222 | |
---|
[9073] | 223 | %files devel |
---|
[11436] | 224 | %{_includedir}/webkitgtk-4.0/* |
---|
| 225 | %exclude %{_includedir}/webkitgtk-4.0/JavaScriptCore/ |
---|
[9073] | 226 | %{_libdir}/libwebkit2gtk-4.0.so |
---|
| 227 | %{_libdir}/pkgconfig/webkit2gtk-4.0.pc |
---|
| 228 | %{_libdir}/pkgconfig/webkit2gtk-web-extension-4.0.pc |
---|
| 229 | %{_datadir}/gir-1.0/WebKit2-4.0.gir |
---|
| 230 | %{_datadir}/gir-1.0/WebKit2WebExtension-4.0.gir |
---|
| 231 | |
---|
[11436] | 232 | %files jsc-devel |
---|
| 233 | %dir %{_includedir}/webkitgtk-4.0 |
---|
| 234 | %{_includedir}/webkitgtk-4.0/JavaScriptCore/ |
---|
| 235 | %{_libdir}/libjavascriptcoregtk-4.0.so |
---|
| 236 | %{_libdir}/pkgconfig/javascriptcoregtk-4.0.pc |
---|
| 237 | %{_datadir}/gir-1.0/JavaScriptCore-4.0.gir |
---|
| 238 | |
---|
[12431] | 239 | |
---|
[9073] | 240 | %changelog |
---|
[12508] | 241 | * Tue Dec 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.30.3-1 |
---|
| 242 | - new upstream release. |
---|
| 243 | - added systemd support (disabled as default). |
---|
| 244 | |
---|
[12487] | 245 | * Tue Sep 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.4-1 |
---|
| 246 | - new upstream release. |
---|
| 247 | |
---|
[12431] | 248 | * Sun Jul 26 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.3-1 |
---|
| 249 | - new upstream release. |
---|
| 250 | |
---|
[12422] | 251 | * Thu Jul 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.2-1 |
---|
| 252 | - new upstream release. |
---|
| 253 | |
---|
[12386] | 254 | * Fri Apr 24 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.1-1 |
---|
| 255 | - new upstream release. |
---|
| 256 | - rebuilt with libicu67. |
---|
| 257 | |
---|
[12344] | 258 | * Fri Mar 20 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.0-2 |
---|
| 259 | - rebuilt with libicu66. |
---|
| 260 | |
---|
[12332] | 261 | * Sun Mar 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.0-1 |
---|
| 262 | - new upstream release. |
---|
| 263 | - dropped Patch1: fixed in upstream. |
---|
| 264 | |
---|
[12263] | 265 | * Sun Oct 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.26.1-1 |
---|
| 266 | - new upstream release. |
---|
| 267 | - built with icu-65. |
---|
| 268 | |
---|
[12222] | 269 | * Fri Sep 20 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.26.0-1 |
---|
| 270 | - new upstream release. |
---|
| 271 | - switched build-system to ninja. |
---|
| 272 | |
---|
[12121] | 273 | * Tue Aug 27 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.24.3-1 |
---|
[12222] | 274 | - new upstream release. |
---|
[12121] | 275 | |
---|
[12005] | 276 | * Thu Jan 03 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.22.5-1 |
---|
| 277 | - new upstream release. |
---|
| 278 | |
---|
[11436] | 279 | * Thu Jan 11 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.18.5-1 |
---|
| 280 | - new upstream release. |
---|
| 281 | - added subpackages webkitgtk4-jsc{,-devel}. |
---|
| 282 | |
---|
[11372] | 283 | * Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.18.4-1 |
---|
| 284 | - new upstream release. |
---|
| 285 | |
---|
[10430] | 286 | * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.12.3-2 |
---|
| 287 | - rebuilt with new toolchain. |
---|
| 288 | |
---|
[10369] | 289 | * Sun Jun 12 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.12.3-1 |
---|
| 290 | - new upstream release |
---|
| 291 | (including security fix for CVE-2016-1856,1857) |
---|
| 292 | |
---|
[10250] | 293 | * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.12.2-1 |
---|
| 294 | - new upstream release |
---|
| 295 | - remove Patch0 |
---|
| 296 | - add BuildRequires: libnotify-devel, hyphen-devel |
---|
| 297 | |
---|
[9909] | 298 | * Wed Dec 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.5-3 |
---|
| 299 | - rebuild with gnutls-3.4.7 |
---|
| 300 | |
---|
[9791] | 301 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.5-2 |
---|
| 302 | - rebuild with icu-56.1 |
---|
| 303 | |
---|
[9715] | 304 | * Mon Aug 17 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.5-1 |
---|
| 305 | - new upstream release |
---|
| 306 | |
---|
[9672] | 307 | * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.4-1 |
---|
| 308 | - new upstream release |
---|
| 309 | |
---|
[9573] | 310 | * Fri May 22 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.3-1 |
---|
| 311 | - new upstream release |
---|
| 312 | |
---|
[9569] | 313 | * Fri May 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.2-1 |
---|
| 314 | - new upstream release |
---|
| 315 | |
---|
[9520] | 316 | * Wed Apr 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.1-1 |
---|
| 317 | - new upstream release |
---|
| 318 | |
---|
[9475] | 319 | * Sun Mar 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.0-1 |
---|
| 320 | - new upstream release |
---|
| 321 | - update Patch0 |
---|
| 322 | |
---|
[9398] | 323 | * Sun Mar 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1 |
---|
| 324 | - new upstream release |
---|
| 325 | |
---|
[9121] | 326 | * Sat Nov 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.4-2 |
---|
| 327 | - add Group tag |
---|
| 328 | |
---|
[9115] | 329 | * Mon Nov 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.4-1 |
---|
| 330 | - new upstream release |
---|
| 331 | |
---|
[9102] | 332 | * Tue Nov 18 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.3-1 |
---|
| 333 | - new upstream release |
---|
| 334 | |
---|
[9073] | 335 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.2-1 |
---|
| 336 | - initial build for Vine Linux |
---|
| 337 | |
---|
| 338 | |
---|
| 339 | * Thu Sep 25 2014 Tomas Popela <tpopela@redhat.com> - 2.6.0-1 |
---|
| 340 | - Add the wrongly removed CLoop patch and remove the one that was upstreamed |
---|
| 341 | |
---|
| 342 | * Wed Sep 24 2014 Kalev Lember <kalevlember@gmail.com> - 2.6.0-1 |
---|
| 343 | - Update to 2.6.0 |
---|
| 344 | |
---|
| 345 | * Mon Sep 22 2014 Tomas Popela <tpopela@redhat.com> - 2.5.90-1 |
---|
| 346 | - Update to 2.5.90 |
---|
| 347 | |
---|
| 348 | * Tue Aug 26 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-7 |
---|
| 349 | - Obsolete libwebkit2gtk from the webkitgtk3 package |
---|
| 350 | |
---|
| 351 | * Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 2.5.3-6 |
---|
| 352 | - rebuild for ICU 53.1 |
---|
| 353 | |
---|
| 354 | * Mon Aug 25 2014 Tomas Popela <tpopela@redhat.com> - 2.5.3-5 |
---|
| 355 | - Add support for secondary arches |
---|
| 356 | |
---|
| 357 | * Fri Aug 22 2014 Michael Catanzaro <mcatanzaro@gnome.org> - 2.5.3-4 |
---|
| 358 | - Add webkitgtk-2.5.3-toggle-buttons.patch |
---|
| 359 | |
---|
| 360 | * Thu Aug 21 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-3 |
---|
| 361 | - More package review fixes (#1131284) |
---|
| 362 | - Correct the license tag to read LGPLv2 |
---|
| 363 | - Filter out provides for private libraries |
---|
| 364 | |
---|
| 365 | * Tue Aug 19 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-2 |
---|
| 366 | - Remove bundled leveldb, gtest, qunit in %%prep (#1131284) |
---|
| 367 | |
---|
| 368 | * Fri Aug 15 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-1 |
---|
| 369 | - Update to 2.5.3 |
---|
| 370 | |
---|
| 371 | * Fri Aug 01 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.1-1 |
---|
| 372 | - Initial Fedora packaging, based on the webkitgtk3 package |
---|