From ae53d3ad065a2779fc2b03b2afacb740c563faa4e1a207104046c32e73202308 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 1 Feb 2019 08:48:22 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsoup?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + jsoup-1.11.3.tar.gz | 3 + jsoup-build.xml | 138 ++++++++++++++++++++++++++++++++++++++++++++ jsoup.spec | 91 +++++++++++++++++++++++++++++ 5 files changed, 256 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 jsoup-1.11.3.tar.gz create mode 100644 jsoup-build.xml create mode 100644 jsoup.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/jsoup-1.11.3.tar.gz b/jsoup-1.11.3.tar.gz new file mode 100644 index 0000000..32b60ee --- /dev/null +++ b/jsoup-1.11.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4e06b8cc43b39d0f35e6e39cbc1eddbb45132ef8bbb1e9c489a04a7cc03338d +size 386845 diff --git a/jsoup-build.xml b/jsoup-build.xml new file mode 100644 index 0000000..1511c01 --- /dev/null +++ b/jsoup-build.xml @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jsoup.spec b/jsoup.spec new file mode 100644 index 0000000..167a731 --- /dev/null +++ b/jsoup.spec @@ -0,0 +1,91 @@ +# +# spec file for package jsoup +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: jsoup +Version: 1.11.3 +Release: 0 +Summary: Java library for working with real-world HTML +License: MIT +Group: Development/Libraries/Java +URL: http://jsoup.org/ +Source0: https://github.com/jhy/%{name}/archive/%{name}-%{version}.tar.gz +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: java-devel >= 1.7 +BuildRequires: javapackages-local +BuildArch: noarch + +%description +jsoup is a Java library for working with real-world HTML. +It provides a very convenient API for extracting and manipulating data, +using the best of DOM, CSS, and jquery-like methods. + +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 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. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q -n %{name}-%{name}-%{version} +cp %{SOURCE1} . + +%pom_remove_plugin :animal-sniffer-maven-plugin +%pom_remove_plugin :maven-javadoc-plugin + +%build +%ant -f %{name}-build.xml jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom +%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir} +install -pdm 0755 target/site/apidocs %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%doc README.md CHANGES +%license LICENSE + +%files javadoc +%license LICENSE +%{_javadocdir}/%{name} + +%changelog