[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 |
---|
[12560] | 13 | Version: 2.30.5 |
---|
[12508] | 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 | |
---|
[12121] | 148 | %if %{with clang} |
---|
[12005] | 149 | export CC=clang |
---|
| 150 | export CXX=clang++ |
---|
| 151 | export LD=ld.lld |
---|
[12121] | 152 | %endif |
---|
[12005] | 153 | |
---|
[9073] | 154 | %cmake \ |
---|
[12222] | 155 | -GNinja \ |
---|
[12005] | 156 | %if %{with clang} |
---|
| 157 | -DCOMPILER_IS_CLANG=ON \ |
---|
| 158 | -DCMAKE_CXX_COMPILER=clang++ \ |
---|
| 159 | %endif |
---|
[9073] | 160 | -DPORT=GTK \ |
---|
| 161 | -DCMAKE_BUILD_TYPE=Release \ |
---|
| 162 | -DENABLE_JIT=OFF \ |
---|
| 163 | -DENABLE_LLINT_C_LOOP=ON \ |
---|
[12005] | 164 | -DUSE_GSTREAMER_GL=OFF \ |
---|
[12121] | 165 | -DUSE_OPENJPEG=OFF \ |
---|
[12222] | 166 | -DENABLE_GTKDOC=OFF \ |
---|
[12508] | 167 | %if %{with systemd} |
---|
| 168 | -DUSE_SYSTEMD=ON \ |
---|
| 169 | %else |
---|
| 170 | -DUSE_SYSTEMD=OFF \ |
---|
| 171 | %endif |
---|
[9073] | 172 | .. |
---|
| 173 | |
---|
[12560] | 174 | ninja -C %{_vpath_builddir} |
---|
[9073] | 175 | |
---|
[12431] | 176 | |
---|
[9073] | 177 | %install |
---|
[12560] | 178 | DESTDIR=%{buildroot} ninja -C %{_vpath_builddir} install |
---|
[9073] | 179 | |
---|
| 180 | %find_lang WebKit2GTK-4.0 |
---|
| 181 | |
---|
| 182 | # Finally, copy over and rename various files for %%license inclusion |
---|
| 183 | %add_to_license_files Source/JavaScriptCore/COPYING.LIB |
---|
| 184 | %add_to_license_files Source/ThirdParty/ANGLE/LICENSE |
---|
| 185 | %add_to_license_files Source/ThirdParty/ANGLE/src/third_party/compiler/LICENSE |
---|
| 186 | %add_to_license_files Source/WebCore/LICENSE-APPLE |
---|
| 187 | %add_to_license_files Source/WebCore/LICENSE-LGPL-2 |
---|
| 188 | %add_to_license_files Source/WebCore/LICENSE-LGPL-2.1 |
---|
| 189 | %add_to_license_files Source/WebInspectorUI/UserInterface/External/CodeMirror/LICENSE |
---|
| 190 | %add_to_license_files Source/WebInspectorUI/UserInterface/External/Esprima/LICENSE |
---|
| 191 | %add_to_license_files Source/WTF/icu/LICENSE |
---|
| 192 | %add_to_license_files Source/WTF/wtf/dtoa/COPYING |
---|
| 193 | %add_to_license_files Source/WTF/wtf/dtoa/LICENSE |
---|
| 194 | |
---|
[12431] | 195 | |
---|
[9073] | 196 | %post -p /sbin/ldconfig |
---|
| 197 | %postun -p /sbin/ldconfig |
---|
[11436] | 198 | %post jsc -p /sbin/ldconfig |
---|
| 199 | %postun jsc -p /sbin/ldconfig |
---|
[9073] | 200 | |
---|
[12431] | 201 | |
---|
[9073] | 202 | %files -f WebKit2GTK-4.0.lang |
---|
| 203 | %license _license_files/* |
---|
| 204 | %{_libdir}/libwebkit2gtk-4.0.so.* |
---|
| 205 | %{_libdir}/girepository-1.0/WebKit2-4.0.typelib |
---|
| 206 | %{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib |
---|
| 207 | %{_libdir}/webkit2gtk-4.0/ |
---|
[11436] | 208 | %{_libexecdir}/webkit2gtk-4.0/* |
---|
| 209 | %exclude %{_libexecdir}/webkit2gtk-4.0/jsc |
---|
[11372] | 210 | %{_bindir}/WebKitWebDriver |
---|
[9073] | 211 | |
---|
[11436] | 212 | %files jsc |
---|
| 213 | %license _license_files/*JavaScriptCore* |
---|
| 214 | %dir %{_libexecdir}/webkit2gtk-4.0/ |
---|
| 215 | %{_libexecdir}/webkit2gtk-4.0/jsc |
---|
| 216 | %{_libdir}/libjavascriptcoregtk-4.0.so.* |
---|
| 217 | %{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib |
---|
| 218 | |
---|
[9073] | 219 | %files devel |
---|
[11436] | 220 | %{_includedir}/webkitgtk-4.0/* |
---|
| 221 | %exclude %{_includedir}/webkitgtk-4.0/JavaScriptCore/ |
---|
[9073] | 222 | %{_libdir}/libwebkit2gtk-4.0.so |
---|
| 223 | %{_libdir}/pkgconfig/webkit2gtk-4.0.pc |
---|
| 224 | %{_libdir}/pkgconfig/webkit2gtk-web-extension-4.0.pc |
---|
| 225 | %{_datadir}/gir-1.0/WebKit2-4.0.gir |
---|
| 226 | %{_datadir}/gir-1.0/WebKit2WebExtension-4.0.gir |
---|
| 227 | |
---|
[11436] | 228 | %files jsc-devel |
---|
| 229 | %dir %{_includedir}/webkitgtk-4.0 |
---|
| 230 | %{_includedir}/webkitgtk-4.0/JavaScriptCore/ |
---|
| 231 | %{_libdir}/libjavascriptcoregtk-4.0.so |
---|
| 232 | %{_libdir}/pkgconfig/javascriptcoregtk-4.0.pc |
---|
| 233 | %{_datadir}/gir-1.0/JavaScriptCore-4.0.gir |
---|
| 234 | |
---|
[12431] | 235 | |
---|
[9073] | 236 | %changelog |
---|
[12560] | 237 | * Tue Mar 02 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.30.5-1 |
---|
| 238 | - new upstream release. |
---|
| 239 | |
---|
[12508] | 240 | * Tue Dec 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.30.3-1 |
---|
| 241 | - new upstream release. |
---|
| 242 | - added systemd support (disabled as default). |
---|
| 243 | |
---|
[12487] | 244 | * Tue Sep 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.4-1 |
---|
| 245 | - new upstream release. |
---|
| 246 | |
---|
[12431] | 247 | * Sun Jul 26 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.3-1 |
---|
| 248 | - new upstream release. |
---|
| 249 | |
---|
[12422] | 250 | * Thu Jul 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.2-1 |
---|
| 251 | - new upstream release. |
---|
| 252 | |
---|
[12386] | 253 | * Fri Apr 24 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.1-1 |
---|
| 254 | - new upstream release. |
---|
| 255 | - rebuilt with libicu67. |
---|
| 256 | |
---|
[12344] | 257 | * Fri Mar 20 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.0-2 |
---|
| 258 | - rebuilt with libicu66. |
---|
| 259 | |
---|
[12332] | 260 | * Sun Mar 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.28.0-1 |
---|
| 261 | - new upstream release. |
---|
| 262 | - dropped Patch1: fixed in upstream. |
---|
| 263 | |
---|
[12263] | 264 | * Sun Oct 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.26.1-1 |
---|
| 265 | - new upstream release. |
---|
| 266 | - built with icu-65. |
---|
| 267 | |
---|
[12222] | 268 | * Fri Sep 20 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.26.0-1 |
---|
| 269 | - new upstream release. |
---|
| 270 | - switched build-system to ninja. |
---|
| 271 | |
---|
[12121] | 272 | * Tue Aug 27 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.24.3-1 |
---|
[12222] | 273 | - new upstream release. |
---|
[12121] | 274 | |
---|
[12005] | 275 | * Thu Jan 03 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.22.5-1 |
---|
| 276 | - new upstream release. |
---|
| 277 | |
---|
[11436] | 278 | * Thu Jan 11 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.18.5-1 |
---|
| 279 | - new upstream release. |
---|
| 280 | - added subpackages webkitgtk4-jsc{,-devel}. |
---|
| 281 | |
---|
[11372] | 282 | * Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.18.4-1 |
---|
| 283 | - new upstream release. |
---|
| 284 | |
---|
[10430] | 285 | * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.12.3-2 |
---|
| 286 | - rebuilt with new toolchain. |
---|
| 287 | |
---|
[10369] | 288 | * Sun Jun 12 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.12.3-1 |
---|
| 289 | - new upstream release |
---|
| 290 | (including security fix for CVE-2016-1856,1857) |
---|
| 291 | |
---|
[10250] | 292 | * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.12.2-1 |
---|
| 293 | - new upstream release |
---|
| 294 | - remove Patch0 |
---|
| 295 | - add BuildRequires: libnotify-devel, hyphen-devel |
---|
| 296 | |
---|
[9909] | 297 | * Wed Dec 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.5-3 |
---|
| 298 | - rebuild with gnutls-3.4.7 |
---|
| 299 | |
---|
[9791] | 300 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.5-2 |
---|
| 301 | - rebuild with icu-56.1 |
---|
| 302 | |
---|
[9715] | 303 | * Mon Aug 17 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.5-1 |
---|
| 304 | - new upstream release |
---|
| 305 | |
---|
[9672] | 306 | * Sun Jul 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.4-1 |
---|
| 307 | - new upstream release |
---|
| 308 | |
---|
[9573] | 309 | * Fri May 22 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.3-1 |
---|
| 310 | - new upstream release |
---|
| 311 | |
---|
[9569] | 312 | * Fri May 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.2-1 |
---|
| 313 | - new upstream release |
---|
| 314 | |
---|
[9520] | 315 | * Wed Apr 15 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.1-1 |
---|
| 316 | - new upstream release |
---|
| 317 | |
---|
[9475] | 318 | * Sun Mar 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.0-1 |
---|
| 319 | - new upstream release |
---|
| 320 | - update Patch0 |
---|
| 321 | |
---|
[9398] | 322 | * Sun Mar 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1 |
---|
| 323 | - new upstream release |
---|
| 324 | |
---|
[9121] | 325 | * Sat Nov 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.4-2 |
---|
| 326 | - add Group tag |
---|
| 327 | |
---|
[9115] | 328 | * Mon Nov 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.4-1 |
---|
| 329 | - new upstream release |
---|
| 330 | |
---|
[9102] | 331 | * Tue Nov 18 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.3-1 |
---|
| 332 | - new upstream release |
---|
| 333 | |
---|
[9073] | 334 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.2-1 |
---|
| 335 | - initial build for Vine Linux |
---|
| 336 | |
---|
| 337 | |
---|
| 338 | * Thu Sep 25 2014 Tomas Popela <tpopela@redhat.com> - 2.6.0-1 |
---|
| 339 | - Add the wrongly removed CLoop patch and remove the one that was upstreamed |
---|
| 340 | |
---|
| 341 | * Wed Sep 24 2014 Kalev Lember <kalevlember@gmail.com> - 2.6.0-1 |
---|
| 342 | - Update to 2.6.0 |
---|
| 343 | |
---|
| 344 | * Mon Sep 22 2014 Tomas Popela <tpopela@redhat.com> - 2.5.90-1 |
---|
| 345 | - Update to 2.5.90 |
---|
| 346 | |
---|
| 347 | * Tue Aug 26 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-7 |
---|
| 348 | - Obsolete libwebkit2gtk from the webkitgtk3 package |
---|
| 349 | |
---|
| 350 | * Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 2.5.3-6 |
---|
| 351 | - rebuild for ICU 53.1 |
---|
| 352 | |
---|
| 353 | * Mon Aug 25 2014 Tomas Popela <tpopela@redhat.com> - 2.5.3-5 |
---|
| 354 | - Add support for secondary arches |
---|
| 355 | |
---|
| 356 | * Fri Aug 22 2014 Michael Catanzaro <mcatanzaro@gnome.org> - 2.5.3-4 |
---|
| 357 | - Add webkitgtk-2.5.3-toggle-buttons.patch |
---|
| 358 | |
---|
| 359 | * Thu Aug 21 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-3 |
---|
| 360 | - More package review fixes (#1131284) |
---|
| 361 | - Correct the license tag to read LGPLv2 |
---|
| 362 | - Filter out provides for private libraries |
---|
| 363 | |
---|
| 364 | * Tue Aug 19 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-2 |
---|
| 365 | - Remove bundled leveldb, gtest, qunit in %%prep (#1131284) |
---|
| 366 | |
---|
| 367 | * Fri Aug 15 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.3-1 |
---|
| 368 | - Update to 2.5.3 |
---|
| 369 | |
---|
| 370 | * Fri Aug 01 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.1-1 |
---|
| 371 | - Initial Fedora packaging, based on the webkitgtk3 package |
---|