Expose internal packages in the OSGi metadata

This commit is contained in:
Mat Booth 2020-08-28 13:53:22 +01:00
parent bebcde2eb0
commit fe1e210229

View File

@ -1,7 +1,7 @@
Name: jsoup Name: jsoup
Summary: Java library for working with real-world HTML Summary: Java library for working with real-world HTML
Version: 1.13.1 Version: 1.13.1
Release: 3%{?dist} Release: 4%{?dist}
License: MIT License: MIT
URL: http://jsoup.org/ URL: http://jsoup.org/
@ -49,6 +49,11 @@ API documentation for %{name}.
%pom_remove_plugin :maven-failsafe-plugin %pom_remove_plugin :maven-failsafe-plugin
%pom_remove_plugin :maven-javadoc-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,*</_exportcontents>"
%build %build
%mvn_build -f %mvn_build -f
@ -63,6 +68,9 @@ API documentation for %{name}.
%license LICENSE %license LICENSE
%changelog %changelog
* Fri Aug 28 2020 Mat Booth <mat.booth@redhat.com> - 1.13.1-4
- Expose internal packages in the OSGi metadata
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-3 * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild