Make building of chromedriver optional

It lowers patching effort when this spec is used as a base for
ungoogled-chromium. chromedriver is not the desired outcome then so it
would be disabled by a simple boolean variable.
epel9
Łukasz Wojniłowicz 10 months ago
parent bb183235c9
commit 2b0a759a9f

@ -30,6 +30,9 @@
export NINJA_STATUS="[%2:%f/%t] " ; \
ninja -j %{numjobs} -C '%1' '%2'
# enable|disable chromedriver
%global build_chromedriver 1
# enable|disable headless client build
%global build_headless 1
@ -301,7 +304,7 @@
Name: chromium%{chromium_channel}
Version: 122.0.6261.69
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use
Url: http://www.chromium.org/Home
License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only)
@ -1572,7 +1575,10 @@ mkdir -p %{builddir} && cp -a %{_bindir}/gn %{builddir}/
%build_target %{builddir} chrome
%build_target %{builddir} chrome_sandbox
%if %{build_chromedriver}
%build_target %{builddir} chromedriver
%endif
%if %{build_clear_key_cdm}
%build_target %{builddir} clear_key_cdm
@ -1661,9 +1667,11 @@ pushd %{builddir}
%endif
%endif
# chromedriver
cp -a chromedriver %{buildroot}%{chromium_path}/chromedriver
ln -s ../..%{chromium_path}/chromedriver %{buildroot}%{_bindir}/chromedriver
%if %{build_chromedriver}
# chromedriver
cp -a chromedriver %{buildroot}%{chromium_path}/chromedriver
ln -s ../..%{chromium_path}/chromedriver %{buildroot}%{_bindir}/chromedriver
%endif
%if %{build_remoting}
# Remote desktop bits
@ -1935,13 +1943,18 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt
/var/lib/chrome-remote-desktop/
%endif
%if %{build_chromedriver}
%files -n chromedriver
%doc AUTHORS
%license LICENSE
%{_bindir}/chromedriver
%{chromium_path}/chromedriver
%endif
%changelog
* Tue Feb 27 2024 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> - 122.0.6261.69-3
- Make building of chromedriver optional
* Tue Feb 27 2024 Jiri Vanek <jvanek@redhat.com> - 122.0.6261.69-2
- Rebuilt for java-21-openjdk as system jdk
@ -3612,5 +3625,4 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt
- Compile with Dproprietary_codecs=0 and Dffmpeg_branding=Chromium to disable proprietary codecs (i.e. MP3)
* Mon Sep 9 2013 Tomas Popela <tpopela@redhat.com> 29.0.1547.65-1
- Initial version based on Tom Callaway's <spot@fedoraproject.org> work
- Initial version based on Tom Callaway's <spot@fedoraproject.org> work
Loading…
Cancel
Save