commit 60292d90f6d0fcdd07ff4450eeaebc123e711b20 Author: Johnny Hughes Date: Wed Jan 15 13:03:11 2025 -0600 Import from Fedora diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9978b35 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +/results_* +/*.src.rpm + +/jsoup-1.6.1.tar.xz +/jsoup-jsoup-1.7.2.tar.gz +/jsoup-1.8.1.a.tar.gz +/jsoup-1.8.2.tar.gz +/jsoup-1.8.3.tar.gz +/jsoup-1.9.1.tar.gz +/jsoup-1.9.2.tar.gz +/jsoup-1.10.1.tar.gz +/jsoup-1.10.2.tar.gz +/jsoup-1.10.3.tar.gz +/jsoup-1.11.1.tar.gz +/jsoup-1.11.2.tar.gz +/jsoup-1.11.3.tar.gz +/jsoup-1.12.1.tar.gz +/jsoup-1.13.1.tar.gz +/jsoup-1.16.1.tar.gz +/jsoup-1.17.2.tar.gz +/jsoup-1.18.1.tar.gz diff --git a/ci.fmf b/ci.fmf new file mode 100644 index 0000000..c5aa0e0 --- /dev/null +++ b/ci.fmf @@ -0,0 +1 @@ +resultsdb-testcase: separate diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..df26947 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - rhel-9 +decision_contexts: + - osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/javapackages.functional} diff --git a/generate-tarball.sh b/generate-tarball.sh new file mode 100755 index 0000000..49786ce --- /dev/null +++ b/generate-tarball.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -e + +name=jsoup +version="$(sed -n 's/Version:\s*//p' *.spec)" + +# RETRIEVE +wget "https://github.com/jhy/${name}/archive/${name}-${version}.tar.gz" -O "${name}-${version}.orig.tar.gz" + +rm -rf tarball-tmp +mkdir tarball-tmp +pushd tarball-tmp +tar -xf "../${name}-${version}.orig.tar.gz" + +# CLEAN TARBALL +# contains scraped news articles (non-free) +rm -r "${name}-${name}-${version}/src/test/resources" + +tar -czf "../${name}-${version}.tar.gz" * +popd +rm -r tarball-tmp "${name}-${version}.orig.tar.gz" diff --git a/jsoup.spec b/jsoup.spec new file mode 100644 index 0000000..8e12c89 --- /dev/null +++ b/jsoup.spec @@ -0,0 +1,252 @@ +%bcond_with bootstrap + +Name: jsoup +Version: 1.18.1 +Release: 8%{?dist} +Summary: Java library for working with real-world HTML +License: MIT +URL: https://jsoup.org/ +BuildArch: noarch +ExclusiveArch: %{java_arches} noarch + +# ./generate-tarball.sh +Source0: %{name}-%{version}.tar.gz +# The sources contain non-free scraped web pages as test data +Source1: generate-tarball.sh + +BuildRequires: jurand +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else +BuildRequires: maven-local +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) +%endif + +%description +jsoup is a Java library for working with real-world HTML. It provides a very +convenient API for fetching URLs and extracting and manipulating data, using the +best of HTML5 DOM methods and CSS selectors. + +jsoup implements the WHATWG HTML5 specification, 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 +pristine and validating, to invalid tag-soup; jsoup will create a sensible parse +tree. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +API documentation for %{name}. + +%prep +%autosetup -p1 -n %{name}-%{name}-%{version} + +%pom_remove_plugin :animal-sniffer-maven-plugin +%pom_remove_plugin :maven-failsafe-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,*" + +# 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 +%mvn_build -f + +%install +%mvn_install + +%files -f .mfiles +%doc README.md CHANGES.md +%license LICENSE + +%files javadoc -f .mfiles-javadoc + +%changelog +* Fri Nov 29 2024 Mikolaj Izdebski - 1.18.1-6 +- Update javapackages test plan to f42 + +* Thu Jul 18 2024 Fedora Release Engineering - 1.18.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jul 15 2024 Marian Koncek - 1.18.1-1 +- Update to upstream version 1.18.1 + +* Fri Feb 23 2024 Jiri Vanek - 1.17.2-2 +- bump of release for for java-21-openjdk as system jdk + +* Thu Feb 01 2024 Mikolaj Izdebski - 1.17.2-1 +- Update to upstream version 1.17.2 + +* Wed Jan 24 2024 Fedora Release Engineering - 1.16.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 20 2024 Fedora Release Engineering - 1.16.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Aug 15 2023 Mikolaj Izdebski - 1.16.1-2 +- Build with default JDK 17 + +* Mon Jul 24 2023 Marian Koncek - 1.16.1-1 +- Unretire with version 1.16.1 + +* Sat Feb 05 2022 Jiri Vanek - 1.13.1-9 +- Rebuilt for java-17-openjdk as system jdk + +* Thu Jan 20 2022 Fedora Release Engineering - 1.13.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.13.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 17 2021 Mikolaj Izdebski - 1.13.1-6 +- Bootstrap build +- Non-bootstrap build + +* Tue Jan 26 2021 Fedora Release Engineering - 1.13.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Aug 28 2020 Mat Booth - 1.13.1-4 +- Expose internal packages in the OSGi metadata + +* Tue Aug 25 2020 Marian Koncek - 1.13.1-1 +- Update to upstream version 1.13.1 + +* Tue Jul 28 2020 Fedora Release Engineering - 1.13.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 10 2020 Jiri Vanek - 1.13.1-2 +- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 + +* Thu May 14 2020 Fabio Valentini - 1.13.1-1 +- Update to version 1.13.1. + +* Wed Jan 29 2020 Fedora Release Engineering - 1.12.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jan 25 2020 Mikolaj Izdebski - 1.12.1-3 +- Build with OpenJDK 8 + +* Tue Nov 05 2019 Mikolaj Izdebski - 1.12.1-2 +- Mass rebuild for javapackages-tools 201902 + +* Sun Oct 20 2019 Fabio Valentini - 1.12.1-1 +- Update to version 1.12.1. + +* Thu Jul 25 2019 Fedora Release Engineering - 1.11.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jul 04 2019 Marian Koncek - 1.12.1-1 +- Update to upstream version 1.12.1 + +* Fri May 24 2019 Mikolaj Izdebski - 1.11.3-4 +- Mass rebuild for javapackages-tools 201901 + +* Fri Feb 01 2019 Fedora Release Engineering - 1.11.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Jul 18 2018 Michael Simacek - 1.11.3-3 +- Remove non-free scraped web pages from SRPM + +* Fri Jul 13 2018 Fedora Release Engineering - 1.11.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Apr 19 2018 Michael Simacek - 1.11.3-1 +- Update to upstream version 1.11.3 + +* Wed Feb 07 2018 Fedora Release Engineering - 1.11.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Nov 27 2017 Michael Simacek - 1.11.2-1 +- Update to upstream version 1.11.2 + +* Mon Nov 06 2017 Michael Simacek - 1.11.1-1 +- Update to upstream version 1.11.1 + +* Wed Jul 26 2017 Fedora Release Engineering - 1.10.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Thu Jun 15 2017 Michael Simacek - 1.10.3-1 +- Update to upstream version 1.10.3 + +* Fri Feb 10 2017 Fedora Release Engineering - 1.10.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Jan 04 2017 Michael Simacek - 1.10.2-1 +- Update to upstream version 1.10.2 + +* Wed Nov 02 2016 Michael Simacek - 1.10.1-1 +- Update to upstream version 1.10.1 + +* Tue May 24 2016 Michael Simacek - 1.9.2-1 +- Update to upstream version 1.9.2 + +* Mon Apr 18 2016 Michael Simacek - 1.9.1-1 +- Update to upstream version 1.9.1 + +* Thu Feb 04 2016 Fedora Release Engineering - 1.8.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Aug 04 2015 Michael Simacek - 1.8.3-1 +- Update to upstream version 1.8.3 + +* Wed Jun 17 2015 Fedora Release Engineering - 1.8.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Apr 14 2015 Mikolaj Izdebski - 1.8.2-1 +- Update to upstream version 1.8.2 + +* Mon Sep 29 2014 Mikolaj Izdebski - 1.8.1-1 +- Update to upstream version 1.8.1 + +* Sun Jun 08 2014 Fedora Release Engineering - 1.7.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 21 2014 Mikolaj Izdebski - 1.7.2-3 +- Update to current packaging guidelines + +* Tue Mar 04 2014 Stanislav Ochotnicky - 1.7.2-2 +- Use Requires: java-headless rebuild (#1067528) + +* Mon Aug 12 2013 Alexander Kurtakov 1.7.2-1 +- Update to latest upstream. + +* Sat Aug 03 2013 Fedora Release Engineering - 1.6.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.6.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 1.6.1-6 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Thu Jul 19 2012 Fedora Release Engineering - 1.6.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Apr 04 2012 Jaromir Capik - 1.6.1-4 +- Removing maven from Requires + +* Fri Jan 13 2012 Fedora Release Engineering - 1.6.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Jul 22 2011 Jaromir Capik - 1.6.1-2 +- Switching to sources from github + +* Fri Jul 22 2011 Jaromir Capik - 1.6.1-1 +- Initial package diff --git a/plans/javapackages.fmf b/plans/javapackages.fmf new file mode 100644 index 0000000..8ba3510 --- /dev/null +++ b/plans/javapackages.fmf @@ -0,0 +1,7 @@ +summary: Run javapackages-specific tests +discover: + how: fmf + url: https://src.fedoraproject.org/tests/javapackages + ref: c9s +execute: + how: tmt diff --git a/sources b/sources new file mode 100644 index 0000000..0ea4c54 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jsoup-1.18.1.tar.gz) = 290483fe015870e8163f11a7e49ab9e5e411a3654d46e04e10f08589efb432890fa61e2f434907f053bed9debefec6b0f843370ac270007201eb434153024f46