From fc55f6865c3d8734e589cffca166ef9672110642 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sun, 26 Sep 2021 12:30:15 -0400 Subject: [PATCH] In -doc, unbundle js-jquery and fix License --- cairomm1.16.spec | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cairomm1.16.spec b/cairomm1.16.spec index 7184053..4f7d07b 100644 --- a/cairomm1.16.spec +++ b/cairomm1.16.spec @@ -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