Remove bundled jQuery/jQueryUI from prebuilt documentation, and rebuild the documentation ourselves

This commit is contained in:
Benjamin A. Beasley 2021-02-11 08:20:25 -05:00
parent 0a9774a667
commit ba7b0d03fb

View File

@ -26,6 +26,8 @@ BuildRequires: libsigc++20-devel >= %{libsigc_version}
BuildRequires: perl-interpreter
BuildRequires: perl(Getopt::Long)
BuildRequires: doxygen
Requires: cairo%{?_isa} >= %{cairo_version}
Requires: libsigc++20%{?_isa} >= %{libsigc_version}
@ -55,6 +57,15 @@ documentation browser or through a web browser at
%prep
%setup -q
# We must remove the jQuery/jQueryUI bundle with precompiled/minified/bundled
# JavaScript that is in docs/reference/html/jquery.js, since such sources are
# banned in Fedora. (Note also that the bundled JavaScript had a different
# license.) We also remove the tag file, which triggers a rebuild of the
# documentation. While we are at it, we might as well rebuild the devhelp XML
# too.
rm -rf docs/reference/html
rm docs/reference/%{name}-%{apiver}.tag \
docs/reference/%{name}-%{apiver}.devhelp2
%build