From c00a3c45ce40fca6a575c9824169bcb7933d47d6 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Fri, 28 Aug 2020 13:53:22 +0100 Subject: [PATCH] Expose internal packages in the OSGi metadata --- jsoup.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jsoup.spec b/jsoup.spec index f4cabce..81d72ac 100644 --- a/jsoup.spec +++ b/jsoup.spec @@ -1,7 +1,7 @@ Name: jsoup Summary: Java library for working with real-world HTML Version: 1.12.1 -Release: 2%{?dist} +Release: 3%{?dist} License: MIT URL: http://jsoup.org/ @@ -48,6 +48,11 @@ API documentation for %{name}. %pom_remove_plugin :animal-sniffer-maven-plugin %pom_remove_plugin :maven-javadoc-plugin +# Expose internal packages in the OSGi metadata, clearly marking them as such +# using the x-internal attribute +%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions" \ + "<_exportcontents>*.internal;x-internal:=true,*" + %build %mvn_build -f @@ -62,6 +67,9 @@ API documentation for %{name}. %license LICENSE %changelog +* Fri Aug 28 2020 Mat Booth - 1.12.1-3 +- Expose internal packages in the OSGi metadata + * Wed Jan 29 2020 Fedora Release Engineering - 1.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild