webkitgtk4-vl.spec 12 KB

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