From 948e04f946d95612948d81d9090e2bcfa95abe56 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sat, 25 Sep 2021 13:39:38 -0400 Subject: [PATCH] In -doc, unbundle js-jquery and fix License --- cairomm.spec | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cairomm.spec b/cairomm.spec index 59e8240..9c8cfd0 100644 --- a/cairomm.spec +++ b/cairomm.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 @@ -88,11 +89,23 @@ The API/ABI version series is %{apiver}. %package doc Summary: Documentation for cairomm +# 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. + Provides: cairomm%{apiver}-doc = %{version}-%{release} %description doc @@ -146,6 +159,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