|
|
@ -1,65 +1,46 @@
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: jsoup
|
|
|
|
Name: jsoup
|
|
|
|
Version: 1.17.2
|
|
|
|
Version: 1.12.1
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: Java library for working with real-world HTML
|
|
|
|
Summary: Java library for working with real-world HTML
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://jsoup.org/
|
|
|
|
URL: http://jsoup.org/
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
ExclusiveArch: %{java_arches} noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ./generate-tarball.sh
|
|
|
|
# ./generate-tarball.sh
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
# The sources contain non-free scraped web pages as test data
|
|
|
|
# The sources contain non-free scraped web pages as test data
|
|
|
|
Source1: generate-tarball.sh
|
|
|
|
Source1: generate-tarball.sh
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
BuildRequires: maven-local-openjdk8
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: jurand
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
jsoup is a Java library for working with real-world HTML. It provides a very
|
|
|
|
jsoup is a Java library for working with real-world HTML.
|
|
|
|
convenient API for fetching URLs and extracting and manipulating data, using the
|
|
|
|
It provides a very convenient API for extracting and manipulating data,
|
|
|
|
best of HTML5 DOM methods and CSS selectors.
|
|
|
|
using the best of DOM, CSS, and jquery-like methods.
|
|
|
|
|
|
|
|
|
|
|
|
jsoup implements the WHATWG HTML5 specification, and parses HTML to the same DOM
|
|
|
|
jsoup implements the WHATWG HTML5 specification,
|
|
|
|
as modern browsers do.
|
|
|
|
and parses HTML to the same DOM as modern browsers do.
|
|
|
|
* scrape and parse HTML from a URL, file, or string
|
|
|
|
|
|
|
|
* find and extract data, using DOM traversal or CSS selectors
|
|
|
|
|
|
|
|
* manipulate the HTML elements, attributes, and text
|
|
|
|
|
|
|
|
* clean user-submitted content against a safelist, to prevent XSS attacks
|
|
|
|
|
|
|
|
* output tidy HTML
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jsoup is designed to deal with all varieties of HTML found in the wild; from
|
|
|
|
- scrape and parse HTML from a URL, file, or string
|
|
|
|
pristine and validating, to invalid tag-soup; jsoup will create a sensible parse
|
|
|
|
- find and extract data, using DOM traversal or CSS selectors
|
|
|
|
tree.
|
|
|
|
- manipulate the HTML elements, attributes, and text
|
|
|
|
|
|
|
|
- clean user-submitted content against a safe white-list,
|
|
|
|
|
|
|
|
to prevent XSS attacks
|
|
|
|
|
|
|
|
- output tidy HTML
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jsoup is designed to deal with all varieties of HTML found in the wild;
|
|
|
|
|
|
|
|
from pristine and validating, to invalid tag-soup;
|
|
|
|
|
|
|
|
jsoup will create a sensible parse tree.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?module_package}
|
|
|
|
%{?javadoc_package}
|
|
|
|
%{?javadoc_package}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%pom_remove_plugin :animal-sniffer-maven-plugin
|
|
|
|
%pom_remove_plugin :animal-sniffer-maven-plugin
|
|
|
|
%pom_remove_plugin :maven-failsafe-plugin
|
|
|
|
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
|
|
%pom_remove_plugin com.github.siom79.japicmp:japicmp-maven-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>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove jspecify annotations which are used for static analysis only
|
|
|
|
|
|
|
|
%pom_remove_dep :jspecify
|
|
|
|
|
|
|
|
sed -i /org.jspecify/d src/main/java9/module-info.java
|
|
|
|
|
|
|
|
%java_remove_annotations src/main/java -s \
|
|
|
|
|
|
|
|
-p org[.]jspecify[.]annotations[.] \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%mvn_build -f
|
|
|
|
%mvn_build -f
|
|
|
@ -67,91 +48,23 @@ sed -i /org.jspecify/d src/main/java9/module-info.java
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%files -n %{?module_prefix}%{name} -f .mfiles
|
|
|
|
%doc README.md CHANGES.md
|
|
|
|
%doc README.md CHANGES
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.17.2-4
|
|
|
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 1.17.2-3
|
|
|
|
|
|
|
|
- Bump release for Aug 2024 java mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.17.2-2
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 01 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.17.2-1
|
|
|
|
|
|
|
|
- Update to upstream version 1.17.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.1-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 15 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.16.1-2
|
|
|
|
|
|
|
|
- Build with default JDK 17
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 24 2023 Marian Koncek <mkoncek@redhat.com> - 1.16.1-1
|
|
|
|
|
|
|
|
- Unretire with version 1.16.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1.13.1-9
|
|
|
|
|
|
|
|
- Rebuilt for java-17-openjdk as system jdk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-6
|
|
|
|
|
|
|
|
- Bootstrap build
|
|
|
|
|
|
|
|
- Non-bootstrap build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 28 2020 Mat Booth <mat.booth@redhat.com> - 1.13.1-4
|
|
|
|
|
|
|
|
- Expose internal packages in the OSGi metadata
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 25 2020 Marian Koncek <mkoncek@redhat.com> - 1.13.1-1
|
|
|
|
|
|
|
|
- Update to upstream version 1.13.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.13.1-2
|
|
|
|
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 14 2020 Fabio Valentini <decathorpe@gmail.com> - 1.13.1-1
|
|
|
|
|
|
|
|
- Update to version 1.13.1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.12.1-3
|
|
|
|
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.12.1-3
|
|
|
|
- Build with OpenJDK 8
|
|
|
|
- Build with OpenJDK 8
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.12.1-2
|
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.12.1-2
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Oct 20 2019 Fabio Valentini <decathorpe@gmail.com> - 1.12.1-1
|
|
|
|
|
|
|
|
- Update to version 1.12.1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.3-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 04 2019 Marian Koncek <mkoncek@redhat.com> - 1.12.1-1
|
|
|
|
* Thu Jul 04 2019 Marian Koncek <mkoncek@redhat.com> - 1.12.1-1
|
|
|
|
- Update to upstream version 1.12.1
|
|
|
|
- Update to upstream version 1.12.1
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.11.3-4
|
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.11.3-4
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.3-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 18 2018 Michael Simacek <msimacek@redhat.com> - 1.11.3-3
|
|
|
|
* Wed Jul 18 2018 Michael Simacek <msimacek@redhat.com> - 1.11.3-3
|
|
|
|
- Remove non-free scraped web pages from SRPM
|
|
|
|
- Remove non-free scraped web pages from SRPM
|
|
|
|
|
|
|
|
|