In -doc, unbundle js-jquery and fix License

This commit is contained in:
Benjamin A. Beasley 2021-09-26 12:30:15 -04:00
parent bfa6201e5c
commit fc55f6865c

View File

@ -50,6 +50,7 @@ BuildRequires: mm-common
BuildRequires: perl-interpreter
BuildRequires: perl(Getopt::Long)
BuildRequires: doxygen
BuildRequires: web-assets-devel
# dot
BuildRequires: graphviz
# xsltproc
@ -78,10 +79,23 @@ The API/ABI version series is %{apiver}.
%package doc
Summary: Documentation for cairomm%{apiver}
# The documentation is licensed LGPLv2, same as the base package, except that
# several files inserted by Doxygen are MIT-licensed:
# - %%{_docdir}/cairomm-%%{apiver}/reference/html/dynsections.js
# - %%{_docdir}/cairomm-%%{apiver}/reference/html/menu.js
# - %%{_docdir}/cairomm-%%{apiver}/reference/html/menudata.js
License: LGPLv2 and MIT
BuildArch: noarch
Requires: libstdc++-docs
Requires: libsigc++20-doc
Requires: js-jquery
# We do not treat the Doxygen-generated JavaScript files as bundled libraries,
# but as generated helper code that may potentially vary from project to
# project based on the settings in the Doxyfile.
%description doc
Documentation for cairomm%{apiver} can be viewed either through the devhelp
documentation browser or through a web browser at
@ -132,6 +146,10 @@ install -t %{buildroot}%{_docdir}/cairomm-%{apiver} -m 0644 -p \
AUTHORS ChangeLog MAINTAINERS NEWS README
cp -rp examples %{buildroot}%{_docdir}/cairomm-%{apiver}/
# Unbundle jquery inserted by Doxygen
ln -svf '%{_jsdir}/jquery/3/jquery.js' \
'%{buildroot}%{_docdir}/cairomm-%{apiver}/reference/html/'
%check
%meson_test